mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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:
parent
bcc607cdbb
commit
92cfc71ee2
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user