leds: pca955x: Let the core process the fwnode
authorEddie James <eajames@linux.ibm.com>
Fri, 16 Jul 2021 22:03:30 +0000 (17:03 -0500)
committerPavel Machek <pavel@ucw.cz>
Fri, 20 Aug 2021 09:00:08 +0000 (11:00 +0200)
commit7c4815929276b2e223eb6f2e49afe5071d4294a5
tree2965960a8a6c4d373d6779e7c0ea004a2fe5d1aa
parente46cb6d0c760a5b15e38138845fad99628fafcb8
leds: pca955x: Let the core process the fwnode

Much of the fwnode processing in the PCA955x driver is now in the
LEDs core driver, so pass the fwnode in the init data when
registering the LED device. In order to preserve the existing naming
scheme, check for an empty name and set it to the LED number.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-pca955x.c