int smsdvb_onresponse(void *context, smscore_buffer_t *cb)
{
smsdvb_client_t *client = (smsdvb_client_t *) context;
- SmsMsgHdr_ST *phdr = (SmsMsgHdr_ST *)(((u8*) cb->p) + cb->offset);
+ SmsMsgHdr_ST *phdr = (SmsMsgHdr_ST *)(((u8 *) cb->p) + cb->offset);
switch(phdr->msgType)
{
case MSG_SMS_DVBT_BDA_DATA:
- dvb_dmx_swfilter(&client->demux, (u8*)(phdr + 1), cb->size - sizeof(SmsMsgHdr_ST));
+ dvb_dmx_swfilter(&client->demux, (u8 *)(phdr + 1),
+ cb->size - sizeof(SmsMsgHdr_ST));
break;
case MSG_SMS_RF_TUNE_RES:
case MSG_SMS_GET_STATISTICS_RES:
{
- SmsMsgStatisticsInfo_ST* p = (SmsMsgStatisticsInfo_ST*)(phdr + 1);
+ SmsMsgStatisticsInfo_ST *p =
+ (SmsMsgStatisticsInfo_ST *)(phdr + 1);
if (p->Stat.IsDemodLocked)
{
{
kmutex_lock(&g_smsdvb_clientslock);
- smsdvb_unregister_client((smsdvb_client_t*) context);
+ smsdvb_unregister_client((smsdvb_client_t *) context);
kmutex_unlock(&g_smsdvb_clientslock);
}
kmutex_lock(&g_smsdvb_clientslock);
while (!list_empty(&g_smsdvb_clients))
- smsdvb_unregister_client((smsdvb_client_t*) g_smsdvb_clients.next);
+ smsdvb_unregister_client((smsdvb_client_t *) g_smsdvb_clients.next);
kmutex_unlock(&g_smsdvb_clientslock);
}
// move buffer pointer and copy header to its new location
- memcpy((char*) phdr + surb->cb->offset, phdr, sizeof(SmsMsgHdr_ST));
+ memcpy((char *) phdr + surb->cb->offset,
+ phdr, sizeof(SmsMsgHdr_ST));
}
else
surb->cb->offset = 0;
void smsusb_term_device(struct usb_interface *intf)
{
- smsusb_device_t *dev = (smsusb_device_t*) usb_get_intfdata(intf);
+ smsusb_device_t *dev = (smsusb_device_t *) usb_get_intfdata(intf);
if (dev)
{