nozomi.c (69851e4ab8feeb369119a44ddca430c0ee15f0d8) | nozomi.c (95713967ba52389f7cea75704d0cf048080ec218) |
---|---|
1// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 2/* 3 * nozomi.c -- HSDPA driver Broadband Wireless Data Card - Globe Trotter 4 * 5 * Written by: Ulf Jakobsson, 6 * Jan Åkerfeldt, 7 * Stefan Thomasson, 8 * --- 1585 unchanged lines hidden (view full) --- 1594 struct port *port = tty->driver_data; 1595 tty_port_hangup(&port->port); 1596} 1597 1598/* 1599 * called when the userspace process writes to the tty (/dev/noz*). 1600 * Data is inserted into a fifo, which is then read and transferred to the modem. 1601 */ | 1// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 2/* 3 * nozomi.c -- HSDPA driver Broadband Wireless Data Card - Globe Trotter 4 * 5 * Written by: Ulf Jakobsson, 6 * Jan Åkerfeldt, 7 * Stefan Thomasson, 8 * --- 1585 unchanged lines hidden (view full) --- 1594 struct port *port = tty->driver_data; 1595 tty_port_hangup(&port->port); 1596} 1597 1598/* 1599 * called when the userspace process writes to the tty (/dev/noz*). 1600 * Data is inserted into a fifo, which is then read and transferred to the modem. 1601 */ |
1602static int ntty_write(struct tty_struct *tty, const u8 *buffer, int count) | 1602static ssize_t ntty_write(struct tty_struct *tty, const u8 *buffer, 1603 size_t count) |
1603{ 1604 int rval = -EINVAL; 1605 struct nozomi *dc = get_dc_by_tty(tty); 1606 struct port *port = tty->driver_data; 1607 unsigned long flags; 1608 1609 if (!dc || !port) 1610 return -ENODEV; --- 264 unchanged lines hidden --- | 1604{ 1605 int rval = -EINVAL; 1606 struct nozomi *dc = get_dc_by_tty(tty); 1607 struct port *port = tty->driver_data; 1608 unsigned long flags; 1609 1610 if (!dc || !port) 1611 return -ENODEV; --- 264 unchanged lines hidden --- |