Move struct charlcd member ifwidth to our new struct hd44780_common. ifwidth is hd44780 device specific and is used by two drivers at the moment, so we move it to a common place, where both can use this. Reviewed-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Lars Poeschel <poeschel@lemonage.de> Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
14 lines
366 B
C
14 lines
366 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#define DEFAULT_LCD_BWIDTH 40
|
|
#define DEFAULT_LCD_HWIDTH 64
|
|
|
|
struct hd44780_common {
|
|
int ifwidth; /* 4-bit or 8-bit (default) */
|
|
int bwidth; /* Default set by hd44780_alloc() */
|
|
int hwidth; /* Default set by hd44780_alloc() */
|
|
void *hd44780;
|
|
};
|
|
|
|
struct hd44780_common *hd44780_common_alloc(void);
|