]> git.baikalelectronics.ru Git - kernel.git/commit
soc: mediatek: PMIC wrap: split SoC specific init into callback
authorJohn Crispin <blogic@openwrt.org>
Fri, 19 Feb 2016 08:44:08 +0000 (09:44 +0100)
committerMatthias Brugger <matthias.bgg@gmail.com>
Wed, 20 Apr 2016 11:03:01 +0000 (13:03 +0200)
commit275ecc7d4669c392410f451432e90e45de78b15b
tree5878cd0c1a0e1715bcaec8246da706b0fdb9fa64
parentf5230f655de26e4acc1a6b6412060922043fef50
soc: mediatek: PMIC wrap: split SoC specific init into callback

This patch moves the SoC specific wrapper init code into separate callback
to avoid pwrap_init() getting too large. This is done by adding a new
element called init_special to pmic_wrapper_type. Each currently supported
SoC gets its own version of the callback and we copy the code that was
previously inside pwrap_init() to these new callbacks. Finally we point the
2 instances of pmic_wrapper_type at the 2 new functions.

Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-pmic-wrap.c