From 3fc04dd7eb77b54228a17753ec01128417433e46 Mon Sep 17 00:00:00 2001 From: Lars Poeschel <poeschel@lemonage.de> Date: Tue, 3 Nov 2020 10:58:07 +0100 Subject: auxdisplay: Move ifwidth to struct hd44780_common 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> --- drivers/auxdisplay/hd44780_common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/auxdisplay/hd44780_common.c') diff --git a/drivers/auxdisplay/hd44780_common.c b/drivers/auxdisplay/hd44780_common.c index 3a05fd30cae0..4968461f0c4a 100644 --- a/drivers/auxdisplay/hd44780_common.c +++ b/drivers/auxdisplay/hd44780_common.c @@ -12,6 +12,7 @@ struct hd44780_common *hd44780_common_alloc(void) if (!hd) return NULL; + hd->ifwidth = 8; hd->bwidth = DEFAULT_LCD_BWIDTH; hd->hwidth = DEFAULT_LCD_HWIDTH; return hd; -- cgit