hd44780.c (2c6a82f2342fadfcbd5dd92656e662c326f7a40a) | hd44780.c (b26deabb1d915fe87d395081bbd3058b938dee89) |
---|---|
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 --- 112 unchanged lines hidden (view full) --- 121 hd44780_write_gpio8(hd, data, 1); 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, | 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 --- 112 unchanged lines hidden (view full) --- 121 hd44780_write_gpio8(hd, data, 1); 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, |
|
129}; 130 131/* Send a command to the LCD panel in 4 bit GPIO mode */ 132static void hd44780_write_cmd_gpio4(struct hd44780_common *hdc, int cmd) 133{ 134 struct hd44780 *hd = hdc->hd44780; 135 136 hd44780_write_gpio4(hd, cmd, 0); --- 27 unchanged lines hidden (view full) --- 164 hd44780_write_gpio4(hd, data, 1); 165 166 /* The shortest data takes at least 45 us */ 167 udelay(45); 168} 169 170static const struct charlcd_ops hd44780_ops_gpio4 = { 171 .backlight = hd44780_backlight, | 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); --- 27 unchanged lines hidden (view full) --- 165 hd44780_write_gpio4(hd, data, 1); 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, |
|
172}; 173 174static int hd44780_probe(struct platform_device *pdev) 175{ 176 struct device *dev = &pdev->dev; 177 unsigned int i, base; 178 struct charlcd *lcd; 179 struct hd44780_common *hdc; --- 146 unchanged lines hidden --- | 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 --- |