diff options
author | Lars Poeschel <poeschel@lemonage.de> | 2020-11-03 10:58:25 +0100 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2020-11-04 11:04:04 +0100 |
commit | 40c2b72e4b11f0a80dff19b539fccf36472dc417 (patch) | |
tree | 50951cf08d1a3acf911a47e387aab795d406095d /drivers/auxdisplay/hd44780_common.h | |
parent | 6e49eea35886c7f7173796d6a646c8c2c0f6149d (diff) | |
download | linux-40c2b72e4b11f0a80dff19b539fccf36472dc417.tar.gz linux-40c2b72e4b11f0a80dff19b539fccf36472dc417.tar.bz2 linux-40c2b72e4b11f0a80dff19b539fccf36472dc417.zip |
auxdisplay: Change gotoxy calling interface
Change the calling interface for gotoxy from supplying the x and y
coordinates in the charlcd struct to explicitly supplying x and y in
the function arguments. This is more intuitive and allows for moving
the cursor to positions independent from the position saved in the
charlcd struct.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/auxdisplay/hd44780_common.h b/drivers/auxdisplay/hd44780_common.h index bc817d1610d4..a16aa8c29c99 100644 --- a/drivers/auxdisplay/hd44780_common.h +++ b/drivers/auxdisplay/hd44780_common.h @@ -16,7 +16,7 @@ struct hd44780_common { }; int hd44780_common_print(struct charlcd *lcd, int c); -int hd44780_common_gotoxy(struct charlcd *lcd); +int hd44780_common_gotoxy(struct charlcd *lcd, unsigned int x, unsigned int y); int hd44780_common_home(struct charlcd *lcd); int hd44780_common_clear_display(struct charlcd *lcd); int hd44780_common_init_display(struct charlcd *lcd); |