summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-pca9532.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2018-07-02 23:05:32 +0300
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2018-07-06 00:21:14 +0300
commit13d698cbd99ce90f1d6b4fb0ff11ab90eb55f55e (patch)
treea7f57248e44e524c976b5a395e5e93a8731ef1b3 /drivers/leds/leds-pca9532.c
parent5cccc555108b602f92101a939143925095ff9b1d (diff)
downloadlinux-13d698cbd99ce90f1d6b4fb0ff11ab90eb55f55e.tar.xz
leds: activity trigger: simplifications from core changes
The trigger core learned error handling for the activate callback and can handle device attributes now. This allows simplifying the driver considerably. Note that .deactivate() is only called when .activate() succeeded, so the check for .activated can go away in .deactivate(). Also make use of module_led_trigger() and the accessor function to get and set trigger_data. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'drivers/leds/leds-pca9532.c')
0 files changed, 0 insertions, 0 deletions