diff options
author | Lars Poeschel <poeschel@lemonage.de> | 2020-11-03 12:58:08 +0300 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2020-11-04 13:04:03 +0300 |
commit | 71ff701bbefec9e3c342f3a01d2d89b7ae026c71 (patch) | |
tree | ad1868fc8513ced579338f8450cf320fedf8d1a1 /drivers/auxdisplay/hd44780_common.h | |
parent | 3fc04dd7eb77b54228a17753ec01128417433e46 (diff) | |
download | linux-71ff701bbefec9e3c342f3a01d2d89b7ae026c71.tar.xz |
auxdisplay: Move write_data pointer to hd44780_common
This moves the write_data function pointer from struct charlcd_ops to
struct hd44780_common. This is the function that actually writes the
character to the display. This hd44780 hardware specific function is
used by two drivers at the moment.
Reviewed-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Lars Poeschel <poeschel@lemonage.de>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'drivers/auxdisplay/hd44780_common.h')
-rw-r--r-- | drivers/auxdisplay/hd44780_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/auxdisplay/hd44780_common.h b/drivers/auxdisplay/hd44780_common.h index 54cbe5a489d7..bcc13421bf45 100644 --- a/drivers/auxdisplay/hd44780_common.h +++ b/drivers/auxdisplay/hd44780_common.h @@ -7,6 +7,7 @@ struct hd44780_common { int ifwidth; /* 4-bit or 8-bit (default) */ int bwidth; /* Default set by hd44780_alloc() */ int hwidth; /* Default set by hd44780_alloc() */ + void (*write_data)(struct hd44780_common *hdc, int data); void *hd44780; }; |