diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-06-15 14:52:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:21:35 -0400 |
commit | fa830e8a014a206103d06a7600ed8c661b427db3 (patch) | |
tree | 29606f18b0a88d6e9015b47a169db932b08283cf /drivers/media/dvb/siano/smsusb.c | |
parent | f0333e3de0e06fb9a6662a6df7d3d1cc8e5dbeca (diff) |
V4L/DVB (8282): sms1xxx: more codingstyle cleanups
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/siano/smsusb.c')
-rw-r--r-- | drivers/media/dvb/siano/smsusb.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/dvb/siano/smsusb.c b/drivers/media/dvb/siano/smsusb.c index d9ce3ba0910f..2361f1a5e3c4 100644 --- a/drivers/media/dvb/siano/smsusb.c +++ b/drivers/media/dvb/siano/smsusb.c | |||
@@ -149,7 +149,7 @@ void smsusb_stop_streaming(smsusb_device_t *dev) | |||
149 | { | 149 | { |
150 | int i; | 150 | int i; |
151 | 151 | ||
152 | for (i = 0; i < MAX_URBS; i ++) { | 152 | for (i = 0; i < MAX_URBS; i++) { |
153 | usb_kill_urb(&dev->surbs[i].urb); | 153 | usb_kill_urb(&dev->surbs[i].urb); |
154 | 154 | ||
155 | if (dev->surbs[i].cb) { | 155 | if (dev->surbs[i].cb) { |
@@ -163,7 +163,7 @@ int smsusb_start_streaming(smsusb_device_t *dev) | |||
163 | { | 163 | { |
164 | int i, rc; | 164 | int i, rc; |
165 | 165 | ||
166 | for (i = 0; i < MAX_URBS; i ++) { | 166 | for (i = 0; i < MAX_URBS; i++) { |
167 | rc = smsusb_submit_urb(dev, &dev->surbs[i]); | 167 | rc = smsusb_submit_urb(dev, &dev->surbs[i]); |
168 | if (rc < 0) { | 168 | if (rc < 0) { |
169 | printk(KERN_INFO "%s smsusb_submit_urb(...) " | 169 | printk(KERN_INFO "%s smsusb_submit_urb(...) " |
@@ -275,7 +275,7 @@ void smsusb_term_device(struct usb_interface *intf) | |||
275 | if (dev) { | 275 | if (dev) { |
276 | smsusb_stop_streaming(dev); | 276 | smsusb_stop_streaming(dev); |
277 | 277 | ||
278 | // unregister from smscore | 278 | /* unregister from smscore */ |
279 | if (dev->coredev) | 279 | if (dev->coredev) |
280 | smscore_unregister_device(dev->coredev); | 280 | smscore_unregister_device(dev->coredev); |
281 | 281 | ||
@@ -293,7 +293,7 @@ int smsusb_init_device(struct usb_interface *intf) | |||
293 | smsusb_device_t *dev; | 293 | smsusb_device_t *dev; |
294 | int i, rc; | 294 | int i, rc; |
295 | 295 | ||
296 | // create device object | 296 | /* create device object */ |
297 | dev = kzalloc(sizeof(smsusb_device_t), GFP_KERNEL); | 297 | dev = kzalloc(sizeof(smsusb_device_t), GFP_KERNEL); |
298 | if (!dev) { | 298 | if (!dev) { |
299 | printk(KERN_INFO "%s kzalloc(sizeof(smsusb_device_t) failed\n", | 299 | printk(KERN_INFO "%s kzalloc(sizeof(smsusb_device_t) failed\n", |
@@ -313,13 +313,13 @@ int smsusb_init_device(struct usb_interface *intf) | |||
313 | params.setmode_handler = smsusb1_setmode; | 313 | params.setmode_handler = smsusb1_setmode; |
314 | params.detectmode_handler = smsusb1_detectmode; | 314 | params.detectmode_handler = smsusb1_detectmode; |
315 | params.device_type = SMS_STELLAR; | 315 | params.device_type = SMS_STELLAR; |
316 | printk(KERN_INFO "%s stellar device found\n", __func__ ); | 316 | printk(KERN_INFO "%s stellar device found\n", __func__); |
317 | break; | 317 | break; |
318 | default: | 318 | default: |
319 | switch (dev->udev->descriptor.idProduct) { | 319 | switch (dev->udev->descriptor.idProduct) { |
320 | case USB_PID_NOVA_A: | 320 | case USB_PID_NOVA_A: |
321 | params.device_type = SMS_NOVA_A0; | 321 | params.device_type = SMS_NOVA_A0; |
322 | printk(KERN_INFO "%s nova A0 found\n", __func__ ); | 322 | printk(KERN_INFO "%s nova A0 found\n", __func__); |
323 | break; | 323 | break; |
324 | default: | 324 | default: |
325 | case USB_PID_NOVA_B: | 325 | case USB_PID_NOVA_B: |
@@ -357,7 +357,7 @@ int smsusb_init_device(struct usb_interface *intf) | |||
357 | return rc; | 357 | return rc; |
358 | } | 358 | } |
359 | 359 | ||
360 | // initialize urbs | 360 | /* initialize urbs */ |
361 | for (i = 0; i < MAX_URBS; i++) { | 361 | for (i = 0; i < MAX_URBS; i++) { |
362 | dev->surbs[i].dev = dev; | 362 | dev->surbs[i].dev = dev; |
363 | usb_init_urb(&dev->surbs[i].urb); | 363 | usb_init_urb(&dev->surbs[i].urb); |
@@ -405,7 +405,7 @@ int smsusb_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
405 | 405 | ||
406 | printk(KERN_INFO "smsusb_probe %d\n", | 406 | printk(KERN_INFO "smsusb_probe %d\n", |
407 | intf->cur_altsetting->desc.bInterfaceNumber); | 407 | intf->cur_altsetting->desc.bInterfaceNumber); |
408 | for (i = 0; i < intf->cur_altsetting->desc.bNumEndpoints; i ++) | 408 | for (i = 0; i < intf->cur_altsetting->desc.bNumEndpoints; i++) |
409 | printk(KERN_INFO "endpoint %d %02x %02x %d\n", i, | 409 | printk(KERN_INFO "endpoint %d %02x %02x %d\n", i, |
410 | intf->cur_altsetting->endpoint[i].desc.bEndpointAddress, | 410 | intf->cur_altsetting->endpoint[i].desc.bEndpointAddress, |
411 | intf->cur_altsetting->endpoint[i].desc.bmAttributes, | 411 | intf->cur_altsetting->endpoint[i].desc.bmAttributes, |
@@ -440,7 +440,7 @@ static struct usb_device_id smsusb_id_table [] = { | |||
440 | { USB_DEVICE(USB_VID_SIANO, USB_PID_NOVA_A) }, | 440 | { USB_DEVICE(USB_VID_SIANO, USB_PID_NOVA_A) }, |
441 | { } /* Terminating entry */ | 441 | { } /* Terminating entry */ |
442 | }; | 442 | }; |
443 | MODULE_DEVICE_TABLE (usb, smsusb_id_table); | 443 | MODULE_DEVICE_TABLE(usb, smsusb_id_table); |
444 | 444 | ||
445 | static struct usb_driver smsusb_driver = { | 445 | static struct usb_driver smsusb_driver = { |
446 | .name = "smsusb", | 446 | .name = "smsusb", |