Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp20224pxh; Thu, 7 Apr 2022 12:42:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkg6gWSGmtItfc6ep7Y7LQrzu/DbS+GgS++IS5haRyup+QmnuOpT8bA0JC3Nd8rD7DLrSG X-Received: by 2002:a17:90b:33c8:b0:1c7:443:3fcc with SMTP id lk8-20020a17090b33c800b001c704433fccmr17820185pjb.109.1649360557932; Thu, 07 Apr 2022 12:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649360557; cv=none; d=google.com; s=arc-20160816; b=foJfEakKCYKNx4HwrOTk24bHRNLXxcXwTpMlszLeTAqr9HVn1SUupqq98tiheWvd7F 9++U4vXH1GcFxzi41wGYU/rdO7aJCtjsCkgdW36zPhOC1zWTT931k+aWoU0hMyP62C/c 5aOPueojzyXP3V+9D6fUnb71ASZmdNgWxCakglTz9kfsC8FW1Xij6tueQSoMvqIsVPmN 2uGF8hHI4j8cNks34jSqI6IPkxoQKnl+99x/cyVlRov/luyWWOnNHrai/BqqOMY92geE olMZsvROSoic0oFwqobP9a3Glx3K4YaxnsZst4/N4f9thh538iZiaj9r6iisDiZr0YtR B2MQ== 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=IJ/t5OaJokuz5rLUCkfDYutZuelr9ajPf//+Mm0A12Q=; b=B9Zw5J2XKE98R7hdldLDb5c8ujnQVoZ8PRwq9hvL0IF+Aple2uJQUGJmmX4ZRqFtkL xQPVroefJaQI/vR/tRpc7d7UQ5OStqH0JNRTiF2BWCgINeson9Ab3GoZSPyVcLf549iL sDBlsjXcguq8rP1V5OSnJDbJ2P7TSGOIHGxDY15hwFO5QLUHHBzaz5H7j/BXwDylDV+3 ykuwNNJXCaz0Ojd0YXQo0NInrL8CW4NuG8rvZJj9OUgNGJdgxsV7RP4KbjZ/baxuFN5v Xehiw1OprZ1iKzep7CntK0tCO9G4aEKCL4/ETteVxJ1MAWgO+R5/75gLfuUmwwOPfJtm GOsA== 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 l8-20020a170903120800b00153b2d165f4si673880plh.508.2022.04.07.12.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 12:42:37 -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 DDEB4215BD0; Thu, 7 Apr 2022 12:18:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345566AbiDGQBD (ORCPT + 99 others); Thu, 7 Apr 2022 12:01:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345465AbiDGQAP (ORCPT ); Thu, 7 Apr 2022 12:00:15 -0400 Received: from 19.mo581.mail-out.ovh.net (19.mo581.mail-out.ovh.net [178.33.251.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 807B4DE089 for ; Thu, 7 Apr 2022 08:58:12 -0700 (PDT) Received: from player796.ha.ovh.net (unknown [10.111.208.149]) by mo581.mail-out.ovh.net (Postfix) with ESMTP id 3670924394 for ; Thu, 7 Apr 2022 15:19:39 +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 33AA82932FF73; Thu, 7 Apr 2022 15:19:30 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-99G00317a306e9-b8ed-4920-a317-7c45dbaba21a, 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 01/10] clk: cdce706: use simple i2c probe function Date: Thu, 7 Apr 2022 17:18:22 +0200 Message-Id: <20220407151831.2371706-2-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: 75153822891935366 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-cdce706.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk-cdce706.c b/drivers/clk/clk-cdce706.c index c91e9096b070..5467d941ddfd 100644 --- a/drivers/clk/clk-cdce706.c +++ b/drivers/clk/clk-cdce706.c @@ -627,8 +627,7 @@ of_clk_cdce_get(struct of_phandle_args *clkspec, void *data) return &cdce->clkout[idx].hw; } -static int cdce706_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int cdce706_probe(struct i2c_client *client) { struct i2c_adapter *adapter = client->adapter; struct cdce706_dev_data *cdce; @@ -692,7 +691,7 @@ static struct i2c_driver cdce706_i2c_driver = { .name = "cdce706", .of_match_table = of_match_ptr(cdce706_dt_match), }, - .probe = cdce706_probe, + .probe_new = cdce706_probe, .remove = cdce706_remove, .id_table = cdce706_id, }; -- 2.27.0