aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/tm6000
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-07-05 16:09:11 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 14:29:35 -0400
commit02c71055e547e49d974153b46a30eba2cbc8a00c (patch)
tree529a4c234e0b0af6040d7efe13c2fa277dc93775 /drivers/staging/tm6000
parentd064f960650d64e2564cd505a6e40c4ac359b6f3 (diff)
V4L/DVB: tm6000-input: Make checkpatch.pl happy
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging/tm6000')
-rw-r--r--drivers/staging/tm6000/tm6000-input.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/tm6000/tm6000-input.c b/drivers/staging/tm6000/tm6000-input.c
index 53336ffee8d..32f7a0af693 100644
--- a/drivers/staging/tm6000/tm6000-input.c
+++ b/drivers/staging/tm6000/tm6000-input.c
@@ -40,7 +40,7 @@ MODULE_PARM_DESC(enable_ir, "enable ir (default is enable");
40 40
41#undef dprintk 41#undef dprintk
42 42
43#define dprintk(fmt, arg... ) \ 43#define dprintk(fmt, arg...) \
44 if (ir_debug) { \ 44 if (ir_debug) { \
45 printk(KERN_DEBUG "%s/ir: " fmt, ir->name , ## arg); \ 45 printk(KERN_DEBUG "%s/ir: " fmt, ir->name , ## arg); \
46 } 46 }
@@ -119,13 +119,13 @@ static void tm6000_ir_urb_received(struct urb *urb)
119 struct tm6000_core *dev = urb->context; 119 struct tm6000_core *dev = urb->context;
120 struct tm6000_IR *ir = dev->ir; 120 struct tm6000_IR *ir = dev->ir;
121 int rc; 121 int rc;
122 122
123 if (urb->status != 0) 123 if (urb->status != 0)
124 printk(KERN_INFO "not ready\n"); 124 printk(KERN_INFO "not ready\n");
125 else if (urb->actual_length > 0) 125 else if (urb->actual_length > 0)
126 memcpy (ir->urb_data, urb->transfer_buffer, urb->actual_length); 126 memcpy(ir->urb_data, urb->transfer_buffer, urb->actual_length);
127 127
128 dprintk ("data %02x %02x %02x %02x\n", ir->urb_data[0], 128 dprintk("data %02x %02x %02x %02x\n", ir->urb_data[0],
129 ir->urb_data[1], ir->urb_data[2], ir->urb_data[3]); 129 ir->urb_data[1], ir->urb_data[2], ir->urb_data[3]);
130 130
131 ir->key = 1; 131 ir->key = 1;
@@ -140,7 +140,7 @@ static int default_polling_getkey(struct tm6000_IR *ir,
140 int rc; 140 int rc;
141 u8 buf[2]; 141 u8 buf[2];
142 142
143 if(ir->wait && !&dev->int_in) { 143 if (ir->wait && !&dev->int_in) {
144 poll_result->rc_data[0] = 0xff; 144 poll_result->rc_data[0] = 0xff;
145 return 0; 145 return 0;
146 } 146 }
@@ -159,10 +159,10 @@ static int default_polling_getkey(struct tm6000_IR *ir,
159 159
160 msleep(10); 160 msleep(10);
161 161
162 dprintk ("read data=%02x\n", buf[0]); 162 dprintk("read data=%02x\n", buf[0]);
163 if (rc < 0) { 163 if (rc < 0)
164 return rc; 164 return rc;
165 } 165
166 poll_result->rc_data[0] = buf[0]; 166 poll_result->rc_data[0] = buf[0];
167 } 167 }
168 return 0; 168 return 0;