V4L/DVB (8278): sms1xxx: more codingstyle cleanups
authorMichael Krufky <mkrufky@linuxtv.org>
Sat, 14 Jun 2008 10:40:41 +0000 (07:40 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 20 Jul 2008 10:21:14 +0000 (07:21 -0300)
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/siano/smscoreapi.c
drivers/media/dvb/siano/smscoreapi.h
drivers/media/dvb/siano/smsusb.c

index 76fa0f50775c595e5957f8c4552da26463760407..41c63e5622d863726d8453f88d02bf61e76918bf 100644 (file)
@@ -347,7 +347,7 @@ smscore_buffer_t *smscore_createbuffer(u8 *buffer, void *common_buffer,
        }
 
        cb->p = buffer;
-       cb->offset_in_common = buffer - (u8*) common_buffer;
+       cb->offset_in_common = buffer - (u8 *) common_buffer;
        cb->phys = common_buffer_phys + cb->offset_in_common;
 
        return cb;
@@ -620,7 +620,7 @@ int smscore_load_firmware_from_file(smscore_device_t *coredev, char *filename, l
        return rc;
 }
 
-int smscore_load_firmware_from_buffer(smscore_device_t *coredev, u8buffer, int size, int new_mode)
+int smscore_load_firmware_from_buffer(smscore_device_t *coredev, u8 *buffer, int size, int new_mode)
 {
        PERROR("Feature not implemented yet\n");
        return -EFAULT;
@@ -888,7 +888,7 @@ smscore_client_t *smscore_find_client(smscore_device_t *coredev, int data_type,
  */
 void smscore_onresponse(smscore_device_t *coredev, smscore_buffer_t *cb)
 {
-       SmsMsgHdr_ST *phdr = (SmsMsgHdr_ST *)((u8*) cb->p + cb->offset);
+       SmsMsgHdr_ST *phdr = (SmsMsgHdr_ST *)((u8 *) cb->p + cb->offset);
        smscore_client_t *client = smscore_find_client(coredev, phdr->msgType, phdr->msgDstId);
        int rc = -EBUSY;
 
@@ -1120,7 +1120,7 @@ void smscore_unregister_client(smscore_client_t *client)
 int smsclient_sendrequest(smscore_client_t *client, void *buffer, size_t size)
 {
        smscore_device_t *coredev;
-       SmsMsgHdr_ST* phdr = (SmsMsgHdr_ST*) buffer;
+       SmsMsgHdr_ST *phdr = (SmsMsgHdr_ST *) buffer;
        int rc;
 
        if ( client == NULL )
index c0a3be2fae72046a70caf1a1122a1e837c6b2bc3..601bdb8304db42c3d5aa5147612feb257f8d1a46 100644 (file)
@@ -515,7 +515,7 @@ extern int smscore_start_device(smscore_device_t *coredev);
 extern int smscore_load_firmware(smscore_device_t *coredev, char *filename,
                                  loadfirmware_t loadfirmware_handler);
 
-extern int smscore_load_firmware_from_buffer(smscore_device_t *coredev, u8buffer, int size, int new_mode);
+extern int smscore_load_firmware_from_buffer(smscore_device_t *coredev, u8 *buffer, int size, int new_mode);
 
 extern int smscore_set_device_mode(smscore_device_t *coredev, int mode);
 extern int smscore_get_device_mode(smscore_device_t *coredev);
index f719b72424d110e66fbc0ebf4c2e6a3a45fba8a1..02528f12ecf01940ab9ad866959e97b49c1b524e 100644 (file)
@@ -313,13 +313,13 @@ int smsusb_init_device(struct usb_interface *intf)
        default:
                if (dev->udev->descriptor.idProduct == 0x200) {
                        params.device_type = SMS_NOVA_A0;
-                       printk(KERN_INFO "%s nova A0 found\n", __FUNCTION__ );
+                       printk(KERN_INFO "%s nova A0 found\n", __func__ );
                } else if (dev->udev->descriptor.idProduct == 0x201) {
                        params.device_type = SMS_NOVA_B0;
-                       printk(KERN_INFO "%s nova B0 found\n", __FUNCTION__);
+                       printk(KERN_INFO "%s nova B0 found\n", __func__);
                } else {
                        params.device_type = SMS_VEGA;
-                       printk(KERN_INFO "%s Vega found\n", __FUNCTION__);
+                       printk(KERN_INFO "%s Vega found\n", __func__);
                }
 
                dev->buffer_size = USB2_BUFFER_SIZE;
@@ -411,7 +411,7 @@ int smsusb_probe(struct usb_interface *intf, const struct usb_device_id *id)
        }
 
        rc = smsusb_init_device(intf);
-       printk(KERN_INFO  "%s  rc %d\n", __FUNCTION__, rc);
+       printk(KERN_INFO  "%s  rc %d\n", __func__, rc);
        return rc;
 }