Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp37534pxh; Thu, 7 Apr 2022 13:14:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/P210whyCcQrFj8rHuvOpaCtpufcIxAIJQqYkjKdvf8+bSvuVC3hSCdfW2G9qetw8HJfv X-Received: by 2002:a17:902:ec86:b0:156:a032:7cf1 with SMTP id x6-20020a170902ec8600b00156a0327cf1mr15445768plg.40.1649362493495; Thu, 07 Apr 2022 13:14:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649362493; cv=none; d=google.com; s=arc-20160816; b=iuKLwYZ0ERCawKaB25m+r4+2rd+Iq3hgEtBdJlr91e8SgxPceBZ/JBcnGqrQWHNknj lLX5Drs4e3v7LrGp1J/XR7eAhoANRw30KQIvxNhN9V+lvmqGxD5GOtn31n2QtSWL4j23 P3+pwWNbn9u+f2iybeVIpXv2w835AOT8e9jKV5IbCpwwkaaEfvDAAto5Vi+0bkPufKgE paHSXjaI1YfBwL3YEhjZAgIKMKd0yc7rZAeictlVa8OSSLT8HV01kw/jSNi9m6bFq7OW 13xBwg8UuxvEeswaubIeoo1X4lQdSBGd5ll9lWK9A9m/erM67VQB/YeJlimD6jfQM2tF 9Few== 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=OtnQawUuJB/Fzs9jdAPLg46k5LDjb6rYe9t+0itPZrw=; b=KLRSakj9+TshmhMyYNBilkDcJR544lsNUPjE4pycYNaGWC7a6i6xTPSHjkBwzhSq0g VsJ6eyI9eQ9lUgJrFJklFGL/vQvoB8Tw0JL0WJS9MwXfPcYFBtkNZn6ZzXVrltaHGsFP 8/StrADzq95BToyR8gKiBa4Uxa0uyv6DF3InL7NP+6GSlHk02ZnKHas4meRDqVnWRS0Y nWeqUUAPAWIxmsISBeEFG5SW3IsJJDlBvJ8NgDXoKrKEYRvh/FYkuL3Pne6g8cYvcz7n /3f5XBUUuezVl4uSjraaSSNDILv8Jwtj6URfref6IJ86Snz40i3XTE6rc6H/pVpWKmdz nwhg== 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 s2-20020a170902a50200b00153b2d1665esi498002plq.614.2022.04.07.13.14.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:14:53 -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 590142E0F28; Thu, 7 Apr 2022 12:35:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344759AbiDGPae (ORCPT + 99 others); Thu, 7 Apr 2022 11:30:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344722AbiDGPab (ORCPT ); Thu, 7 Apr 2022 11:30:31 -0400 Received: from 14.mo582.mail-out.ovh.net (14.mo582.mail-out.ovh.net [46.105.56.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5802D120 for ; Thu, 7 Apr 2022 08:28:21 -0700 (PDT) Received: from player796.ha.ovh.net (unknown [10.109.138.83]) by mo582.mail-out.ovh.net (Postfix) with ESMTP id 82D9D2417A for ; Thu, 7 Apr 2022 15:20:15 +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 D133929330108; Thu, 7 Apr 2022 15:20:07 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-99G0033c5b8f64-a24e-4408-b6e5-8f82f6aaf1dd, 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 06/10] clk: si5341: use simple i2c probe function Date: Thu, 7 Apr 2022 17:18:27 +0200 Message-Id: <20220407151831.2371706-7-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: 85286920497104518 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejkedgkeekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefuthgvphhhvghnucfmihhtthcuoehsthgvvhgvsehskhdvrdhorhhgqeenucggtffrrghtthgvrhhnpeejleelvdefieeiuddtfeevkeegueehkeekvdffgedvhedugeekgfejjeekgfeugeenucfkpheptddrtddrtddrtddpkedvrdeihedrvdehrddvtddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrhejleeirdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh 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-si5341.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk-si5341.c b/drivers/clk/clk-si5341.c index 41851f41b682..4bca73212662 100644 --- a/drivers/clk/clk-si5341.c +++ b/drivers/clk/clk-si5341.c @@ -1547,8 +1547,7 @@ static const struct attribute *si5341_attributes[] = { NULL }; -static int si5341_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int si5341_probe(struct i2c_client *client) { struct clk_si5341 *data; struct clk_init_data init; @@ -1837,7 +1836,7 @@ static struct i2c_driver si5341_driver = { .name = "si5341", .of_match_table = clk_si5341_of_match, }, - .probe = si5341_probe, + .probe_new = si5341_probe, .remove = si5341_remove, .id_table = si5341_id, }; -- 2.27.0