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>
This commit is contained in:
Rafał Miłecki 2022-07-17 14:42:48 +02:00 committed by Pavel Machek
parent bcc607cdbb
commit 92cfc71ee2

View File

@ -113,8 +113,7 @@ static void bcm63138_leds_enable_led(struct bcm63138_leds *leds,
{ {
u32 bit = BIT(led->pin); u32 bit = BIT(led->pin);
bcm63138_leds_update_bits(leds, BCM63138_SW_DATA, bit, bcm63138_leds_update_bits(leds, BCM63138_SW_DATA, bit, value ? bit : 0);
value == LED_OFF ? 0 : bit);
} }
/* /*