hd44780.c (88645a86e3420cddfe5bb9cd8d7c15aff8f54b46) hd44780.c (45421ffefbb5f195de02ead952755329ef8576d8)
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

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

124 udelay(45);
125}
126
127static const struct charlcd_ops hd44780_ops_gpio8 = {
128 .backlight = hd44780_backlight,
129 .print = hd44780_common_print,
130 .gotoxy = hd44780_common_gotoxy,
131 .home = hd44780_common_home,
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

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

124 udelay(45);
125}
126
127static const struct charlcd_ops hd44780_ops_gpio8 = {
128 .backlight = hd44780_backlight,
129 .print = hd44780_common_print,
130 .gotoxy = hd44780_common_gotoxy,
131 .home = hd44780_common_home,
132 .clear_display = hd44780_common_clear_display,
132};
133
134/* Send a command to the LCD panel in 4 bit GPIO mode */
135static void hd44780_write_cmd_gpio4(struct hd44780_common *hdc, int cmd)
136{
137 struct hd44780 *hd = hdc->hd44780;
138
139 hd44780_write_gpio4(hd, cmd, 0);

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

170 udelay(45);
171}
172
173static const struct charlcd_ops hd44780_ops_gpio4 = {
174 .backlight = hd44780_backlight,
175 .print = hd44780_common_print,
176 .gotoxy = hd44780_common_gotoxy,
177 .home = hd44780_common_home,
133};
134
135/* Send a command to the LCD panel in 4 bit GPIO mode */
136static void hd44780_write_cmd_gpio4(struct hd44780_common *hdc, int cmd)
137{
138 struct hd44780 *hd = hdc->hd44780;
139
140 hd44780_write_gpio4(hd, cmd, 0);

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

171 udelay(45);
172}
173
174static const struct charlcd_ops hd44780_ops_gpio4 = {
175 .backlight = hd44780_backlight,
176 .print = hd44780_common_print,
177 .gotoxy = hd44780_common_gotoxy,
178 .home = hd44780_common_home,
179 .clear_display = hd44780_common_clear_display,
178};
179
180static int hd44780_probe(struct platform_device *pdev)
181{
182 struct device *dev = &pdev->dev;
183 unsigned int i, base;
184 struct charlcd *lcd;
185 struct hd44780_common *hdc;

--- 146 unchanged lines hidden ---
180};
181
182static int hd44780_probe(struct platform_device *pdev)
183{
184 struct device *dev = &pdev->dev;
185 unsigned int i, base;
186 struct charlcd *lcd;
187 struct hd44780_common *hdc;

--- 146 unchanged lines hidden ---