Commit 02f1d35c authored by Luca Ellero's avatar Luca Ellero Committed by Greg Kroah-Hartman

staging: ced1401: fix ced_dbg_cmd()

Rename camel case arguments and locals in function ced_dbg_cmd()
Signed-off-by: default avatarLuca Ellero <luca.ellero@brickedbrain.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bbe2bc76
...@@ -1178,18 +1178,19 @@ int ced_transfer_flags(struct ced_data *ced) ...@@ -1178,18 +1178,19 @@ int ced_transfer_flags(struct ced_data *ced)
static int ced_dbg_cmd(struct ced_data *ced, unsigned char cmd, static int ced_dbg_cmd(struct ced_data *ced, unsigned char cmd,
unsigned int data) unsigned int data)
{ {
int iReturn; int ret;
dev_dbg(&ced->interface->dev, "%s: entry\n", __func__); dev_dbg(&ced->interface->dev, "%s: entry\n", __func__);
iReturn = usb_control_msg(ced->udev, usb_sndctrlpipe(ced->udev, 0), cmd, ret = usb_control_msg(ced->udev, usb_sndctrlpipe(ced->udev, 0), cmd,
(H_TO_D | VENDOR | DEVREQ), (H_TO_D | VENDOR | DEVREQ),
(unsigned short)data, (unsigned short)data,
(unsigned short)(data >> 16), NULL, 0, HZ); (unsigned short)(data >> 16), NULL, 0, HZ);
/* allow 1 second timeout */ /* allow 1 second timeout */
if (iReturn < 0) if (ret < 0)
dev_err(&ced->interface->dev, "%s: fail code=%d\n", dev_err(&ced->interface->dev, "%s: fail code=%d\n",
__func__, iReturn); __func__, ret);
return iReturn; return ret;
} }
/**************************************************************************** /****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment