Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tty: propagate u8 data to tty_operations::put_char()

Data are now typed as u8. Propagate this change to
tty_operations::put_char().

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
Cc: Sven Schnelle <svens@linux.ibm.com>
Cc: Karsten Keil <isdn@linux-pingi.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jirislaby@kernel.org>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: NXP Linux Team <linux-imx@nxp.com>
Cc: Mathias Nyman <mathias.nyman@intel.com>
Link: https://lore.kernel.org/r/20230810091510.13006-29-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
dcaafbe6 69851e4a

+18 -18
+2 -2
arch/m68k/emu/nfcon.c
··· 76 76 return count; 77 77 } 78 78 79 - static int nfcon_tty_put_char(struct tty_struct *tty, unsigned char ch) 79 + static int nfcon_tty_put_char(struct tty_struct *tty, u8 ch) 80 80 { 81 - char temp[2] = { ch, 0 }; 81 + u8 temp[2] = { ch, 0 }; 82 82 83 83 nf_call(stderr_id, virt_to_phys(temp)); 84 84 return 1;
+1 -1
drivers/isdn/capi/capi.c
··· 1111 1111 return count; 1112 1112 } 1113 1113 1114 - static int capinc_tty_put_char(struct tty_struct *tty, unsigned char ch) 1114 + static int capinc_tty_put_char(struct tty_struct *tty, u8 ch) 1115 1115 { 1116 1116 struct capiminor *mp = tty->driver_data; 1117 1117 bool invoke_send = false;
+1 -1
drivers/s390/char/con3215.c
··· 1030 1030 /* 1031 1031 * Put character routine for 3215 ttys 1032 1032 */ 1033 - static int tty3215_put_char(struct tty_struct *tty, unsigned char ch) 1033 + static int tty3215_put_char(struct tty_struct *tty, u8 ch) 1034 1034 { 1035 1035 struct raw3215_info *raw = tty->driver_data; 1036 1036
+1 -1
drivers/s390/char/con3270.c
··· 1821 1821 /* 1822 1822 * Put single characters to the ttys character buffer 1823 1823 */ 1824 - static int tty3270_put_char(struct tty_struct *tty, unsigned char ch) 1824 + static int tty3270_put_char(struct tty_struct *tty, u8 ch) 1825 1825 { 1826 1826 struct tty3270 *tp; 1827 1827
+3 -3
drivers/s390/char/sclp_tty.c
··· 48 48 static struct timer_list sclp_tty_timer; 49 49 50 50 static struct tty_port sclp_port; 51 - static unsigned char sclp_tty_chars[SCLP_TTY_BUF_SIZE]; 51 + static u8 sclp_tty_chars[SCLP_TTY_BUF_SIZE]; 52 52 static unsigned short int sclp_tty_chars_count; 53 53 54 54 struct tty_driver *sclp_tty_driver; ··· 168 168 /* 169 169 * Write a string to the sclp tty. 170 170 */ 171 - static int sclp_tty_write_string(const unsigned char *str, int count, int may_fail) 171 + static int sclp_tty_write_string(const u8 *str, int count, int may_fail) 172 172 { 173 173 unsigned long flags; 174 174 void *page; ··· 250 250 * sclp_write() without final '\n' - will be written. 251 251 */ 252 252 static int 253 - sclp_tty_put_char(struct tty_struct *tty, unsigned char ch) 253 + sclp_tty_put_char(struct tty_struct *tty, u8 ch) 254 254 { 255 255 sclp_tty_chars[sclp_tty_chars_count++] = ch; 256 256 if (ch == '\n' || sclp_tty_chars_count >= SCLP_TTY_BUF_SIZE) {
+1 -1
drivers/s390/char/sclp_vt220.c
··· 579 579 * done stuffing characters into the driver. 580 580 */ 581 581 static int 582 - sclp_vt220_put_char(struct tty_struct *tty, unsigned char ch) 582 + sclp_vt220_put_char(struct tty_struct *tty, u8 ch) 583 583 { 584 584 return __sclp_vt220_write(&ch, 1, 0, 0, 1); 585 585 }
+1 -1
drivers/tty/amiserial.c
··· 696 696 local_irq_restore(flags); 697 697 } 698 698 699 - static int rs_put_char(struct tty_struct *tty, unsigned char ch) 699 + static int rs_put_char(struct tty_struct *tty, u8 ch) 700 700 { 701 701 struct serial_state *info; 702 702 unsigned long flags;
+1 -1
drivers/tty/mxser.c
··· 920 920 return written; 921 921 } 922 922 923 - static int mxser_put_char(struct tty_struct *tty, unsigned char ch) 923 + static int mxser_put_char(struct tty_struct *tty, u8 ch) 924 924 { 925 925 struct mxser_port *info = tty->driver_data; 926 926 unsigned long flags;
+1 -1
drivers/tty/serial/serial_core.c
··· 551 551 } 552 552 EXPORT_SYMBOL(uart_get_divisor); 553 553 554 - static int uart_put_char(struct tty_struct *tty, unsigned char c) 554 + static int uart_put_char(struct tty_struct *tty, u8 c) 555 555 { 556 556 struct uart_state *state = tty->driver_data; 557 557 struct uart_port *port;
+1 -1
drivers/tty/vt/vt.c
··· 3248 3248 return retval; 3249 3249 } 3250 3250 3251 - static int con_put_char(struct tty_struct *tty, unsigned char ch) 3251 + static int con_put_char(struct tty_struct *tty, u8 ch) 3252 3252 { 3253 3253 return do_con_write(tty, &ch, 1); 3254 3254 }
+1 -1
drivers/usb/gadget/function/u_serial.c
··· 753 753 return count; 754 754 } 755 755 756 - static int gs_put_char(struct tty_struct *tty, unsigned char ch) 756 + static int gs_put_char(struct tty_struct *tty, u8 ch) 757 757 { 758 758 struct gs_port *port = tty->driver_data; 759 759 unsigned long flags;
+1 -1
drivers/usb/host/xhci-dbgtty.c
··· 222 222 return count; 223 223 } 224 224 225 - static int dbc_tty_put_char(struct tty_struct *tty, unsigned char ch) 225 + static int dbc_tty_put_char(struct tty_struct *tty, u8 ch) 226 226 { 227 227 struct dbc_port *port = tty->driver_data; 228 228 unsigned long flags;
+1 -1
include/linux/tty_driver.h
··· 357 357 void (*shutdown)(struct tty_struct *tty); 358 358 void (*cleanup)(struct tty_struct *tty); 359 359 int (*write)(struct tty_struct *tty, const u8 *buf, int count); 360 - int (*put_char)(struct tty_struct *tty, unsigned char ch); 360 + int (*put_char)(struct tty_struct *tty, u8 ch); 361 361 void (*flush_chars)(struct tty_struct *tty); 362 362 unsigned int (*write_room)(struct tty_struct *tty); 363 363 unsigned int (*chars_in_buffer)(struct tty_struct *tty);