Commit cb9114e9 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] af9035: make checkpatch.pl happy!

Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 3b98c347
...@@ -91,9 +91,10 @@ static int af9035_ctrl_msg(struct dvb_usb_device *d, struct usb_req *req) ...@@ -91,9 +91,10 @@ static int af9035_ctrl_msg(struct dvb_usb_device *d, struct usb_req *req)
checksum = af9035_checksum(state->buf, rlen - 2); checksum = af9035_checksum(state->buf, rlen - 2);
tmp_checksum = (state->buf[rlen - 2] << 8) | state->buf[rlen - 1]; tmp_checksum = (state->buf[rlen - 2] << 8) | state->buf[rlen - 1];
if (tmp_checksum != checksum) { if (tmp_checksum != checksum) {
dev_err(&d->udev->dev, "%s: command=%02x checksum mismatch " \ dev_err(&d->udev->dev,
"(%04x != %04x)\n", KBUILD_MODNAME, req->cmd, "%s: command=%02x checksum mismatch (%04x != %04x)\n",
tmp_checksum, checksum); KBUILD_MODNAME, req->cmd, tmp_checksum,
checksum);
ret = -EIO; ret = -EIO;
goto exit; goto exit;
} }
...@@ -400,9 +401,10 @@ static int af9035_download_firmware_old(struct dvb_usb_device *d, ...@@ -400,9 +401,10 @@ static int af9035_download_firmware_old(struct dvb_usb_device *d,
hdr_checksum = fw->data[fw->size - i + 5] << 8; hdr_checksum = fw->data[fw->size - i + 5] << 8;
hdr_checksum |= fw->data[fw->size - i + 6] << 0; hdr_checksum |= fw->data[fw->size - i + 6] << 0;
dev_dbg(&d->udev->dev, "%s: core=%d addr=%04x data_len=%d " \ dev_dbg(&d->udev->dev,
"checksum=%04x\n", __func__, hdr_core, hdr_addr, "%s: core=%d addr=%04x data_len=%d checksum=%04x\n",
hdr_data_len, hdr_checksum); __func__, hdr_core, hdr_addr, hdr_data_len,
hdr_checksum);
if (((hdr_core != 1) && (hdr_core != 2)) || if (((hdr_core != 1) && (hdr_core != 2)) ||
(hdr_data_len > i)) { (hdr_data_len > i)) {
...@@ -507,7 +509,7 @@ static int af9035_download_firmware(struct dvb_usb_device *d, ...@@ -507,7 +509,7 @@ static int af9035_download_firmware(struct dvb_usb_device *d,
u8 rbuf[4]; u8 rbuf[4];
u8 tmp; u8 tmp;
struct usb_req req = { 0, 0, 0, NULL, 0, NULL }; struct usb_req req = { 0, 0, 0, NULL, 0, NULL };
struct usb_req req_fw_ver = { CMD_FW_QUERYINFO, 0, 1, wbuf, 4, rbuf } ; struct usb_req req_fw_ver = { CMD_FW_QUERYINFO, 0, 1, wbuf, 4, rbuf };
dev_dbg(&d->udev->dev, "%s:\n", __func__); dev_dbg(&d->udev->dev, "%s:\n", __func__);
/* /*
...@@ -1218,9 +1220,9 @@ static int af9035_init(struct dvb_usb_device *d) ...@@ -1218,9 +1220,9 @@ static int af9035_init(struct dvb_usb_device *d)
{ 0x80f9a4, 0x00, 0x01 }, { 0x80f9a4, 0x00, 0x01 },
}; };
dev_dbg(&d->udev->dev, "%s: USB speed=%d frame_size=%04x " \ dev_dbg(&d->udev->dev,
"packet_size=%02x\n", __func__, "%s: USB speed=%d frame_size=%04x packet_size=%02x\n",
d->udev->speed, frame_size, packet_size); __func__, d->udev->speed, frame_size, packet_size);
/* init endpoints */ /* init endpoints */
for (i = 0; i < ARRAY_SIZE(tab); i++) { for (i = 0; i < ARRAY_SIZE(tab); i++) {
...@@ -1495,7 +1497,7 @@ static const struct usb_device_id af9035_id_table[] = { ...@@ -1495,7 +1497,7 @@ static const struct usb_device_id af9035_id_table[] = {
&af9035_props, "AVerMedia Twinstar (A825)", NULL) }, &af9035_props, "AVerMedia Twinstar (A825)", NULL) },
{ DVB_USB_DEVICE(USB_VID_ASUS, USB_PID_ASUS_U3100MINI_PLUS, { DVB_USB_DEVICE(USB_VID_ASUS, USB_PID_ASUS_U3100MINI_PLUS,
&af9035_props, "Asus U3100Mini Plus", NULL) }, &af9035_props, "Asus U3100Mini Plus", NULL) },
{ DVB_USB_DEVICE(USB_VID_TERRATEC, 0x00aa, { DVB_USB_DEVICE(USB_VID_TERRATEC, 0x00aa,
&af9035_props, "TerraTec Cinergy T Stick (rev. 2)", NULL) }, &af9035_props, "TerraTec Cinergy T Stick (rev. 2)", NULL) },
/* IT9135 devices */ /* IT9135 devices */
#if 0 #if 0
......
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