Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3333958pxj; Tue, 1 Jun 2021 02:55:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2Z1FfcJqaKFxefH9yRTvxtZNZGljYT1gaDe6yFBaMEtFyZUQ6y7T4Ub8vUPH8GcLv/yHF X-Received: by 2002:a5e:a912:: with SMTP id c18mr20504038iod.74.1622541336991; Tue, 01 Jun 2021 02:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622541336; cv=none; d=google.com; s=arc-20160816; b=f37TQmSCgWiRT/wWbT01x1N1uZbXYcuCcLp6dxmbsFbbO6Mc61drxsR888gygKgDe3 ZAm6hCspdc9OTdcnrq+tTjcG/T1ry/hfboeQ+NT6ZvRGXBIkGISz30fU+NgnbIWOc6hE xzRvTASCopV4sFiC0bIJMe1xeh2WtpilWOpm4bvsTyP7DYK59GGRMFgSdaLJFqnMNxaS wV7xde1iaLRvAM7Am9umd5Ze7D83VAOfNMefM09UYBFMYf9R8rLhRBXYheg80cLYITB+ dEjK5megShmXLlI+UZpsZ0CBy/UuJ2e3LySl9Er/2T/QEQZ+nI5Y9B2KgFOGJ/y31FtN p54g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=glY7/5MqaacIRyCFuAS0DuvkNjFyvyRv+PeYozRwvuA=; b=gDAhn4AUn8psipPyOUfP8SDwBmMw9sGv0j8cgJztD3AKp3xSZQjVfJ+klK/8p0wuN/ QuWPXlXY+tBC9h8O5Im1HT44nMxfTQiD53AXh+IpL+SrpvZhxO3JIWHpqNtBEbQ5gw9q C4RRbvuhRCZyYQx4Pmyd7WMKTiXVaVjX4/GmtJRUwZfAVokwnkePPUXhgt/6xtvBWiVe dGZ1lq791kiUinZOftq2wez0D3auyqeIknyT2oTNeaE/hE1YeZJ5IBlm8NUQtFhsg41Q s3DIRrOeYIbfd4iSNYPN/QsO+vRyDoN9ayGLm3HjJsTZ0BGdlJF1X5ZfXgIAyvM6sCbZ pptg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k25si17829805jap.38.2021.06.01.02.55.24; Tue, 01 Jun 2021 02:55:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233126AbhFAJzA (ORCPT + 99 others); Tue, 1 Jun 2021 05:55:00 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:6111 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232958AbhFAJy7 (ORCPT ); Tue, 1 Jun 2021 05:54:59 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FvS89279szYnRh; Tue, 1 Jun 2021 17:50:33 +0800 (CST) Received: from dggpemm000001.china.huawei.com (7.185.36.245) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 1 Jun 2021 17:53:16 +0800 Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm000001.china.huawei.com (7.185.36.245) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 1 Jun 2021 17:53:15 +0800 From: Tong Tiangen To: Sean Young , Mauro Carvalho Chehab CC: , , "Tong Tiangen" Subject: [PATCH -next] media: rc: Fix a typo in lirc_ioctl Date: Tue, 1 Jun 2021 18:02:35 +0800 Message-ID: <20210601100235.69935-1-tongtiangen@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm000001.china.huawei.com (7.185.36.245) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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