aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorFlorian Mickler <florian@mickler.org>2011-03-21 06:19:06 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-05-20 08:28:03 -0400
commitd30615d87e7bfbf610fae1cbee3fa509d1377edc (patch)
treed61a9ea0dfa5cfec8b66c67d3b7f862835bf2de6 /drivers/media/dvb
parent12fe2a6193df97b28f5ff9fd3f12d460e96c6a95 (diff)
[media] vp702x: cleanup: whitespace and indentation
Some whitespace, one linebreak and one unneded variable initialization... Signed-off-by: Florian Mickler <florian@mickler.org> Cc: Patrick Boettcher <pb@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/dvb-usb/vp702x.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/drivers/media/dvb/dvb-usb/vp702x.c b/drivers/media/dvb/dvb-usb/vp702x.c
index 7890e75600df..4c9939ffb720 100644
--- a/drivers/media/dvb/dvb-usb/vp702x.c
+++ b/drivers/media/dvb/dvb-usb/vp702x.c
@@ -36,14 +36,14 @@ struct vp702x_device_state {
36/* check for mutex FIXME */ 36/* check for mutex FIXME */
37int vp702x_usb_in_op(struct dvb_usb_device *d, u8 req, u16 value, u16 index, u8 *b, int blen) 37int vp702x_usb_in_op(struct dvb_usb_device *d, u8 req, u16 value, u16 index, u8 *b, int blen)
38{ 38{
39 int ret = -1; 39 int ret;
40 40
41 ret = usb_control_msg(d->udev, 41 ret = usb_control_msg(d->udev,
42 usb_rcvctrlpipe(d->udev,0), 42 usb_rcvctrlpipe(d->udev, 0),
43 req, 43 req,
44 USB_TYPE_VENDOR | USB_DIR_IN, 44 USB_TYPE_VENDOR | USB_DIR_IN,
45 value,index,b,blen, 45 value, index, b, blen,
46 2000); 46 2000);
47 47
48 if (ret < 0) { 48 if (ret < 0) {
49 warn("usb in operation failed. (%d)", ret); 49 warn("usb in operation failed. (%d)", ret);
@@ -221,7 +221,8 @@ static int vp702x_frontend_attach(struct dvb_usb_adapter *adap)
221 221
222 vp702x_usb_out_op(adap->dev, SET_TUNER_POWER_REQ, 0, 7, NULL, 0); 222 vp702x_usb_out_op(adap->dev, SET_TUNER_POWER_REQ, 0, 7, NULL, 0);
223 223
224 if (vp702x_usb_inout_cmd(adap->dev, GET_SYSTEM_STRING, NULL, 0, buf, 10, 10)) 224 if (vp702x_usb_inout_cmd(adap->dev, GET_SYSTEM_STRING, NULL, 0,
225 buf, 10, 10))
225 return -EIO; 226 return -EIO;
226 227
227 buf[9] = '\0'; 228 buf[9] = '\0';
@@ -307,9 +308,9 @@ static struct dvb_usb_device_properties vp702x_properties = {
307/* usb specific object needed to register this driver with the usb subsystem */ 308/* usb specific object needed to register this driver with the usb subsystem */
308static struct usb_driver vp702x_usb_driver = { 309static struct usb_driver vp702x_usb_driver = {
309 .name = "dvb_usb_vp702x", 310 .name = "dvb_usb_vp702x",
310 .probe = vp702x_usb_probe, 311 .probe = vp702x_usb_probe,
311 .disconnect = dvb_usb_device_exit, 312 .disconnect = dvb_usb_device_exit,
312 .id_table = vp702x_usb_table, 313 .id_table = vp702x_usb_table,
313}; 314};
314 315
315/* module stuff */ 316/* module stuff */