From patchwork Fri Nov 18 22:45:29 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: 22963 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp475514wrr; Fri, 18 Nov 2022 16:06:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf6J2p6Al8BA5Fq/2Ne+0fTLRUkMFcrD5CI5PGUJIsfUg2ynInoG82CjebnaDzxBxBbOHwUV X-Received: by 2002:a17:907:2bd4:b0:78e:1046:c52a with SMTP id gv20-20020a1709072bd400b0078e1046c52amr7806999ejc.713.1668816394014; Fri, 18 Nov 2022 16:06:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816394; cv=none; d=google.com; s=arc-20160816; b=FdLjfD3AjOdGvC3rjEysL3fyjPdntuHEsn+vmE8IDNDhq/kzvUjduFElJQ0kNi8Vk8 0QkikykMXdVrCkb24UqJiepklTLVVjGKz/Zd5AeK83T6nV8KuLtXSazhgGZKQREDHoMp 4Qx95wU70kIldi0lYD9UhTF7inhPwjFE5rDVCJcvFkVFH2dCjKk288cTZBRVXGem0ViC gnvWjGP5T3OsLRKN5kMhGK+d6b0E3DmU8QmJeVHA0qXEEBFb14X5w/209FluLPZzc5hu gIpszln6vwfDNlOuajlJ7FSNFwZHCUByEdRuJsg5+2A9tj5DUVz6OgePSVnG3V2A0Z3Z 7LMQ== 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=05rxDKU3QtI2zbjG12aiWDq5Mlr9hYfPHRPdmIoEzJA=; b=x/B/cczFKvchXIA+Ct3soaLXRIo1IuObtiqWszl+cl8C1YzCtDTmWj5/uqVCKkspcv UXnTHJI4aU2ljrG83ztY7jkTSM6FIuqUxfBwa2jDtPYI25X6hfkqwNjm8cCRHNcgKzX+ /lOxmpWfEOCxivmdFU5ayg058hQMJSlAl1j66O2XASEExxGnZm33IgRaKcUHV4zr/SYm AKQcby7DwJR3WatHFMPQArGMoImiAkYoi4j/0XlTf8/JV162Wpj3TfhkU9D207HdiH5T CGigPdyJtkM67lNbbcCwGb8+nAQ/3DAVhBul8KgJaQ2UAdoNymVXohkGHvTy1d4J5LOH Dr1w== 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 nb19-20020a1709071c9300b0078d93245e34si4267271ejc.793.2022.11.18.16.06.09; Fri, 18 Nov 2022 16:06: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 S237220AbiKRX72 (ORCPT + 99 others); Fri, 18 Nov 2022 18:59:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231969AbiKRX4s (ORCPT ); Fri, 18 Nov 2022 18:56:48 -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 6C25B12AAB for ; Fri, 18 Nov 2022 15:28:37 -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 1owA9m-0005R9-6P; Fri, 18 Nov 2022 23:48:22 +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 1owA9i-0058tR-GE; Fri, 18 Nov 2022 23:48:19 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9i-0000VV-Et; Fri, 18 Nov 2022 23:48:18 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Evgeniy Polyakov , Andy Shevchenko , Hans Verkuil , Dmitry Torokhov , Adrien Grassein Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-kernel@vger.kernel.org Subject: [PATCH 595/606] w1: ds2482: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:29 +0100 Message-Id: <20221118224540.619276-596-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?1749880819238195959?= X-GMAIL-MSGID: =?utf-8?q?1749880819238195959?= 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/w1/masters/ds2482.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/w1/masters/ds2482.c b/drivers/w1/masters/ds2482.c index 62c44616d8a9..3d8b51316bef 100644 --- a/drivers/w1/masters/ds2482.c +++ b/drivers/w1/masters/ds2482.c @@ -442,8 +442,7 @@ static u8 ds2482_w1_set_pullup(void *data, int delay) } -static int ds2482_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ds2482_probe(struct i2c_client *client) { struct ds2482_data *data; int err = -ENODEV; @@ -553,7 +552,7 @@ static struct i2c_driver ds2482_driver = { .driver = { .name = "ds2482", }, - .probe = ds2482_probe, + .probe_new = ds2482_probe, .remove = ds2482_remove, .id_table = ds2482_id, };