}
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;
return rc;
}
-int smscore_load_firmware_from_buffer(smscore_device_t *coredev, u8* buffer, 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;
*/
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;
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 )
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, u8* buffer, 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);
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;
}
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;
}