Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp775013pxb; Tue, 5 Apr 2022 22:48:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzffoBU9XHu6GxhfuaLm3KTElcYNvT+r74HyLl6NvD4FfI5CrUW93JUde1IwTbsTmvDntGK X-Received: by 2002:a17:90a:da02:b0:1bf:3919:f2a with SMTP id e2-20020a17090ada0200b001bf39190f2amr8154159pjv.208.1649224127152; Tue, 05 Apr 2022 22:48:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649224127; cv=none; d=google.com; s=arc-20160816; b=lPv3113lRAMtCGKWm7HulAT0Os2FrmpYTZgxmt6/zPuRzNhtwNsb0l2wZ7IVBUYWUB TJoTAm773MYgf69JklTtdhP1GecRuFd7z3Zxz7ehR+p8K6uLLDyDLPEeN7UNoU2weotz i6yZgQ7/oAFZiyOf0P/GtaJx7fGQnTLlYdLB33gm7Mz9rTQxC5P+nLC1tm3UXhtshlu0 aSAiiSqw/KSVw9IrO+Cd6DmCmA69ufrOcbpUESzb059XHQLy3OMihSznoMbR4diAc6Pw +LRN3xoL9P2fA1k6mp9Q9BsFQYI08McE0oUVxUm0NsjaHMA649UCWre035yCfVbZuZ0s NWCA== 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=skJEqEG4VOXRAj3gTVKa7x+h492n1agLtsqeHpjcpew=; b=B1N0D5cxue4QVH9ZJjv7QVg0JIKwSnuhsXFqwqWG0K5FzRBSk9D53Ee7+UiF2rHpTD /aU8gmPafXvmZcvgifFi7Cmig93Wgjg68b+Kz7uRi4L6r08wA00BoOl3ew/XcrSj1mMc HE4a7MsDluNBwmBp8ZKaJOFhRFNQWR89+AZYNphYvJd39lBv3QIBZ6NhHBgFXydtxooX Tttv8l8QWL/zKFQqnboUi1q5B2fQ3Ry4fohjr5lPEA9pBevK82oKoVq7qEo8x7zS15/a JCXe5thdVbtAiDE/kPlMK1A43LOcrmkTfXe0Jk7Ia9a9GdoT3tCX/gB1YlTRZyPJgIBa B2TQ== 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 a13-20020a65418d000000b00398b858c5d4si14915155pgq.525.2022.04.05.22.48.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 22:48:47 -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 18F1249A503; Tue, 5 Apr 2022 22:21:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391708AbiDEWIA (ORCPT + 99 others); Tue, 5 Apr 2022 18:08:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457955AbiDERBh (ORCPT ); Tue, 5 Apr 2022 13:01:37 -0400 Received: from 7.mo575.mail-out.ovh.net (7.mo575.mail-out.ovh.net [46.105.63.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18D8678900 for ; Tue, 5 Apr 2022 09:59:38 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.108.20.113]) by mo575.mail-out.ovh.net (Postfix) with ESMTP id 5AA1A222DF for ; Tue, 5 Apr 2022 16:59:37 +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 130DE293E36D4; Tue, 5 Apr 2022 16:59:32 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R006684d1db8-587c-4aa8-aced-ea8bd21a0cfc, 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 04/14] ASoC: lm4857: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:26 +0200 Message-Id: <20220405165836.2165310-5-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: 8464796978746656390 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg 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/lm4857.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/lm4857.c b/sound/soc/codecs/lm4857.c index 300b325e2fdd..dba161305de8 100644 --- a/sound/soc/codecs/lm4857.c +++ b/sound/soc/codecs/lm4857.c @@ -115,8 +115,7 @@ static const struct regmap_config lm4857_regmap_config = { .num_reg_defaults = ARRAY_SIZE(lm4857_default_regs), }; -static int lm4857_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int lm4857_i2c_probe(struct i2c_client *i2c) { struct regmap *regmap; @@ -138,7 +137,7 @@ static struct i2c_driver lm4857_i2c_driver = { .driver = { .name = "lm4857", }, - .probe = lm4857_i2c_probe, + .probe_new = lm4857_i2c_probe, .id_table = lm4857_i2c_id, }; -- 2.27.0