commit | 823f786ac7615f1bf822227fc4cbeafe11fb6bf8 | [log] [tgz] |
---|---|---|
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | Mon Jul 02 22:05:28 2018 +0200 |
committer | Jacek Anaszewski <jacek.anaszewski@gmail.com> | Thu Jul 05 23:21:12 2018 +0200 |
tree | 841ecfba04fc99788f2c1aecd7ab356eb4f503c1 | |
parent | 2b7b6d44e29160eb12abd950c374babf21ed83d4 [diff] |
leds: transient 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. 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>