mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
auxdisplay: panel: use assign_bit() where applicable
Convert open-coded if/else with set_bit/clear_bit to the assign_bit API. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
parent
c868291c2b
commit
ce7b04fb41
|
|
@ -714,10 +714,7 @@ static void lcd_backlight(struct charlcd *charlcd, enum charlcd_onoff on)
|
|||
|
||||
/* The backlight is activated by setting the AUTOFEED line to +5V */
|
||||
spin_lock_irq(&pprt_lock);
|
||||
if (on)
|
||||
set_bit(LCD_BIT_BL, bits);
|
||||
else
|
||||
clear_bit(LCD_BIT_BL, bits);
|
||||
assign_bit(LCD_BIT_BL, bits, on);
|
||||
panel_set_bits();
|
||||
spin_unlock_irq(&pprt_lock);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user