Commit | Line | Data |
---|---|---|
718e05ed LP |
1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
2 | ||
2545c1c9 LP |
3 | #define DEFAULT_LCD_BWIDTH 40 |
4 | #define DEFAULT_LCD_HWIDTH 64 | |
5 | ||
718e05ed | 6 | struct hd44780_common { |
3fc04dd7 | 7 | int ifwidth; /* 4-bit or 8-bit (default) */ |
2545c1c9 LP |
8 | int bwidth; /* Default set by hd44780_alloc() */ |
9 | int hwidth; /* Default set by hd44780_alloc() */ | |
71ff701b | 10 | void (*write_data)(struct hd44780_common *hdc, int data); |
718e05ed LP |
11 | void *hd44780; |
12 | }; | |
13 | ||
14 | struct hd44780_common *hd44780_common_alloc(void); |