Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp30663pxh; Thu, 7 Apr 2022 13:03:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysUWftbFnfdGXDc2M8VoMQ20cOYiG7+mLw2B4BHpvcfD61rNtWhp0oBwgZJboMJCFRsYxw X-Received: by 2002:a17:90b:17c7:b0:1c7:c616:6eb0 with SMTP id me7-20020a17090b17c700b001c7c6166eb0mr18119145pjb.144.1649361827224; Thu, 07 Apr 2022 13:03:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649361827; cv=none; d=google.com; s=arc-20160816; b=E+NpjqjHg720HoxSF76TtXa4CnQc46pUtAuH67DsgpzvAkY4rLWBE7HncAv/CkYXG0 JXVOQprNg/f2QLCm3v9CN1FvQEIjSGQtwOAw6R0kxZa1Yozux+noNWN0bSLB6vxYiEEM I8qMmstnUm52RPgIQOrUEDTq6OJve3ud6gUw/KSG348Wbzj3vdiBV3pi8PFiYJHyA7C9 BbIPRLrhqeSUBdZXWGwSqMcgyqofhWC2jEh3Qlcd/L27eYsvFkqGH1H3uwsLvj9yZwkF cS0dAhi8mqUDe0aRTP7dc5SDl3FN+SSzewNskBTjCjFDm4/cw+h4qXKEFJ4aaD6ZAGAu DAWw== 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=xYhhwboHBNLuNuV6S2FdY9EpADK5YY4XkgYHD1fmQQI=; b=lBdNNeOlDzXgPcwU+mvX2HLsyHfwO6LecOWaRSFcqoaT1mhb0H32+zcQXUl++o7DOH uhKnfIgWS7o0V4Bi4r8Fb4u87V+8hSfpOo8I1/ZpOIWsIqwepb3SL6lB1StJZWQ07tjw vge4Gc0X3xDKP6uVfeWkB10MoDwrnO2oo5Xxp3PWPfoaRtQ9p2K3KXTeLR+c0f8eYZUH ohJ/F+S8dtYkhi31lES/nmNN8OPExcBM/R3o1DruJcs2BdySWtflKwwBMTl52gc3lcQx 66zrrBXzGvi74CRw5iBeiBI8qVKjipE7xIM6c4vTsp9jPZUpYjGBq7W0I4ZTG+o/uiK6 7LmA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id p2-20020a170902a40200b00153b2d16428si612106plq.48.2022.04.07.13.03.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:03:47 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 9B139299A49; Thu, 7 Apr 2022 12:28:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344728AbiDGPaR (ORCPT + 99 others); Thu, 7 Apr 2022 11:30:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241773AbiDGPaP (ORCPT ); Thu, 7 Apr 2022 11:30:15 -0400 Received: from 10.mo584.mail-out.ovh.net (10.mo584.mail-out.ovh.net [188.165.33.109]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 476F21A9 for ; Thu, 7 Apr 2022 08:28:14 -0700 (PDT) Received: from player796.ha.ovh.net (unknown [10.108.20.237]) by mo584.mail-out.ovh.net (Postfix) with ESMTP id A0C3423C59 for ; Thu, 7 Apr 2022 15:20:01 +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 EDE11293300BF; Thu, 7 Apr 2022 15:19:52 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-99G0038066544b-4782-433a-b284-babe47db37b3, 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 04/10] clk: max9485: use simple i2c probe function Date: Thu, 7 Apr 2022 17:18:25 +0200 Message-Id: <20220407151831.2371706-5-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: 81064795355776646 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejkedgkeekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefuthgvphhhvghnucfmihhtthcuoehsthgvvhgvsehskhdvrdhorhhgqeenucggtffrrghtthgvrhhnpeejleelvdefieeiuddtfeevkeegueehkeekvdffgedvhedugeekgfejjeekgfeugeenucfkpheptddrtddrtddrtddpkedvrdeihedrvdehrddvtddunecuvehluhhsthgvrhfuihiivgepvdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrhejleeirdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh 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-max9485.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk-max9485.c b/drivers/clk/clk-max9485.c index 5e80f3d090f3..5f85b0a32872 100644 --- a/drivers/clk/clk-max9485.c +++ b/drivers/clk/clk-max9485.c @@ -254,8 +254,7 @@ max9485_of_clk_get(struct of_phandle_args *clkspec, void *data) return &drvdata->hw[idx].hw; } -static int max9485_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max9485_i2c_probe(struct i2c_client *client) { struct max9485_driver_data *drvdata; struct device *dev = &client->dev; @@ -377,7 +376,7 @@ static struct i2c_driver max9485_driver = { .pm = &max9485_pm_ops, .of_match_table = max9485_dt_ids, }, - .probe = max9485_i2c_probe, + .probe_new = max9485_i2c_probe, .id_table = max9485_i2c_ids, }; module_i2c_driver(max9485_driver); -- 2.27.0