summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-09-08 12:51:56 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-21 01:04:53 -0200
commit9d10f3d7e73d3428555da97134fc597710a55f39 (patch)
tree99a3817fbe943cbceea5feb7c76f14bcfb4f1c40
parent1ae2c5893d091bdfa382cbcfa3e09461f3a6c884 (diff)
downloadlinux-9d10f3d7e73d3428555da97134fc597710a55f39.tar.bz2
V4L/DVB: ix2505v: make scripts/checkpatch.pl happy
WARNING: please, no space before tabs + * ^IPOR = Power on Reset (VCC H=<2.2v L=>2.2v)$ WARNING: unnecessary whitespace before a quoted newline + deb_info("Frq=%d x=%d N=%d A=%d \n", frequency, x, N, A); WARNING: please, no space before tabs +^Ielse ^I^I/*frequency up to 2150000*/$ WARNING: unnecessary whitespace before a quoted newline + deb_info("Data 0=[%x%x%x%x] \n", data[0], data[1], data[2], data[3]); WARNING: unnecessary whitespace before a quoted newline + deb_info("Data 2=[%x%x] \n", data[2], data[3]); Cc: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/frontends/ix2505v.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/media/dvb/frontends/ix2505v.c b/drivers/media/dvb/frontends/ix2505v.c
index e9fe6da6d162..55f2eba7bc96 100644
--- a/drivers/media/dvb/frontends/ix2505v.c
+++ b/drivers/media/dvb/frontends/ix2505v.c
@@ -26,9 +26,10 @@
#include "ix2505v.h"
static int ix2505v_debug;
-#define dprintk(level, args...) \
- do { if (ix2505v_debug & level) printk(KERN_DEBUG "ix2505v: " args); \
- } while (0)
+#define dprintk(level, args...) do { \
+ if (ix2505v_debug & level) \
+ printk(KERN_DEBUG "ix2505v: " args); \
+} while (0)
#define deb_info(args...) dprintk(0x01, args)
#define deb_i2c(args...) dprintk(0x02, args)
@@ -47,7 +48,7 @@ struct ix2505v_state {
*
* byte1 = address
* byte2;
- * POR = Power on Reset (VCC H=<2.2v L=>2.2v)
+ * POR = Power on Reset (VCC H=<2.2v L=>2.2v)
* FL = Phase Lock (H=lock L=unlock)
* RD0-2 = Reserved internal operations
*
@@ -166,7 +167,7 @@ static int ix2505v_set_params(struct dvb_frontend *fe,
data[1] = (N << 5) | (A & 0x1f);
data[2] = 0x81 | ((cc & 0x3) << 5) ; /*PD5,PD4 & TM = 0|C1,C0|REF=1*/
- deb_info("Frq=%d x=%d N=%d A=%d \n", frequency, x, N, A);
+ deb_info("Frq=%d x=%d N=%d A=%d\n", frequency, x, N, A);
if (frequency <= 1065000)
local_osc = (6 << 5) | 2;
@@ -182,12 +183,11 @@ static int ix2505v_set_params(struct dvb_frontend *fe,
local_osc = (4 << 5);
else if (frequency <= 1942000)
local_osc = (5 << 5);
- else /*frequency up to 2150000*/
+ else /*frequency up to 2150000*/
local_osc = (6 << 5);
data[3] = local_osc; /* all other bits set 0 */
-
if (b_w <= 10000)
lpf = 0xc;
else if (b_w <= 12000)
@@ -212,7 +212,7 @@ static int ix2505v_set_params(struct dvb_frontend *fe,
lpf = 0xb;
deb_info("Osc=%x b_w=%x lpf=%x\n", local_osc, b_w, lpf);
- deb_info("Data 0=[%x%x%x%x] \n", data[0], data[1], data[2], data[3]);
+ deb_info("Data 0=[%x%x%x%x]\n", data[0], data[1], data[2], data[3]);
if (fe->ops.i2c_gate_ctrl)
fe->ops.i2c_gate_ctrl(fe, 1);
@@ -226,13 +226,12 @@ static int ix2505v_set_params(struct dvb_frontend *fe,
len = 1;
ret |= ix2505v_write(state, &data[2], len); /* write byte 4 only */
-
msleep(10);
data[2] |= ((lpf >> 2) & 0x3) << 3; /* lpf */
data[3] |= (lpf & 0x3) << 2;
- deb_info("Data 2=[%x%x] \n", data[2], data[3]);
+ deb_info("Data 2=[%x%x]\n", data[2], data[3]);
len = 2;
ret |= ix2505v_write(state, &data[2], len); /* write byte 4 & 5 */