Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1343727rwb; Fri, 18 Nov 2022 17:09:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf5YrKQQI64+RwwcgQFFY05JImBsDfyL7W3IUT747sMV4wpcJVqVtfKrHfGiyQhjeFddBLf3 X-Received: by 2002:aa7:8d88:0:b0:562:69d4:f9f3 with SMTP id i8-20020aa78d88000000b0056269d4f9f3mr10488064pfr.5.1668820163500; Fri, 18 Nov 2022 17:09:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668820163; cv=none; d=google.com; s=arc-20160816; b=lZJ3XRrg5dgs8we6KS0k/OmwKBXuUSOM4Sc2mICFGA8bmVTsYR7dI8XypDTOYvVS+f GvLP1hFXnKQxc2z+MG2+qmVUU3P0nI0r2H9sz+8jMa5z+YBcpnewK7oN9rXnEK43ZzJF qWM9be7Y4dSylXnHjdGprxNwM+NQLGKvlomkR9B8xWc4AX4qmEWHYabouo4S9aoGR5Ua rxXge9+xbb3eITZBjTxhUoVNyqqnv6oRGJ0W831iLeVRnXI5PFimeT2d+Gi1cQf9R3Xc gxSDVQcOGMTDRRyI0sEkqKOz+ey8NyNG+0zraS8Ihj+fPQaKipJsZHbcwFGQ8gEj3Z1K fSpw== 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=6r9iWo3SxTNQuoBZsxNk+e1WR9xWRK9Nu4pIBtIQRGs=; b=dlrXmZiNNo3apxfM6drtFRE9cpqxDWM88mW9IXcNx7thBODId0I755Yy8xgKgD2dY0 tAo9KJwXMj9WnmZherWyjXKT+b4OwjYPXrf52zGE7nGi+ROIMzG41wThXIetMSICCA/q QCf0JbbB/QVwEyKOJoEtXH+eoScujLq+nbzsv9eBx1F+tNyx1+EgL8zTKJywGSfKDhDc 0ocMTmdJHKAIT3CCfdHZeiR00wjqjNtZgC6OOu5fUu205e4leNJah7w+OtYcqYKAaVpJ lmxo4B4bgnmVvK3AHtjf/DV2KQ3E6QemB7UpUNyRACPIWXOzt/0GKNSJf7pyrSYnDsFN Q19g== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c14-20020a170902d48e00b00188e49e9dddsi5991871plg.52.2022.11.18.17.09.12; Fri, 18 Nov 2022 17:09:23 -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 S237125AbiKRXxs (ORCPT + 90 others); Fri, 18 Nov 2022 18:53:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237041AbiKRXwH (ORCPT ); Fri, 18 Nov 2022 18:52:07 -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 B38CFBCDE9 for ; Fri, 18 Nov 2022 15:27:26 -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 1owA9o-0005Y3-5v; Fri, 18 Nov 2022 23:48:24 +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 1owA9l-0058uE-50; Fri, 18 Nov 2022 23:48:22 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9j-0000Vm-40; Fri, 18 Nov 2022 23:48:19 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , James Schulman , David Rhodes , Lucas Tanure , Richard Fitzgerald , Jaroslav Kysela , Takashi Iwai Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-kernel@vger.kernel.org Subject: [PATCH 599/606] ALSA: hda: cs35l41: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:33 +0100 Message-Id: <20221118224540.619276-600-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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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/pci/hda/cs35l41_hda_i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/hda/cs35l41_hda_i2c.c b/sound/pci/hda/cs35l41_hda_i2c.c index 5a6252d9b9e1..7826b1a12d7d 100644 --- a/sound/pci/hda/cs35l41_hda_i2c.c +++ b/sound/pci/hda/cs35l41_hda_i2c.c @@ -12,7 +12,7 @@ #include "cs35l41_hda.h" -static int cs35l41_hda_i2c_probe(struct i2c_client *clt, const struct i2c_device_id *id) +static int cs35l41_hda_i2c_probe(struct i2c_client *clt) { const char *device_name; @@ -58,7 +58,7 @@ static struct i2c_driver cs35l41_i2c_driver = { .pm = &cs35l41_hda_pm_ops, }, .id_table = cs35l41_hda_i2c_id, - .probe = cs35l41_hda_i2c_probe, + .probe_new = cs35l41_hda_i2c_probe, .remove = cs35l41_hda_i2c_remove, }; module_i2c_driver(cs35l41_i2c_driver); -- 2.38.1