summaryrefslogtreecommitdiffstats
path: root/arch/mips/ar7
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2018-07-02 22:05:26 +0200
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2018-07-05 23:21:12 +0200
commitf8112a1de1a728ffef0dd9f6c3005490c5f79ab1 (patch)
tree2013461f5b4180fc422705ec8220761a967de30e /arch/mips/ar7
parent9acc560de2aac73ef99c54f0fdfb86b4684296b5 (diff)
downloadlinux-f8112a1de1a728ffef0dd9f6c3005490c5f79ab1.tar.bz2
leds: netdev 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 trigger_data being non-NULL can go away. (It was broken before because the core didn't clear .trigger_data, so it might have been non-NULL even if .activate() failed before.) 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 'arch/mips/ar7')
0 files changed, 0 insertions, 0 deletions