From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09FE6C4360C for ; Wed, 25 Sep 2019 15:10:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D5DFC21D7B for ; Wed, 25 Sep 2019 15:09:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438918AbfIYPJ7 (ORCPT ); Wed, 25 Sep 2019 11:09:59 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:58852 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727326AbfIYPJ7 (ORCPT ); Wed, 25 Sep 2019 11:09:59 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: koike) with ESMTPSA id 1D8B228D571 From: Helen Koike To: hverkuil-cisco@xs4all.nl, mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Cc: Helen Koike Subject: [PATCH] media: vidioc-queryctrl.rst: clarify combining READ_ONLY with WRITE_ONLY Date: Wed, 25 Sep 2019 12:09:45 -0300 Message-Id: <20190925150945.27706-1-helen.koike@collabora.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make it clear in the documentation that V4L2_CTRL_FLAG_READ_ONLY doesn't conflict with V4L2_CTRL_FLAG_WRITE_ONLY. Also make it clear that if both are combined then the control has read and write permissions. Signed-off-by: Helen Koike --- Hi, v4l2-compliance expects both flags for read and write permissions, so I would like to make it clear in the docs. Please let me know if this is not the case. Thanks Helen --- Documentation/media/uapi/v4l/vidioc-queryctrl.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/media/uapi/v4l/vidioc-queryctrl.rst b/Documentation/media/uapi/v4l/vidioc-queryctrl.rst index a3d56ffbf4cc..1d3aecdf679f 100644 --- a/Documentation/media/uapi/v4l/vidioc-queryctrl.rst +++ b/Documentation/media/uapi/v4l/vidioc-queryctrl.rst @@ -500,6 +500,11 @@ See also the examples in :ref:`control`. - 0x0004 - This control is permanently readable only. Any attempt to change the control will result in an ``EINVAL`` error code. + + .. note:: + + If combined with ``V4L2_CTRL_FLAG_WRITE_ONLY``, then both, read + and write are allowed. * - ``V4L2_CTRL_FLAG_UPDATE`` - 0x0008 - A hint that changing this control may affect the value of other @@ -523,6 +528,11 @@ See also the examples in :ref:`control`. where writing a value will cause the device to carry out a given action (e. g. motor control) but no meaningful value can be returned. + + .. note:: + + If combined with ``V4L2_CTRL_FLAG_READ_ONLY``, then both, read + and write are allowed. * - ``V4L2_CTRL_FLAG_VOLATILE`` - 0x0080 - This control is volatile, which means that the value of the -- 2.22.0