soc: mediatek: PMIC wrap: add a slave specific struct
authorJohn Crispin <blogic@openwrt.org>
Fri, 19 Feb 2016 08:44:13 +0000 (09:44 +0100)
committerMatthias Brugger <matthias.bgg@gmail.com>
Wed, 20 Apr 2016 11:03:04 +0000 (13:03 +0200)
commitb28d78cd1812e4c65063ff6db9c7f4ab213e75d8
treeddc2ce452aabd5a10d220b181bcf92f94c44b085
parent25269cefb691d324a3fe2be4d2a7b81f6a733996
soc: mediatek: PMIC wrap: add a slave specific struct

This patch adds a new struct pwrap_slv_type that we use to store the slave
specific data. The patch adds 2 new helper functions to access the dew
registers. The slave type is looked up via the wrappers child node.

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