View | Details | Raw Unified | Return to bug 29976
Collapse All | Expand All

(-)symbolserial.c.original (-3 / +4 lines)
Lines 1-6 Link Here
1
/*
1
/*
2
 * Symbol USB barcode to serial driver
2
 * Symbol USB barcode to serial driver
3
 *
3
 *
4
 * Copyright (C) 2014 Vadim Zelenin <VadimZelenin@gmail.com>
4
 * Copyright (C) 2013 Johan Hovold <jhovold@gmail.com>
5
 * Copyright (C) 2013 Johan Hovold <jhovold@gmail.com>
5
 * Copyright (C) 2009 Greg Kroah-Hartman <gregkh@suse.de>
6
 * Copyright (C) 2009 Greg Kroah-Hartman <gregkh@suse.de>
6
 * Copyright (C) 2009 Novell Inc.
7
 * Copyright (C) 2009 Novell Inc.
Lines 97-103 Link Here
97
98
98
static int symbol_open(struct tty_struct *tty, struct usb_serial_port *port)
99
static int symbol_open(struct tty_struct *tty, struct usb_serial_port *port)
99
{
100
{
100
        struct symbol_private *priv = usb_get_serial_data(port->serial);
101
        struct symbol_private *priv = usb_get_serial_port_data(port);
101
        unsigned long flags;
102
        unsigned long flags;
102
        int result = 0;
103
        int result = 0;
103
104
Lines 123-129 Link Here
123
static void symbol_throttle(struct tty_struct *tty)
124
static void symbol_throttle(struct tty_struct *tty)
124
{
125
{
125
        struct usb_serial_port *port = tty->driver_data;
126
        struct usb_serial_port *port = tty->driver_data;
126
        struct symbol_private *priv = usb_get_serial_data(port->serial);
127
        struct symbol_private *priv = usb_get_serial_port_data(port);
127
128
128
        spin_lock_irq(&priv->lock);
129
        spin_lock_irq(&priv->lock);
129
        priv->throttled = true;
130
        priv->throttled = true;
Lines 133-139 Link Here
133
static void symbol_unthrottle(struct tty_struct *tty)
134
static void symbol_unthrottle(struct tty_struct *tty)
134
{
135
{
135
        struct usb_serial_port *port = tty->driver_data;
136
        struct usb_serial_port *port = tty->driver_data;
136
        struct symbol_private *priv = usb_get_serial_data(port->serial);
137
        struct symbol_private *priv = usb_get_serial_port_data(port);
137
        int result;
138
        int result;
138
        bool was_throttled;
139
        bool was_throttled;
139
140

Return to bug 29976