From patchwork Fri Nov 18 22:38:18 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: 22820 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471012wrr; Fri, 18 Nov 2022 15:55:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf6PdzLINcKnHvQgz8SpKMXrkBudEQhj1G2BSOgNOcfQ6D1KCL4UaonxNfz1QObO9rEmAo1I X-Received: by 2002:a17:906:229a:b0:78d:d762:5457 with SMTP id p26-20020a170906229a00b0078dd7625457mr8138477eja.67.1668815733577; Fri, 18 Nov 2022 15:55:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815733; cv=none; d=google.com; s=arc-20160816; b=iIyEl1PiK9lLTo/0lB3meqBT+U6EhhaYCVGY7C2BCiZPg6hswZDCJe0bJmqDg6AN9P vBgtB6nWQsPcbSC0eLpHZuzG1Ea//3p2xXgoxt18wd5mT52TBYOIHh1F7wjUcWiFPD5s QNz7MeTv7p1NpW6/96Q+Q4KUxC7mcixVAP9uwmWusGocPwWgWUHXTywZqZuS2rtxPv+8 zR9kU52N9YoE2nw4sdKt15tHJUEve0CPkgZ4e4rmsoP55kr4cVy9AjpUYB3mNZINV76u RzNUNX+6ym1SNZ9m/vb+1a+t//GpgkW6KxY44sqWwV51b0M0yTaPnS4Ev6vR5hlUI8ws pRRg== 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=j0FztnOj1geflWt/dvZBHgm4xS14+ooujwu3M+RYsm4=; b=TlKLJhs7WJzojzXYMeaUy9wS8ZNMqrYpN5t1vQTXZfVM2VQysr0HlQbqic0uBsKFe4 tlx5BbdyTZ903wMCi42jDzkrICR2S4We6X9TwJ2mV9JlB6ERN6BVwQ70xihglqJgF11f TbEbH8x0Y2J7n76gUP/j1869KSRgRwFCkIWPdAxC6Yiuzk7u7YjqE7L4Nb8Dy5SbAhsS mOETy6jZ2mvFSkAhvffUES1I0nQu+Y+IgZnwoOoZBe420rq8WfQ5hb5ulRH+hpj43w2J G2rWUCwLfSl9gqYgfyzFwTaY8N9rr2mbQkGMWDzvxfcqlDhKWPEuGFWp9NTGZDn8+om3 /I5A== 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 hz3-20020a1709072ce300b0078e06df0d29si3754382ejc.705.2022.11.18.15.55.08; Fri, 18 Nov 2022 15:55:33 -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 S236740AbiKRXkn (ORCPT + 99 others); Fri, 18 Nov 2022 18:40:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236809AbiKRXh5 (ORCPT ); Fri, 18 Nov 2022 18:37:57 -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 8C6DCA6A07 for ; Fri, 18 Nov 2022 15:22:46 -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 1owA8F-00013k-7H; Fri, 18 Nov 2022 23:46:47 +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 1owA8A-0058Ka-PB; Fri, 18 Nov 2022 23:46:43 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8A-00Hb5V-N5; Fri, 18 Nov 2022 23:46:42 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Hans Verkuil , Heikki Krogerus , Vladimir Oltean , Sebastian Reichel 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 164/606] iio: potentiostat: lmp91000: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:18 +0100 Message-Id: <20221118224540.619276-165-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?1749880126451111813?= X-GMAIL-MSGID: =?utf-8?q?1749880126451111813?= 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/potentiostat/lmp91000.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/potentiostat/lmp91000.c b/drivers/iio/potentiostat/lmp91000.c index 5ec7060d31d9..b82f093f1e6a 100644 --- a/drivers/iio/potentiostat/lmp91000.c +++ b/drivers/iio/potentiostat/lmp91000.c @@ -292,8 +292,7 @@ static const struct iio_buffer_setup_ops lmp91000_buffer_setup_ops = { .predisable = lmp91000_buffer_predisable, }; -static int lmp91000_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lmp91000_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct lmp91000_data *data; @@ -417,7 +416,7 @@ static struct i2c_driver lmp91000_driver = { .name = LMP91000_DRV_NAME, .of_match_table = lmp91000_of_match, }, - .probe = lmp91000_probe, + .probe_new = lmp91000_probe, .remove = lmp91000_remove, .id_table = lmp91000_id, };