[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210601100235.69935-1-tongtiangen@huawei.com>
Date: Tue, 1 Jun 2021 18:02:35 +0800
From: Tong Tiangen <tongtiangen@...wei.com>
To: Sean Young <sean@...s.org>,
Mauro Carvalho Chehab <mchehab@...nel.org>
CC: <linux-media@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
"Tong Tiangen" <tongtiangen@...wei.com>
Subject: [PATCH -next] media: rc: Fix a typo in lirc_ioctl
Fix a typo in lirc_ioctl, apparently min_timeout should be used
in this case.
Fixes: e589333f346b ("V4L/DVB: IR: extend interfaces to support more device settings")
Signed-off-by: Tong Tiangen <tongtiangen@...wei.com>
---
drivers/media/rc/lirc_dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/rc/lirc_dev.c b/drivers/media/rc/lirc_dev.c
index 116daf90c858..abbeae2ccd4a 100644
--- a/drivers/media/rc/lirc_dev.c
+++ b/drivers/media/rc/lirc_dev.c
@@ -534,7 +534,7 @@ static long lirc_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
/* Generic timeout support */
case LIRC_GET_MIN_TIMEOUT:
- if (!dev->max_timeout)
+ if (!dev->min_timeout)
ret = -ENOTTY;
else
val = dev->min_timeout;
--
2.18.0.huawei.25
Powered by blists - more mailing lists