From patchwork Fri Nov 18 22:45:04 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: 23089 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487609wrr; Fri, 18 Nov 2022 16:43:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf5qTQRMM1tuwWLzgLeKxx0Nxmt2ujlT/HgfvRX02nzb25kaKr+EUjskWDcnLcVPyyo4h7ir X-Received: by 2002:a17:906:cb90:b0:772:e95f:cdce with SMTP id mf16-20020a170906cb9000b00772e95fcdcemr8024460ejb.78.1668818614174; Fri, 18 Nov 2022 16:43:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818614; cv=none; d=google.com; s=arc-20160816; b=owgmQu1KPRBGUEy0vgd7ovT0HoXy33DVVy2+kPm2KUaxJzS5G7BYcjkBoK2fi2UPYw KJrHZrRsQc8xTOykuow9wbFRuqWYVNm8sGS+zooBA7Ihrc7HtdYwexc9oWyVVK/NGvg6 2BnA3Jq+G5WDY1ysunlV6sVqm2BQVWhejnqsVHB/pyJQXBH6rt5VI6AaWL10FQIGrHg7 J+O7f/sK4jwwW3wHDTAeOUcsfgRhLN+g9vXJc+orArfQtSsf/SRkJ9cgUymr11KRBxm6 5i7W/BWVprU25FnjtWwWbTCxBzj8meKAg+tzaWVndJ0+l67KUsEMb405jOnEAfuM7P/n fehg== 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=bqQ6SZoeoPzyq9oKAcMJNkz39HcoBjQNVLDHVdB+13w=; b=O6HvVK4vfuWjTtI+IYjN8rEcfN1YRrFuILpiAWYyIukAEcAKDCEG1IEYtQt5mPlFou J/Ljwdlu94S16VZS0E8tbVlNJl0JYguIkLwitjcN9MPDChGHX77J44nfsJR2s+kX/jgJ xWXGwziiz2/mHX7wyG5NkC6WFf9nEgD5WASFIwcR7o14uk/wrv6KUbfY180V8IOxGF2F 6tCa4BqmrtV9+8WR0hvoCmwQXuUQ1+jaLAyR5QKd0USNauVGmWS6mFDugJHPZZE7yv5z 67gjeY26lg7MJLPMo3XEpuoiWzWOcPqgwTbWxUpTAvE9FXZTD4B5yr0YLD+o6RGZycJu KBVQ== 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 g7-20020a1709065d0700b007ae2dfe8b76si4294981ejt.76.2022.11.18.16.43.03; Fri, 18 Nov 2022 16:43:34 -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 S231695AbiKSAXb (ORCPT + 99 others); Fri, 18 Nov 2022 19:23:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231880AbiKSAXF (ORCPT ); Fri, 18 Nov 2022 19:23:05 -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 67951BA5A6 for ; Fri, 18 Nov 2022 15:37:41 -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 1owA9g-0005Er-An; Fri, 18 Nov 2022 23:48:16 +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 1owA9d-0058rU-Ih; Fri, 18 Nov 2022 23:48:14 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9d-0000Tu-Mq; Fri, 18 Nov 2022 23:48:13 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jens Frederich , Jon Nettleton , Greg Kroah-Hartman Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 570/606] staging: olpc_dcon: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:04 +0100 Message-Id: <20221118224540.619276-571-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?1749883147103694481?= X-GMAIL-MSGID: =?utf-8?q?1749883147103694481?= 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/staging/olpc_dcon/olpc_dcon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/olpc_dcon/olpc_dcon.c b/drivers/staging/olpc_dcon/olpc_dcon.c index 4fb9b9f10799..2fba52e0bd7b 100644 --- a/drivers/staging/olpc_dcon/olpc_dcon.c +++ b/drivers/staging/olpc_dcon/olpc_dcon.c @@ -579,7 +579,7 @@ static int dcon_detect(struct i2c_client *client, struct i2c_board_info *info) return 0; } -static int dcon_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int dcon_probe(struct i2c_client *client) { struct dcon_priv *dcon; int rc, i, j; @@ -779,7 +779,7 @@ static struct i2c_driver dcon_driver = { }, .class = I2C_CLASS_DDC | I2C_CLASS_HWMON, .id_table = dcon_idtable, - .probe = dcon_probe, + .probe_new = dcon_probe, .remove = dcon_remove, .detect = dcon_detect, .address_list = normal_i2c,