diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-04-09 19:03:14 +0300 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-05-28 01:09:53 +0300 |
commit | 1bbf5a2156fa246ab54a15412116458006462038 (patch) | |
tree | d8e0fd105b66e269f9c97ae35c037a9912429bbf /drivers/auxdisplay | |
parent | 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 (diff) | |
download | lwn-1bbf5a2156fa246ab54a15412116458006462038.tar.gz lwn-1bbf5a2156fa246ab54a15412116458006462038.zip |
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>
Diffstat (limited to 'drivers/auxdisplay')
-rw-r--r-- | drivers/auxdisplay/charlcd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/auxdisplay/charlcd.h b/drivers/auxdisplay/charlcd.h index eed80063a6d2..4d4287209d04 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 */ |