Commit 0d2f79c2 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Mauro Carvalho Chehab

[media] staging: media: lirc: space around operator

checkpatch complains about missing space around operators.

[mchehab@osg.samsung.com: removed obsolete hunks]
Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent b790aea5
...@@ -193,7 +193,7 @@ static int lirc_claim(void) ...@@ -193,7 +193,7 @@ static int lirc_claim(void)
return 0; return 0;
} }
} }
out(LIRC_LP_CONTROL, LP_PSELECP|LP_PINITP); out(LIRC_LP_CONTROL, LP_PSELECP | LP_PINITP);
is_claimed = 1; is_claimed = 1;
return 1; return 1;
} }
...@@ -264,7 +264,7 @@ static void lirc_lirc_irq_handler(void *blah) ...@@ -264,7 +264,7 @@ static void lirc_lirc_irq_handler(void *blah)
init = 1; init = 1;
} }
timeout = timer/10; /* timeout after 1/10 sec. */ timeout = timer / 10; /* timeout after 1/10 sec. */
signal = 1; signal = 1;
level = lirc_get_timer(); level = lirc_get_timer();
do { do {
...@@ -286,7 +286,7 @@ static void lirc_lirc_irq_handler(void *blah) ...@@ -286,7 +286,7 @@ static void lirc_lirc_irq_handler(void *blah)
/* adjust value to usecs */ /* adjust value to usecs */
__u64 helper; __u64 helper;
helper = ((__u64)signal)*1000000; helper = ((__u64)signal) * 1000000;
do_div(helper, timer); do_div(helper, timer);
signal = (long)helper; signal = (long)helper;
...@@ -294,7 +294,7 @@ static void lirc_lirc_irq_handler(void *blah) ...@@ -294,7 +294,7 @@ static void lirc_lirc_irq_handler(void *blah)
data = signal - LIRC_SFH506_DELAY; data = signal - LIRC_SFH506_DELAY;
else else
data = 1; data = 1;
rbuf_write(PULSE_BIT|data); /* pulse */ rbuf_write(PULSE_BIT | data); /* pulse */
} }
lastkt = ktime_get(); lastkt = ktime_get();
#else #else
...@@ -331,7 +331,7 @@ static ssize_t lirc_read(struct file *filep, char __user *buf, size_t n, ...@@ -331,7 +331,7 @@ static ssize_t lirc_read(struct file *filep, char __user *buf, size_t n,
set_current_state(TASK_INTERRUPTIBLE); set_current_state(TASK_INTERRUPTIBLE);
while (count < n) { while (count < n) {
if (rptr != wptr) { if (rptr != wptr) {
if (copy_to_user(buf+count, &rbuf[rptr], if (copy_to_user(buf + count, &rbuf[rptr],
sizeof(int))) { sizeof(int))) {
result = -EFAULT; result = -EFAULT;
break; break;
...@@ -393,7 +393,7 @@ static ssize_t lirc_write(struct file *filep, const char __user *buf, size_t n, ...@@ -393,7 +393,7 @@ static ssize_t lirc_write(struct file *filep, const char __user *buf, size_t n,
for (i = 0; i < count; i++) { for (i = 0; i < count; i++) {
__u64 helper; __u64 helper;
helper = ((__u64)wbuf[i])*timer; helper = ((__u64)wbuf[i]) * timer;
do_div(helper, 1000000); do_div(helper, 1000000);
wbuf[i] = (int)helper; wbuf[i] = (int)helper;
} }
...@@ -664,7 +664,7 @@ static int __init lirc_parallel_init(void) ...@@ -664,7 +664,7 @@ static int __init lirc_parallel_init(void)
if (parport_claim(ppdevice) != 0) if (parport_claim(ppdevice) != 0)
goto skip_init; goto skip_init;
is_claimed = 1; is_claimed = 1;
out(LIRC_LP_CONTROL, LP_PSELECP|LP_PINITP); out(LIRC_LP_CONTROL, LP_PSELECP | LP_PINITP);
#ifdef LIRC_TIMER #ifdef LIRC_TIMER
if (debug) if (debug)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment