From patchwork Fri Nov 18 22:38:43 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: 22785 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466515wrr; Fri, 18 Nov 2022 15:40:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7eZWacxKpmcOc+qDpCNj1PqDIaD+KQGbz+y+2RVRxaCImwxestThRsQ1xbEB482ZLHuhjV X-Received: by 2002:a17:907:766c:b0:7af:6ab:1d8d with SMTP id kk12-20020a170907766c00b007af06ab1d8dmr7591709ejc.211.1668814812364; Fri, 18 Nov 2022 15:40:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814812; cv=none; d=google.com; s=arc-20160816; b=qlYJ7TlG2/s7BM2rhRwuanGXFSjABkg/UHpAcL49bEoEuRm0hChaKnsA/dahIDnbtC yS/H5KmM/IEptiI9vNQMU5/52fDuaxD21uBcXMDUb+kC66BZaJS4tkYuVRsgrr9ZibHf lUys9XPCEMRO4JHL/2JDKpb5VUd8ICRn8XJSaXARVMEAjz3KL8NzO+1L/7i7K4R++KVv 0e3JFSgSTcaI54/SnVp0FWMo79YfEEgteFSyHtuM1K9uJvWkJe33+Cmwrk3sPOApacfP 9yuqbK9Zn8t2iQ7GJzRHQ9cI71PUh1+eqHIt4RZZqhVDsbVXxQHhZEMNNNXFhyD3L8R1 5Dcw== 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=KoYaBYGemUEzOx2sAQ47P5kgSItg2C5ARjKZjS4RF0U=; b=h0NjDkLJ6HMaHA2bdBkSD6jcF5Z95hPGUwTPMqp9EiClyuDIaam4+y8rJcdvHlR6mO DkjoWIQCWSHRGjoG1tI5BqIq4JSqb7udOoN1SI9TQ8iqiPZZ4cp1QxpLGOHe+WSE5SSw 6XEWggmsH62ji1Be+67V1I8MvSbcGlQ5Ewcf2gLLbO9WOXUKSg2/WniP1tUEtJWgGXW2 9YnoVACR3M/L6pAV4YqvS6ruIygArk88t3XtJT4Q9wqZPnluhW6s1AJ3npgnSn7Zwij8 3Ln0e4GwMgUT+JZyEu5W0XqjKfTGQSa5e0E0b22A0ThSYMokOSpqudivd0A3xzCxc8Rj q6Fg== 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 d21-20020a1709067f1500b007707b853e46si3315138ejr.882.2022.11.18.15.39.45; Fri, 18 Nov 2022 15:40:12 -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 S236471AbiKRXij (ORCPT + 99 others); Fri, 18 Nov 2022 18:38:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236408AbiKRXcz (ORCPT ); Fri, 18 Nov 2022 18:32:55 -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 997A41839D for ; Fri, 18 Nov 2022 15:20:43 -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 1owA8L-0001U4-CI; Fri, 18 Nov 2022 23:46:53 +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 1owA8H-0058Mj-Hi; Fri, 18 Nov 2022 23:46:50 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8H-00Hb78-Ip; Fri, 18 Nov 2022 23:46:49 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko 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 189/606] iio: temperature: tsys01: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:43 +0100 Message-Id: <20221118224540.619276-190-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?1749879160710531131?= X-GMAIL-MSGID: =?utf-8?q?1749879160710531131?= 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/temperature/tsys01.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/temperature/tsys01.c b/drivers/iio/temperature/tsys01.c index 60d58ec5b063..30b268ba82cc 100644 --- a/drivers/iio/temperature/tsys01.c +++ b/drivers/iio/temperature/tsys01.c @@ -176,8 +176,7 @@ static int tsys01_probe(struct iio_dev *indio_dev, struct device *dev) return devm_iio_device_register(dev, indio_dev); } -static int tsys01_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tsys01_i2c_probe(struct i2c_client *client) { struct tsys01_dev *dev_data; struct iio_dev *indio_dev; @@ -219,7 +218,7 @@ static const struct of_device_id tsys01_of_match[] = { MODULE_DEVICE_TABLE(of, tsys01_of_match); static struct i2c_driver tsys01_driver = { - .probe = tsys01_i2c_probe, + .probe_new = tsys01_i2c_probe, .id_table = tsys01_id, .driver = { .name = "tsys01",