From patchwork Fri Nov 18 22:37:35 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: 22750 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465090wrr; Fri, 18 Nov 2022 15:36:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf6fOcl99apdMFpxpNKgcCOXFMMYlhINtj269mvs5vLo8OmRPRCLTCchWcsHc/MyNl37A2zb X-Received: by 2002:a17:906:e87:b0:78d:b88f:1548 with SMTP id p7-20020a1709060e8700b0078db88f1548mr8007915ejf.221.1668814595667; Fri, 18 Nov 2022 15:36:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814595; cv=none; d=google.com; s=arc-20160816; b=ddPRKj5oVIf+Jvb3nM49/xLlLHQnWU7CUJX1sOloGEuHr5hUwZfIQbReB/Ux5v9H2S LFmQzCGz5hW64RFcXejxeUmdm3ZLNnhYjbh+t14hLRQXwN13cqvgLZsDdGJenP4v6X8m NeJdSwKK7xAiS6DUOgxXkmbomURGIXJsGooCc8V8Nya70IXaQSHbZFPgT1+f9fXmWWva NYMg8ji7MwhhxIrBoHnIZpTfF5saO2L249y+LXy2trUOPaz2u/2AxZ2jEhgQRqHU1cdx tuIy1D6sky7wfGEZCqbYNj8xcinWBhG6LdL0V56fddDjvpSFeXHhAvG0reWsIkJ0CbtF 1Www== 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=XMUR5Lex0nUJx9x0dV8xXGtD1+XzUnfiao4T05VzxcI=; b=EJVyiD2XeFTRpd6QQH9Hl4EMIsM2G3lZcgymKgBiWo4UOCZYeEovASRlwcEF/Lm/KT 2E5jFWHrwwuwlaj8kyGdNeidJRqj6xJCQXXkuFYc5dx4Z78ubg12dYXCcy2vGhGiVHbN tzLjKo7I1c/d0oUeNu6mjcVphqxXOXNJfEd+pfkV6WS+C5+m5DoG3/OWL0Q85jp3EJyO Ce5gJNfZbB+WVaJhL15y7+ltzXzRgsg2B97DTaDXIL5QzIDyoDfVYzwIc+6ksKUCflVQ W+x3FQIn3ecTraDQVp2NZYCqj5Mc68ERzncPbP55/ktKUVFzd3L26YZ915P6ljCg8bkB z/vQ== 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 d3-20020a056402400300b00463c5c32c65si4255593eda.457.2022.11.18.15.36.12; Fri, 18 Nov 2022 15:36:35 -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 S230484AbiKRXf3 (ORCPT + 99 others); Fri, 18 Nov 2022 18:35:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236131AbiKRXcE (ORCPT ); Fri, 18 Nov 2022 18:32:04 -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 9EB5A97ED7 for ; Fri, 18 Nov 2022 15:19:40 -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 1owA86-0000Wt-H5; Fri, 18 Nov 2022 23:46:38 +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 1owA81-0058HA-QD; Fri, 18 Nov 2022 23:46:34 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA81-00Hb2h-MK; Fri, 18 Nov 2022 23:46:33 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Kevin Tsai , 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 121/606] iio: light: cm3323: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:35 +0100 Message-Id: <20221118224540.619276-122-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?1749878933609486370?= X-GMAIL-MSGID: =?utf-8?q?1749878933609486370?= 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/light/cm3323.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/cm3323.c b/drivers/iio/light/cm3323.c index fd9a8c27de2e..e5ce7d0fd272 100644 --- a/drivers/iio/light/cm3323.c +++ b/drivers/iio/light/cm3323.c @@ -214,8 +214,7 @@ static const struct iio_info cm3323_info = { .attrs = &cm3323_attribute_group, }; -static int cm3323_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int cm3323_probe(struct i2c_client *client) { struct cm3323_data *data; struct iio_dev *indio_dev; @@ -267,7 +266,7 @@ static struct i2c_driver cm3323_driver = { .name = CM3323_DRV_NAME, .of_match_table = cm3323_of_match, }, - .probe = cm3323_probe, + .probe_new = cm3323_probe, .id_table = cm3323_id, };