projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea80fb6
)
[media] gpio-ir: do not allow a timeout of 0
author
Sean Young
<sean@mess.org>
Thu, 26 Jan 2017 16:37:33 +0000
(14:37 -0200)
committer
Mauro Carvalho Chehab
<mchehab@s-opensource.com>
Fri, 24 Mar 2017 11:21:48 +0000
(08:21 -0300)
According to the documentation, a timeout of 0 turns off timeouts,
which is not the case.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/gpio-ir-recv.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/media/rc/gpio-ir-recv.c
b/drivers/media/rc/gpio-ir-recv.c
index 4a4895e4d5993afddf0ef667ced79b055f21035b..b4f773b9dc1d5004e6e3073420bd98fb73f96fbd 100644
(file)
--- a/
drivers/media/rc/gpio-ir-recv.c
+++ b/
drivers/media/rc/gpio-ir-recv.c
@@
-158,7
+158,7
@@
static int gpio_ir_recv_probe(struct platform_device *pdev)
rcdev->input_id.version = 0x0100;
rcdev->dev.parent = &pdev->dev;
rcdev->driver_name = GPIO_IR_DRIVER_NAME;
- rcdev->min_timeout =
0
;
+ rcdev->min_timeout =
1
;
rcdev->timeout = IR_DEFAULT_TIMEOUT;
rcdev->max_timeout = 10 * IR_DEFAULT_TIMEOUT;
if (pdata->allowed_protos)