Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1013684pxb; Wed, 6 Apr 2022 06:44:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/Py1Hn3iJWYsSu/Cq2AC3THr2yKF4y8AcGDXD4RFxm8Cn8p97oGNAyoDyc6d0a+nZDk1Q X-Received: by 2002:a17:902:e403:b0:156:ab93:2094 with SMTP id m3-20020a170902e40300b00156ab932094mr8584766ple.104.1649252654172; Wed, 06 Apr 2022 06:44:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649252654; cv=none; d=google.com; s=arc-20160816; b=QoVkTrXNIVOb0VK9ZZoZ8KYqrqvYx7zDCwv3DsTiliCC9BRNILh7ZbSKNWXvTfVZb+ wODyMLpkZYTy1Bo8dKXcl9RqwUvR6soE09EidJTCfjMZ2JCIhr84ORia09TC0UMM0if5 yNjKuZIhqWbM2qKPCKrx0G3S5Tw8SLKrg3jyiMLDFCiXgQ6W9cs5yVUhP8X+hx49PjtX PcQ6uQm/gldKpK9jWNw7DfyHB4E0+55g5aFtghf1KmGNtPmC/+jbRi/SXzyBCRpjxR3e 0KBw08FWa7ptCpHF344u4dCvb/1VGJTMRDAgvXQNqwvqeweihCu3KJ8l/ovtg9TmREqG hWCA== 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=iTR7eduww5pKcNES8w2jyq/xOkZeBcOIUiptPCXO+lM=; b=j/3yQc7SbtqKvdE3Zf4JMM/rT2npxtlF9HD1OucpK4eX7L4L9KSU/P3gf1y3bJtw/y FhO/O3GAJ/hRnHqV4CDVeOa04iOfwY7RP2Ykcz33tEWI7rxob1APUHX8uuK7MvohfHcE BUILHzo7euk2DvTuBVK23br0kPLRtIJ6IxCrTWve8LnKeP0dz8TNE8E0dr4JBAnjC5kf drkGlKqJy8n8TrdgLXF/9J6G2qXbcQ7n5o83XLQY5DQrzk9EGSMHB9o+3Hkk8q4p1iDB ljMh23JfodK85FsB/32DOTyggYwVpGdTF0c2Znu4k6qjyPrWRFmLJMZZ9+KqLVYlsg1l ZhWA== 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 e16-20020a63db10000000b003816043ee60si15037854pgg.85.2022.04.06.06.44.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:44:14 -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 2D0C655832F; Wed, 6 Apr 2022 04:31:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1576023AbiDEXKC (ORCPT + 99 others); Tue, 5 Apr 2022 19:10:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1458143AbiDERKR (ORCPT ); Tue, 5 Apr 2022 13:10:17 -0400 X-Greylist: delayed 520 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 05 Apr 2022 10:08:15 PDT Received: from 10.mo576.mail-out.ovh.net (10.mo576.mail-out.ovh.net [46.105.73.241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BD926C1DA for ; Tue, 5 Apr 2022 10:08:13 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.111.172.191]) by mo576.mail-out.ovh.net (Postfix) with ESMTP id A322523CC8 for ; Tue, 5 Apr 2022 17:00:25 +0000 (UTC) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player771.ha.ovh.net (Postfix) with ESMTPSA id 3AE23293E39B6; Tue, 5 Apr 2022 17:00:20 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R006bbcc4550-8b60-44cb-b1ac-2dcbc4224a37, 8AF55017BACD44284FC599BC4826E0280D36FCC4) smtp.auth=steve@sk2.org X-OVh-ClientIp: 82.65.25.201 From: Stephen Kitt To: Liam Girdwood , Mark Brown Cc: Wolfram Sang , linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH 13/14] ASoC: ts3a227e: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:35 +0200 Message-Id: <20220405165836.2165310-14-steve@sk2.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220405165836.2165310-1-steve@sk2.org> References: <20220405165836.2165310-1-steve@sk2.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 8478307775260690054 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpeejnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg 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 functions here don't use the id information provided in their 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 --- sound/soc/codecs/ts3a227e.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/ts3a227e.c b/sound/soc/codecs/ts3a227e.c index 962f5d48378a..d8ab0810fceb 100644 --- a/sound/soc/codecs/ts3a227e.c +++ b/sound/soc/codecs/ts3a227e.c @@ -282,8 +282,7 @@ static int ts3a227e_parse_device_property(struct ts3a227e *ts3a227e, return 0; } -static int ts3a227e_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int ts3a227e_i2c_probe(struct i2c_client *i2c) { struct ts3a227e *ts3a227e; struct device *dev = &i2c->dev; @@ -389,7 +388,7 @@ static struct i2c_driver ts3a227e_driver = { .of_match_table = of_match_ptr(ts3a227e_of_match), .acpi_match_table = ACPI_PTR(ts3a227e_acpi_match), }, - .probe = ts3a227e_i2c_probe, + .probe_new = ts3a227e_i2c_probe, .id_table = ts3a227e_i2c_ids, }; module_i2c_driver(ts3a227e_driver); -- 2.27.0