]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
soc: mediatek: pwrap: refactor pwrap_init for the various PMIC types
authorSean Wang <sean.wang@mediatek.com>
Wed, 18 Oct 2017 08:28:45 +0000 (16:28 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 20 Oct 2017 09:54:37 +0000 (11:54 +0200)
commitd56b31e2eabfce7e41c3beb67be91f00a03d42ed
tree9f486b403fa4373e8d1f7ce82309f514e0989a84
parenta10616f05307caf31bb45f413c1a3c48c4b130ea
soc: mediatek: pwrap: refactor pwrap_init for the various PMIC types

pwrap initialization is highly associated with the base SoC and the
target PMICs, so slight refactorization is made here for allowing
pwrap_init to run on those PMICs with different capability from the
previous MediaTek PMICs and the determination for the enablement of the
pwrap capability depending on PMIC type. Apart from this, the patch
makes the driver more extensible especially when more PMICs join into
the pwrap driver.

Signed-off-by: Chenglin Xu <chenglin.xu@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-pmic-wrap.c