]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mfd: adp5585: Only add devices given in FW
authorNuno Sá <nuno.sa@analog.com>
Tue, 1 Jul 2025 14:31:57 +0000 (15:31 +0100)
committerLee Jones <lee@kernel.org>
Tue, 1 Jul 2025 20:50:50 +0000 (21:50 +0100)
commit175f199085c1253d2683f583ce32b2e02cd70de1
tree877037e54e965f05f33010548d5f68102ccede08
parent09d55a54b466d60a71573c78a99a901410ef73e0
mfd: adp5585: Only add devices given in FW

Not all devices (features) of the adp5585 device are mandatory to be
used in all platforms. Hence, check what's given in FW and dynamically
create the mfd_cell array to be given to devm_mfd_add_devices().

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20250701-dev-adp5589-fw-v7-2-b1fcfe9e9826@analog.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/adp5585.c