]> git.baikalelectronics.ru Git - kernel.git/commit
leds: is31fl32xx: use struct led_init_data when registering
authorMarek Behún <marek.behun@nic.cz>
Thu, 17 Sep 2020 22:33:12 +0000 (00:33 +0200)
committerPavel Machek <pavel@ucw.cz>
Sat, 26 Sep 2020 19:56:41 +0000 (21:56 +0200)
commit38024b06ce503e8561c28ba0f016f6a9be9dec4d
treeafe3ac70f8ab436787681139821a138f3e80e93f
parentad584a83397a4ee728626446ecd42bcc5916290c
leds: is31fl32xx: use struct led_init_data when registering

By using struct led_init_data when registering we do not need to parse
`label` DT property. Moreover `label` is deprecated and if it is not
present but `color` and `function` are, LED core will compose a name
from these properties instead.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Cc: H. Nikolaus Schaller <hns@goldelico.com>
Cc: David Rivshin <drivshin@allworx.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-is31fl32xx.c