]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: simple-mfd-i2c: Add support for registering devices via MFD cells
authorLee Jones <lee.jones@linaro.org>
Wed, 4 Aug 2021 14:21:59 +0000 (15:21 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 16 Aug 2021 12:45:34 +0000 (13:45 +0100)
commite98d624891bc0baba61424386cf9756c93fe8465
tree68acbaf7e9fb18bdfde63fd6d629c6075d77609a
parent1fbc0f1f1e4e1ab53f25c1c2b99f56e61dbdb9be
mfd: simple-mfd-i2c: Add support for registering devices via MFD cells

More devices are cropping up requiring only Regmap initialisation and
child registration functionality.  We currently only support that if
all required devices are represented by their own Device Tree nodes
complete with compatible strings.

However, not everyone is happy with adding empty nodes that provide no
additional device information into the Device Tree.

Rather than have a plethora of mostly empty, function-less drivers in
MFD, we'll support those simple cases in here instead via MFD cells.

Cc: Mark Brown <broonie@kernel.org>
Tested-by: Michael Walle <michael@walle.cc>
Reviewed-by: Alistair Francis <alistair@alistair23.me>
Tested-by: Alistair Francis <alistair@alistair23.me>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/simple-mfd-i2c.c
drivers/mfd/simple-mfd-i2c.h [new file with mode: 0644]