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 D8179C74A4B for ; Sat, 11 Mar 2023 16:04:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230146AbjCKQE4 (ORCPT ); Sat, 11 Mar 2023 11:04:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230454AbjCKQEv (ORCPT ); Sat, 11 Mar 2023 11:04:51 -0500 Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F5A210D752 for ; Sat, 11 Mar 2023 08:04:50 -0800 (PST) Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-540cb2fb5b9so54047177b3.3 for ; Sat, 11 Mar 2023 08:04:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1678550689; 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=/G/X5+IzPvIp/u0h6IkNiabirE8Y9puo1twyHDWLaMA=; b=VJCB1uC5JrWowq+lL5LKURGf9F6grJOUQgJ0kSJDYl76qXzRvwoWda/HsCN3ZQfB6G DSa+tDW+3NlqICRdnvqurB7WtF4geijT6FWAWjF5vYBcGOMBSO+1Q9eRCHPobKdAjwQ1 5IMWSXKnOoZV9qWXWjzPcRwhEtN3R1J/XMn5Camro6uha3/YC1gYfzuJD+0Bifq/2szQ 2yglUr8Wne8GE1Q1FEjzSeQqs8bga5ij4uo5HJrjsjP7Q+j5GYzuIbycLrUsL03VsSpA FXTf1oCE4sO7FH0IIq6YUPwhvli0m6vKvVi25DbrRop6B43Y22XPpMy33rMhzYsz7vuk cj+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678550689; 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=/G/X5+IzPvIp/u0h6IkNiabirE8Y9puo1twyHDWLaMA=; b=fkKusy4rtMzf7C+2S/oOtpexMQVp1Wmb/Iq/sxyQC6yczhEz5/6qr3u5FGW7Zg4Kmp zbtTQVr3ILSM8fo/zG68UN401hDKXoZnmDmYKVwOSlijVxjWZ2x1j7La3gOvaStgByVu wXkvb+i4TXWtFCJyGU4dgYhdiTb0sM2DXsjSj0DDmbc/dWRvJwrR0oBICoxzy34raqmM /ut8GvzyXtZQO1pGdQ1M4P6q58jw8jST9srFwuzDx4jarc7Imbyqj88fTdZZcsUl1tdT YXBErnETS1boOVKfK1vug1W7N7U+aJ1cPsEPBZBMCZGpBAZmSx6USji7klHIjS0VecUq 5gUA== X-Gm-Message-State: AO0yUKV32CCBPw4NXzuNiGpPowKF/y7K9RnhtuV0vrhoFMhy+AL2zglN sSucfG4fSlK88kNdctFVxwJENPQiiCosSmO47q54rw== X-Google-Smtp-Source: AK7set9c9qRxU35UmkHTgz32UHoKUY+oqyuYpi2DEgv0Gw4dOgKiDSabwSr9lVyr+LPm+IMt8NbrQV2unV0hRjZR+Y8= X-Received: by 2002:a81:ae4e:0:b0:52f:3399:ed08 with SMTP id g14-20020a81ae4e000000b0052f3399ed08mr18340951ywk.6.1678550689567; Sat, 11 Mar 2023 08:04:49 -0800 (PST) MIME-Version: 1.0 References: <20230311111658.251951-1-krzysztof.kozlowski@linaro.org> In-Reply-To: <20230311111658.251951-1-krzysztof.kozlowski@linaro.org> From: Guenter Roeck Date: Sat, 11 Mar 2023 08:04:38 -0800 Message-ID: Subject: Re: [PATCH 1/5] i2c: mt65xx: 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-mt65xx.c:514:34: error: =E2=80=98mtk_i2c_of_matc= h=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-mt65xx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt6= 5xx.c > index 43dd966d5ef5..59eaefe999b1 100644 > --- a/drivers/i2c/busses/i2c-mt65xx.c > +++ b/drivers/i2c/busses/i2c-mt65xx.c > @@ -1546,7 +1546,7 @@ static struct platform_driver mtk_i2c_driver =3D { > .driver =3D { > .name =3D I2C_DRV_NAME, > .pm =3D &mtk_i2c_pm, > - .of_match_table =3D of_match_ptr(mtk_i2c_of_match), > + .of_match_table =3D mtk_i2c_of_match, > }, > }; > > -- > 2.34.1 >