mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +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);
|
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user