Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp43623pxh; Thu, 7 Apr 2022 13:27:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwArG2vpLZbKCfz2VK1IBmOr0mKKyQyKG2h8A4jx7alZ08ZYFEI9jWyBk/KkuYTWfCgaawp X-Received: by 2002:a05:6a00:1501:b0:4fb:2d19:b6a8 with SMTP id q1-20020a056a00150100b004fb2d19b6a8mr16030887pfu.21.1649363235624; Thu, 07 Apr 2022 13:27:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649363235; cv=none; d=google.com; s=arc-20160816; b=s8KcZyLC023YuO2xmmv6k/Lj9rESTXhBVHYn/rpY8IsDNeX8lPqFfnxLbQ0Vs0znvM OWzZiaSy6XINJbPidBEbVN2mXa756BqelfSxD/VIDcoEZx7X6l/MrWUaJtOT+0lwYJ1p cB0ys6ILZ1lAhJk9QMhF+AcLH4Op0U2HtP2zgC49f2+jgSlYI6YcdwjqzV7lU3GXO9Tk JaTPSvWX2N5aC+5s8QuO+WxBcnLvxNABEr3Hk/DwmDUCh2kySnwL1tpiH+BGfbDjPPAK xyH9KglIP+MVYESRC+Z835y7ZL02VcrDKGvMexuxF8umxTX3PSnZmz/Bqza6F1ob5oUO z6/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=wARx4BSyhddE0P8Jt5dVxCJAvEzMpZItklw7zXXgoYs=; b=ea5uKvuaxAPyJTKbfdgKs/HC+GFTTfiaH8UNPZ9VP6WJWrGT9iJCd8PpIBKofalgxF 9arXrn1NHaYEwc/X5A47ikOlxkl673vTF7S/QgtyY2Rhmonlg/wEwyRY9v5gWeico7Az SE7lloVSrTjkaz2d2amfGvd8PXwOgAJTwglTudMMNNuxVmIjTjF6tuQSQTIAX2x0sf9F +yN2N/aBGEjCyvSSXUAT9WJib9xdusWEDInofc2ifrWj8ap7yFRlmotcv9cladVAzIYW MQ/eVKejaNC67eqGQG/0GXpXG7R9DcDHm962OuFmVe5AozavzonOhDly06TWW82CSEsl eQcQ== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j69-20020a638048000000b0039ccd85fbb1si2166770pgd.131.2022.04.07.13.27.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:27:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 59A6C35D6ED; Thu, 7 Apr 2022 12:42:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344535AbiDGPWB (ORCPT + 99 others); Thu, 7 Apr 2022 11:22:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbiDGPV7 (ORCPT ); Thu, 7 Apr 2022 11:21:59 -0400 X-Greylist: delayed 166779 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 07 Apr 2022 08:19:56 PDT Received: from 8.mo575.mail-out.ovh.net (8.mo575.mail-out.ovh.net [46.105.74.219]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1F9B1FAA2B for ; Thu, 7 Apr 2022 08:19:56 -0700 (PDT) Received: from player796.ha.ovh.net (unknown [10.109.146.106]) by mo575.mail-out.ovh.net (Postfix) with ESMTP id F082423A73 for ; Thu, 7 Apr 2022 15:19:52 +0000 (UTC) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player796.ha.ovh.net (Postfix) with ESMTPSA id 7E7F629330054; Thu, 7 Apr 2022 15:19:46 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-99G003d3dd2c8b-474f-437f-be15-a227636e2f9d, 5995496A90EC26C6A3824F4C00BBD29EFE55D398) smtp.auth=steve@sk2.org X-OVh-ClientIp: 82.65.25.201 From: Stephen Kitt To: Michael Turquette , Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Wolfram Sang , Stephen Kitt Subject: [PATCH v2 03/10] clk: cs2000-cp: use simple i2c probe function Date: Thu, 7 Apr 2022 17:18:24 +0200 Message-Id: <20220407151831.2371706-4-steve@sk2.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220407151831.2371706-1-steve@sk2.org> References: <20220407151831.2371706-1-steve@sk2.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 78812996052420230 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejkedgkeejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefuthgvphhhvghnucfmihhtthcuoehsthgvvhgvsehskhdvrdhorhhgqeenucggtffrrghtthgvrhhnpeejleelvdefieeiuddtfeevkeegueehkeekvdffgedvhedugeekgfejjeekgfeugeenucfkpheptddrtddrtddrtddpkedvrdeihedrvdehrddvtddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrhejleeirdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 i2c probe function here doesn't use the id information provided in its second argument, so the single-parameter i2c probe function ("probe_new") can be used instead. This avoids scanning the identifier tables during probes. Signed-off-by: Stephen Kitt --- drivers/clk/clk-cs2000-cp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk-cs2000-cp.c b/drivers/clk/clk-cs2000-cp.c index dc5040a84dcc..aa5c72bab83e 100644 --- a/drivers/clk/clk-cs2000-cp.c +++ b/drivers/clk/clk-cs2000-cp.c @@ -570,8 +570,7 @@ static int cs2000_remove(struct i2c_client *client) return 0; } -static int cs2000_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int cs2000_probe(struct i2c_client *client) { struct cs2000_priv *priv; struct device *dev = &client->dev; @@ -625,7 +624,7 @@ static struct i2c_driver cs2000_driver = { .pm = &cs2000_pm_ops, .of_match_table = cs2000_of_match, }, - .probe = cs2000_probe, + .probe_new = cs2000_probe, .remove = cs2000_remove, .id_table = cs2000_id, }; -- 2.27.0