hd44780.c (976e3645923bdd2fe7893aae33fd7a21098bfb28) hd44780.c (66ce7d5c1e124b497f45aead50df1dc3c2873382)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * HD44780 Character LCD driver for Linux
4 *
5 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu>
6 * Copyright (C) 2016-2017 Glider bvba
7 */
8

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

32 PIN_CTRL_BL, /* Optional */
33 PIN_NUM
34};
35
36struct hd44780 {
37 struct gpio_desc *pins[PIN_NUM];
38};
39
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * HD44780 Character LCD driver for Linux
4 *
5 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu>
6 * Copyright (C) 2016-2017 Glider bvba
7 */
8

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

32 PIN_CTRL_BL, /* Optional */
33 PIN_NUM
34};
35
36struct hd44780 {
37 struct gpio_desc *pins[PIN_NUM];
38};
39
40static void hd44780_backlight(struct charlcd *lcd, int on)
40static void hd44780_backlight(struct charlcd *lcd, enum charlcd_onoff on)
41{
42 struct hd44780 *hd = lcd->drvdata;
43
44 if (hd->pins[PIN_CTRL_BL])
45 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_BL], on);
46}
47
48static void hd44780_strobe_gpio(struct hd44780 *hd)

--- 257 unchanged lines hidden ---
41{
42 struct hd44780 *hd = lcd->drvdata;
43
44 if (hd->pins[PIN_CTRL_BL])
45 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_BL], on);
46}
47
48static void hd44780_strobe_gpio(struct hd44780 *hd)

--- 257 unchanged lines hidden ---