From nobody Fri Sep 12 01:38:32 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 9149AC001DB for ; Tue, 8 Aug 2023 18:28:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235839AbjHHS2O (ORCPT ); Tue, 8 Aug 2023 14:28:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235793AbjHHS1u (ORCPT ); Tue, 8 Aug 2023 14:27:50 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94EE2A9E96 for ; Tue, 8 Aug 2023 10:46:21 -0700 (PDT) Received: from dggpeml500025.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RKtWT4CXdzNn1w; Tue, 8 Aug 2023 20:57:25 +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 5/8] mfd: stpmic1: remove redundant of_match_ptr() Date: Tue, 8 Aug 2023 21:00:20 +0800 Message-ID: <20230808130023.202700-6-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/stpmic1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/stpmic1.c b/drivers/mfd/stpmic1.c index 3cc7492f828f..c5128fe96cc7 100644 --- a/drivers/mfd/stpmic1.c +++ b/drivers/mfd/stpmic1.c @@ -219,7 +219,7 @@ MODULE_DEVICE_TABLE(of, stpmic1_of_match); static struct i2c_driver stpmic1_driver =3D { .driver =3D { .name =3D "stpmic1", - .of_match_table =3D of_match_ptr(stpmic1_of_match), + .of_match_table =3D stpmic1_of_match, .pm =3D pm_sleep_ptr(&stpmic1_pm), }, .probe =3D stpmic1_probe, --=20 2.17.1