Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp778957pxb; Tue, 5 Apr 2022 22:59:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhcVveSyYeCciGFo6nmv53HnIJMrB34wgg4bAGT8vuFjAmZ+zf3l+a/fnoWuJypKoW5EnE X-Received: by 2002:a63:d149:0:b0:384:b288:8704 with SMTP id c9-20020a63d149000000b00384b2888704mr5740750pgj.112.1649224761584; Tue, 05 Apr 2022 22:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649224761; cv=none; d=google.com; s=arc-20160816; b=tTWwIDZ3JeAtKrKBEXwobggz9Edk0mqm+pgB+kq/RKtj1DpoIBVRERyG/o8cLAGupr rf1dsHyVrAIMHSGgAeNgll5XUyUL54XCmFUfLlhlp3c0HkYVODu5ZM5ezKq/Q4P8TgZy XFNaCuaLhASeJAdokYFwSoQsyLimk+UolbVoKLUz3aJSmkYv2oi/9PinXWwcoSQY3n8x uv7s6bMTAHTuKfCGaqpufdE2wSYFCD2se9lmPcLX1BUjtczvaxglfiWgQ2aRepuWE9As j/0RgXVOMLU5ZZcr/Ev8hxQEJ6gtBCo04udvYlc/+KAOjEi0gf4yt+uIwfimX96un8My wY1w== 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=msZvBJnkvgADhbrEKAUMmoInbNtRu3BpeBe4Kr9FiPs=; b=DUyDETrp6F7pVdh7CDwGpmI3UV5BP6JLH79BNxx0hITjMA+M5PXv5gmkjj/yVLv2GL DL+BxbD5pu3qpAgovOYNKaMu9AsgdBeji+NAwn7vBNI4R80IicLCIUt/pSHmZKzbNRw9 H1TNifX8QOMsO18IM8cki683uGZziUJdCRxav6fB6A9Il9h8CvWY8N0q0+hMjwSd3IeM n+A+0TmoRlnG8gZZJXWoT2KPSss4kLP72JNxFIP16nYtn+63d9/003DwPus2V3Bj9h9+ wyqVp/dKhYI5Rw7UChyBVKQ/up0PHiqJS9EABFpbkDfkE+GXEMxqHkzvTlr+CkHAP0u4 5tsg== 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 c1-20020a170902d48100b00153b2d165b8si15359873plg.448.2022.04.05.22.59.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 22:59:21 -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 50F7F27B000; Tue, 5 Apr 2022 22:36:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232615AbiDFBMO (ORCPT + 99 others); Tue, 5 Apr 2022 21:12:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457877AbiDEQzF (ORCPT ); Tue, 5 Apr 2022 12:55:05 -0400 Received: from 14.mo581.mail-out.ovh.net (14.mo581.mail-out.ovh.net [178.33.251.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 586BC326E9 for ; Tue, 5 Apr 2022 09:53:06 -0700 (PDT) Received: from player734.ha.ovh.net (unknown [10.110.171.5]) by mo581.mail-out.ovh.net (Postfix) with ESMTP id E660823BE0 for ; Tue, 5 Apr 2022 16:35:42 +0000 (UTC) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player734.ha.ovh.net (Postfix) with ESMTPSA id 85D1D28FEBF99; Tue, 5 Apr 2022 16:35:36 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-102R004d61553c7-e202-4547-945e-565ecbb11848, 8AF55017BACD44284FC599BC4826E0280D36FCC4) smtp.auth=steve@sk2.org X-OVh-ClientIp: 82.65.25.201 From: Stephen Kitt To: M R Swami Reddy , Vishwas A Deshpande , Liam Girdwood , Mark Brown Cc: Wolfram Sang , linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH] ASoC: lm49xxx: use simple i2c probe function Date: Tue, 5 Apr 2022 18:35:33 +0200 Message-Id: <20220405163533.2157401-1-steve@sk2.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 8060880383069685382 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedgleelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuthgvphhhvghnucfmihhtthcuoehsthgvvhgvsehskhdvrdhorhhgqeenucggtffrrghtthgvrhhnpeetgedugfelkeeikeetgeegteevfeeufeetuefgudeiiedthfehtdeffeekvdeffeenucfkpheptddrtddrtddrtddpkedvrdeihedrvdehrddvtddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrhejfeegrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh 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/isabelle.c | 5 ++--- sound/soc/codecs/lm49453.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/sound/soc/codecs/isabelle.c b/sound/soc/codecs/isabelle.c index 1d86b6a0eb9d..39be31e1282e 100644 --- a/sound/soc/codecs/isabelle.c +++ b/sound/soc/codecs/isabelle.c @@ -1108,8 +1108,7 @@ static const struct regmap_config isabelle_regmap_config = { .cache_type = REGCACHE_RBTREE, }; -static int isabelle_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int isabelle_i2c_probe(struct i2c_client *i2c) { struct regmap *isabelle_regmap; int ret = 0; @@ -1144,7 +1143,7 @@ static struct i2c_driver isabelle_i2c_driver = { .driver = { .name = "isabelle", }, - .probe = isabelle_i2c_probe, + .probe_new = isabelle_i2c_probe, .id_table = isabelle_i2c_id, }; diff --git a/sound/soc/codecs/lm49453.c b/sound/soc/codecs/lm49453.c index 973d781b4b6a..bd0078e4499b 100644 --- a/sound/soc/codecs/lm49453.c +++ b/sound/soc/codecs/lm49453.c @@ -1412,8 +1412,7 @@ static const struct regmap_config lm49453_regmap_config = { .cache_type = REGCACHE_RBTREE, }; -static int lm49453_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int lm49453_i2c_probe(struct i2c_client *i2c) { struct lm49453_priv *lm49453; int ret = 0; @@ -1458,7 +1457,7 @@ static struct i2c_driver lm49453_i2c_driver = { .driver = { .name = "lm49453", }, - .probe = lm49453_i2c_probe, + .probe_new = lm49453_i2c_probe, .remove = lm49453_i2c_remove, .id_table = lm49453_i2c_id, }; -- 2.27.0