hd44780.c (45421ffefbb5f195de02ead952755329ef8576d8) | hd44780.c (01ec46dfa633a52ccfe38d4a194460d6adb2ba00) |
---|---|
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 --- 116 unchanged lines hidden (view full) --- 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, | 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 --- 116 unchanged lines hidden (view full) --- 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, |
133 .init_display = hd44780_common_init_display, |
|
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); --- 31 unchanged lines hidden (view full) --- 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, | 134}; 135 136/* Send a command to the LCD panel in 4 bit GPIO mode */ 137static void hd44780_write_cmd_gpio4(struct hd44780_common *hdc, int cmd) 138{ 139 struct hd44780 *hd = hdc->hd44780; 140 141 hd44780_write_gpio4(hd, cmd, 0); --- 31 unchanged lines hidden (view full) --- 173} 174 175static const struct charlcd_ops hd44780_ops_gpio4 = { 176 .backlight = hd44780_backlight, 177 .print = hd44780_common_print, 178 .gotoxy = hd44780_common_gotoxy, 179 .home = hd44780_common_home, 180 .clear_display = hd44780_common_clear_display, |
181 .init_display = hd44780_common_init_display, |
|
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 --- | 182}; 183 184static int hd44780_probe(struct platform_device *pdev) 185{ 186 struct device *dev = &pdev->dev; 187 unsigned int i, base; 188 struct charlcd *lcd; 189 struct hd44780_common *hdc; --- 146 unchanged lines hidden --- |