panel.c (17bb415fefedb74d2ff02656cf59e4e3ab92ee20) panel.c (66ce7d5c1e124b497f45aead50df1dc3c2873382)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Front panel driver for Linux
4 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu>
5 * Copyright (C) 2016-2017 Glider bvba
6 *
7 * This code drives an LCD module (/dev/lcd), and a keypad (/dev/keypad)
8 * connected to a parallel printer port.

--- 694 unchanged lines hidden (view full) ---

703 set_bit(LCD_BIT_CL, bits); /* CLK high */
704 panel_set_bits();
705 udelay(1); /* maintain the strobe during 1 us */
706 byte >>= 1;
707 }
708}
709
710/* turn the backlight on or off */
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Front panel driver for Linux
4 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu>
5 * Copyright (C) 2016-2017 Glider bvba
6 *
7 * This code drives an LCD module (/dev/lcd), and a keypad (/dev/keypad)
8 * connected to a parallel printer port.

--- 694 unchanged lines hidden (view full) ---

703 set_bit(LCD_BIT_CL, bits); /* CLK high */
704 panel_set_bits();
705 udelay(1); /* maintain the strobe during 1 us */
706 byte >>= 1;
707 }
708}
709
710/* turn the backlight on or off */
711static void lcd_backlight(struct charlcd *charlcd, int on)
711static void lcd_backlight(struct charlcd *charlcd, enum charlcd_onoff on)
712{
713 if (lcd.pins.bl == PIN_NONE)
714 return;
715
716 /* The backlight is activated by setting the AUTOFEED line to +5V */
717 spin_lock_irq(&pprt_lock);
718 if (on)
719 set_bit(LCD_BIT_BL, bits);

--- 1076 unchanged lines hidden ---
712{
713 if (lcd.pins.bl == PIN_NONE)
714 return;
715
716 /* The backlight is activated by setting the AUTOFEED line to +5V */
717 spin_lock_irq(&pprt_lock);
718 if (on)
719 set_bit(LCD_BIT_BL, bits);

--- 1076 unchanged lines hidden ---