Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6853678pxb; Wed, 17 Feb 2021 15:44:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuyTxcoT5mbRK7QWlLzHbJ6zo6di692SBEiU1F8eYTJ+y0rWOgK9bVX5UX4LORXjcjyLaB X-Received: by 2002:a17:906:ae50:: with SMTP id lf16mr1400857ejb.66.1613605472495; Wed, 17 Feb 2021 15:44:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613605472; cv=none; d=google.com; s=arc-20160816; b=Sx4+WstGeR2Cmpgg1BBe0RZoOzH9mZ98uazjdxRdERBctkZfmX/3JnqW/1mTU6cLKI NUG+ikv+UT2UrKLPQzJdKHjy2/LA0MNreUKo+twgIs0Fh9lOJBt/9YXgr4sW5Jrzr/6I KrADvUJrKOQq3apMzLX3bI4WKG+bcLxS6H4AGtk6Nzsh/ANdLkg1v24YGostCaxgg8oe j35Nq6PZW6XUPBOBwhmkHWeGT7RM9GhbgxOYzYxjVY7K2Q06xYva1EpPRbHq4jQVBgyn aI5EiPB3MsG6K1l60dQ6WADkbEDc5880PeZboIycevb+mjDqZGTDKCCIq/4spCCWBqe6 UWMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=HVfGu++4BV6PFNDSYzZjy9kAL54M880pQ5198FJAC0k=; b=j/xrsyPU6cbO5oDHBuP7uJkxim37fxohvvx2hStyVKD7tRb4s+uPeDA5w14/X0UGfz Y46prEr9Zm6pnbte0BoV29AvuKLjq+ch8KGaDbAeKiy3+777o/N7Ak5WWBy/6eKbnq2h xlPbLRjtkkRGjJZMnXNQa2NpZvmO24BW6HGoDNILglFk4Fq0yXNbDgykyKu0n7iSmFVp SWFO6hdLMcC2/jvQdQJW3mUx4xVfaJjh6mZAcD7tY58Q/ooJIE9XHVkfhIwpSicCOP9L NtOEjQRJ99LD8oZ9qlBkgI8w/T7kUhsVvLjnD4XUCm+sEXhuprwuj6rUojvn2ZPNQN0Q EVPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t7IoIIYb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si2646618edt.50.2021.02.17.15.43.23; Wed, 17 Feb 2021 15:44:32 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=t7IoIIYb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233035AbhBQWM5 (ORCPT + 99 others); Wed, 17 Feb 2021 17:12:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232986AbhBQWMz (ORCPT ); Wed, 17 Feb 2021 17:12:55 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F81AC061788 for ; Wed, 17 Feb 2021 14:12:15 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id v5so265621lft.13 for ; Wed, 17 Feb 2021 14:12:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HVfGu++4BV6PFNDSYzZjy9kAL54M880pQ5198FJAC0k=; b=t7IoIIYbHnXIIPlwrasi0osgAEbXYwl8rH+PJymHu8wmfpdIwrztDwGti0NkKVRJ0j pWi58wOUfZI6CHSl2MivrqWfkRlaiiNtMz2mkwpXRID38AM/crcwmdcu129SyRhp+nMp tXZOkGZZS8idsDKRpZ0TOpmSvm+sODWZd2x+Tq7NAdYUZXG8EmRKdTlkZhiJSd1tqan7 ZEll6hkrlRAeFautW5p2mnYGlaCQxRNthSpjz1oCmnseaoglBlYkgFGnzMNE1G62H7hJ UfqdYCRFaZq3VfhJcMzUFbyC8cva7Vryw7KOuBywvLmBYVMiHkYWQBuIwux+JlqzcbEx pWHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HVfGu++4BV6PFNDSYzZjy9kAL54M880pQ5198FJAC0k=; b=qlL8ASS+VPGCpVliQulWrvm/zaoJdlwe6woEMCKfpCGqIwAcrAiqBcWxa6yQGiDOSE Z1oJIFT0WgcXQLJxRf4jp/vPsxxulHlJFApBZWfJELWDpMJ3ju/GTeNBeL2AMsUQnYr8 rCeazKpDWEsf+/HfxdMLQ/bRwcSrKvVCTAgdxL6AH+HhRZc2X3sYp7Z7yRkyI5pfhL1b TWVklWwczkQa3X5nOLimTD6oHz4v18PwWHayAf+/7Z+I3fxxnbxEkO7B4ZTj2VdXpijb wFWAhpyLmF72rPuHYFsnbTx7s8ps3k1603h9T9qwx9v/wrsSWWQLNL+GxyyqaucFZCNV 8qDw== X-Gm-Message-State: AOAM532ggLW6X0lJDsS/1SlDhRAXqMT6mTT7tcH8BFXo8GrnKPtZjSNm YupbNkxK+2veRHvSAOuuK2fpYA== X-Received: by 2002:a19:5f0b:: with SMTP id t11mr587147lfb.193.1613599933526; Wed, 17 Feb 2021 14:12:13 -0800 (PST) Received: from localhost.localdomain ([85.249.43.69]) by smtp.googlemail.com with ESMTPSA id b7sm382926ljk.52.2021.02.17.14.12.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Feb 2021 14:12:12 -0800 (PST) From: Andrey Konovalov To: junak.pub@gmail.com, robert.foss@linaro.org, sakari.ailus@linux.intel.com Cc: todor.too@gmail.com, agross@kernel.org, bjorn.andersson@linaro.org, mchehab@kernel.org, laurent.pinchart@ideasonboard.com, jacopo@jmondi.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Andrey Konovalov Subject: [PATCH v2 1/3] v4l: common: v4l2_get_link_freq: add printing a warning Date: Thu, 18 Feb 2021 01:11:32 +0300 Message-Id: <20210217221134.2606-2-andrey.konovalov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210217221134.2606-1-andrey.konovalov@linaro.org> References: <20210217221134.2606-1-andrey.konovalov@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Print a warning if V4L2_CID_LINK_FREQ control is not implemented. Signed-off-by: Andrey Konovalov --- drivers/media/v4l2-core/v4l2-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-common.c b/drivers/media/v4l2-core/v4l2-common.c index 133d20e40f82..f1abdf2ab4ec 100644 --- a/drivers/media/v4l2-core/v4l2-common.c +++ b/drivers/media/v4l2-core/v4l2-common.c @@ -461,6 +461,8 @@ s64 v4l2_get_link_freq(struct v4l2_ctrl_handler *handler, unsigned int mul, freq = qm.value; } else { + pr_warn("%s: V4L2_CID_LINK_FREQ not implemented\n", __func__); + if (!mul || !div) return -ENOENT; -- 2.17.1