aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/digi_acceleport.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/serial/digi_acceleport.c')
-rw-r--r--drivers/usb/serial/digi_acceleport.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/usb/serial/digi_acceleport.c b/drivers/usb/serial/digi_acceleport.c
index 4e3d5993a8e..c7cbc02f1a7 100644
--- a/drivers/usb/serial/digi_acceleport.c
+++ b/drivers/usb/serial/digi_acceleport.c
@@ -659,7 +659,7 @@ static int digi_write_oob_command(struct usb_serial_port *port,
659 } 659 }
660 spin_unlock_irqrestore(&oob_priv->dp_port_lock, flags); 660 spin_unlock_irqrestore(&oob_priv->dp_port_lock, flags);
661 if (ret) 661 if (ret)
662 err("%s: usb_submit_urb failed, ret=%d", __FUNCTION__, ret); 662 err("%s: usb_submit_urb failed, ret=%d", __func__, ret);
663 return ret; 663 return ret;
664 664
665} 665}
@@ -740,7 +740,7 @@ static int digi_write_inb_command(struct usb_serial_port *port,
740 740
741 if (ret) 741 if (ret)
742 err("%s: usb_submit_urb failed, ret=%d, port=%d", 742 err("%s: usb_submit_urb failed, ret=%d, port=%d",
743 __FUNCTION__, ret, priv->dp_port_num); 743 __func__, ret, priv->dp_port_num);
744 return ret; 744 return ret;
745} 745}
746 746
@@ -804,7 +804,7 @@ static int digi_set_modem_signals(struct usb_serial_port *port,
804 spin_unlock(&port_priv->dp_port_lock); 804 spin_unlock(&port_priv->dp_port_lock);
805 spin_unlock_irqrestore(&oob_priv->dp_port_lock, flags); 805 spin_unlock_irqrestore(&oob_priv->dp_port_lock, flags);
806 if (ret) 806 if (ret)
807 err("%s: usb_submit_urb failed, ret=%d", __FUNCTION__, ret); 807 err("%s: usb_submit_urb failed, ret=%d", __func__, ret);
808 return ret; 808 return ret;
809} 809}
810 810
@@ -897,7 +897,7 @@ static void digi_rx_unthrottle(struct usb_serial_port *port)
897 897
898 if (ret) 898 if (ret)
899 err("%s: usb_submit_urb failed, ret=%d, port=%d", 899 err("%s: usb_submit_urb failed, ret=%d, port=%d",
900 __FUNCTION__, ret, priv->dp_port_num); 900 __func__, ret, priv->dp_port_num);
901} 901}
902 902
903 903
@@ -1107,7 +1107,7 @@ static int digi_tiocmget(struct usb_serial_port *port, struct file *file)
1107 unsigned int val; 1107 unsigned int val;
1108 unsigned long flags; 1108 unsigned long flags;
1109 1109
1110 dbg("%s: TOP: port=%d", __FUNCTION__, priv->dp_port_num); 1110 dbg("%s: TOP: port=%d", __func__, priv->dp_port_num);
1111 1111
1112 spin_lock_irqsave(&priv->dp_port_lock, flags); 1112 spin_lock_irqsave(&priv->dp_port_lock, flags);
1113 val = priv->dp_modem_signals; 1113 val = priv->dp_modem_signals;
@@ -1123,7 +1123,7 @@ static int digi_tiocmset(struct usb_serial_port *port, struct file *file,
1123 unsigned int val; 1123 unsigned int val;
1124 unsigned long flags; 1124 unsigned long flags;
1125 1125
1126 dbg("%s: TOP: port=%d", __FUNCTION__, priv->dp_port_num); 1126 dbg("%s: TOP: port=%d", __func__, priv->dp_port_num);
1127 1127
1128 spin_lock_irqsave(&priv->dp_port_lock, flags); 1128 spin_lock_irqsave(&priv->dp_port_lock, flags);
1129 val = (priv->dp_modem_signals & ~clear) | set; 1129 val = (priv->dp_modem_signals & ~clear) | set;
@@ -1218,7 +1218,7 @@ static int digi_write(struct usb_serial_port *port, const unsigned char *buf, in
1218 spin_unlock_irqrestore(&priv->dp_port_lock, flags); 1218 spin_unlock_irqrestore(&priv->dp_port_lock, flags);
1219 if (ret < 0) 1219 if (ret < 0)
1220 err("%s: usb_submit_urb failed, ret=%d, port=%d", 1220 err("%s: usb_submit_urb failed, ret=%d, port=%d",
1221 __FUNCTION__, ret, priv->dp_port_num); 1221 __func__, ret, priv->dp_port_num);
1222 dbg("digi_write: returning %d", ret); 1222 dbg("digi_write: returning %d", ret);
1223 return ret; 1223 return ret;
1224 1224
@@ -1239,13 +1239,13 @@ static void digi_write_bulk_callback(struct urb *urb)
1239 /* port and serial sanity check */ 1239 /* port and serial sanity check */
1240 if (port == NULL || (priv=usb_get_serial_port_data(port)) == NULL) { 1240 if (port == NULL || (priv=usb_get_serial_port_data(port)) == NULL) {
1241 err("%s: port or port->private is NULL, status=%d", 1241 err("%s: port or port->private is NULL, status=%d",
1242 __FUNCTION__, status); 1242 __func__, status);
1243 return; 1243 return;
1244 } 1244 }
1245 serial = port->serial; 1245 serial = port->serial;
1246 if (serial == NULL || (serial_priv=usb_get_serial_data(serial)) == NULL) { 1246 if (serial == NULL || (serial_priv=usb_get_serial_data(serial)) == NULL) {
1247 err("%s: serial or serial->private is NULL, status=%d", 1247 err("%s: serial or serial->private is NULL, status=%d",
1248 __FUNCTION__, status); 1248 __func__, status);
1249 return; 1249 return;
1250 } 1250 }
1251 1251
@@ -1286,7 +1286,7 @@ static void digi_write_bulk_callback(struct urb *urb)
1286 spin_unlock(&priv->dp_port_lock); 1286 spin_unlock(&priv->dp_port_lock);
1287 if (ret) 1287 if (ret)
1288 err("%s: usb_submit_urb failed, ret=%d, port=%d", 1288 err("%s: usb_submit_urb failed, ret=%d, port=%d",
1289 __FUNCTION__, ret, priv->dp_port_num); 1289 __func__, ret, priv->dp_port_num);
1290} 1290}
1291 1291
1292static int digi_write_room(struct usb_serial_port *port) 1292static int digi_write_room(struct usb_serial_port *port)
@@ -1515,7 +1515,7 @@ static int digi_startup_device(struct usb_serial *serial)
1515 port->write_urb->dev = port->serial->dev; 1515 port->write_urb->dev = port->serial->dev;
1516 if ((ret = usb_submit_urb(port->read_urb, GFP_KERNEL)) != 0) { 1516 if ((ret = usb_submit_urb(port->read_urb, GFP_KERNEL)) != 0) {
1517 err("%s: usb_submit_urb failed, ret=%d, port=%d", 1517 err("%s: usb_submit_urb failed, ret=%d, port=%d",
1518 __FUNCTION__, ret, i); 1518 __func__, ret, i);
1519 break; 1519 break;
1520 } 1520 }
1521 } 1521 }
@@ -1616,20 +1616,20 @@ static void digi_read_bulk_callback(struct urb *urb)
1616 /* port sanity check, do not resubmit if port is not valid */ 1616 /* port sanity check, do not resubmit if port is not valid */
1617 if (port == NULL || (priv = usb_get_serial_port_data(port)) == NULL) { 1617 if (port == NULL || (priv = usb_get_serial_port_data(port)) == NULL) {
1618 err("%s: port or port->private is NULL, status=%d", 1618 err("%s: port or port->private is NULL, status=%d",
1619 __FUNCTION__, status); 1619 __func__, status);
1620 return; 1620 return;
1621 } 1621 }
1622 if (port->serial == NULL || 1622 if (port->serial == NULL ||
1623 (serial_priv=usb_get_serial_data(port->serial)) == NULL) { 1623 (serial_priv=usb_get_serial_data(port->serial)) == NULL) {
1624 err("%s: serial is bad or serial->private is NULL, status=%d", 1624 err("%s: serial is bad or serial->private is NULL, status=%d",
1625 __FUNCTION__, status); 1625 __func__, status);
1626 return; 1626 return;
1627 } 1627 }
1628 1628
1629 /* do not resubmit urb if it has any status error */ 1629 /* do not resubmit urb if it has any status error */
1630 if (status) { 1630 if (status) {
1631 err("%s: nonzero read bulk status: status=%d, port=%d", 1631 err("%s: nonzero read bulk status: status=%d, port=%d",
1632 __FUNCTION__, status, priv->dp_port_num); 1632 __func__, status, priv->dp_port_num);
1633 return; 1633 return;
1634 } 1634 }
1635 1635
@@ -1646,7 +1646,7 @@ static void digi_read_bulk_callback(struct urb *urb)
1646 urb->dev = port->serial->dev; 1646 urb->dev = port->serial->dev;
1647 if ((ret = usb_submit_urb(urb, GFP_ATOMIC)) != 0) { 1647 if ((ret = usb_submit_urb(urb, GFP_ATOMIC)) != 0) {
1648 err("%s: failed resubmitting urb, ret=%d, port=%d", 1648 err("%s: failed resubmitting urb, ret=%d, port=%d",
1649 __FUNCTION__, ret, priv->dp_port_num); 1649 __func__, ret, priv->dp_port_num);
1650 } 1650 }
1651 1651
1652} 1652}
@@ -1684,7 +1684,7 @@ static int digi_read_inb_callback(struct urb *urb)
1684 if (urb->actual_length != len + 2) { 1684 if (urb->actual_length != len + 2) {
1685 err("%s: INCOMPLETE OR MULTIPLE PACKET, urb->status=%d, " 1685 err("%s: INCOMPLETE OR MULTIPLE PACKET, urb->status=%d, "
1686 "port=%d, opcode=%d, len=%d, actual_length=%d, " 1686 "port=%d, opcode=%d, len=%d, actual_length=%d, "
1687 "status=%d", __FUNCTION__, status, priv->dp_port_num, 1687 "status=%d", __func__, status, priv->dp_port_num,
1688 opcode, len, urb->actual_length, port_status); 1688 opcode, len, urb->actual_length, port_status);
1689 return -1; 1689 return -1;
1690 } 1690 }
@@ -1733,9 +1733,9 @@ static int digi_read_inb_callback(struct urb *urb)
1733 spin_unlock(&priv->dp_port_lock); 1733 spin_unlock(&priv->dp_port_lock);
1734 1734
1735 if (opcode == DIGI_CMD_RECEIVE_DISABLE) 1735 if (opcode == DIGI_CMD_RECEIVE_DISABLE)
1736 dbg("%s: got RECEIVE_DISABLE", __FUNCTION__); 1736 dbg("%s: got RECEIVE_DISABLE", __func__);
1737 else if (opcode != DIGI_CMD_RECEIVE_DATA) 1737 else if (opcode != DIGI_CMD_RECEIVE_DATA)
1738 dbg("%s: unknown opcode: %d", __FUNCTION__, opcode); 1738 dbg("%s: unknown opcode: %d", __func__, opcode);
1739 1739
1740 return(throttled ? 1 : 0); 1740 return(throttled ? 1 : 0);
1741 1741