]> www.infradead.org Git - users/willy/linux.git/commitdiff
auxdisplay: charlcd: Provide a forward declaration
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 9 Apr 2024 16:03:14 +0000 (19:03 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 27 May 2024 22:09:53 +0000 (01:09 +0300)
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 <andriy.shevchenko@linux.intel.com>
drivers/auxdisplay/charlcd.h

index eed80063a6d20d0bf67a4ac88daf107ccb4b462e..4d4287209d04c4c8f8e983de25c8c91a313b6370 100644 (file)
@@ -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 */