]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mfd: sprd-sc27xx: Switch to devm_mfd_add_devices()
authorOtto Pflüger <otto.pflueger@abscue.de>
Sun, 29 Mar 2026 07:27:47 +0000 (09:27 +0200)
committerLee Jones <lee@kernel.org>
Wed, 17 Jun 2026 10:30:22 +0000 (11:30 +0100)
commit3c8658d6b55564167b11c6dd5ecffe368ef9c2ec
treed4919c5ad06a139c51568b958c1aa11125853402
parent104cd764a031bfe2ffe253adce9581384a78c16e
mfd: sprd-sc27xx: Switch to devm_mfd_add_devices()

To allow instantiating subdevices such as the regulator and poweroff
devices that do not have corresponding device tree nodes with a
"compatible" property, use devm_mfd_add_devices() with MFD cells instead
of devm_of_platform_populate(). Since different PMICs in the SC27xx
series contain different components, use separate MFD cell tables for
each PMIC model. Define cells for all components that have upstream
drivers at this point.

Signed-off-by: Otto Pflüger <otto.pflueger@abscue.de>
Link: https://patch.msgid.link/20260329-sc27xx-mfd-cells-v3-3-9158dee41f74@abscue.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/sprd-sc27xx-spi.c