Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4680893rwb; Tue, 8 Aug 2023 12:02:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFwMPt9mkOEKcZY5kHez0zvjtJyjpBG3pjy9JLJkm9AMMv9AEFIDMdj0UOrFR29mnHK9dBU X-Received: by 2002:a19:770a:0:b0:4f8:bfb4:e4c4 with SMTP id s10-20020a19770a000000b004f8bfb4e4c4mr257820lfc.19.1691521341673; Tue, 08 Aug 2023 12:02:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691521341; cv=none; d=google.com; s=arc-20160816; b=F5yHpbhXPAxgjqqBA/i0q9a8VqQ1kCRoVQB0dx08eXKo9pwTBLV/oYN5o48bXxvMwb gi3DxrcY3rwMhB8UhsS57mOhVA9W1LzoKycoyid5AMcun2ZFKwm9i2YXbJOOyIamFZ5S JoJWfyBEgPek1F98BHkkcST09O7Qrlxks9rQ9CULZXcIS1604oQKXKPghi7Iu5P7gXqj +Vyp4DnwHBSFtHuzAN+oaYt3mSBhj0JpmmajGPiAkI4RQIMdgg2NZL8xGNRVcUlEmXxF ZyyHBc84m/HUu2m8b+YerqB/SHTpFE4niNiWtLe+zx4i5qbJhgNWskDibFP28zdqaqM8 IDzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=0hjb9JpTbZ9zsDaImT9M3xWDe5SA3RIrnWM4kTAjxW0=; fh=TgmqQsx3Xvsy4/0kabOISrpv5CcF0f8UuJ/oFrkWwIY=; b=EHT6mAuH+uFiRnsTFa2XJCicqy4qM3Z1bCF9sG/1y3tcGrjYZMVdlJTjrXbbZg7T/2 Q+iFgHs5bcCvwTqWdyT2py/PNJsh+Biygd5PaDfh/RjAXf2/m8JtDj5iYZm/UUYrvak3 1oTNQVwsBiWq58q5HMVfk2nXbvPw8kKWyyRHT6udpzUng0lHbYBUgaVRN1COwaXA1P8n dJKiKnvObL098jd95LM3axm+RKmAUuo3am96tyDy/ijwBzGCptYeUYIFhUDu9eYtgxAi 2gEdSiRfsr2j7ikWlaJ6oTmbwVjUZZuA5FcaxGSEsnIjkHjiRouiaxKHV2gxS+BW57cZ eIhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf26-20020a0564021a5a00b0052333dd200esi2312772edb.392.2023.08.08.12.01.55; Tue, 08 Aug 2023 12:02:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235822AbjHHS2L (ORCPT + 99 others); Tue, 8 Aug 2023 14:28:11 -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 Content-Type: text/plain 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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 = { .driver = { .name = "act8945a", - .of_match_table = of_match_ptr(act8945a_of_match), + .of_match_table = act8945a_of_match, }, .probe = act8945a_i2c_probe, .id_table = act8945a_i2c_id, -- 2.17.1