Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A51C0C6FD1C for ; Tue, 14 Mar 2023 08:35:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229840AbjCNIfN (ORCPT ); Tue, 14 Mar 2023 04:35:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbjCNIfL (ORCPT ); Tue, 14 Mar 2023 04:35:11 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C709653DA9; Tue, 14 Mar 2023 01:35:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7CCF3B818B8; Tue, 14 Mar 2023 08:35:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49BDBC433EF; Tue, 14 Mar 2023 08:34:59 +0000 (UTC) Message-ID: <74ae8afe-c537-1714-77ec-8a80d8ddad69@xs4all.nl> Date: Tue, 14 Mar 2023 09:34:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Content-Language: en-US To: Guenter Roeck , Krzysztof Kozlowski Cc: Joe Tessler , Mauro Carvalho Chehab , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Thierry Reding , Jonathan Hunter , Manivannan Sadhasivam , Michael Tretter , Pengutronix Kernel Team , Jacopo Mondi , Kieran Bingham , Laurent Pinchart , =?UTF-8?Q?Niklas_S=c3=b6derlund?= , Rui Miguel Silva , Wenyou Yang , Bin Liu , Matthias Brugger , AngeloGioacchino Del Regno , Minghsiu Tsai , Houlong Wei , Andrew-CT Chen , Andrzej Pietrasiewicz , Jacek Anaszewski , Sylwester Nawrocki , Patrice Chotard , Yong Deng , Paul Kocialkowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , "Lad, Prabhakar" , Ezequiel Garcia , Philipp Zabel , Sean Young , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-rockchip@lists.infradead.org References: <20230312131318.351173-1-krzysztof.kozlowski@linaro.org> From: Hans Verkuil In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/03/2023 23:01, Guenter Roeck wrote: > On Sun, Mar 12, 2023 at 02:12:51PM +0100, Krzysztof Kozlowski wrote: >> The driver can match only via the DT table so the table should be always >> used and the of_match_ptr does not have any sense (this also allows ACPI >> matching via PRP0001, even though it might not be relevant here). >> >> drivers/media/cec/i2c/ch7322.c:583:34: error: ‘ch7322_of_match’ defined but not used [-Werror=unused-const-variable=] >> >> Signed-off-by: Krzysztof Kozlowski > > Reviewed-by: Guenter Roeck > > FWIW: There is also > https://patches.linaro.org/project/linux-media/patch/20230215214724.3798917-1-linux@roeck-us.net/ I superseded that patch in patchwork in favor of this patch since this is part of a larger series. Krzysztof, please let me know if you will take this series yourself or want me to make a PR for it. Regards, Hans > > The lack of ACPI support is a real problem and very relevant. > > Guenter > >> --- >> drivers/media/cec/i2c/ch7322.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/media/cec/i2c/ch7322.c b/drivers/media/cec/i2c/ch7322.c >> index 34fad7123704..3c6e6496a001 100644 >> --- a/drivers/media/cec/i2c/ch7322.c >> +++ b/drivers/media/cec/i2c/ch7322.c >> @@ -589,7 +589,7 @@ MODULE_DEVICE_TABLE(of, ch7322_of_match); >> static struct i2c_driver ch7322_i2c_driver = { >> .driver = { >> .name = "ch7322", >> - .of_match_table = of_match_ptr(ch7322_of_match), >> + .of_match_table = ch7322_of_match, >> }, >> .probe_new = ch7322_probe, >> .remove = ch7322_remove,