aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_buffer.c
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <[email protected]>2023-08-10 09:14:43 +0000
committerGreg Kroah-Hartman <[email protected]>2023-08-11 19:12:44 +0000
commit0b7a2b282959d3311f158629f67c6d681a3dc2b3 (patch)
tree18d1d5c9f3e7c264c4291b0a4b3999258bad4c84 /drivers/tty/tty_buffer.c
parenttty: make tty_change_softcar() more understandable (diff)
downloadkernel-0b7a2b282959d3311f158629f67c6d681a3dc2b3.tar.gz
kernel-0b7a2b282959d3311f158629f67c6d681a3dc2b3.zip
tty: make tty_port_client_operations operate with u8
The parameters are already unsigned chars. So make them explicitly u8s, as the rest is going to be unified to u8 eventually too. Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]> Cc: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/tty/tty_buffer.c')
-rw-r--r--drivers/tty/tty_buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/tty_buffer.c b/drivers/tty/tty_buffer.c
index 2df86ed90574..42464c37125a 100644
--- a/drivers/tty/tty_buffer.c
+++ b/drivers/tty/tty_buffer.c
@@ -505,8 +505,8 @@ static void lookahead_bufs(struct tty_port *port, struct tty_buffer *head)
static int
receive_buf(struct tty_port *port, struct tty_buffer *head, int count)
{
- unsigned char *p = char_buf_ptr(head, head->read);
- const char *f = NULL;
+ u8 *p = char_buf_ptr(head, head->read);
+ const u8 *f = NULL;
int n;
if (head->flags)