aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-06-14 06:40:41 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:21:14 -0400
commit494d24c527e5ab43aecb8e77bfdc7e939466b134 (patch)
treead348ffa37989316f6351e2e5a6c744429e377c7
parentf17407a85db3b86526d54e65698348873a6df617 (diff)
V4L/DVB (8278): sms1xxx: more codingstyle cleanups
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/dvb/siano/smscoreapi.c8
-rw-r--r--drivers/media/dvb/siano/smscoreapi.h2
-rw-r--r--drivers/media/dvb/siano/smsusb.c8
3 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/dvb/siano/smscoreapi.c b/drivers/media/dvb/siano/smscoreapi.c
index 76fa0f50775c..41c63e5622d8 100644
--- a/drivers/media/dvb/siano/smscoreapi.c
+++ b/drivers/media/dvb/siano/smscoreapi.c
@@ -347,7 +347,7 @@ smscore_buffer_t *smscore_createbuffer(u8 *buffer, void *common_buffer,
347 } 347 }
348 348
349 cb->p = buffer; 349 cb->p = buffer;
350 cb->offset_in_common = buffer - (u8*) common_buffer; 350 cb->offset_in_common = buffer - (u8 *) common_buffer;
351 cb->phys = common_buffer_phys + cb->offset_in_common; 351 cb->phys = common_buffer_phys + cb->offset_in_common;
352 352
353 return cb; 353 return cb;
@@ -620,7 +620,7 @@ int smscore_load_firmware_from_file(smscore_device_t *coredev, char *filename, l
620 return rc; 620 return rc;
621} 621}
622 622
623int smscore_load_firmware_from_buffer(smscore_device_t *coredev, u8* buffer, int size, int new_mode) 623int smscore_load_firmware_from_buffer(smscore_device_t *coredev, u8 *buffer, int size, int new_mode)
624{ 624{
625 PERROR("Feature not implemented yet\n"); 625 PERROR("Feature not implemented yet\n");
626 return -EFAULT; 626 return -EFAULT;
@@ -888,7 +888,7 @@ smscore_client_t *smscore_find_client(smscore_device_t *coredev, int data_type,
888 */ 888 */
889void smscore_onresponse(smscore_device_t *coredev, smscore_buffer_t *cb) 889void smscore_onresponse(smscore_device_t *coredev, smscore_buffer_t *cb)
890{ 890{
891 SmsMsgHdr_ST *phdr = (SmsMsgHdr_ST *)((u8*) cb->p + cb->offset); 891 SmsMsgHdr_ST *phdr = (SmsMsgHdr_ST *)((u8 *) cb->p + cb->offset);
892 smscore_client_t *client = smscore_find_client(coredev, phdr->msgType, phdr->msgDstId); 892 smscore_client_t *client = smscore_find_client(coredev, phdr->msgType, phdr->msgDstId);
893 int rc = -EBUSY; 893 int rc = -EBUSY;
894 894
@@ -1120,7 +1120,7 @@ void smscore_unregister_client(smscore_client_t *client)
1120int smsclient_sendrequest(smscore_client_t *client, void *buffer, size_t size) 1120int smsclient_sendrequest(smscore_client_t *client, void *buffer, size_t size)
1121{ 1121{
1122 smscore_device_t *coredev; 1122 smscore_device_t *coredev;
1123 SmsMsgHdr_ST* phdr = (SmsMsgHdr_ST*) buffer; 1123 SmsMsgHdr_ST *phdr = (SmsMsgHdr_ST *) buffer;
1124 int rc; 1124 int rc;
1125 1125
1126 if ( client == NULL ) 1126 if ( client == NULL )
diff --git a/drivers/media/dvb/siano/smscoreapi.h b/drivers/media/dvb/siano/smscoreapi.h
index c0a3be2fae72..601bdb8304db 100644
--- a/drivers/media/dvb/siano/smscoreapi.h
+++ b/drivers/media/dvb/siano/smscoreapi.h
@@ -515,7 +515,7 @@ extern int smscore_start_device(smscore_device_t *coredev);
515extern int smscore_load_firmware(smscore_device_t *coredev, char *filename, 515extern int smscore_load_firmware(smscore_device_t *coredev, char *filename,
516 loadfirmware_t loadfirmware_handler); 516 loadfirmware_t loadfirmware_handler);
517 517
518extern int smscore_load_firmware_from_buffer(smscore_device_t *coredev, u8* buffer, int size, int new_mode); 518extern int smscore_load_firmware_from_buffer(smscore_device_t *coredev, u8 *buffer, int size, int new_mode);
519 519
520extern int smscore_set_device_mode(smscore_device_t *coredev, int mode); 520extern int smscore_set_device_mode(smscore_device_t *coredev, int mode);
521extern int smscore_get_device_mode(smscore_device_t *coredev); 521extern int smscore_get_device_mode(smscore_device_t *coredev);
diff --git a/drivers/media/dvb/siano/smsusb.c b/drivers/media/dvb/siano/smsusb.c
index f719b72424d1..02528f12ecf0 100644
--- a/drivers/media/dvb/siano/smsusb.c
+++ b/drivers/media/dvb/siano/smsusb.c
@@ -313,13 +313,13 @@ int smsusb_init_device(struct usb_interface *intf)
313 default: 313 default:
314 if (dev->udev->descriptor.idProduct == 0x200) { 314 if (dev->udev->descriptor.idProduct == 0x200) {
315 params.device_type = SMS_NOVA_A0; 315 params.device_type = SMS_NOVA_A0;
316 printk(KERN_INFO "%s nova A0 found\n", __FUNCTION__ ); 316 printk(KERN_INFO "%s nova A0 found\n", __func__ );
317 } else if (dev->udev->descriptor.idProduct == 0x201) { 317 } else if (dev->udev->descriptor.idProduct == 0x201) {
318 params.device_type = SMS_NOVA_B0; 318 params.device_type = SMS_NOVA_B0;
319 printk(KERN_INFO "%s nova B0 found\n", __FUNCTION__); 319 printk(KERN_INFO "%s nova B0 found\n", __func__);
320 } else { 320 } else {
321 params.device_type = SMS_VEGA; 321 params.device_type = SMS_VEGA;
322 printk(KERN_INFO "%s Vega found\n", __FUNCTION__); 322 printk(KERN_INFO "%s Vega found\n", __func__);
323 } 323 }
324 324
325 dev->buffer_size = USB2_BUFFER_SIZE; 325 dev->buffer_size = USB2_BUFFER_SIZE;
@@ -411,7 +411,7 @@ int smsusb_probe(struct usb_interface *intf, const struct usb_device_id *id)
411 } 411 }
412 412
413 rc = smsusb_init_device(intf); 413 rc = smsusb_init_device(intf);
414 printk(KERN_INFO "%s rc %d\n", __FUNCTION__, rc); 414 printk(KERN_INFO "%s rc %d\n", __func__, rc);
415 return rc; 415 return rc;
416} 416}
417 417