From 11588b59cf620305e78523f57918b986b5e32214 Mon Sep 17 00:00:00 2001 From: Lars Poeschel Date: Tue, 3 Nov 2020 10:58:10 +0100 Subject: auxdisplay: Move addr out of charlcd_priv Move out the struct addr from struct charlcd_priv into the less private struct charlcd. This member is used to pass position information. The individual drivers need to be able to read this information, so we move this out of charlcd_priv to charlcd structure. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel Signed-off-by: Miguel Ojeda --- drivers/auxdisplay/charlcd.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/auxdisplay/charlcd.h') diff --git a/drivers/auxdisplay/charlcd.h b/drivers/auxdisplay/charlcd.h index ad6fd2733523..ff4896af2189 100644 --- a/drivers/auxdisplay/charlcd.h +++ b/drivers/auxdisplay/charlcd.h @@ -21,6 +21,12 @@ struct charlcd { int height; int width; + /* Contains the LCD X and Y offset */ + struct { + unsigned long x; + unsigned long y; + } addr; + void *drvdata; }; -- cgit v1.2.3