Move this function out of common.h and into a relevant header file. Signed-off-by: Simon Glass <sjg@chromium.org>