Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp72548pxh; Thu, 7 Apr 2022 14:20:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFnw2EeW/H3jxWqnQ8IqyC3phna6nVb27K530Qwrb2nwegwTQtOwCnok100MaEv2punuxX X-Received: by 2002:a17:90b:38c7:b0:1c7:6afb:fac6 with SMTP id nn7-20020a17090b38c700b001c76afbfac6mr17932952pjb.198.1649366448045; Thu, 07 Apr 2022 14:20:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649366448; cv=none; d=google.com; s=arc-20160816; b=0XlQAD26S6EslssxbrRwFBK52Y2NNpz0OhgJsIjUiP0gsYF6e64OCufjXKZiHEeTdk lPt6XxPpqCaVhIEpd8t5OXrgxZb4YIBaiW31IbcWItQ7+0GJJ8MakEBydYZ7YbD8uLTx aKizNPFm8CifDl9DWDg1RB0v1x0UEX/1crGWGpVOLKmui8HYW376x9Wczd3ot7ZfHNPv hkS+W60m7g3aRbN09TQJk2xuT8ZbH1LWkFUcguxEAU7NkePNqC8AZFHzvumSrcW+Ksni CILglDkRRPBaVVQ0+VioxN1tBFpCERZgNMRQlVe4CFITbd26ndQHct063BsxFLbT/f9b Z/fg== 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=YWhSMpDN2BWgYjjgv7z+VuIQIb/ccdOGf0vO3jHHP6o=; b=Uqk8k6J2kk5nIR/Ujuf3wAWukrLf+wL+hZb952sEWBfh74tU8ZGSQLw39eRF7ueLSd clphteEUSalZK/Bhu3LTUgTLFMqpHfC5ubJ8q6ODKpInb39NlQyTj9X4zqDh+7Iwu/G0 HRVQpyuOhRpeAiyuTH9iPT605/KCZTCw/UCmwuUGgNUDB/Vk8UtFpey+o+k5JUzMRnMZ a1OW3HEig3ZGE0IUWkL8HHsqhGkk13JXh2DdKTWG6byy8CVv3SXOktWoq3fG8krb4etL MfSfNwgK9D1EruG+GWSPfPhJKqSyK9Usumq3NLN6AWS+LMFwLhg3dSoG2JNbuZSHy4rP qBlQ== 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 q2-20020a63ae02000000b00383c70e8e18si18648962pgf.439.2022.04.07.14.20.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 14:20:48 -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 D28992CCB19; Thu, 7 Apr 2022 13:11:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344773AbiDGPaq (ORCPT + 99 others); Thu, 7 Apr 2022 11:30:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344753AbiDGPam (ORCPT ); Thu, 7 Apr 2022 11:30:42 -0400 Received: from 9.mo583.mail-out.ovh.net (9.mo583.mail-out.ovh.net [178.32.96.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 716D1C19 for ; Thu, 7 Apr 2022 08:28:29 -0700 (PDT) Received: from player796.ha.ovh.net (unknown [10.109.146.106]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id 2E87E243DF for ; Thu, 7 Apr 2022 15:20:07 +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 AB6C7293300E7; Thu, 7 Apr 2022 15:20:00 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-99G0034c962ea5-ae9c-4d67-a931-d80837463e79, 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 05/10] clk: si514: use simple i2c probe function Date: Thu, 7 Apr 2022 17:18:26 +0200 Message-Id: <20220407151831.2371706-6-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: 83035121023354502 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejkedgkeejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefuthgvphhhvghnucfmihhtthcuoehsthgvvhgvsehskhdvrdhorhhgqeenucggtffrrghtthgvrhhnpeejleelvdefieeiuddtfeevkeegueehkeekvdffgedvhedugeekgfejjeekgfeugeenucfkpheptddrtddrtddrtddpkedvrdeihedrvdehrddvtddunecuvehluhhsthgvrhfuihiivgepvdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrhejleeirdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh 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-si514.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk-si514.c b/drivers/clk/clk-si514.c index 364b62b9928d..4481c4303534 100644 --- a/drivers/clk/clk-si514.c +++ b/drivers/clk/clk-si514.c @@ -327,8 +327,7 @@ static const struct regmap_config si514_regmap_config = { .volatile_reg = si514_regmap_is_volatile, }; -static int si514_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int si514_probe(struct i2c_client *client) { struct clk_si514 *data; struct clk_init_data init; @@ -394,7 +393,7 @@ static struct i2c_driver si514_driver = { .name = "si514", .of_match_table = clk_si514_of_match, }, - .probe = si514_probe, + .probe_new = si514_probe, .remove = si514_remove, .id_table = si514_id, }; -- 2.27.0