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:
Peng Fan 2026-09-18 22:15:53 +08:00 committed by Andy Shevchenko
parent c868291c2b
commit ce7b04fb41

View File

@ -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);
}