From patchwork Fri Nov 18 22:45:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 23137 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488462wrr; Fri, 18 Nov 2022 16:46:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Y5ER8fylTyEAsnj+da9GsFEzV6BZUqORLFTh3aVmrkLa41IiYsRQMB3Ub2He7vWXCwJyc X-Received: by 2002:a63:215d:0:b0:43c:5e0:f2aa with SMTP id s29-20020a63215d000000b0043c05e0f2aamr8742660pgm.448.1668818762125; Fri, 18 Nov 2022 16:46:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818762; cv=none; d=google.com; s=arc-20160816; b=BLXhF3ktmIam4kLLEJyYVVqo+Mgs5hWKEDb3ZhG03l4D3vEmvYygDeZ5r4W7iSouEj I0g2cHHOtXYwT/x5auFwgPN+HavsNOaQeLARR1LwZ2RblUkiNVYKgPc6bOzBwttbN1J8 /btDv1LjkzKhRK/nmZbJXJjHHJ7O80mBhUi7JsovR97c0x6GEW+anHecLVmn/ViWS/ez 1ltZLkpWNejVSzk1SxrDE6R3UNhwbCpDdiX5z9U+Nm8O5z6dbFGUSnjvfeo4vox14MCF oyyNnYlxG0DTjQzk618+orUs8PX3L7zN2c1kUjREps5wBqcjTW5xba85WEl1mQrrJs+r bX1w== 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=n/3kudoBNKNU/bxA3g6LBZdsYNHKucbnaweF5pfSa7o=; b=ucbnu8f8KIxmFa7cMwuzU241urfP2rIIPqs/KwsHe73ohq5MhxluCnwbbk3+yLOO3i d3XB/jTJ5RJNLbnLTalqmSpYQjwGw0H1dH3Qii7TNPsQ2QFbi0uCvmqzfbK4Ag8AzIi0 9bGOhmAov4OHKzHAiv+a0OuviJYxYWMm0GmOUu9Cyxsk9dM1EXr/1ogiJlBp0vUT+O1O niOI4yojQ0dvou/YtRjvdVRTKj1HvOviDlLVh2uylO5G2Fhd+kN5fN9T4h4GJfkrsd1m 2y8j77GY6ZDzrxPiXKygAFkhdCFrqsDvugjP7BYkN5AowG08jFE4ZAHUVI6OxNRu/QmE m+gQ== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pi16-20020a17090b1e5000b00212d79c548bsi5733367pjb.82.2022.11.18.16.45.48; Fri, 18 Nov 2022 16:46:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237912AbiKSAoQ (ORCPT + 99 others); Fri, 18 Nov 2022 19:44:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237982AbiKSAmF (ORCPT ); Fri, 18 Nov 2022 19:42:05 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC1DB11DA1E for ; Fri, 18 Nov 2022 15:45:07 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1owA9q-0005XH-RW; Fri, 18 Nov 2022 23:48:26 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1owA9k-0058u1-Jt; Fri, 18 Nov 2022 23:48:21 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9k-0000W4-27; Fri, 18 Nov 2022 23:48:20 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Raphael-Xu <13691752556@139.com>, =?utf-8?q?Martin_Povi=C5=A1er?= Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH 604/606] ASoC: codecs: tas2780: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:38 +0100 Message-Id: <20221118224540.619276-605-uwe@kleine-koenig.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221118224540.619276-1-uwe@kleine-koenig.org> References: <20221118224540.619276-1-uwe@kleine-koenig.org> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749883302056078682?= X-GMAIL-MSGID: =?utf-8?q?1749883302056078682?= From: Uwe Kleine-König The probe function doesn't make use of the i2c_device_id * parameter so it can be trivially converted. Signed-off-by: Uwe Kleine-König --- sound/soc/codecs/tas2780.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/tas2780.c b/sound/soc/codecs/tas2780.c index afdf0c863aa1..09e7ada1bca4 100644 --- a/sound/soc/codecs/tas2780.c +++ b/sound/soc/codecs/tas2780.c @@ -591,8 +591,7 @@ static int tas2780_parse_dt(struct device *dev, struct tas2780_priv *tas2780) return 0; } -static int tas2780_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tas2780_i2c_probe(struct i2c_client *client) { struct tas2780_priv *tas2780; int result; @@ -646,7 +645,7 @@ static struct i2c_driver tas2780_i2c_driver = { .name = "tas2780", .of_match_table = of_match_ptr(tas2780_of_match), }, - .probe = tas2780_i2c_probe, + .probe_new = tas2780_i2c_probe, .id_table = tas2780_i2c_id, }; module_i2c_driver(tas2780_i2c_driver);