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 EF62AC61DA4 for ; Sat, 11 Mar 2023 16:05:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230437AbjCKQFi (ORCPT ); Sat, 11 Mar 2023 11:05:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230378AbjCKQFe (ORCPT ); Sat, 11 Mar 2023 11:05:34 -0500 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CE4F75A6A for ; Sat, 11 Mar 2023 08:05:33 -0800 (PST) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-536bbe5f888so158461767b3.8 for ; Sat, 11 Mar 2023 08:05:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1678550733; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=K54OHgmN8fzCR8nXYTAA10aWWoOdsi0wXP2XNLDX9vc=; b=h34LVM3UqmqUgwxpTXBJ/4CwnImSFFUMozqSylfyzNzIg8rEUFi/BCA/5SfPAhPXSK zVyg4dkH/np2nYMcxgt34KGbvvU69/pstFffIbpXSdjTuqr7mHRcatJl8wcG+ChH9+dA A5V6TTYkNmvyKGoj+SnE4wGxe2nzztZ+0cYdHj/So+YjENl4RPexyIQNksQlU5AqWmJ0 wlqIaTJA+4pIrmihYkk+CWZVx2geZVmmUhYo5eOPcvWV+YR6xqVFHKFMSoocJOLnX6CR WwHQ52y8meSmlDKg6ykn0PXkeSs5FMhUOArFwyfH5cPvgTYIVyDHckPo68ZLvtp94miA EPcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678550733; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K54OHgmN8fzCR8nXYTAA10aWWoOdsi0wXP2XNLDX9vc=; b=OcHZqewuGDomKWzyXzyin2qIK+4AmYTJwRLsI4I0qCF+1XNAJAVE/jVzQ17QEyzk1V P/suEOKuEF1JfglyTd5ic3/cb/AQJNDo+K0kMswqczUqwLoE9Bz24mE3oq5PP/uUE12e JEYyCO2hjnLsqWXG3Ye70LqvDjOaVrHbrYk1Zx8NBO9S61xvcuPZxQz1wa8Z4JRkRjOG 9bPoNEmdBTKJnFx35BcHuBjFsVNHvmtNuleAjDw8DtuOdED+fU5TWTn80gF8WV1ppHsD yK+13sNAF/RRo2fNMzWGgExKDO2lMSAnAjX4Aq4OcjU6OXe5hKaRiCANFYT7ga+m0dUz Ioeg== X-Gm-Message-State: AO0yUKXrLLnWrjrYXWldnC61zOtiEJARzCSVcQ+ZopbE23KGQHEkbvBl r8LZD7lyby7Fry46IbQlawpKauqJyRkg8McjVU8YaQ== X-Google-Smtp-Source: AK7set9ic8NaN+kdm7NG2bG/3UThQQCFa78uyAWSZO+HX+TKv1qILKSdYFavvGkzUkH3l060xAj5J+UbUwRtinZAjtU= X-Received: by 2002:a81:400c:0:b0:540:62be:42b with SMTP id l12-20020a81400c000000b0054062be042bmr2285636ywn.6.1678550732657; Sat, 11 Mar 2023 08:05:32 -0800 (PST) MIME-Version: 1.0 References: <20230311111658.251951-1-krzysztof.kozlowski@linaro.org> <20230311111658.251951-2-krzysztof.kozlowski@linaro.org> In-Reply-To: <20230311111658.251951-2-krzysztof.kozlowski@linaro.org> From: Guenter Roeck Date: Sat, 11 Mar 2023 08:05:21 -0800 Message-ID: Subject: Re: [PATCH 2/5] i2c: owl: drop of_match_ptr for ID table To: Krzysztof Kozlowski Cc: Benson Leung , Guenter Roeck , Qii Wang , Matthias Brugger , AngeloGioacchino Del Regno , =?UTF-8?Q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , Ard Biesheuvel , Michal Simek , linux-i2c@vger.kernel.org, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-actions@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 11, 2023 at 3:17=E2=80=AFAM 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/i2c/busses/i2c-owl.c:510:34: error: =E2=80=98owl_i2c_of_match= =E2=80=99 defined but not used [-Werror=3Dunused-const-variable=3D] > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Guenter Roeck > --- > drivers/i2c/busses/i2c-owl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/i2c/busses/i2c-owl.c b/drivers/i2c/busses/i2c-owl.c > index 98882fe4e965..99ddd8894964 100644 > --- a/drivers/i2c/busses/i2c-owl.c > +++ b/drivers/i2c/busses/i2c-owl.c > @@ -519,7 +519,7 @@ static struct platform_driver owl_i2c_driver =3D { > .probe =3D owl_i2c_probe, > .driver =3D { > .name =3D "owl-i2c", > - .of_match_table =3D of_match_ptr(owl_i2c_of_match), > + .of_match_table =3D owl_i2c_of_match, > .probe_type =3D PROBE_PREFER_ASYNCHRONOUS, > }, > }; > -- > 2.34.1 >