ARM: uniphier: add macro to generate SoC data look-up function
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 21 Jan 2017 09:05:27 +0000 (18:05 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 22 Jan 2017 07:49:33 +0000 (16:49 +0900)
commitee8ef5afa87bf37d493bf7be9d475e54d6c2ebee
tree26698081909c04e0f0c3f1d1a664d83e60ec0884
parente27d6c7d328caf75bd7680109bc6610bc681f46e
ARM: uniphier: add macro to generate SoC data look-up function

There are similar functions that look up SoC data by the SoC ID.
The new macro UNIPHIER_DEFINE_SOCDATA_FUNC will be helpful to
avoid the code duplication.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mach-uniphier/board_init.c
arch/arm/mach-uniphier/soc-info.h
arch/arm/mach-uniphier/spl_board_init.c