Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp938971pxb; Wed, 6 Apr 2022 04:52:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQpxT0xCfAHngETptBLoFVf4BLjIrB8k1WgGOFq4/KA6RocLTEnxYuQjKiw1Kt0XTYzO+j X-Received: by 2002:a17:902:d0d2:b0:156:caaa:6c16 with SMTP id n18-20020a170902d0d200b00156caaa6c16mr8254809pln.81.1649245956637; Wed, 06 Apr 2022 04:52:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649245956; cv=none; d=google.com; s=arc-20160816; b=0Pd8xudBJJpWYk21eLTKyL0VdCdIzLeQGBKS2Z3Atpo8l3vlM7NEdiPkoO/PwJh6x/ s4QQoG3zK1oVzZit4FXXVAvKzGIWwRRMjNHOu9gOBsxYSlAV9Wf6qbpN3c2bXCYSdxIB HHq8NzkBJzfkRUMFb5pPL5cyuwBCsj9QshQlKBCB1wZAYf/WiCiPEKd4teMDlvBDbc50 Ec0JCnOXUFBbBRFjEFmGuzW3cCMMHEh6mARjoM+96Qp5y1/TOe6kzOXJ5wfoNo9xiJdC +VnKfNIZmUV1qjHzj+UCL7zqDYlCCS82e1+bU8TsXi3V5Bjh4Yhp3tpMjWXWipu7NpSK T1Ow== 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 :message-id:date:subject:cc:to:from; bh=ZT+0cVV9tUxzptaua78G37tmHot/jRMlkNEaqt3m658=; b=Lj34TgFBlR87JNAH8NHk5fCKOyas2FGCkAq+I9fbZGAPGeddSql3rl6PdupDL09Yd3 eyANex+Ghrf5ZeuVFfOuLiuJ1Tq0SI1ugXPn4kcIbKdV/maJIf02frm67w6GxU/6B1gt r8KjIKeHhH0kNxIlZ3oQcYaCUYXUwoq7Mw9IW9vgPj12frn6xCnNwBM9SlEPFmtei5e0 V9x79P1qTKtKkG8plpdhGDKkZgJ2gXVz2g923ASr6RTmT2BCNnoMBPpToYVb290sJJO/ 3ewhqDYVB0QY2Uk1L122zP55PjGeb0x02Ypz3EUO8/1H0HX8/qy5J0EGJpllqw3paiCb lQgw== 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 t2-20020a170902e84200b00153bc4c8989si16925934plg.204.2022.04.06.04.52.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:52:36 -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 out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C4146207C88; Wed, 6 Apr 2022 03:13:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356848AbiDEVPE (ORCPT + 99 others); Tue, 5 Apr 2022 17:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457760AbiDEQm4 (ORCPT ); Tue, 5 Apr 2022 12:42:56 -0400 X-Greylist: delayed 312 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 05 Apr 2022 09:40:56 PDT Received: from 5.mo583.mail-out.ovh.net (5.mo583.mail-out.ovh.net [87.98.173.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C48BDDFFBD for ; Tue, 5 Apr 2022 09:40:56 -0700 (PDT) Received: from player715.ha.ovh.net (unknown [10.108.20.144]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id 6067823F18 for ; Tue, 5 Apr 2022 16:40:54 +0000 (UTC) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player715.ha.ovh.net (Postfix) with ESMTPSA id F12DC2900AE2A; Tue, 5 Apr 2022 16:40:48 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-98R002e7e3a593-6777-45c4-9110-c0244ab646ae, 8BB3F008109FF1ACF458F8D30695C50246D29715) smtp.auth=steve@sk2.org X-OVh-ClientIp: 82.65.25.201 From: Stephen Kitt To: Fabio Estevam , Liam Girdwood , Mark Brown Cc: Wolfram Sang , linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH] ASoC: sgtl5000: use simple i2c probe function Date: Tue, 5 Apr 2022 18:40:31 +0200 Message-Id: <20220405164031.2160888-1-steve@sk2.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 8148700579943122566 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddttdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepteegudfgleekieekteeggeetveefueefteeugfduieeitdfhhedtfeefkedvfeefnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeduhedrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg 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/sgtl5000.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index 8eebf27d0ea2..2aa48aef6a97 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c @@ -1579,8 +1579,7 @@ static void sgtl5000_fill_defaults(struct i2c_client *client) } } -static int sgtl5000_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sgtl5000_i2c_probe(struct i2c_client *client) { struct sgtl5000_priv *sgtl5000; int ret, reg, rev; @@ -1821,7 +1820,7 @@ static struct i2c_driver sgtl5000_i2c_driver = { .name = "sgtl5000", .of_match_table = sgtl5000_dt_ids, }, - .probe = sgtl5000_i2c_probe, + .probe_new = sgtl5000_i2c_probe, .remove = sgtl5000_i2c_remove, .id_table = sgtl5000_id, }; -- 2.27.0