Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp55532pxh; Thu, 7 Apr 2022 13:49:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHhaQ7YYSCGDYB/W6cIMGqG8uFe5jUVj+EZNzbESXALZPj1xmb5JyjG1+PqI7wfPq8N9N5 X-Received: by 2002:a17:902:f682:b0:154:8500:80bf with SMTP id l2-20020a170902f68200b00154850080bfmr15746953plg.112.1649364569134; Thu, 07 Apr 2022 13:49:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649364569; cv=none; d=google.com; s=arc-20160816; b=WUt3mZIuAmeGUispjVgyHgvUqCpj+J3DvaHHhiiir6YlPrboYnhX8SQXAbWr3MfLI4 VsKV4LBhu3jEpSBv06VMA7W6j/KsOE7EEa/RvbTSrOqLPSIs8TVDbSqUX9GXQGBF+2a4 ZNZ9Hv7Iu72Kk293jwdF6SN1trja26D4lparVAyISGkxIrii0T0MItXA7bLVjcpvfzjH Elm6MGqR8KDzhkuJfhR3kAshJE3cGY1ZFhb+l4dZFb9t8xnz8DD1++zwyOP/5bpSj31t MgD/mZmclyuooOtULtdoiyHG9DFB7PcWV/Ws5geCPUNSf8wpUucHVj9rBjExExsrtm2i r3Ug== 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=ufuu7UhGYkxTLLFTTcjJI6wdA9q61osmoB7nOzjgMIA=; b=cJ4ASwVqxOQt6Nf/RetZjhONdrxtZzuee2CXWLn3Zcvox8EJhEermzG3Z4oxj6hUJA lvrjJRbH6r/QXJRFoBOr+Bpb7c4P0ByVv5FtCBzEn7NOogMPloDnIZpNgmPVtvypkEV/ U6fKT7xgOLDyV2/XwmmD0drL7RzvwFLQm3FykCMxCkJKCgxSjRALlEccn5HbM01zEZF6 CndBSIDH71nqMWds7UV9VU2Ed4PbNDQ3lXY4JTpoceP4992ut4wZK161QkPPBXzeMd+i R0jq5uGi4rZsrFA8gqsrdS/fljg55S8nTYCFqilDnMHTQ8mUZNwyQz/JytZkEFoIvuiX /6SA== 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 z17-20020a170902ee1100b001567f569926si666418plb.186.2022.04.07.13.49.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:49:29 -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 D084C3E8E4A; Thu, 7 Apr 2022 12:56:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344738AbiDGPaW (ORCPT + 99 others); Thu, 7 Apr 2022 11:30:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241773AbiDGPaU (ORCPT ); Thu, 7 Apr 2022 11:30:20 -0400 Received: from 4.mo575.mail-out.ovh.net (4.mo575.mail-out.ovh.net [46.105.59.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DA98200 for ; Thu, 7 Apr 2022 08:28:18 -0700 (PDT) Received: from player796.ha.ovh.net (unknown [10.111.172.45]) by mo575.mail-out.ovh.net (Postfix) with ESMTP id 5960224623 for ; Thu, 7 Apr 2022 15:20:48 +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 2CD432933024D; Thu, 7 Apr 2022 15:20:39 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-99G003d16187d4-fb51-4483-a7dc-35d224eb3c4e, 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 10/10] clk: renesas-pcie: use simple i2c probe function Date: Thu, 7 Apr 2022 17:18:31 +0200 Message-Id: <20220407151831.2371706-11-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: 94575596027086470 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-renesas-pcie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-renesas-pcie.c b/drivers/clk/clk-renesas-pcie.c index 59d9cf0053eb..4f5df1fc74b4 100644 --- a/drivers/clk/clk-renesas-pcie.c +++ b/drivers/clk/clk-renesas-pcie.c @@ -213,7 +213,7 @@ rs9_of_clk_get(struct of_phandle_args *clkspec, void *data) return rs9->clk_dif[idx]; } -static int rs9_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int rs9_probe(struct i2c_client *client) { unsigned char name[5] = "DIF0"; struct rs9_driver_data *rs9; @@ -312,7 +312,7 @@ static struct i2c_driver rs9_driver = { .pm = &rs9_pm_ops, .of_match_table = clk_rs9_of_match, }, - .probe = rs9_probe, + .probe_new = rs9_probe, .id_table = rs9_id, }; module_i2c_driver(rs9_driver); -- 2.27.0