From patchwork Mon Dec 2 10:30:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 180593 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp5012147ile; Mon, 2 Dec 2019 02:31:14 -0800 (PST) X-Google-Smtp-Source: APXvYqy0saLgfDLPlpPJ+h7L5Z0/nq1FLZmYDNNO0LzqwilLIY/QL/tc6k8xnsFR4eFz0B+gV/BT X-Received: by 2002:a1c:1b15:: with SMTP id b21mr19857342wmb.104.1575282674696; Mon, 02 Dec 2019 02:31:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575282674; cv=none; d=google.com; s=arc-20160816; b=Y9WFgW+fiYmp81dpsr15ViC+5Ct7IH3dwuXTOqX9ZUHA6DQP9cB4Pp2Lebkifxqd7m l7PAT5Lp8YUFzPapVUBj8QOvxAlu0aCCos2WBESjEflvjO6UNaQcMF+Djf69BCiZB4qn y4UZ6Udj0+H/1Qu183F+IB7ya6A1gjt0qriZYQU31mJPsYafyvsBYtlOHK2kiiQ1M4C+ yKypx3ulWusWcpF1d0a0nYd9X3K81pVwhWghBiJIMzRFwTV7mpfahYDaR5K0plk5s9F6 ElWTSUq9VOI4MCgMrz42K+ehgkddYIwhO+ITbiKHWhidmV5pDgvsQ2SdQ0un7i3XlSkp bLOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=mwGk83ys5wzg6iRWDi8s7AoiHaTu4B4X10LSHfqyk8w=; b=As3eCaua8JdmA3iWGqmD3Sa2ltF/nNzmmrWV3aYwhSuMqh/pymfDTQ3ARYHSTttcL9 LsSvObSeG1i8+EO+EDdqI3xukC5ltXjVLXKmylp35cBcbMYRGtnwtnWYAxY/6lq6bP+g 3p6uk92XffqwbV1XWPXL9oAUPmPkf4iNRZHqt8N5vhLDlG/AhydB96TASHLwqhymnlQS OUgMuBXh7Nt3D4yu4ySPw2MZZYbOL+gJkwz1WWmttaXfDvdlqP5tiCPCWoWqaE/8J/Y0 bCvPOCnd78WkaHyl0HZMbH4COGWkyQ2vTbKXR+kkuaATSQKuvu1yfDCb2u15PkSB23PJ fufg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Xbzty9L/"; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e21si4015152edq.191.2019.12.02.02.31.14; Mon, 02 Dec 2019 02:31:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Xbzty9L/"; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727416AbfLBKbO (ORCPT + 15 others); Mon, 2 Dec 2019 05:31:14 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:40070 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727366AbfLBKbN (ORCPT ); Mon, 2 Dec 2019 05:31:13 -0500 Received: by mail-wm1-f66.google.com with SMTP id t14so5034423wmi.5 for ; Mon, 02 Dec 2019 02:31:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=mwGk83ys5wzg6iRWDi8s7AoiHaTu4B4X10LSHfqyk8w=; b=Xbzty9L/X10yLpFPquKRyqRToOCooiNpWeoN2NgszE+xNlP5yTprOUlElPuc4oDgV/ OC7KYkBj8VuhrLYeBVSe93WnDA1EYPC0/dA+bHdACYnLrlEnzaPTb8bVQQQKpwZXIB6R NlmoG52MvfePxweymljb7ACZ/iqjNynRBp+vEfHigWhYLWn3Ak6RFeOcXNpr7BFCSzXS Gf7JdhMsL/WByFDgqHNUBzk+Qmdj6tTHTxfp1N52v0oHad6K3ebxvscpOYi6CH0ng61r JJ1T0S5y8WJzVkGDs8iWH9sQCnVooc0djduRd+jW+sjYAi6pRmM+kE+HpzqXKU8Q8ioI SkFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mwGk83ys5wzg6iRWDi8s7AoiHaTu4B4X10LSHfqyk8w=; b=hk7N5wBnX3UYqFK1R4EkZE3H8FfbeYCg430EqNKY0XCD7sJyelY/1ob5tK7T27iUVC XlRvPNpNePHyOHsvYLLI7Fgq2LDgQuf67NJQ6ADWRUuQAlZAvDseHGfjRKiIKvg5j5zo z7s4T8UcJ3tqCoqJL+YqAiCV3hHjV5J5waSJ45sCRHhUxcvXO9YEgiRtu7HXLo4Xx0jl iQgU9HRPD8m7wzewWRQKppluq5ciBSif3/bKcA0VyQpKbn7c3oIodZOutD5aMtOT4v0v QJlDGoB5VW8bYTVT/EBDi48nA+etxd6tV0Bb8I8GdHW7ArofD3uRHSvmruoaPBAk69xU WLlQ== X-Gm-Message-State: APjAAAUvLaMKXj1kSsvynkI0VFFABdlpjWQYGsJGcdh4xw8Xk+341jkZ +4P05adnX6vzCcRAZyo6pLEMjpi71NA= X-Received: by 2002:a7b:c947:: with SMTP id i7mr8328577wml.71.1575282671726; Mon, 02 Dec 2019 02:31:11 -0800 (PST) Received: from localhost.localdomain ([2.27.35.155]) by smtp.gmail.com with ESMTPSA id r6sm26402860wrq.92.2019.12.02.02.31.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2019 02:31:11 -0800 (PST) From: Lee Jones To: stable@vger.kernel.org Subject: [PATCH 4.19 06/15] media: v4l2-ctrl: fix flags for DO_WHITE_BALANCE Date: Mon, 2 Dec 2019 10:30:41 +0000 Message-Id: <20191202103050.2668-6-lee.jones@linaro.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191202103050.2668-1-lee.jones@linaro.org> References: <20191202103050.2668-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Eugen Hristev [ Upstream commit a0816e5088baab82aa738d61a55513114a673c8e ] Control DO_WHITE_BALANCE is a button, with read only and execute-on-write flags. Adding this control in the proper list in the fill function. After adding it here, we can see output of v4l2-ctl -L do_white_balance 0x0098090d (button) : flags=write-only, execute-on-write Signed-off-by: Eugen Hristev Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Lee Jones --- drivers/media/v4l2-core/v4l2-ctrls.c | 1 + 1 file changed, 1 insertion(+) -- 2.24.0 diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c index 0986572bbe88..f4ebff347d7a 100644 --- a/drivers/media/v4l2-core/v4l2-ctrls.c +++ b/drivers/media/v4l2-core/v4l2-ctrls.c @@ -1145,6 +1145,7 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type, case V4L2_CID_FLASH_STROBE_STOP: case V4L2_CID_AUTO_FOCUS_START: case V4L2_CID_AUTO_FOCUS_STOP: + case V4L2_CID_DO_WHITE_BALANCE: *type = V4L2_CTRL_TYPE_BUTTON; *flags |= V4L2_CTRL_FLAG_WRITE_ONLY | V4L2_CTRL_FLAG_EXECUTE_ON_WRITE;