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)
commitc753ea31781aaab2dccc3e6f297cfde3c99f0ba1
tree68acbaf7e9fb18bdfde63fd6d629c6075d77609a
parentf28fd3b6f73dd908776145143a63393be3522e54
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]