From patchwork Fri Nov 18 22:36:47 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: 22594 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448321wrr; Fri, 18 Nov 2022 14:52:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf5UVotqJ2IR0cXRxxwznEazxn9ITej090tJuWlqxD+O55D8GQkC2R0GFUoQugZnM2ZBSIXk X-Received: by 2002:a17:90a:2dc3:b0:213:7f5:a972 with SMTP id q3-20020a17090a2dc300b0021307f5a972mr16141662pjm.159.1668811924029; Fri, 18 Nov 2022 14:52:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811924; cv=none; d=google.com; s=arc-20160816; b=b1vTidgLNVXzSkiGvdUIyaxMdCj3OtnnlyAw66SOiU5HpLdyv3TgbGRYBErgO2IdKz xREeI45PGdvBJgEqtCHj7SL4RAdnKtu9Aou0Z7jd6ww94RKBNxP5i7CUOAsZCjVVPgMo P2a8qIp35zxfi8XDDzfw6WKR6B2cjWc9iTuumbeGbXlK1QxK0SaiP0VovbkMeRPf3dp3 lkekoUllTp3ctTBkZWf4UyVDlcUzTDbDWl/nWcpI2/+JJRz+DVgpgiWpfujWzy4KlrY/ ppdMUnzRfKvUAlnsPDdC/qrCbG6ZLw6ztaUoB35x5pDmHB8NdiC2t8g8vPZouZn74y2K CnQg== 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=eowwGH0UhBEIZRwCF836nkxZfJl1TCdNf8a/L4pF8VI=; b=omCF7rqNAbTJVr278dHJ5LxnH0TTmu4IBOH9P3hwuDVEvfLGJ0uI8fn4NNophH/lLZ Cb+8uMED5uteqg1wP+mqLG7Jc4BQmpDvRZkGjQajq7EjsG5x1a5iT5tBlGrW+lZp4pl1 wCF/pkgPwyYKF+RMsaGJ2M+Sb/VT0dhsmuqyQ1zP6+3v9UxAN+xigQLiGhAtkZxMTzBl J6jhfeThWM6wIESat9sItgw8uejfORtZiIx+CTQfp7W5RDtkgBhCBT/2ImxEULJCTYrz xV7Xs8QegpFKeR5oy596fyfXfo2CdHVG0oV3M78TlWICFtIghLXW6pw2F72/nETUowIE c1mw== 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 y10-20020a170903010a00b00179c921918esi4349113plc.17.2022.11.18.14.51.51; Fri, 18 Nov 2022 14:52:04 -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 S233977AbiKRWvG (ORCPT + 99 others); Fri, 18 Nov 2022 17:51:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233150AbiKRWsb (ORCPT ); Fri, 18 Nov 2022 17:48:31 -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 79AC2B949D for ; Fri, 18 Nov 2022 14:46:50 -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 1owA7w-0008Hw-TT; Fri, 18 Nov 2022 23:46:28 +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 1owA7s-0058DU-K2; Fri, 18 Nov 2022 23:46:25 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7q-00HazX-Ve; Fri, 18 Nov 2022 23:46:22 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 073/606] iio: chemical: ams-iaq-core: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:47 +0100 Message-Id: <20221118224540.619276-74-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?1749876132046712694?= X-GMAIL-MSGID: =?utf-8?q?1749876132046712694?= 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 --- drivers/iio/chemical/ams-iaq-core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/chemical/ams-iaq-core.c b/drivers/iio/chemical/ams-iaq-core.c index 97be3669c554..0a0fbcdd4469 100644 --- a/drivers/iio/chemical/ams-iaq-core.c +++ b/drivers/iio/chemical/ams-iaq-core.c @@ -135,8 +135,7 @@ static const struct iio_info ams_iaqcore_info = { .read_raw = ams_iaqcore_read_raw, }; -static int ams_iaqcore_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ams_iaqcore_probe(struct i2c_client *client) { struct iio_dev *indio_dev; struct ams_iaqcore_data *data; @@ -180,7 +179,7 @@ static struct i2c_driver ams_iaqcore_driver = { .name = "ams-iaq-core", .of_match_table = ams_iaqcore_dt_ids, }, - .probe = ams_iaqcore_probe, + .probe_new = ams_iaqcore_probe, .id_table = ams_iaqcore_id, }; module_i2c_driver(ams_iaqcore_driver);