opticon.c (e8cdfb0509f48d44d95d68d4f42d8d71a9ba4acd) | opticon.c (60b33c133ca0b7c0b6072c87234b63fee6e80558) |
---|---|
1/* 2 * Opticon USB barcode to serial driver 3 * 4 * Copyright (C) 2008 - 2009 Greg Kroah-Hartman <gregkh@suse.de> 5 * Copyright (C) 2008 - 2009 Novell Inc. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License version --- 338 unchanged lines hidden (view full) --- 347 result = usb_submit_urb(priv->bulk_read_urb, GFP_ATOMIC); 348 if (result) 349 dev_err(&port->dev, 350 "%s - failed submitting read urb, error %d\n", 351 __func__, result); 352 } 353} 354 | 1/* 2 * Opticon USB barcode to serial driver 3 * 4 * Copyright (C) 2008 - 2009 Greg Kroah-Hartman <gregkh@suse.de> 5 * Copyright (C) 2008 - 2009 Novell Inc. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License version --- 338 unchanged lines hidden (view full) --- 347 result = usb_submit_urb(priv->bulk_read_urb, GFP_ATOMIC); 348 if (result) 349 dev_err(&port->dev, 350 "%s - failed submitting read urb, error %d\n", 351 __func__, result); 352 } 353} 354 |
355static int opticon_tiocmget(struct tty_struct *tty, struct file *file) | 355static int opticon_tiocmget(struct tty_struct *tty) |
356{ 357 struct usb_serial_port *port = tty->driver_data; 358 struct opticon_private *priv = usb_get_serial_data(port->serial); 359 unsigned long flags; 360 int result = 0; 361 362 dbg("%s - port %d", __func__, port->number); 363 --- 224 unchanged lines hidden --- | 356{ 357 struct usb_serial_port *port = tty->driver_data; 358 struct opticon_private *priv = usb_get_serial_data(port->serial); 359 unsigned long flags; 360 int result = 0; 361 362 dbg("%s - port %d", __func__, port->number); 363 --- 224 unchanged lines hidden --- |