From: Andy Shevchenko Date: Tue, 9 Apr 2024 16:03:14 +0000 (+0300) Subject: auxdisplay: charlcd: Provide a forward declaration X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1bbf5a2156fa246ab54a15412116458006462038;p=users%2Fjedix%2Flinux-maple.git auxdisplay: charlcd: Provide a forward declaration While there is no compilation error, strictly speaking the compiler should know about used types beforehand. Provide a forward declaration for struct charlcd_ops before using it in struct charlcd. Signed-off-by: Andy Shevchenko --- diff --git a/drivers/auxdisplay/charlcd.h b/drivers/auxdisplay/charlcd.h index eed80063a6d20..4d4287209d04c 100644 --- a/drivers/auxdisplay/charlcd.h +++ b/drivers/auxdisplay/charlcd.h @@ -36,6 +36,8 @@ enum charlcd_lines { CHARLCD_LINES_2, }; +struct charlcd_ops; + struct charlcd { const struct charlcd_ops *ops; const unsigned char *char_conv; /* Optional */