hd44780.c (b26deabb1d915fe87d395081bbd3058b938dee89) | hd44780.c (d3a2fb810f273b7a2c393d4de28ae91a3f76985d) |
---|---|
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 --- 113 unchanged lines hidden (view full) --- 122 123 /* The shortest data takes at least 45 us */ 124 udelay(45); 125} 126 127static const struct charlcd_ops hd44780_ops_gpio8 = { 128 .backlight = hd44780_backlight, 129 .print = hd44780_common_print, | 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 --- 113 unchanged lines hidden (view full) --- 122 123 /* The shortest data takes at least 45 us */ 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, |
|
130}; 131 132/* Send a command to the LCD panel in 4 bit GPIO mode */ 133static void hd44780_write_cmd_gpio4(struct hd44780_common *hdc, int cmd) 134{ 135 struct hd44780 *hd = hdc->hd44780; 136 137 hd44780_write_gpio4(hd, cmd, 0); --- 28 unchanged lines hidden (view full) --- 166 167 /* The shortest data takes at least 45 us */ 168 udelay(45); 169} 170 171static const struct charlcd_ops hd44780_ops_gpio4 = { 172 .backlight = hd44780_backlight, 173 .print = hd44780_common_print, | 131}; 132 133/* Send a command to the LCD panel in 4 bit GPIO mode */ 134static void hd44780_write_cmd_gpio4(struct hd44780_common *hdc, int cmd) 135{ 136 struct hd44780 *hd = hdc->hd44780; 137 138 hd44780_write_gpio4(hd, cmd, 0); --- 28 unchanged lines hidden (view full) --- 167 168 /* The shortest data takes at least 45 us */ 169 udelay(45); 170} 171 172static const struct charlcd_ops hd44780_ops_gpio4 = { 173 .backlight = hd44780_backlight, 174 .print = hd44780_common_print, |
175 .gotoxy = hd44780_common_gotoxy, |
|
174}; 175 176static int hd44780_probe(struct platform_device *pdev) 177{ 178 struct device *dev = &pdev->dev; 179 unsigned int i, base; 180 struct charlcd *lcd; 181 struct hd44780_common *hdc; --- 146 unchanged lines hidden --- | 176}; 177 178static int hd44780_probe(struct platform_device *pdev) 179{ 180 struct device *dev = &pdev->dev; 181 unsigned int i, base; 182 struct charlcd *lcd; 183 struct hd44780_common *hdc; --- 146 unchanged lines hidden --- |