diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2022-07-17 14:42:48 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2022-07-17 14:55:40 +0200 |
commit | 92cfc71ee2ddfb499ed53e21b28bdf8739bc70bc (patch) | |
tree | 91d5c90f38c70dc47df50c2a7ecbb3f4dc77716d /drivers/leds/blink | |
parent | bcc607cdbb1f931111196699426f0cb83bfb296a (diff) | |
download | lwn-92cfc71ee2ddfb499ed53e21b28bdf8739bc70bc.tar.gz lwn-92cfc71ee2ddfb499ed53e21b28bdf8739bc70bc.zip |
leds: leds-bcm63138: get rid of LED_OFF
The whole "enum led_brightness" is marked as obsolete. Replace it with a
(non-)zero check.
Reported-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'drivers/leds/blink')
-rw-r--r-- | drivers/leds/blink/leds-bcm63138.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/leds/blink/leds-bcm63138.c b/drivers/leds/blink/leds-bcm63138.c index c083cb1332cb..2cf2761e4914 100644 --- a/drivers/leds/blink/leds-bcm63138.c +++ b/drivers/leds/blink/leds-bcm63138.c @@ -113,8 +113,7 @@ static void bcm63138_leds_enable_led(struct bcm63138_leds *leds, { u32 bit = BIT(led->pin); - bcm63138_leds_update_bits(leds, BCM63138_SW_DATA, bit, - value == LED_OFF ? 0 : bit); + bcm63138_leds_update_bits(leds, BCM63138_SW_DATA, bit, value ? bit : 0); } /* |