diff options
author | Lars Poeschel <poeschel@lemonage.de> | 2020-11-03 12:58:09 +0300 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2020-11-04 13:04:03 +0300 |
commit | 2c6a82f2342fadfcbd5dd92656e662c326f7a40a (patch) | |
tree | bf1db52356ff2f4e147250300adf408112862409 /drivers/auxdisplay/hd44780_common.h | |
parent | 71ff701bbefec9e3c342f3a01d2d89b7ae026c71 (diff) | |
download | linux-2c6a82f2342fadfcbd5dd92656e662c326f7a40a.tar.xz |
auxdisplay: Move write_cmd pointers to hd44780 drivers
The write_cmd function is used to send commands to hd44780 displays.
The individual hd44780 drivers then implement their appropriate way of
doing this with their supported displays. So we move this pointer so
hd44780_common.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/auxdisplay/hd44780_common.h b/drivers/auxdisplay/hd44780_common.h index bcc13421bf45..73dd4c7c6de3 100644 --- a/drivers/auxdisplay/hd44780_common.h +++ b/drivers/auxdisplay/hd44780_common.h @@ -8,6 +8,9 @@ struct hd44780_common { int bwidth; /* Default set by hd44780_alloc() */ int hwidth; /* Default set by hd44780_alloc() */ void (*write_data)(struct hd44780_common *hdc, int data); + void (*write_cmd)(struct hd44780_common *hdc, int cmd); + /* write_cmd_raw4 is for 4-bit connected displays only */ + void (*write_cmd_raw4)(struct hd44780_common *hdc, int cmd); void *hd44780; }; |