V4L/DVB (8275): sms1xxx: codingstyle cleanup: "foo* bar"/"foo * bar" should be "foo *bar"
ERROR: "foo* bar" should be "foo *bar" ERROR: "foo * bar" should be "foo *bar" Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
3617691fb9
commit
a83ccdd6a9
@ -166,7 +166,8 @@ void smscore_registry_setmode(char* devpath, int mode)
|
||||
}
|
||||
|
||||
|
||||
void list_add_locked(struct list_head *new, struct list_head *head, spinlock_t* lock)
|
||||
void list_add_locked(struct list_head *new, struct list_head *head,
|
||||
spinlock_t *lock)
|
||||
{
|
||||
unsigned long flags;
|
||||
|
||||
@ -280,7 +281,8 @@ int smscore_notify_callbacks(smscore_device_t *coredev, struct device *device, i
|
||||
return rc;
|
||||
}
|
||||
|
||||
smscore_buffer_t *smscore_createbuffer(u8* buffer, void* common_buffer, dma_addr_t common_buffer_phys)
|
||||
smscore_buffer_t *smscore_createbuffer(u8 *buffer, void *common_buffer,
|
||||
dma_addr_t common_buffer_phys)
|
||||
{
|
||||
smscore_buffer_t *cb = kmalloc(sizeof(smscore_buffer_t), GFP_KERNEL);
|
||||
if (!cb)
|
||||
@ -409,7 +411,8 @@ int smscore_start_device(smscore_device_t *coredev)
|
||||
return rc;
|
||||
}
|
||||
|
||||
int smscore_sendrequest_and_wait(smscore_device_t *coredev, void* buffer, size_t size, struct completion *completion)
|
||||
int smscore_sendrequest_and_wait(smscore_device_t *coredev, void *buffer,
|
||||
size_t size, struct completion *completion)
|
||||
{
|
||||
int rc = coredev->sendrequest_handler(coredev->context, buffer, size);
|
||||
if (rc < 0)
|
||||
@ -513,7 +516,8 @@ int smscore_load_firmware_family2(smscore_device_t *coredev, void *buffer, size_
|
||||
*
|
||||
* @return 0 on success, <0 on error.
|
||||
*/
|
||||
int smscore_load_firmware(smscore_device_t *coredev, char* filename, loadfirmware_t loadfirmware_handler)
|
||||
int smscore_load_firmware(smscore_device_t *coredev, char *filename,
|
||||
loadfirmware_t loadfirmware_handler)
|
||||
{
|
||||
int rc = -ENOENT;
|
||||
|
||||
@ -739,7 +743,8 @@ int smscore_get_device_mode(smscore_device_t *coredev)
|
||||
return coredev->mode;
|
||||
}
|
||||
|
||||
smscore_client_t* smscore_getclient_by_type(smscore_device_t *coredev, int data_type)
|
||||
smscore_client_t *smscore_getclient_by_type(smscore_device_t *coredev,
|
||||
int data_type)
|
||||
{
|
||||
smscore_client_t *client = NULL;
|
||||
struct list_head *next, *first;
|
||||
@ -801,7 +806,8 @@ smscore_client_t* smscore_getclient_by_id(smscore_device_t *coredev, int id)
|
||||
void smscore_onresponse(smscore_device_t *coredev, smscore_buffer_t *cb)
|
||||
{
|
||||
SmsMsgHdr_ST *phdr = (SmsMsgHdr_ST *)((u8*) cb->p + cb->offset);
|
||||
smscore_client_t * client = smscore_getclient_by_type(coredev, phdr->msgType);
|
||||
smscore_client_t *client = smscore_getclient_by_type(coredev,
|
||||
phdr->msgType);
|
||||
int rc = -EBUSY;
|
||||
|
||||
static unsigned long last_sample_time = 0;
|
||||
@ -1070,7 +1076,8 @@ int smscore_get_common_buffer_size(smscore_device_t *coredev)
|
||||
*
|
||||
* @return 0 on success, <0 on error.
|
||||
*/
|
||||
int smscore_map_common_buffer(smscore_device_t *coredev, struct vm_area_struct * vma)
|
||||
int smscore_map_common_buffer(smscore_device_t *coredev,
|
||||
struct vm_area_struct *vma)
|
||||
{
|
||||
unsigned long end = vma->vm_end, start = vma->vm_start, size = PAGE_ALIGN(coredev->common_buffer_size);
|
||||
|
||||
|
@ -503,19 +503,23 @@ extern int smscore_register_device(smsdevice_params_t *params, smscore_device_t
|
||||
extern void smscore_unregister_device(smscore_device_t *coredev);
|
||||
|
||||
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(smscore_device_t *coredev, char *filename,
|
||||
loadfirmware_t loadfirmware_handler);
|
||||
|
||||
extern int smscore_set_device_mode(smscore_device_t *coredev, int mode);
|
||||
extern int smscore_get_device_mode(smscore_device_t *coredev);
|
||||
|
||||
extern int smscore_register_client(smscore_device_t *coredev, smsclient_params_t* params, smscore_client_t **client);
|
||||
extern int smscore_register_client(smscore_device_t *coredev,
|
||||
smsclient_params_t *params,
|
||||
smscore_client_t **client);
|
||||
extern void smscore_unregister_client(smscore_client_t *client);
|
||||
|
||||
extern int smsclient_sendrequest(smscore_client_t *client, void *buffer, size_t size);
|
||||
extern void smscore_onresponse(smscore_device_t *coredev, smscore_buffer_t *cb);
|
||||
|
||||
extern int smscore_get_common_buffer_size(smscore_device_t *coredev);
|
||||
extern int smscore_map_common_buffer(smscore_device_t *coredev, struct vm_area_struct * vma);
|
||||
extern int smscore_map_common_buffer(smscore_device_t *coredev,
|
||||
struct vm_area_struct *vma);
|
||||
|
||||
extern smscore_buffer_t *smscore_getbuffer(smscore_device_t *coredev);
|
||||
extern void smscore_putbuffer(smscore_device_t *coredev, smscore_buffer_t *cb);
|
||||
|
@ -136,7 +136,9 @@ static int smsdvb_stop_feed(struct dvb_demux_feed *feed)
|
||||
return smsclient_sendrequest(client->smsclient, &PidMsg, sizeof(PidMsg));
|
||||
}
|
||||
|
||||
static int smsdvb_sendrequest_and_wait(smsdvb_client_t *client, void* buffer, size_t size, struct completion *completion)
|
||||
static int smsdvb_sendrequest_and_wait(smsdvb_client_t *client,
|
||||
void *buffer, size_t size,
|
||||
struct completion *completion)
|
||||
{
|
||||
int rc = smsclient_sendrequest(client->smsclient, buffer, size);
|
||||
if (rc < 0)
|
||||
@ -283,7 +285,8 @@ static struct dvb_frontend_ops smsdvb_fe_ops = {
|
||||
.read_snr = smsdvb_read_snr,
|
||||
};
|
||||
|
||||
int smsdvb_hotplug(smscore_device_t *coredev, struct device* device, int arrival)
|
||||
int smsdvb_hotplug(smscore_device_t *coredev, struct device *device,
|
||||
int arrival)
|
||||
{
|
||||
smsclient_params_t params;
|
||||
smsdvb_client_t *client;
|
||||
|
Loading…
Reference in New Issue
Block a user