summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2021-09-21 14:09:36 +0930
committerPavel Machek <pavel@ucw.cz>2022-03-02 09:51:40 +0100
commite26557a0aa68acfb705b51947b7c756401a1ab71 (patch)
tree8850c49800938518769ed25c54126f81938ac2e5 /kernel
parentca386253ff6fb86128a7c61e1c38ca91de38048d (diff)
leds: pca955x: Allow zero LEDs to be specified
It's valid to use the PCA955x devices just for GPIOs and not for LEDs. In this case, as PCA955X_TYPE_GPIO is now equivalent to PCA955X_TYPE_NONE, remove the test for whether we have any child nodes specified in the devicetree. A consequence of this is it's now possible to bind the driver to a PCA955x device when dynamically instantiated through the I2C subsystem's `new_device` interface. Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions