From patchwork Fri Jul 1 08:01:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 9209451 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 24C9B60221 for ; Fri, 1 Jul 2016 08:18:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 161D82868E for ; Fri, 1 Jul 2016 08:18:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0AE9E28696; Fri, 1 Jul 2016 08:18:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1BFE2868E for ; Fri, 1 Jul 2016 08:18:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752766AbcGAIKZ (ORCPT ); Fri, 1 Jul 2016 04:10:25 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:49931 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751912AbcGAIE2 (ORCPT ); Fri, 1 Jul 2016 04:04:28 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O9M01GV2MB0JSD0@mailout1.samsung.com>; Fri, 01 Jul 2016 17:01:48 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [172.20.52.113]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 90.23.05160.C6326775; Fri, 1 Jul 2016 17:01:48 +0900 (KST) X-AuditID: cbfee68e-f79266d000001428-bd-5776236c14ff Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 13.19.04429.B6326775; Fri, 1 Jul 2016 01:01:47 -0700 (MST) Received: from samsunx.samsung ([10.113.63.54]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O9M00G9YMAVFJA0@mmp2.samsung.com>; Fri, 01 Jul 2016 17:01:47 +0900 (KST) From: Andi Shyti To: Mauro Carvalho Chehab Cc: Joe Perches , Sean Young , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Shyti , Andi Shyti Subject: [PATCH v2 15/15] [media] include: lirc: add LIRC_GET_LENGTH command Date: Fri, 01 Jul 2016 17:01:38 +0900 Message-id: <1467360098-12539-16-git-send-email-andi.shyti@samsung.com> X-Mailer: git-send-email 2.8.1 In-reply-to: <1467360098-12539-1-git-send-email-andi.shyti@samsung.com> References: <1467360098-12539-1-git-send-email-andi.shyti@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNLMWRmVeSWpSXmKPExsWyRsSkUDdHuSzc4NxFFovtR56xWiz+8ZzJ Yvb9xywWl3fNYbPo2bCV1WL1swqLhU+/sziwe1xf8onZY8kba48t/XfZPb6susbs0bdlFaPH 501yAWxRXDYpqTmZZalF+nYJXBnPFzYyFvxjrVj46ChLA+M1li5GDg4JAROJWR80uxg5gUwx iQv31rOB2EICKxgl9jRLQ8RNJFZMecvexcgFFJ/FKPFs1jlWCOcjo8Tq7X2MIFVsApoSTbd/ sIEMFREwljj3Qx0kzCxwgFGit9sFJCws4COx5VUSSJhFQFViw9U1YLt4BdwlLi/sZIPYJSdx efoDMJsTKH733S5GiHvcJObuugd2g4TAInaJrRtOs0AMEpD4NvkQ1C+yEpsOMEP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Mssz630+pxdYu2h1wdHa8XktUaNDKLMm/njvrl9959VpcTGs1T79m8EW7 p4G3pVar+NVcPGRsde7eit9MnzN/zb05Y5/R3Kknpi6omRk8gWmqteCb6XllWn/UyztfGRWn xM+69Tqz8KHQ9BeL5k8N+rGNe1qzaDjfjAfMk1cJPC/PndX3m0naWImlOCPRUIu5qDgRAHtL YOi8AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Added the get length command to allow userspace users to check on the data length. Signed-off-by: Andi Shyti --- include/uapi/linux/lirc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/lirc.h b/include/uapi/linux/lirc.h index 4b3ab29..801e5f8 100644 --- a/include/uapi/linux/lirc.h +++ b/include/uapi/linux/lirc.h @@ -106,6 +106,7 @@ /* code length in bits, currently only for LIRC_MODE_LIRCCODE */ #define LIRC_GET_LENGTH _IOR('i', 0x0000000f, __u32) +#define LIRC_SET_LENGTH _IOW('i', 0x00000010, __u32) #define LIRC_SET_SEND_MODE _IOW('i', 0x00000011, __u32) #define LIRC_SET_REC_MODE _IOW('i', 0x00000012, __u32)