Commit 92cfc71e authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Pavel Machek

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: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent bcc607cd
......@@ -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);
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment