[media] staging: media: lirc_parallel.c: fix coding style
This patch fix checkpatch: WARNING: else is not generally useful after a break or return WARNING: line over 80 characters [m.chehab@samsung.com: Fix conflicts and use a better coding style for passing the parameters to parport_register_device()] Signed-off-by: Zheng Di <zhengdi05@gmail.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
ad86faada7
commit
381d7f79da
1 changed files with 16 additions and 16 deletions
|
@ -169,7 +169,7 @@ static unsigned int init_lirc_timer(void)
|
||||||
newtimer = (1000000*count)/timeelapsed;
|
newtimer = (1000000*count)/timeelapsed;
|
||||||
pr_info("%u Hz timer detected\n", newtimer);
|
pr_info("%u Hz timer detected\n", newtimer);
|
||||||
return newtimer;
|
return newtimer;
|
||||||
} else {
|
}
|
||||||
newtimer = (1000000*count)/timeelapsed;
|
newtimer = (1000000*count)/timeelapsed;
|
||||||
if (abs(newtimer - default_timer) > default_timer/10) {
|
if (abs(newtimer - default_timer) > default_timer/10) {
|
||||||
/* bad timer */
|
/* bad timer */
|
||||||
|
@ -182,11 +182,10 @@ static unsigned int init_lirc_timer(void)
|
||||||
return newtimer; /* use detected value */
|
return newtimer; /* use detected value */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
pr_notice("no timer detected\n");
|
pr_notice("no timer detected\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static int lirc_claim(void)
|
static int lirc_claim(void)
|
||||||
{
|
{
|
||||||
|
@ -661,7 +660,8 @@ static int __init lirc_parallel_init(void)
|
||||||
goto exit_device_put;
|
goto exit_device_put;
|
||||||
}
|
}
|
||||||
ppdevice = parport_register_device(pport, LIRC_DRIVER_NAME,
|
ppdevice = parport_register_device(pport, LIRC_DRIVER_NAME,
|
||||||
pf, kf, lirc_lirc_irq_handler, 0, NULL);
|
pf, kf, lirc_lirc_irq_handler, 0,
|
||||||
|
NULL);
|
||||||
parport_put_port(pport);
|
parport_put_port(pport);
|
||||||
if (ppdevice == NULL) {
|
if (ppdevice == NULL) {
|
||||||
pr_notice("parport_register_device() failed\n");
|
pr_notice("parport_register_device() failed\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue