srmcons.c (69851e4ab8feeb369119a44ddca430c0ee15f0d8) | srmcons.c (95713967ba52389f7cea75704d0cf048080ec218) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * linux/arch/alpha/kernel/srmcons.c 4 * 5 * Callback based driver for SRM Console console device. 6 * (TTY driver and console driver) 7 */ 8 --- 115 unchanged lines hidden (view full) --- 124 result.as_long = callback_puts(0, str_cr, 1); 125 if (result.bits.c > 0) 126 need_cr = 0; 127 } 128 } 129 return count; 130} 131 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * linux/arch/alpha/kernel/srmcons.c 4 * 5 * Callback based driver for SRM Console console device. 6 * (TTY driver and console driver) 7 */ 8 --- 115 unchanged lines hidden (view full) --- 124 result.as_long = callback_puts(0, str_cr, 1); 125 if (result.bits.c > 0) 126 need_cr = 0; 127 } 128 } 129 return count; 130} 131 |
132static int 133srmcons_write(struct tty_struct *tty, const u8 *buf, int count) | 132static ssize_t 133srmcons_write(struct tty_struct *tty, const u8 *buf, size_t count) |
134{ 135 unsigned long flags; 136 137 spin_lock_irqsave(&srmcons_callback_lock, flags); 138 srmcons_do_write(tty->port, (const char *) buf, count); 139 spin_unlock_irqrestore(&srmcons_callback_lock, flags); 140 141 return count; --- 147 unchanged lines hidden --- | 134{ 135 unsigned long flags; 136 137 spin_lock_irqsave(&srmcons_callback_lock, flags); 138 srmcons_do_write(tty->port, (const char *) buf, count); 139 spin_unlock_irqrestore(&srmcons_callback_lock, flags); 140 141 return count; --- 147 unchanged lines hidden --- |