The function will be reused by other modules. Signed-off-by: Rémi Duraffort <remi.duraffort@linaro.org>