summary refs log tree commit diff
path: root/drivers/leds/leds-lp3952.c
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2018-06-27 20:52:34 +0200
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2018-07-03 22:12:40 +0200
commitd8be286739d6317b2c4b2a6c2cbf63d76410ff90 (patch)
tree3bd1657d7bbe38970c655db61fdf3e6e5e07f787 /drivers/leds/leds-lp3952.c
parentf041f96abcf8718540e94aac6e73604c5d33d9f9 (diff)
downloadlinux-d8be286739d6317b2c4b2a6c2cbf63d76410ff90.tar.gz
leds: lt3593: merge functions and clean up code
In preparation to DT probe functionality, merge create_lt3593_led() into
its only call-site. The DT based setup code will be quite different, so this
internal helper function is of no help.

This also changes the way the driver works by only handling one entry inside
'struct gpio_led_platform_data'. If multiple devices of the same type are
found in a design, there should be a platform device for each of them. The
only mainline user of this driver is not affected by this change.

Last, use devm_led_classdev_register() instead of
led_classdev_register(), so the driver's remove callback can go away.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'drivers/leds/leds-lp3952.c')
0 files changed, 0 insertions, 0 deletions