mfd: mt6397: Trim probe function to support different chips more cleanly
authorHsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com>
Tue, 21 Apr 2020 03:00:08 +0000 (11:00 +0800)
committerLee Jones <lee.jones@linaro.org>
Thu, 21 May 2020 07:54:57 +0000 (08:54 +0100)
commitd0c7347dc78f059fa2579a32f444b378589ad7f0
tree9a2a38c01a0f011465b4a0601fbdb1ff2af46dd4
parent4e2e7cfec13afa41fcbed1d9b93d83432aa0154f
mfd: mt6397: Trim probe function to support different chips more cleanly

Add new struct members for mfd-cells and irq initial function, so we can
call devm_mfd_add_devices() only once.

Signed-off-by: Hsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/mt6397-core.c