Commit 1bbf5a21 authored by Andy Shevchenko's avatar Andy Shevchenko
Browse files

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 1613e604
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 */