aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafał Miłecki <[email protected]>2022-07-17 14:42:48 +0200
committerPavel Machek <[email protected]>2022-07-17 14:55:40 +0200
commit92cfc71ee2ddfb499ed53e21b28bdf8739bc70bc (patch)
tree91d5c90f38c70dc47df50c2a7ecbb3f4dc77716d
parentbcc607cdbb1f931111196699426f0cb83bfb296a (diff)
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 <[email protected]> Signed-off-by: Rafał Miłecki <[email protected]> Signed-off-by: Pavel Machek <[email protected]>
-rw-r--r--drivers/leds/blink/leds-bcm63138.c3
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);
}
/*