Skip to content

Commit 1bbf5a2

Browse files
committed
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 <andriy.shevchenko@linux.intel.com>
1 parent 1613e60 commit 1bbf5a2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/auxdisplay/charlcd.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ enum charlcd_lines {
3636
CHARLCD_LINES_2,
3737
};
3838

39+
struct charlcd_ops;
40+
3941
struct charlcd {
4042
const struct charlcd_ops *ops;
4143
const unsigned char *char_conv; /* Optional */

0 commit comments

Comments
 (0)