From nobody Fri Sep 12 01:37:46 2025 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 D3B4DC41513 for ; Tue, 8 Aug 2023 18:28:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235930AbjHHS2M (ORCPT ); Tue, 8 Aug 2023 14:28:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235783AbjHHS1t (ORCPT ); Tue, 8 Aug 2023 14:27:49 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94CCAA9E95 for ; Tue, 8 Aug 2023 10:46:21 -0700 (PDT) Received: from dggpeml500025.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RKtWS69zDzNn1s; Tue, 8 Aug 2023 20:57:24 +0800 (CST) Received: from ubuntu1804.huawei.com (10.67.174.202) by dggpeml500025.china.huawei.com (7.185.36.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 8 Aug 2023 21:00:53 +0800 From: Zhu Wang To: , , , , , CC: Subject: [PATCH -next 4/8] mfd: act8945a: remove redundant of_match_ptr() Date: Tue, 8 Aug 2023 21:00:19 +0800 Message-ID: <20230808130023.202700-5-wangzhu9@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230808130023.202700-1-wangzhu9@huawei.com> References: <20230808130023.202700-1-wangzhu9@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.174.202] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500025.china.huawei.com (7.185.36.35) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The driver depends on CONFIG_OF, so it is not necessary to use of_match_ptr() here. We remove of_match_ptr() here. Signed-off-by: Zhu Wang --- drivers/mfd/act8945a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/act8945a.c b/drivers/mfd/act8945a.c index 2406fcdff5f9..e8c4b401d0d0 100644 --- a/drivers/mfd/act8945a.c +++ b/drivers/mfd/act8945a.c @@ -68,7 +68,7 @@ MODULE_DEVICE_TABLE(of, act8945a_of_match); static struct i2c_driver act8945a_i2c_driver =3D { .driver =3D { .name =3D "act8945a", - .of_match_table =3D of_match_ptr(act8945a_of_match), + .of_match_table =3D act8945a_of_match, }, .probe =3D act8945a_i2c_probe, .id_table =3D act8945a_i2c_id, --=20 2.17.1