Skip to contentSkip to conversation

[0904_7_2] Siano: smsdvb - purge whitespaces

PATCH Uri Shkolnik 1 participant 1 message May 11, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw
Quoted 354 lines · Mauro Carvalho Chehab

From: Mauro Carvalho Chehab <[email protected]>
Subject: Re: [PATCH] [0904_7_2] Siano: smsdvb - purge whitespaces
To: "Uri Shkolnik" <[email protected]>
Cc: "LinuxML" <[email protected]>
Date: Monday, May 11, 2009, 1:29 PM
Em Mon, 27 Apr 2009 05:11:27 -0700
(PDT)
Uri Shkolnik <[email protected]>
escreveu:

Quoted 6 lines

# HG changeset patch
# User Uri Shkolnik <[email protected]>
# Date 1240833806 -10800
# Node ID cbd828b0fe102fa023280cfeadbcb20b54a39a47 # Parent

39bbe3b24abaaa3e049a855cb51be0b917b0c711

Quoted 5 lines

Siano: smsdvb - whitespace cleanup

From: Uri Shkolnik <[email protected]>

Whitespace cleanup, no implementation changes

This patch didn't apply. Probably, it were applied out of order. The other
Siano patches I had were already applied. Please check if I forgot something.

Quoted 6 lines

Priority: normal

diff -r 39bbe3b24aba -r cbd828b0fe10

linux/drivers/media/dvb/siano/smsdvb.c

Quoted 1 line

---

a/linux/drivers/media/dvb/siano/smsdvb.c
Mon Apr 27 14:43:28 2009 +0300

Quoted 1 line

+++

b/linux/drivers/media/dvb/siano/smsdvb.c
Mon Apr 27 15:03:26 2009 +0300

Quoted 2 lines
(quoted diff) +0 -0
@@ -33,15 +33,15 @@ struct smsdvb_client_t {

      struct smscore_device_t

*coredev;

Quoted 1 line

      struct smscore_client_t

*smsclient;

Quoted 2 lines


-    struct dvb_adapter

  adapter;

Quoted 1 line

-    struct dvb_demux

    demux;

Quoted 1 line

-    struct dmxdev

     dmxdev;

Quoted 1 line

-    struct dvb_frontend

   frontend;

Quoted 6 lines

+    struct dvb_adapter adapter;
+    struct dvb_demux demux;
+    struct dmxdev dmxdev;
+    struct dvb_frontend frontend;

-    fe_status_t

       fe_status;

Quoted 1 line

-    int

             fe_ber,
fe_snr, fe_unc, fe_signal_strength;

Quoted 2 lines

+    fe_status_t fe_status;
+    int fe_ber, fe_snr, fe_unc,

fe_signal_strength;

Quoted 2 lines


-    struct completion

   tune_done, stat_done;

Quoted 1 line

+    struct completion tune_done,

stat_done;

Quoted 2 lines


      /* todo: save freq/band

instead whole struct */

Quoted 1 line

      struct

dvb_frontend_parameters fe_params;

Review static int smsdvb_onresponse(void

Quoted 1 line
(quoted diff) +0 -0
@@ -61,7 +61,7 @@ static int smsdvb_onresponse(void

*conte

Quoted 1 line

      struct smsdvb_client_t

*client = (struct smsdvb_client_t *) context;

Quoted 1 line

      struct SmsMsgHdr_ST *phdr =

(struct SmsMsgHdr_ST *) (((u8 *) cb->p)

Quoted 1 line

    + cb->offset);

Quoted 3 lines

-    u32 *pMsgData = (u32 *)phdr+1;
+    u32 *pMsgData = (u32 *) phdr + 1;
      /*u32 MsgDataLen =

phdr->msgLength - sizeof(struct SmsMsgHdr_ST);*/

Quoted 2 lines


/*smsendian_handle_rx_message((struct SmsMsgData_ST *) phdr);*/

Review static int smsdvb_onresponse(void

Quoted 1 line
(quoted diff) +0 -0
@@ -177,8 +177,8 @@ static int smsdvb_onresponse(void

*conte

Quoted 2 lines


      if (client->fe_status

& FE_HAS_LOCK)

Quoted 1 line

sms_board_led_feedback(client->coredev,

Quoted 1 line

-


   (client->fe_unc == 0) ?

Quoted 1 line

-


   SMS_LED_HI : SMS_LED_LO);

Quoted 1 line

+

        (client->fe_unc ==
0) ?

Quoted 1 line

+

        SMS_LED_HI :
SMS_LED_LO);

Quoted 2 lines

      else

sms_board_led_feedback(client->coredev, SMS_LED_OFF);

Review static void smsdvb_onremove(void

Quoted 2 lines

(quoted diff) +0 -0
@@ -203,7 +203,7 @@ static void smsdvb_onremove(void

*contex

Quoted 2 lines
(quoted diff) +0 -0
   {

kmutex_lock(&g_smsdvb_clientslock);

Quoted 2 lines


-    smsdvb_unregister_client((struct

smsdvb_client_t *) context);

Quoted 1 line

+    smsdvb_unregister_client((struct

smsdvb_client_t *)context);

Quoted 2 lines


kmutex_unlock(&g_smsdvb_clientslock);

Review static int

Quoted 2 lines

  }

(quoted diff) +0 -0
@@ -214,13 +214,12 @@ static int

smsdvb_start_feed(struct dvb_

Quoted 1 line

container_of(feed->demux, struct smsdvb_client_t,
demux);

Quoted 4 lines

      struct SmsMsgData_ST PidMsg;

-    sms_debug("add pid %d(%x)",
-

feed->pid, feed->pid);

Quoted 1 line

+    sms_debug("add pid %d(%x)",

feed->pid, feed->pid);

Quoted 2 lines


      PidMsg.xMsgHeader.msgSrcId =

DVBT_BDA_CONTROL_MSG_ID;

Quoted 1 line

      PidMsg.xMsgHeader.msgDstId =

HIF_TASK;

Quoted 1 line

      PidMsg.xMsgHeader.msgFlags =

0;

Quoted 1 line

-    PidMsg.xMsgHeader.msgType  =

MSG_SMS_ADD_PID_FILTER_REQ;

Quoted 1 line

+    PidMsg.xMsgHeader.msgType =

MSG_SMS_ADD_PID_FILTER_REQ;

Quoted 1 line

      PidMsg.xMsgHeader.msgLength =

sizeof(PidMsg);

Quoted 1 line

      PidMsg.msgData[0] =

feed->pid;

Review static int

Quoted 2 lines

(quoted diff) +0 -0
@@ -234,31 +233,31 @@ static int

smsdvb_stop_feed(struct dvb_d

Quoted 1 line

container_of(feed->demux, struct smsdvb_client_t,
demux);

Quoted 4 lines

      struct SmsMsgData_ST PidMsg;

-    sms_debug("remove pid %d(%x)",
-

feed->pid, feed->pid);

Quoted 1 line

+    sms_debug("remove pid %d(%x)",

feed->pid, feed->pid);

Quoted 2 lines


      PidMsg.xMsgHeader.msgSrcId =

DVBT_BDA_CONTROL_MSG_ID;

Quoted 1 line

      PidMsg.xMsgHeader.msgDstId =

HIF_TASK;

Quoted 1 line

      PidMsg.xMsgHeader.msgFlags =

0;

Quoted 1 line

-    PidMsg.xMsgHeader.msgType  =

MSG_SMS_REMOVE_PID_FILTER_REQ;

Quoted 1 line

+    PidMsg.xMsgHeader.msgType =

MSG_SMS_REMOVE_PID_FILTER_REQ;

Quoted 1 line

      PidMsg.xMsgHeader.msgLength =

sizeof(PidMsg);

Quoted 1 line

      PidMsg.msgData[0] =

feed->pid;

Quoted 2 lines


-    return

smsclient_sendrequest(client->smsclient,

Quoted 1 line

-


   &PidMsg, sizeof(PidMsg));

Quoted 1 line

+    return

smsclient_sendrequest(client->smsclient, &PidMsg,

Quoted 1 line

+

    sizeof(PidMsg));

Quoted 3 lines

  }

  static int smsdvb_sendrequest_and_wait(struct

smsdvb_client_t *client,

Quoted 1 line

-


void *buffer, size_t size,

Quoted 1 line

-


struct completion *completion)

Quoted 1 line

+


   void *buffer, size_t size,

Quoted 1 line

+


   struct completion *completion)

Quoted 2 lines

  {
-    int rc =

smsclient_sendrequest(client->smsclient, buffer, size);

Quoted 3 lines

+    int rc;
+
+    rc =

smsclient_sendrequest(client->smsclient, buffer, size);

Quoted 2 lines

      if (rc < 0)
          return

rc;

Quoted 2 lines


-    return

wait_for_completion_timeout(completion,

Quoted 1 line

-


   msecs_to_jiffies(2000)) ?

Quoted 1 line

-


    0 : -ETIME;

Quoted 1 line

+    return

wait_for_completion_timeout(completion,
msecs_to_jiffies(2000))

Quoted 1 line

+

    ? 0 : -ETIME;

Quoted 3 lines

  }

  static int smsdvb_read_status(struct

dvb_frontend *fe, fe_status_t *stat)

Review static int

Quoted 1 line
(quoted diff) +0 -0
@@ -333,18 +332,18 @@ static int

smsdvb_set_frontend(struct dv

Quoted 1 line

           struct
dvb_frontend_parameters *fep)

Quoted 2 lines

  {
      struct smsdvb_client_t

*client =

Quoted 1 line

-

container_of(fe, struct smsdvb_client_t, frontend);

Quoted 1 line

+    container_of(fe, struct

smsdvb_client_t, frontend);

Quoted 3 lines


      struct {
-        struct

SmsMsgHdr_ST    Msg;

Quoted 1 line

-

u32        Data[3];

Quoted 1 line

+        struct

SmsMsgHdr_ST Msg;

Quoted 5 lines

+        u32 Data[3];
      } Msg;
      int ret;

-    Msg.Msg.msgSrcId  =

DVBT_BDA_CONTROL_MSG_ID;

Quoted 1 line

-    Msg.Msg.msgDstId  =

HIF_TASK;

Quoted 2 lines

-    Msg.Msg.msgFlags  = 0;
-    Msg.Msg.msgType   =

MSG_SMS_RF_TUNE_REQ;

Quoted 1 line

+    Msg.Msg.msgSrcId =

DVBT_BDA_CONTROL_MSG_ID;

Quoted 3 lines

+    Msg.Msg.msgDstId = HIF_TASK;
+    Msg.Msg.msgFlags = 0;
+    Msg.Msg.msgType =

MSG_SMS_RF_TUNE_REQ;

Quoted 1 line

      Msg.Msg.msgLength =

sizeof(Msg);

Quoted 1 line

      Msg.Data[0] =

fep->frequency;

Review static int

Quoted 2 lines

      Msg.Data[2] = 12000000;

(quoted diff) +0 -0
@@ -353,14 +352,24 @@ static int

smsdvb_set_frontend(struct dv

Quoted 1 line

fep->frequency, fep->u.ofdm.bandwidth);

Quoted 2 lines


      switch

(fep->u.ofdm.bandwidth) {

Quoted 1 line

-    case BANDWIDTH_8_MHZ: Msg.Data[1]

= BW_8_MHZ; break;

Quoted 1 line

-    case BANDWIDTH_7_MHZ: Msg.Data[1]

= BW_7_MHZ; break;

Quoted 1 line

-    case BANDWIDTH_6_MHZ: Msg.Data[1]

= BW_6_MHZ; break;

Quoted 2 lines

+    case BANDWIDTH_8_MHZ:
+        Msg.Data[1] =

BW_8_MHZ;

Quoted 3 lines

+        break;
+    case BANDWIDTH_7_MHZ:
+        Msg.Data[1] =

BW_7_MHZ;

Quoted 3 lines

+        break;
+    case BANDWIDTH_6_MHZ:
+        Msg.Data[1] =

BW_6_MHZ;

Quoted 3 lines

+        break;
  #if 0
-    case BANDWIDTH_5_MHZ: Msg.Data[1]

= BW_5_MHZ; break;

Quoted 2 lines

+    case BANDWIDTH_5_MHZ:
+        Msg.Data[1] =

BW_5_MHZ;

Quoted 3 lines

+        break;
  #endif
-    case BANDWIDTH_AUTO: return

-EOPNOTSUPP;

Quoted 3 lines

-    default: return -EINVAL;
+    case BANDWIDTH_AUTO:
+        return

-EOPNOTSUPP;

Quoted 2 lines

+    default:
+        return

-EINVAL;

Quoted 3 lines

      }

      /* Disable LNA, if any. An

error is returned if no LNA is present */

Review static int

Quoted 1 line
(quoted diff) +0 -0
@@ -395,7 +404,7 @@ static int

smsdvb_get_frontend(struct dv

Quoted 3 lines


      /* todo: */
      memcpy(fep,

&client->fe_params,

Quoted 1 line

-

   sizeof(struct dvb_frontend_parameters));

Quoted 1 line

+

    sizeof(struct dvb_frontend_parameters));

Quoted 9 lines


      return 0;
  }


--
To unsubscribe from this list: send the line

"unsubscribe linux-media" in

Quoted 2 lines

the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Quoted 8 lines

Cheers,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

The exist patches' order is 1..19, patch #1 has been replaced by patches 1.1 (1_1) and 1.2 (1_2), and patches 7 by patches 7.1 ... 7.3 (7_1, 7_2, 7_3).

When you finish to merge the patches which have been approved, please let me know where that merged tree is, and I'll copy it, and continue the patches from that point (kind of synchronization).

Thanks,

Uri