]> git.baikalelectronics.ru Git - kernel.git/commit
leds: ns2: support OF probing only, forget platdata
authorMarek Behún <marek.behun@nic.cz>
Thu, 17 Sep 2020 22:33:26 +0000 (00:33 +0200)
committerPavel Machek <pavel@ucw.cz>
Sat, 26 Sep 2020 19:56:41 +0000 (21:56 +0200)
commitcb59e4e6534d809eb2c40bde4c47d8f8b777c070
tree794fa959cb9bd8ce17dd45a2af2aa773bf281a88
parent280000be99c65b55dcb15b51aff0bf389e8853ea
leds: ns2: support OF probing only, forget platdata

Move forward from platform data to device tree only.

Since commit 675fcb57285f ("leds: ns2: Absorb platform data") the
platform data structure is absorbed into the driver, because nothing
else in the source tree uses it. Since nobody complained and all usage
of this driver is via device tree, change the code to work with device
tree only. As Linus Walleij wrote, the device tree should be the
preferred way forward anyway.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Cc: Simon Guinot <simon.guinot@sequanux.org>
Cc: Simon Guinot <sguinot@lacie.com>
Cc: Vincent Donnefort <vdonnefort@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-ns2.c