From patchwork Fri Nov 18 22:35: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: 22564 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447550wrr; Fri, 18 Nov 2022 14:49:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf6gip9w/gBrZcSvMjJ5MNj66PmLrruH9rT3X6eBKOFf8VlwpbXA+XGLHoVxzbQdpj4sUMAZ X-Received: by 2002:a63:f308:0:b0:43b:ddc9:1d13 with SMTP id l8-20020a63f308000000b0043bddc91d13mr8453399pgh.284.1668811783328; Fri, 18 Nov 2022 14:49:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811783; cv=none; d=google.com; s=arc-20160816; b=d78id+OAGUJNNZV+i8yAATUqSC7JEhAVid7rT2AsGLntXbRVvJuM74StSXDTwZKIQX Q2Kz1j/X61AY7+fesvVL9TwQyqehgXVCbdijVPEMvZqXIFEl3iKEZ9kp9xMtg7EDXPJG srr+U62pbpGCLvG0Ift60nsIC1n+Q4rVjk7mL+IXw17tqmMLFbRhC1K8MaueZrLaS2zx MCV0FuAUjH+jp0ayubgi2tgyVjrmSAiJdRf8B/LvSakFT5P26i35cEtUUa0l/JdDAdd0 X0KrcAxGDYKRVCb5SzdAKiu6dRCdtMckxAW66JP+k7rkRk0oJq7Bt99uKFuw1yw4IIFy /Imw== 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=QLXdxnt5W0UpY40RN5K0t/xoM9yjsk7XtGP0dJUc86E=; b=VvH0D9Qgkc2qXDzMg2plt2Zaz6XyC9ir6okxv++9spj9hqe5p+8z10K+98v7yglhUY IPC68qt7ylDxkpd3z0XECTtqGPHX7IDz1gK851UXcv0x9NeUGkz/PVpnVXGs73jzBfUq HlS8qXBjdf8i04279Mx+pHVv/GKgy1vgoS1+7wk5XP1AAsx2w2X1Hl0gUgRemYX79po2 fO/OugV08a0QS5dNlp3AFo1bGqm9UFBXLvDvNj0WsdICZjWsjlJyLX2p18bGU779MJ3F Pa9WGaaOfFWjtdaBi04xKjVmm21O0C2P1etTvUNizk3Hvf9rY4dgW2RVtaxsWHlIjr1m 9/2Q== 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 n16-20020a170903111000b00176a6c988c6si5394522plh.218.2022.11.18.14.49.30; Fri, 18 Nov 2022 14:49:43 -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 S233247AbiKRWsm (ORCPT + 99 others); Fri, 18 Nov 2022 17:48:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232165AbiKRWqr (ORCPT ); Fri, 18 Nov 2022 17:46:47 -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 29956B4F15 for ; Fri, 18 Nov 2022 14:46:33 -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 1owA7g-0007My-KC; Fri, 18 Nov 2022 23:46:12 +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 1owA7c-00587n-4K; Fri, 18 Nov 2022 23:46:09 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7c-00Hav1-BH; Fri, 18 Nov 2022 23:46:08 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Peter Huewe , Jarkko Sakkinen , Dmitry Torokhov , Jonathan Cameron , Maximilian Luz Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Jason Gunthorpe , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 001/606] tpm: st33zp24: Convert to Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:35 +0100 Message-Id: <20221118224540.619276-2-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?1749875984662183865?= X-GMAIL-MSGID: =?utf-8?q?1749875984662183865?= 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 Acked-by: Jarkko Sakkinen --- drivers/char/tpm/st33zp24/i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/char/tpm/st33zp24/i2c.c b/drivers/char/tpm/st33zp24/i2c.c index 614c7d8ed84f..0cd614933b4a 100644 --- a/drivers/char/tpm/st33zp24/i2c.c +++ b/drivers/char/tpm/st33zp24/i2c.c @@ -101,8 +101,7 @@ static const struct st33zp24_phy_ops i2c_phy_ops = { * @return: 0 in case of success. * -1 in other case. */ -static int st33zp24_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int st33zp24_i2c_probe(struct i2c_client *client) { struct st33zp24_i2c_phy *phy; @@ -167,7 +166,7 @@ static struct i2c_driver st33zp24_i2c_driver = { .of_match_table = of_match_ptr(of_st33zp24_i2c_match), .acpi_match_table = ACPI_PTR(st33zp24_i2c_acpi_match), }, - .probe = st33zp24_i2c_probe, + .probe_new = st33zp24_i2c_probe, .remove = st33zp24_i2c_remove, .id_table = st33zp24_i2c_id }; From patchwork Fri Nov 18 22:35:36 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: 22568 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447660wrr; Fri, 18 Nov 2022 14:50:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf7AgPGyzu5a9Z6HxZbMGoKeGmbTd8YuG/22lYN+8RHFpc52jto1qG2rQk2097tA/sAKZQBJ X-Received: by 2002:a63:f503:0:b0:470:4acb:1eb with SMTP id w3-20020a63f503000000b004704acb01ebmr8335549pgh.440.1668811800758; Fri, 18 Nov 2022 14:50:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811800; cv=none; d=google.com; s=arc-20160816; b=DU5gaRSlhrnZQoOsozllOb+wRN3wA33uF0YzZN/JsaF2g8udxGYLthiVU5OgleTYLU F15s1D4o5/huun+hyWq3CkSzt4eJlip5E9aQRpwCt5PZe6ywQDZGEZQyWBD2K71Ek5aP uQLUFrNpTUYJDX0yOQGRvwq5uWffUtdY7KQO83EvpPyQdlkuCJjVmxM8iGq4BMbCVaUj mShtznAZ36oQq9XyvTdWDxFYqiYwexto+mqyLIEf+lmue291iKDmJBs3ImJxkThlEZT0 M08ytz6Q5rVLB1A33aYHky33+PTU17cNUmTeafbq2YTntDYVCcBh7MLruZbmknlP7RDL 3Ljw== 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=td+53IxUmc6FbJAAfWkSSuUt6/VciqqnnRzkNzjGyyc=; b=n7hUMhZiqLIy8Ubv9oB8G1V2jwF9/qIWZ2MXkMCRgOgrlidI/eQ4wJmUj37GNzeFEF ssRTd5vHS1CtZHRJYCzoZ/AVwPrASSvuPa/y5R2UXtFGPVZYIMpHhOmQLr7D7h2P8KCa Yc5HWDBrESCrUqaRQt2v4vokLnx+740f43Ulszs6e6Zb/H6zuHpgNhblVv7Jl8DiDEZi /GG8K2SOl3w1IsYlLi35TxML84cW1xHQDBMaPa6LOOiGcJZ2CGddeHOYVlhgVsrkNiht KwhFqQ239nkeyN0c/rWgWkbVAKdsABV9SFerDWMigRjgnAE3JJ02WmMW8D5BIgHM0aws ADTQ== 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 r11-20020aa7988b000000b0056bac1881basi4462554pfl.316.2022.11.18.14.49.48; Fri, 18 Nov 2022 14:50:00 -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 S233366AbiKRWtB (ORCPT + 99 others); Fri, 18 Nov 2022 17:49:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232222AbiKRWqs (ORCPT ); Fri, 18 Nov 2022 17:46: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 7FBF1B54FE for ; Fri, 18 Nov 2022 14:46:35 -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 1owA7e-0007NL-Gf; Fri, 18 Nov 2022 23:46:10 +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 1owA7c-00587r-AR; Fri, 18 Nov 2022 23:46:09 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7c-00Hav4-HB; Fri, 18 Nov 2022 23:46:08 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Peter Huewe , Jarkko Sakkinen , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Jason Gunthorpe , linux-integrity@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 002/606] tpm: tpm_i2c_atmel: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:36 +0100 Message-Id: <20221118224540.619276-3-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?1749876002721739856?= X-GMAIL-MSGID: =?utf-8?q?1749876002721739856?= 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 Acked-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_i2c_atmel.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/char/tpm/tpm_i2c_atmel.c b/drivers/char/tpm/tpm_i2c_atmel.c index 4be3677c1463..8f77154e0550 100644 --- a/drivers/char/tpm/tpm_i2c_atmel.c +++ b/drivers/char/tpm/tpm_i2c_atmel.c @@ -146,8 +146,7 @@ static const struct tpm_class_ops i2c_atmel = { .req_canceled = i2c_atmel_req_canceled, }; -static int i2c_atmel_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int i2c_atmel_probe(struct i2c_client *client) { struct tpm_chip *chip; struct device *dev = &client->dev; @@ -204,7 +203,7 @@ static SIMPLE_DEV_PM_OPS(i2c_atmel_pm_ops, tpm_pm_suspend, tpm_pm_resume); static struct i2c_driver i2c_atmel_driver = { .id_table = i2c_atmel_id, - .probe = i2c_atmel_probe, + .probe_new = i2c_atmel_probe, .remove = i2c_atmel_remove, .driver = { .name = I2C_DRIVER_NAME, From patchwork Fri Nov 18 22:35:37 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: 22543 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447034wrr; Fri, 18 Nov 2022 14:48:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf5CCjYEZaY6P9Ej1lQSp1mL/b4/DNtoKK0wfSIvu1Imklo/XENOZ4223YiO3nGtVekCT6zT X-Received: by 2002:a05:6402:1a2e:b0:461:2915:e41d with SMTP id be14-20020a0564021a2e00b004612915e41dmr7793788edb.184.1668811685931; Fri, 18 Nov 2022 14:48:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811685; cv=none; d=google.com; s=arc-20160816; b=ZYRFyketX00YeExbUHfO0NShZtixb5i/xstXMhQiPzh9hyyhUqKXf6NuZ5aERHx5KX qcdJdpk4UshnaAQ/h+zFbkbH9GuDEFs4jx3tWO8pbzAiBZqWXfX5OxiyE3+hdNWXTe/y FmiYPjCiflngjLTOWz6pTJGb8YGrMzUk+bSgk8VwJVyQ9HizPW78TWQz2K48Rb3hVgT/ CkV9kB/RzAVJXWjH/kl0F4FiiE/14GfEiHaSo+5/OYwgxo2brHnCldh0949x3T2npu0K 2EFbSjpVF7nS9bEItC2DeAVdogVVnxVU5UttoIb692KtnwKGI+ODPj1hfDV2rqFRy6Fq Tv7Q== 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=6+p8RzFgrk55xg+YLXmCSISpi+SCNbBmWn/EDnh9XL8=; b=zceI4npgrr9/J22hlHjplMeA4Le/IO9IXmIYDp88sAnfijYVlK+9Oqb0te2e64Cgdb 9bqyZ+RMB6YIhOIkfdrVvFBCP14XTTiptCMXBSO7nUPiyGGgIFGpIt5pPfN+t8Le1ROB m6nJdZzzKpe7L9BAVHZ9lPDgPB57iiq0qpXC9579PuhDKSIWSG683BBqIHQOgejnYFwq Uob8vXwgKnAH6y1ec1TYeUXvLzIbuiQscRcoQIw7TXv0thi7JL4rdRpeqyGUiuYi9YoQ V5WUKD47rDAN44p6Zx8/ZKPeZHSZ3iOkBdj26AjYso/jU3pagUuJY+WZDa0P8xkDQ6Qd +/XA== 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 xc9-20020a170907074900b00791a4f70674si3934192ejb.24.2022.11.18.14.47.42; Fri, 18 Nov 2022 14:48:05 -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 S232602AbiKRWrI (ORCPT + 99 others); Fri, 18 Nov 2022 17:47:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231623AbiKRWq1 (ORCPT ); Fri, 18 Nov 2022 17:46:27 -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 7EE44970B2 for ; Fri, 18 Nov 2022 14:46:24 -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 1owA7e-0007PD-F9; Fri, 18 Nov 2022 23:46:10 +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 1owA7c-00587w-K1; Fri, 18 Nov 2022 23:46:09 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7c-00Hav7-NE; Fri, 18 Nov 2022 23:46:08 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Peter Huewe , Jarkko Sakkinen Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Jason Gunthorpe , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 003/606] tpm: tpm_i2c_infineon: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:37 +0100 Message-Id: <20221118224540.619276-4-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?1749875882816740144?= X-GMAIL-MSGID: =?utf-8?q?1749875882816740144?= 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 Acked-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_i2c_infineon.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/char/tpm/tpm_i2c_infineon.c b/drivers/char/tpm/tpm_i2c_infineon.c index fd3c3661e646..7cdaff52a96d 100644 --- a/drivers/char/tpm/tpm_i2c_infineon.c +++ b/drivers/char/tpm/tpm_i2c_infineon.c @@ -681,8 +681,7 @@ MODULE_DEVICE_TABLE(of, tpm_tis_i2c_of_match); static SIMPLE_DEV_PM_OPS(tpm_tis_i2c_ops, tpm_pm_suspend, tpm_pm_resume); -static int tpm_tis_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tpm_tis_i2c_probe(struct i2c_client *client) { int rc; struct device *dev = &(client->dev); @@ -717,7 +716,7 @@ static void tpm_tis_i2c_remove(struct i2c_client *client) static struct i2c_driver tpm_tis_i2c_driver = { .id_table = tpm_tis_i2c_table, - .probe = tpm_tis_i2c_probe, + .probe_new = tpm_tis_i2c_probe, .remove = tpm_tis_i2c_remove, .driver = { .name = "tpm_i2c_infineon", From patchwork Fri Nov 18 22:35:38 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: 22546 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447162wrr; Fri, 18 Nov 2022 14:48:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf5dRGCZNl6SGVjhtBF51Ihi886HgOVTZ3Nbuybjm4pj5LYgGEWaF54L59iLTcwtdHgSyP+X X-Received: by 2002:a17:906:7848:b0:7ad:b286:72da with SMTP id p8-20020a170906784800b007adb28672damr7766293ejm.152.1668811712104; Fri, 18 Nov 2022 14:48:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811712; cv=none; d=google.com; s=arc-20160816; b=b843/wrzUN4FvWbIFgt2Y1j3HFOF56L1NLpdBnS22v/eQwXNgGTJ+jbeUSP8D7n7fW 9JVYYl+oKqx+QTfJ1x5vAN8xyq2Vw5dJLggsky4jsK0NdE2XKrK+varqqmejglBlgWHj umW9HnFMMrarvdUu2EFXBkWwxYIuc3oiZh16y9NNCNl76Xj7Vcbfy98BJn0NxUitNTbt Mr8xdr9ol+WQxNJhu04b4MvE4Gg09M6i17DmL1ZBfqRGSDfbcdNWU3bAygTY4xEPafEf 8L0IXOfIWRC+RK/WsNmFKOypSz9FtUSosHEYhIIjxY8U+f6ZK/B6IBeqYqZ1Vx+yG+qp yYSA== 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=19Wip7POaGCliODbfVyea8l4IX9cIP+4O2l7hAIhSUc=; b=T7TmbUaahsv3cr0s72sqwplTZLpZ1kUj1HryM+vVi0kn7xQa8wadth922efrDn8sNG 1zVybggO1av7+mSbRwzNmToaqtpuI1+orSL/Bs94LKRAx+UvExqIu8IDlRov+mFnKuC6 ssKeX4EIQI98CVbYwGJiT7hH9uDWUEw7ngqLAdg2Npff5uVeGDIE5UF8wpS1Pb93i2NR YKSjau1Jc2tIl5efqm3bskBf7kyRUvv6TlYTT/z0tGUMWeV4M40opP4+fMfJuIxn+Rih FtHJE/ZMR0003ApIf0nTwzQT5iJm7eNlKcQBEwiXFMrqHzJ0p1K2A25lBgXntpDhBRvD HOGQ== 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 i12-20020a05640242cc00b004610f91a242si4650466edc.300.2022.11.18.14.48.08; Fri, 18 Nov 2022 14:48:32 -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 S229920AbiKRWrF (ORCPT + 99 others); Fri, 18 Nov 2022 17:47:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231768AbiKRWq3 (ORCPT ); Fri, 18 Nov 2022 17:46:29 -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 8A2B8A2884 for ; Fri, 18 Nov 2022 14:46:27 -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 1owA7e-0007PQ-F9; Fri, 18 Nov 2022 23:46:10 +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 1owA7c-00587z-ML; Fri, 18 Nov 2022 23:46:09 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7c-00HavA-Tx; Fri, 18 Nov 2022 23:46:08 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Peter Huewe , Jarkko Sakkinen Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Jason Gunthorpe , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 004/606] tpm: tpm_i2c_nuvoton: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:38 +0100 Message-Id: <20221118224540.619276-5-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?1749875910110094227?= X-GMAIL-MSGID: =?utf-8?q?1749875910110094227?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Acked-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_i2c_nuvoton.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/char/tpm/tpm_i2c_nuvoton.c b/drivers/char/tpm/tpm_i2c_nuvoton.c index 95c37350cc8e..a026e98add50 100644 --- a/drivers/char/tpm/tpm_i2c_nuvoton.c +++ b/drivers/char/tpm/tpm_i2c_nuvoton.c @@ -522,9 +522,9 @@ static int get_vid(struct i2c_client *client, u32 *res) return 0; } -static int i2c_nuvoton_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int i2c_nuvoton_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); int rc; struct tpm_chip *chip; struct device *dev = &client->dev; @@ -650,7 +650,7 @@ static SIMPLE_DEV_PM_OPS(i2c_nuvoton_pm_ops, tpm_pm_suspend, tpm_pm_resume); static struct i2c_driver i2c_nuvoton_driver = { .id_table = i2c_nuvoton_id, - .probe = i2c_nuvoton_probe, + .probe_new = i2c_nuvoton_probe, .remove = i2c_nuvoton_remove, .driver = { .name = "tpm_i2c_nuvoton", From patchwork Fri Nov 18 22:35:39 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: 22541 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp446946wrr; Fri, 18 Nov 2022 14:47:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ex5S1kEzuLq62ISsDDkh1roFDd0/BFtgPbFxzJPW90eEhrO7kbQwE2nFLwOsSANxdMFAf X-Received: by 2002:a17:906:4ed9:b0:7ae:664a:a7d2 with SMTP id i25-20020a1709064ed900b007ae664aa7d2mr7811687ejv.676.1668811670869; Fri, 18 Nov 2022 14:47:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811670; cv=none; d=google.com; s=arc-20160816; b=n4kCpADqgkTgSXBPe2aivg1NtGU/Qfxrlij9izqSG7ZGzsObR/h26xpONEphbpHI9V 2iGLRR1hQcQKHXAZZCRV5qV0rZCcr4QZA5fAVQmJPO0+9Biliwr3ULro1qBK0P2lLqkQ Aaedk3M/KJr6eZ/DfqeagTncvtfiE8uGd3HMeIM9WzvVv42jwznSjd1M6SwXjKxiT0el xwHmV4i3LwnVGB9XHtcWTp4xi5Fs+HlgJUWRBj/iFhw5LNXj13X4OCrDA9mLB36eWYyb ZctbKVCnUjJ8XymDz3jNobxWqasNwhLRqSWBgWKISPwc/F1nWLlePHVkdEVdTxWFNlhm UbtA== 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=9/fdqPhGreV08fHHBAc3HjjgI+H8w6gtbC/9vxnQu2c=; b=Wd3WtphDmdXEp7ZFkTBvG7YqqRE19bHZR530uTMCdD1hs7tO1PXzfZVa3GRt7Lspww DGm//y/15C4CqbAnGka7SZbhaCx8DAWC98o0OQdxA7A3UTx3plKgoZzlfWo0J8R46vru ScMJ15mS++Q8vjlsP4zIWDNzduZZZPQ0/CDCbJppnD/cLmYm0DzLml36GkBSVFkgHAeq VnrrUQTZubvJuzpwpS8iHSgkHBoz71WkbOu/ug6d4X+H4PHdCSpjJxDfPGM2MkRPMCTC acwxojkkDpHZuw46D+UsOZrhaR1vSDrYAbX7YKVHB6LqkV01jPxPjmzAkFrDnXbYqhBm 7xSQ== 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 nb11-20020a1709071c8b00b007add62d9f38si4225874ejc.330.2022.11.18.14.47.26; Fri, 18 Nov 2022 14:47:50 -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 S232565AbiKRWq7 (ORCPT + 99 others); Fri, 18 Nov 2022 17:46:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229893AbiKRWq2 (ORCPT ); Fri, 18 Nov 2022 17:46:28 -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 C1A0499EA9 for ; Fri, 18 Nov 2022 14:46:25 -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 1owA7e-0007Pf-Hj; Fri, 18 Nov 2022 23:46:10 +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 1owA7c-005883-Ti; Fri, 18 Nov 2022 23:46:09 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7d-00HavD-3K; Fri, 18 Nov 2022 23:46:09 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Peter Huewe , Jarkko Sakkinen Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Jason Gunthorpe , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 005/606] tpm: tis_i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:39 +0100 Message-Id: <20221118224540.619276-6-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?1749875866354014469?= X-GMAIL-MSGID: =?utf-8?q?1749875866354014469?= 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 Acked-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_tis_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/char/tpm/tpm_tis_i2c.c b/drivers/char/tpm/tpm_tis_i2c.c index 0692510dfcab..18fa8b4672a8 100644 --- a/drivers/char/tpm/tpm_tis_i2c.c +++ b/drivers/char/tpm/tpm_tis_i2c.c @@ -312,8 +312,7 @@ static const struct tpm_tis_phy_ops tpm_i2c_phy_ops = { .verify_crc = tpm_tis_i2c_verify_crc, }; -static int tpm_tis_i2c_probe(struct i2c_client *dev, - const struct i2c_device_id *id) +static int tpm_tis_i2c_probe(struct i2c_client *dev) { struct tpm_tis_i2c_phy *phy; const u8 crc_enable = 1; @@ -379,7 +378,7 @@ static struct i2c_driver tpm_tis_i2c_driver = { .pm = &tpm_tis_pm, .of_match_table = of_match_ptr(of_tis_i2c_match), }, - .probe = tpm_tis_i2c_probe, + .probe_new = tpm_tis_i2c_probe, .remove = tpm_tis_i2c_remove, .id_table = tpm_tis_i2c_id, }; From patchwork Fri Nov 18 22:35:40 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: 22574 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447777wrr; Fri, 18 Nov 2022 14:50:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf6XWrr50A7comAYslOy8HWsxRgVyjQeAHODNNkIl10lg/Z/FwpvAOWLUKRtumFdTDVmunrX X-Received: by 2002:a17:902:c9cb:b0:186:c483:f017 with SMTP id q11-20020a170902c9cb00b00186c483f017mr1518546pld.136.1668811819214; Fri, 18 Nov 2022 14:50:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811819; cv=none; d=google.com; s=arc-20160816; b=JVdxWUXGNJ2FyXuzjJaC2DawHufGHpB5gwNRQOmq9VsspLT1teZICch2XFFVL+YbRf 1X6TkilEXqGQrWt2WvavvvDoG+2qe6MYEet52DlQ7nEY8cv1yJuNhDSKEl1i9qkWsgIJ 6Lc0U8juHT4qC8iMXokDN42ibmtl5daTlEFgciIdtywSkhLkxLEiuPzAjOzpgQguWjUJ wdHhQo7ztWJ6+GlyzVwb48sZenpOYWQobfDusN5IQJUy7IWh3iywgvclTTQ/WOIYzilu mHJBgBYo4o0gwKhRmHze3T3i1OFbdRKF5tFXFvV+wLPOD0WeqiwNMCOw/tNXkQztGff6 uA4w== 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=MlrsQ/oKvjXGSBKU5aBbhaQoWkZuMrYe4UA7sobhoQA=; b=SgUrR/v1N+boKXTiViUC2XNTRBYCTqi1TBLmSB0kobVvVDOPrV3s89FL/u1Utd1wWq cr1TDFBGCzai1MDSsgzDW1C7KKYcxubAWDptfItqyHUmLbc3Dkz47h4KLAxRgNGaOQkd r0KOmsjHDsiAzmmQFFAraM4/Qi58O1mj6DG1j+U0en9zJh4kYYCXIYHnAY0AXnWTdtFt tqB/IQhBFNhJ2GeHXxs0sTFLdECdFgPIgAxiDE9BXKTvVDs9VAeyOBIqBCmjo7jgc4+D m5B0+hyqhQJhlpQ2qoogW+i8EI51N2hOkfpH0YlXTq5hYNw9xABYMI6RIeipnSSRG6bB xvVw== 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 c19-20020a6566d3000000b0046fd05d55e0si4957991pgw.567.2022.11.18.14.50.06; Fri, 18 Nov 2022 14:50:19 -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 S232853AbiKRWtb (ORCPT + 99 others); Fri, 18 Nov 2022 17:49:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232312AbiKRWqv (ORCPT ); Fri, 18 Nov 2022 17:46:51 -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 77DA6B7E99 for ; Fri, 18 Nov 2022 14:46:38 -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 1owA7f-0007Pg-QR; Fri, 18 Nov 2022 23:46:11 +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 1owA7d-005887-1k; Fri, 18 Nov 2022 23:46:09 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7d-00HavH-8I; Fri, 18 Nov 2022 23:46:09 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Tudor Ambarus , Herbert Xu , "David S. Miller" , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 006/606] crypto: atmel-ecc - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:40 +0100 Message-Id: <20221118224540.619276-7-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?1749876022355405253?= X-GMAIL-MSGID: =?utf-8?q?1749876022355405253?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/crypto/atmel-ecc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/atmel-ecc.c b/drivers/crypto/atmel-ecc.c index 82bf15d49561..53100fb9b07b 100644 --- a/drivers/crypto/atmel-ecc.c +++ b/drivers/crypto/atmel-ecc.c @@ -311,9 +311,9 @@ static struct kpp_alg atmel_ecdh_nist_p256 = { }, }; -static int atmel_ecc_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int atmel_ecc_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct atmel_i2c_client_priv *i2c_priv; int ret; @@ -390,7 +390,7 @@ static struct i2c_driver atmel_ecc_driver = { .name = "atmel-ecc", .of_match_table = of_match_ptr(atmel_ecc_dt_ids), }, - .probe = atmel_ecc_probe, + .probe_new = atmel_ecc_probe, .remove = atmel_ecc_remove, .id_table = atmel_ecc_id, }; From patchwork Fri Nov 18 22:35:41 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: 22570 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447681wrr; Fri, 18 Nov 2022 14:50:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf6TMpbFO2pV7iKv3vpRjwBKcf6sMQ38UAbGgS7zv2BxA+SzTm60ymFyVwijskSgRwSzwW8k X-Received: by 2002:a63:d18:0:b0:46e:b0e3:ee46 with SMTP id c24-20020a630d18000000b0046eb0e3ee46mr8262363pgl.622.1668811804719; Fri, 18 Nov 2022 14:50:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811804; cv=none; d=google.com; s=arc-20160816; b=pPSVYCQ72K4kIfuxBOI4UXsPz1S1N6ug6k0dShlLXfTIEVYoQKjxzlUbCUAYdkCIEU s1/1QgYVWhv4zF4xNluKOS49ui9dIt/2wQ1+7LnLfUva2uQDkD0niXjwdUCXeSy5CSEu qd/OxZl09tKyhB+kliJ6ixsRg+0PZ5h4dsovQzlaZagrQcko7O0EiZjzmOECA8uYYZQF 3TybiOllWyz27nz/szviyA9TGt/DKRENwIspFXysdehpUqUO3/5eM1V6AdQStQ6Qokly kpn1BmlakqrO7Ajrm/mTRlRvvC4uZV1TJCUjzEl/VJdNgESQOWvrTvDPrW0n5mBSTSpn i+wg== 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=jvW2J+dNNeRjcyMJcO+5BzR+6MlYgd7fDUqgm7yAQRM=; b=l8FadwD4Px3mA2/+labGaw/l6lCGvOzM7OEqu2LCoiCmUPSVCHSvzXmwXVYLx8lL1P 1PSkXwyq21gag1VoS+uLIg0o5dt2WbniQWqqsn+FI5Pqgy/2meoTiryK+7ce4jPAIWux oxWxAYC3daGBupw7aJg+/AZ1THIkAqnLcEqmtZvxXEoVbqZPwSNASgfjj2X27VLIekPO rNaj1R3H3+GxTXu5/jhBZ6tHaQU/9nUJU4zmB8xrWbvE2MQnkK5s2VICvDslaN90A/ha rcmMQZQ5Btwu8fus9KFGXs5Dd6Bb131vmKgAcnQf3xG9ZudZ6ZE+XnelTIsKzvQ7T7/D yrSw== 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 y38-20020a634966000000b004769f0faab8si4894981pgk.740.2022.11.18.14.49.52; Fri, 18 Nov 2022 14:50:04 -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 S233438AbiKRWtS (ORCPT + 99 others); Fri, 18 Nov 2022 17:49:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232263AbiKRWqu (ORCPT ); Fri, 18 Nov 2022 17:46:50 -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 19B57B73A7 for ; Fri, 18 Nov 2022 14:46: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 1owA7f-0007Pv-QE; Fri, 18 Nov 2022 23:46:11 +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 1owA7d-00588C-BZ; Fri, 18 Nov 2022 23:46:10 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7d-00HavL-E2; Fri, 18 Nov 2022 23:46:09 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Herbert Xu , "David S. Miller" , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 007/606] crypto: atmel-sha204a - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:41 +0100 Message-Id: <20221118224540.619276-8-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?1749876006912569086?= X-GMAIL-MSGID: =?utf-8?q?1749876006912569086?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/crypto/atmel-sha204a.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/atmel-sha204a.c b/drivers/crypto/atmel-sha204a.c index a84b657598c6..13d5299175a9 100644 --- a/drivers/crypto/atmel-sha204a.c +++ b/drivers/crypto/atmel-sha204a.c @@ -91,9 +91,9 @@ static int atmel_sha204a_rng_read(struct hwrng *rng, void *data, size_t max, return max; } -static int atmel_sha204a_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int atmel_sha204a_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct atmel_i2c_client_priv *i2c_priv; int ret; @@ -143,7 +143,7 @@ static const struct i2c_device_id atmel_sha204a_id[] = { MODULE_DEVICE_TABLE(i2c, atmel_sha204a_id); static struct i2c_driver atmel_sha204a_driver = { - .probe = atmel_sha204a_probe, + .probe_new = atmel_sha204a_probe, .remove = atmel_sha204a_remove, .id_table = atmel_sha204a_id, From patchwork Fri Nov 18 22:35:42 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: 22538 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp446797wrr; Fri, 18 Nov 2022 14:47:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Frc3rubBPBK6ROENI9BpYM2wgc3BgYggzuidLL0Cv4SQNqjg4pQjVdp+hPNnp/K/efUc4 X-Received: by 2002:a17:906:7215:b0:78d:a7f0:e232 with SMTP id m21-20020a170906721500b0078da7f0e232mr7681506ejk.9.1668811644172; Fri, 18 Nov 2022 14:47:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811644; cv=none; d=google.com; s=arc-20160816; b=yD49lPzWO4KfID8S9lnHRRzvnqIbQw1s3oWgmomTx2GzmWLRbzzv2iO2kO3R4UXepH GQkZUOf32FoPhJMSuvaKAvo+uoU04JN+gUWBFPPx4XNrTThmCPFELvxAwvKm1mGYkDhv nHHIP4LVyPMKq+wJJ9obC2FCFl36FxB77KEF02tqVaydKYahdUms25LpqelOP0Zmo+Rn t38CxULht8yUB7SMS56+LXKomGSv57fByYMw6UhJcOGaLBif+6ApGQlabaSf8ANJy9Pd PJBLpywRWNHBc8/EfdTx20GpFVtaABUTVNyMALsMQuEl/iNVMXMX8sT52x6eRKTAUIhv zYMQ== 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=SiE3xpv/yNfAJz2i5or1Wmf1soXbtqYQFsy+NScNRTI=; b=YtIK3Jqkx2b/XTb4M/jgem3ZZrMlWCTaczURlylluUj1zUtPm6Clo22obrvIRGnQFH yXREXrSROP2YSGPqpBXVAw7K0jVkXjmmuxoIBhlsTvi6a0hYyGfNkBHUHSvtnyu8Mczg w+SV3U50dgfrQUE5Htp2j2lm6MQxJIyL6MDExZACrFuKZIwBJ0TbOtOzvCzdt9+LuKrJ Pl4fcfVKCpdfZISLq5OrKIL47Ucl92oGDULwC2DlT/Ej5ITTYJmEwaqopr+Gz2paFhnT uaYh6rQQFoTCCNU+xq3yDzYYuXrm4DN6CaYA1SJecxFIMcjd167lG1MglELTQMr/AA6D AZVw== 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 y13-20020a056402440d00b0045f5118c39fsi2186944eda.367.2022.11.18.14.47.00; Fri, 18 Nov 2022 14:47:24 -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 S230452AbiKRWqi (ORCPT + 99 others); Fri, 18 Nov 2022 17:46:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230498AbiKRWqX (ORCPT ); Fri, 18 Nov 2022 17:46:23 -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 4D6E094A6D for ; Fri, 18 Nov 2022 14:46:22 -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 1owA7f-0007QB-Sr; Fri, 18 Nov 2022 23:46:11 +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 1owA7d-00588F-FJ; Fri, 18 Nov 2022 23:46:10 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7d-00HavS-Ln; Fri, 18 Nov 2022 23:46:09 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , MyungJoo Ham , Chanwoo Choi 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 008/606] extcon: fsa9480: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:42 +0100 Message-Id: <20221118224540.619276-9-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?1749875838506782653?= X-GMAIL-MSGID: =?utf-8?q?1749875838506782653?= 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/extcon/extcon-fsa9480.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/extcon/extcon-fsa9480.c b/drivers/extcon/extcon-fsa9480.c index 7cff66c29907..e8b2671eb29b 100644 --- a/drivers/extcon/extcon-fsa9480.c +++ b/drivers/extcon/extcon-fsa9480.c @@ -257,8 +257,7 @@ static irqreturn_t fsa9480_irq_handler(int irq, void *data) return IRQ_HANDLED; } -static int fsa9480_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int fsa9480_probe(struct i2c_client *client) { struct fsa9480_usbsw *info; int ret; @@ -370,7 +369,7 @@ static struct i2c_driver fsa9480_i2c_driver = { .pm = &fsa9480_pm_ops, .of_match_table = fsa9480_of_match, }, - .probe = fsa9480_probe, + .probe_new = fsa9480_probe, .id_table = fsa9480_id, }; From patchwork Fri Nov 18 22:35: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: 22537 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp446743wrr; Fri, 18 Nov 2022 14:47:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf4DXPvCumxtvnmGxmjYy/hL228dkjHSVn804LNjYrEzqsmJmoFbZFi+JgbHe8eSUC9tvtcS X-Received: by 2002:a17:906:b08e:b0:7ad:b9a0:8a9b with SMTP id x14-20020a170906b08e00b007adb9a08a9bmr7785325ejy.509.1668811634966; Fri, 18 Nov 2022 14:47:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811634; cv=none; d=google.com; s=arc-20160816; b=q1aNMFNkLJNEoe74sdCGTnxZA/muQX6ggM/xw9rmEydoJ8auBQGm5pGvpYbH/XZGEk 03xl1wknHaG5uuNwIYC9n3b0DTJFJ4wpoNX4SX5EVRuSt/0AwaK5jP2I1hN5QFCnuZR/ 3zsYWA14vND1xsDkepgNAFlBAIieyDaraVQp7MLZijJg7ndB0Tu6/5krn6MmZBSQ0MCp Q8BwpjxWHeF50G2i/SfRmo+UJsEbbeLiMvHh6s4BG95mBOzl2PsHxjx/8YNjgbb6y26H l9uSGXNC51bfLZFqRbezgfVBM780rnbksLxBmW4h//VE1/vHio0nBSmSTcMiU957BDyl A1eA== 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=rYO6p3oSIopfhJIZ0y5G+TuQuFyk6/b6X7i2xvBknic=; b=ubAutIsZELEgyyQrsr6ld4xhydb0I/0QT7OvgimvoIz3E6VYWjE1BD6mfu0UtgUgUb 7vAUrTvPq+8Oxx4QU7/GiVGauP2Wp8ks9Z9ikZvowfOcWNBAkb+MpNdPYd/x9noJnPo4 bRPBb0WU0vVFZ/x8ophxMqcxnVZfjbrFsX/MATf2DObb56Fv+C6mLgR0+CRYMoaguiyI Iy6ho6EPjLCnEcyhGrcJPvtxCLwVjiJCHwHcm8hDbAOK1zbqUptdMTE69RXPxeIPvSD0 SNKKBvVDGe14sjEpUgirh/EQ4Pjw4xLrugYPWqhm7V9lHYRaTwIGovdmGf23QW09AgCs 2nwg== 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 n11-20020a05640205cb00b00468fd5712a3si3567572edx.351.2022.11.18.14.46.50; Fri, 18 Nov 2022 14:47:14 -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 S231939AbiKRWqb (ORCPT + 99 others); Fri, 18 Nov 2022 17:46:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231189AbiKRWqX (ORCPT ); Fri, 18 Nov 2022 17:46:23 -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 6640F94A71 for ; Fri, 18 Nov 2022 14:46:22 -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 1owA7f-0007QO-T5; Fri, 18 Nov 2022 23:46:11 +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 1owA7d-00588M-M2; Fri, 18 Nov 2022 23:46:10 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7d-00HavW-Qr; Fri, 18 Nov 2022 23:46:09 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , MyungJoo Ham , Chanwoo Choi 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 009/606] extcon: rt8973: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:43 +0100 Message-Id: <20221118224540.619276-10-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?1749875828854479328?= X-GMAIL-MSGID: =?utf-8?q?1749875828854479328?= 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/extcon/extcon-rt8973a.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/extcon/extcon-rt8973a.c b/drivers/extcon/extcon-rt8973a.c index e6e448f6ea2f..afc9b405d103 100644 --- a/drivers/extcon/extcon-rt8973a.c +++ b/drivers/extcon/extcon-rt8973a.c @@ -548,8 +548,7 @@ static void rt8973a_init_dev_type(struct rt8973a_muic_info *info) } } -static int rt8973a_muic_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int rt8973a_muic_i2c_probe(struct i2c_client *i2c) { struct device_node *np = i2c->dev.of_node; struct rt8973a_muic_info *info; @@ -696,7 +695,7 @@ static struct i2c_driver rt8973a_muic_i2c_driver = { .pm = &rt8973a_muic_pm_ops, .of_match_table = rt8973a_dt_match, }, - .probe = rt8973a_muic_i2c_probe, + .probe_new = rt8973a_muic_i2c_probe, .remove = rt8973a_muic_i2c_remove, .id_table = rt8973a_i2c_id, }; From patchwork Fri Nov 18 22:35:44 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: 22566 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447585wrr; Fri, 18 Nov 2022 14:49:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf4B+6Bs6JvJbb97VPDU5vYHgOnnBaOYxbJZKtMuDv5A5jo7AvaiEiEYXqhejk7ATLJUFI9b X-Received: by 2002:a63:5d06:0:b0:46f:be60:ad82 with SMTP id r6-20020a635d06000000b0046fbe60ad82mr8580197pgb.34.1668811789162; Fri, 18 Nov 2022 14:49:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811789; cv=none; d=google.com; s=arc-20160816; b=Ybqjg0qI+1daq4M8kstEF1Y9X1Ynitz92d7vX2WT3vLxQOT4kmrc+8cDtZ5+XjLSHu BVH+WUybTW01230KXFaChLfmkh3g6Nn7uZdGoV8I6buqAaUVHL6YCFxT2++UgXz531Gh umssHQOShQwLpuva5tT94o6OLqcDItAk2B9MjAuPF7ipMC6hxCwdIQzN6Fnjd2+PLdLT w2Sz1VgpgBOy4RGlBACPp0VdOSbRgoY5+U+0mPTagSmdFkls80zkrkZ5pJAOzo+Ui5N1 q93dqnCa92HdeyN/ZxPz697yvLV1MkXYutTEvwTmorbE+rD1dbYFNXtOvtPVe/eTrnVo lEug== 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=b91wGxrcH4h0Pshk+Ev28zPdpItpYtoyu12plMhCJAE=; b=fczfFZ0hMWnO79hzySSDPZ5mp7XkgIdvzR9DY07D1EOVLCG3x9SQd5PsEjhBF2jQvE 9qTMdSYbbp0kKZEfFk/JTQlCakr7d99N/rT7P1IdQUwXPxB2ytW4kvcO33jlCyaE6oIM d7/lTh5VDGJppwxMYWnOijwSXgQA5NaXI0qh6b/RPzm/3zSg39juPki8jaDNwOZBHm0x 1mUvpqpykkCW1oJSenTtr8P2IWLY8y7u6FoHOKtsK79a5wpeh/pn7e9YApFtZEQ+jdym GAYvkExGz91SrJCSHwmocQzDvecapd16EyVY6WQQ14uKO0Z7iV63CKvVH4h9NI5t2+VH 4aJA== 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 i14-20020a170902c94e00b0017808c0aa8bsi5625368pla.115.2022.11.18.14.49.36; Fri, 18 Nov 2022 14:49:49 -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 S232345AbiKRWqw (ORCPT + 99 others); Fri, 18 Nov 2022 17:46:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231598AbiKRWq1 (ORCPT ); Fri, 18 Nov 2022 17:46:27 -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 BB40C970A5 for ; Fri, 18 Nov 2022 14:46:23 -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 1owA7f-0007Qc-Sn; Fri, 18 Nov 2022 23:46:11 +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 1owA7d-00588R-Q7; Fri, 18 Nov 2022 23:46:10 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7d-00Hava-W9; Fri, 18 Nov 2022 23:46:10 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , MyungJoo Ham , Chanwoo Choi 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 010/606] extcon: usbc-tusb320: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:44 +0100 Message-Id: <20221118224540.619276-11-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?1749875990441769458?= X-GMAIL-MSGID: =?utf-8?q?1749875990441769458?= 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/extcon/extcon-usbc-tusb320.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/extcon/extcon-usbc-tusb320.c b/drivers/extcon/extcon-usbc-tusb320.c index 2a120d8d3c27..396a026e0c90 100644 --- a/drivers/extcon/extcon-usbc-tusb320.c +++ b/drivers/extcon/extcon-usbc-tusb320.c @@ -421,8 +421,7 @@ static int tusb320_typec_probe(struct i2c_client *client, return 0; } -static int tusb320_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tusb320_probe(struct i2c_client *client) { struct tusb320_priv *priv; const void *match_data; @@ -495,7 +494,7 @@ static const struct of_device_id tusb320_extcon_dt_match[] = { MODULE_DEVICE_TABLE(of, tusb320_extcon_dt_match); static struct i2c_driver tusb320_extcon_driver = { - .probe = tusb320_probe, + .probe_new = tusb320_probe, .driver = { .name = "extcon-tusb320", .of_match_table = tusb320_extcon_dt_match, From patchwork Fri Nov 18 22:35:45 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: 22545 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447096wrr; Fri, 18 Nov 2022 14:48:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf5MDLqYAhkSeuUIkOf0N1THXDN7uN+bZ4AZGELGQPMGKyoNnr7c6VEWkY9k4s9swImVLcoo X-Received: by 2002:a17:906:f8a:b0:7ad:9f03:aa1f with SMTP id q10-20020a1709060f8a00b007ad9f03aa1fmr7729190ejj.632.1668811700380; Fri, 18 Nov 2022 14:48:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811700; cv=none; d=google.com; s=arc-20160816; b=nf/p47+eyHjAsJ4kRYVKbzQVrYm2t2O5qkA9kLbYEFdRciDtwsPgs4sw35Gkcaw0eL 7yAdBi9E6fg1GBAGOcilN5s+TqTE6hwiMRv1JcW3dP4CFgpVVYTis3GLAcClNLnJzbA9 t4F9TXLF2IqO9WirNXdvOhO2rvlEUsbiO+cFEZHwf1Pc2nME4rtXDcrpLLyjbMQGYMrQ 6KRPsWzxJ11/wtQLIedJnkUhOYg4KE1A6hccRlG4s8EHxSPck4akf0M28hhH17gL38fP +RTdQewy4EXhv5CWDmRYbGf/HAME/FFG7WJ2OkhZaAwOkigIy+fSOC9JKOlte4D+QKZO d2qw== 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=tXV/cV5xS2vjWHTgT8dpGmS7ahplOjp616juBWXNwg4=; b=cHv8TIUP8335QRM1ZIMElq5Aj67HmQE+/8VFHu8fJ/ecKGBZySjg9euSsDVCx0fCkY CLQISfGlakZw84tdvq9+qFUHKtlZS0hQSepvoBfx/W7PwwtlJqtS4w5KbfFWMFiupFph ydAWDaldmpzdRmuPsq4qf7X2q3auUBdTxHOgkNKCBGfbHTYRWzaJCBH42Jz6b7fLEphW NoP1gY97No+KwP/8LqzDwKtBH3DOcOn7qqg4gl1LOqKeK2FtboC2hsz2wi8IZZEZoBKi tBUsT3u07wSYxz2j+LCSa+9NEStWdsqNhHl0kgJfHuIycY7fiv+m1HQjf8SgGkyKylfr ju6A== 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 xj10-20020a170906db0a00b007adef1dceffsi4249134ejb.677.2022.11.18.14.47.55; Fri, 18 Nov 2022 14:48:20 -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 S231892AbiKRWqq (ORCPT + 99 others); Fri, 18 Nov 2022 17:46:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231534AbiKRWqZ (ORCPT ); Fri, 18 Nov 2022 17:46:25 -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 1019A97091 for ; Fri, 18 Nov 2022 14:46:23 -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 1owA7g-0007Qr-0q; Fri, 18 Nov 2022 23:46:12 +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 1owA7e-00588W-8e; Fri, 18 Nov 2022 23:46:11 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7e-00Have-5x; Fri, 18 Nov 2022 23:46:10 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Linus Walleij , Bartosz Golaszewski Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 011/606] gpio: max732x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:45 +0100 Message-Id: <20221118224540.619276-12-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?1749875897800168123?= X-GMAIL-MSGID: =?utf-8?q?1749875897800168123?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Acked-by: Bartosz Golaszewski --- drivers/gpio/gpio-max732x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-max732x.c b/drivers/gpio/gpio-max732x.c index da6972117030..68e982cdee73 100644 --- a/drivers/gpio/gpio-max732x.c +++ b/drivers/gpio/gpio-max732x.c @@ -608,9 +608,9 @@ static struct max732x_platform_data *of_gpio_max732x(struct device *dev) return pdata; } -static int max732x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max732x_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct max732x_platform_data *pdata; struct device_node *node; struct max732x_chip *chip; @@ -707,7 +707,7 @@ static struct i2c_driver max732x_driver = { .name = "max732x", .of_match_table = of_match_ptr(max732x_of_table), }, - .probe = max732x_probe, + .probe_new = max732x_probe, .id_table = max732x_id, }; From patchwork Fri Nov 18 22:35:46 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: 22539 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp446801wrr; Fri, 18 Nov 2022 14:47:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf5h6hHqmaieiIlzwXFPNJxw8R4XdWsz5H/z3MzVyFc129l67d+RU9TqYvz3ppwrKrwJ2aob X-Received: by 2002:a17:906:fca7:b0:7ae:9677:d8dd with SMTP id qw7-20020a170906fca700b007ae9677d8ddmr7692450ejb.71.1668811644404; Fri, 18 Nov 2022 14:47:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811644; cv=none; d=google.com; s=arc-20160816; b=p6X6Kz2pyVqDsSWy91VaXNYGxFumEItPAwXCQbkSGGNsE80egXwO5GMjC3LTqdQszU aT9svdwXQTTvzo7l1KGtgucZOULjw38d/pp6/Zm56P42Noso8rizz8EB5/ZZZjla2nyO 87+dW4OJui8v27J9hJL2MF1xEEfVGcTCiE1JwbEafJgsuo1pVXahCSq6OwPi7mL2SKuz DepTeSryeVD4sl0/ryBo6r+583uRQETQ4GJCGa53OBdfAvLqptd8DL3Ch34YIaS1s2LN JDqvpBBDGGsJb+WhbSLfZLkbLiipYg8kMezvhmvjVOoFGTo7LItwqtNg090DT2X1Hdlr HEHA== 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=czRfT00eYJg7n9F08esiTFZOSKb2m0Cej/Y2gmuZzOs=; b=zxNktsiaO53g2bhPVhhUp6XQe7Hml0JarHnewj/sjlHK36NGFxgv61X/P0rSekK0yG 4Be6cC4Dqn8rKiLjtEp118D1Qtg5zXxmVoeJa5edG3qrksAcjsM9KPLXpXeckHkh1OgC 1X4qgUWM36jmfQXVQnNL9RBu/uqaLIG6CRyeNvhY6moPaMCweC4+7egx6t1gpgfbL3QZ NiL3CNF7k6tX9R1cIhAndkLrjnGizsACXG0JbV3qQfs9vJkCwgtfOch5fsQaDrjo0bCF AqWhcY4kTBA/XLniDuqA0jixIPz/fQHimGvSCgxMKWKY+gOyQNcS3Cpy8suovsDcSH+t Wt5Q== 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-20020a50fb15000000b0045bdff8a884si3798443edq.268.2022.11.18.14.47.00; Fri, 18 Nov 2022 14:47:24 -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 S232142AbiKRWqm (ORCPT + 99 others); Fri, 18 Nov 2022 17:46:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231284AbiKRWqX (ORCPT ); Fri, 18 Nov 2022 17:46:23 -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 7530394A7D for ; Fri, 18 Nov 2022 14:46:22 -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 1owA7g-0007Qx-1p; Fri, 18 Nov 2022 23:46:12 +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 1owA7e-00588a-Cy; Fri, 18 Nov 2022 23:46:11 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7e-00Havh-C2; Fri, 18 Nov 2022 23:46:10 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Linus Walleij , Bartosz Golaszewski Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 012/606] gpio: pca953x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:46 +0100 Message-Id: <20221118224540.619276-13-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?1749875838652124038?= X-GMAIL-MSGID: =?utf-8?q?1749875838652124038?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Acked-by: Bartosz Golaszewski --- drivers/gpio/gpio-pca953x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index 6e67867e1dcd..a59d61cd44b2 100644 --- a/drivers/gpio/gpio-pca953x.c +++ b/drivers/gpio/gpio-pca953x.c @@ -1050,9 +1050,9 @@ static int device_pca957x_init(struct pca953x_chip *chip, u32 invert) return ret; } -static int pca953x_probe(struct i2c_client *client, - const struct i2c_device_id *i2c_id) +static int pca953x_probe(struct i2c_client *client) { + const struct i2c_device_id *i2c_id = i2c_client_get_device_id(client); struct pca953x_platform_data *pdata; struct pca953x_chip *chip; int irq_base = 0; @@ -1376,7 +1376,7 @@ static struct i2c_driver pca953x_driver = { .of_match_table = pca953x_dt_ids, .acpi_match_table = pca953x_acpi_ids, }, - .probe = pca953x_probe, + .probe_new = pca953x_probe, .remove = pca953x_remove, .id_table = pca953x_id, }; From patchwork Fri Nov 18 22:35:47 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: 22540 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp446904wrr; Fri, 18 Nov 2022 14:47:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf6/L5A4MoUQ18ztkaOiFtQxmJHZq5kdS0PBb7e0a8nir9CGVDWRXmaR7NdpbWOFjXKUBSfw X-Received: by 2002:a50:fb05:0:b0:464:718c:b266 with SMTP id d5-20020a50fb05000000b00464718cb266mr7830881edq.320.1668811663264; Fri, 18 Nov 2022 14:47:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811663; cv=none; d=google.com; s=arc-20160816; b=Kb0tYT/hJzvI6hGv8YT/ri2uKueiYwXbvXPkxQf6cS4pBlyCm9PjsjIds1h0bEIX9a MaKSItEY60cnS6nn3Ei4Tf3KgEfc4Qj0lho5X3Sdtq4+o6dq6xxHvSl8WpQ9voW6UW0w 6Is3tdFFTK4LIV4q+1XWamOv+X5PCxow9e7Y3KFVBoI5wX0R4a5AxOEHT5FUlxsZ/4jy hi5Z3k6PiVmR/OjgLtvFeo1imKsJrxdCxpDnLvLRkQLhGF8IeK5Q4ih+50YYpeJ8UVL0 SfxRcJ9Dpd3ylBgEgyRCEbQ+Cwe2ej4qUGsDswt92YLwBoD9FepdS10uNxMr5fqweSaX jbUA== 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=lBHq09FzG+FXOVsC+YN1bKQfiaIRtT+vajrzQkxDQIY=; b=aVYVEquxg5u3MKfVKd8fciL9l1l1CsjexrBarz400Vm7x7SBiMCno95C0QNU0yHvSC Xda36oh19ox6FsenOkjkubokAM3+vWvNogFj1DT3JxKU74N8jfGKALgN3K5WpfQWq2+F OROfD43Vn+f+ETTpMrJGe2cwJKx2/lL7QDBovUSUUYXAwvrglraR/9NKUmF40nce5qSL 8PZiQordQ3V/p1tbTFHSbyFidhn8QCo8n6wPqFd+KBmmivF73Ci1lz5YA0c64i0kt99t TkrVbE3soAGfx1EaEWUcdJrYBdgp82ssE5OGIwYBjq/z4MTf41ja2UIhQZ1oukF733IM xhsA== 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 oz13-20020a170906cd0d00b007815ca78c38si3287575ejb.235.2022.11.18.14.47.19; Fri, 18 Nov 2022 14:47:43 -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 S232224AbiKRWqs (ORCPT + 99 others); Fri, 18 Nov 2022 17:46:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231584AbiKRWqZ (ORCPT ); Fri, 18 Nov 2022 17:46:25 -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 54486970A3 for ; Fri, 18 Nov 2022 14:46:23 -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 1owA7g-0007SJ-Qe; Fri, 18 Nov 2022 23:46:12 +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 1owA7e-00588j-RT; Fri, 18 Nov 2022 23:46:11 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7e-00Havm-Is; Fri, 18 Nov 2022 23:46:10 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Linus Walleij , Bartosz Golaszewski Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 013/606] gpio: pcf857x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:47 +0100 Message-Id: <20221118224540.619276-14-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?1749875858283531518?= X-GMAIL-MSGID: =?utf-8?q?1749875858283531518?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Acked-by: Bartosz Golaszewski --- drivers/gpio/gpio-pcf857x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-pcf857x.c b/drivers/gpio/gpio-pcf857x.c index e98ea47d7237..cec2f2c78255 100644 --- a/drivers/gpio/gpio-pcf857x.c +++ b/drivers/gpio/gpio-pcf857x.c @@ -247,9 +247,9 @@ static const struct irq_chip pcf857x_irq_chip = { /*-------------------------------------------------------------------------*/ -static int pcf857x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int pcf857x_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct pcf857x_platform_data *pdata = dev_get_platdata(&client->dev); struct device_node *np = client->dev.of_node; struct pcf857x *gpio; @@ -422,7 +422,7 @@ static struct i2c_driver pcf857x_driver = { .name = "pcf857x", .of_match_table = of_match_ptr(pcf857x_of_table), }, - .probe = pcf857x_probe, + .probe_new = pcf857x_probe, .remove = pcf857x_remove, .shutdown = pcf857x_shutdown, .id_table = pcf857x_id, From patchwork Fri Nov 18 22:35:48 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: 22584 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448016wrr; Fri, 18 Nov 2022 14:51:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf7jBZSQG4Z1ARzBcyoeHKMerDEUnDx2NYa5hVlyGvaHndAiwEa84RCyLUxuxqA+fnTT1JEp X-Received: by 2002:a17:90a:398f:b0:213:5a55:7dd2 with SMTP id z15-20020a17090a398f00b002135a557dd2mr10084100pjb.50.1668811864217; Fri, 18 Nov 2022 14:51:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811864; cv=none; d=google.com; s=arc-20160816; b=FI3lfMDTZOtybLd9s0+P5EvJVJl1uKzWYN/vbEXpTszYLtCJ+Y8tbjRauXxYqYKv+b ir4FaJzY4cHnuyTy+LnstRQqUtVQNY3f/qG2ZOud1BZdHpMbB70v3tId8ItmIYWn83cK YecZXEC61JUFbQXWZe7FP1cmofhqWGisYIDikX6ksAOEX1MyZLb4O0l5lTzmM5Z391Lv RviO6SN8eiiJSzPtJ7fRoqns+2OSZyqSTeGMf9iIRFqVrnY8r05DJUPgGhWQwt1X8tlo go+0SqfNvqR/Y998hEKal6KUCQHhYXrCPKfjj+OtqTFETTDYIC5TT1aLuuyq2x3iDrDh f/ug== 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=J1HW9rd7y3qEg1XwObYYWUTa+Rc+AEu1rI1z8T9ykWM=; b=ENr2wMN0UEE4g5lmQu4msikUVCkF9Iv6bo7Jf+SQh3K3VTXsQKaqQsVtdrHKo7kI++ e9O27yX4Ni2+pZNSyhBtT8NyNFAeAXBKFbfIXwQIPIF4L8LpE3V+ufNpcHLIZm01Rzey RXj5KrrantcMcEaRmVoxjEbc68PmL6pEW5fnJrQai1Pit4AOjjsdG+hx0mun0jPHX3T2 fzSJV+21wta+02qj/KIkRcfb+xD9V850PgNeKr3H9JZF1xLVpMSgcmhRie+nomKeDUhO bkzYuvvSSkFBmJdcPjKSEk07cOhJ+VQPs9Rb9WBETqYxO5fb5X12npOyhr1i7IjAlYvZ aMXA== 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 s15-20020a056a0008cf00b0056e3c566bfasi4892677pfu.201.2022.11.18.14.50.51; Fri, 18 Nov 2022 14:51:04 -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 S233785AbiKRWuR (ORCPT + 99 others); Fri, 18 Nov 2022 17:50:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232636AbiKRWrL (ORCPT ); Fri, 18 Nov 2022 17:47:11 -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 B1D9AB94B7 for ; Fri, 18 Nov 2022 14:46:44 -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 1owA7p-0007RG-0O; Fri, 18 Nov 2022 23:46:21 +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 1owA7e-00588f-Ms; Fri, 18 Nov 2022 23:46:11 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7e-00Havq-OE; Fri, 18 Nov 2022 23:46:10 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter , =?utf-8?q?Alvin_=C5=A0ipraga?= , Jeremy Kerr , Jagan Teki , Ahmad Fatoum , Abhinav Kumar , Jiasheng Jiang Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 014/606] drm/bridge: adv7511: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:48 +0100 Message-Id: <20221118224540.619276-15-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?1749876069664588249?= X-GMAIL-MSGID: =?utf-8?q?1749876069664588249?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c index e7a6e456ed0d..ddceafa7b637 100644 --- a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c +++ b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c @@ -1185,8 +1185,9 @@ static int adv7511_parse_dt(struct device_node *np, return 0; } -static int adv7511_probe(struct i2c_client *i2c, const struct i2c_device_id *id) +static int adv7511_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct adv7511_link_config link_config; struct adv7511 *adv7511; struct device *dev = &i2c->dev; @@ -1392,7 +1393,7 @@ static struct i2c_driver adv7511_driver = { .of_match_table = adv7511_of_ids, }, .id_table = adv7511_i2c_ids, - .probe = adv7511_probe, + .probe_new = adv7511_probe, .remove = adv7511_remove, }; From patchwork Fri Nov 18 22:35:49 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: 22567 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447635wrr; Fri, 18 Nov 2022 14:49:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf4+85Sx7xWFiSKIwl2CrB6MnuQpspzSayqE+FXZpMLx6qIO21x25mQnrAF6jjODg+X2w19C X-Received: by 2002:a17:902:9a01:b0:186:94b8:5982 with SMTP id v1-20020a1709029a0100b0018694b85982mr1560343plp.102.1668811796866; Fri, 18 Nov 2022 14:49:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811796; cv=none; d=google.com; s=arc-20160816; b=f0NDdEnNKIBe82zKD17QOomjAAWaoBXn8O9RlsxpeRartbUnKJMeo3qqwkqUkpV9YV IK+7b4yNBl2zfY06oKbbdz6qSPPrDicINks0bZjmD95oxz+RAMzcnUjBrvYyyF5VpCOp zgQ9i5u5OeforoC2zIafQzNFlmWfaLXj3pDpRD9kUYzl97yFlrDowc4QDaCdfSlJh2gw JuhQ/nKIqFV1SqmXyjDz80wSqryCUQvh5QX+WRyoJIgEGPAZ7wWNJDfjqZI8kJqw7yBC rs0G9Qc6MghWnnnR0OOeAKsnYGOR/UjWTqRs6gxG5K5AzJ745IxCCAV7UxXCa8zIokQa VJ1Q== 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=Syi4BYjVRmxsNh3qg/kLN9mhotuLtJ64/EdGx8MQQ40=; b=nowMxdRdzM6iS9trxQY7I7VbLQqU5a4tRbii7qLNtnrc505jM+m98bSNtKNT8giFli MfvwgyGznfcSrq6Iw+YMuzoOlvNVTVmoZshvI3wERPE9qCXmCBGy7xzFmv0B3FV4BAor Hjfuw7qX1v2NsRuiDaweWJmxFD4/HR12dv9Y/3pIHBGrsCn56zpNGYjiE6iI3tmWb/o2 26xgDKr3T0vBFBqNzZCJZqdl/86lJopDosECX8S8tTflwuKtCPXN5eRTWI+CpV/RQtMR +JWoGbl0qlyWce7P+DeL3NdcQuLFYNxGybicxkSamih4Vr1YD6t8FFO6Igc2QUR0ifDi cTqg== 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 y10-20020a056a00190a00b00557e99763d3si5154843pfi.93.2022.11.18.14.49.44; Fri, 18 Nov 2022 14:49:56 -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 S232753AbiKRWs6 (ORCPT + 99 others); Fri, 18 Nov 2022 17:48:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232213AbiKRWqs (ORCPT ); Fri, 18 Nov 2022 17:46: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 59AD1B54ED for ; Fri, 18 Nov 2022 14:46:35 -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 1owA7j-0007SP-DP; Fri, 18 Nov 2022 23:46:15 +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 1owA7e-00588l-TC; Fri, 18 Nov 2022 23:46:11 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7e-00Havu-U3; Fri, 18 Nov 2022 23:46:10 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter , Thomas Zimmermann , Javier Martinez Canillas , Ajay Gupta , =?utf-8?q?Marek_Beh=C3=BAn?= Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 015/606] drm/bridge/analogix/anx6345: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:49 +0100 Message-Id: <20221118224540.619276-16-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?1749875998375531935?= X-GMAIL-MSGID: =?utf-8?q?1749875998375531935?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/analogix/analogix-anx6345.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix-anx6345.c b/drivers/gpu/drm/bridge/analogix/analogix-anx6345.c index 660a54857929..339e0f05b260 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix-anx6345.c +++ b/drivers/gpu/drm/bridge/analogix/analogix-anx6345.c @@ -692,8 +692,7 @@ static bool anx6345_get_chip_id(struct anx6345 *anx6345) return false; } -static int anx6345_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int anx6345_i2c_probe(struct i2c_client *client) { struct anx6345 *anx6345; struct device *dev; @@ -817,7 +816,7 @@ static struct i2c_driver anx6345_driver = { .name = "anx6345", .of_match_table = of_match_ptr(anx6345_match_table), }, - .probe = anx6345_i2c_probe, + .probe_new = anx6345_i2c_probe, .remove = anx6345_i2c_remove, .id_table = anx6345_id, }; From patchwork Fri Nov 18 22:35:50 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: 22569 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447672wrr; Fri, 18 Nov 2022 14:50:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf52FKkMv4tVy1LxaJb9aW53Iy741/jJe5/UGRBFJI0DMiVqy7TBLWB6aTolj1HOMukoJ8u/ X-Received: by 2002:a63:f643:0:b0:476:f69d:8e72 with SMTP id u3-20020a63f643000000b00476f69d8e72mr8625369pgj.291.1668811803039; Fri, 18 Nov 2022 14:50:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811803; cv=none; d=google.com; s=arc-20160816; b=EKg+3BopwpEWFGRQ6RK4mk05OloE1WU8ynvOLUzTZDAF3zeoZy73opdfnvFqRea1fv 3f3yd6DCsG0+T7q6L6xNDADk/shoSMF3kVJ1eCtHtjT51HmV0RFrG8NSRWDEHJBSbYmb venRcaB8eMMcd4dLl3guZMdapa94Vpaj9Xa6cuob/ItlK6aaH8O+voyODP0Av1jvzGW8 aT2E2KTfwlmq1fgQjV7es0WHbcSxzFo26E7OXMLIkME4jEh66AgQL8jqSm8cYidvKTi3 3IGxOc4lVNsaA8wVIfkPgGVsJjsk9Riw31kYdY9vqN9JZuUVZ9hkn8T+WAT5oUJLmyue lLsQ== 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=4Tpcn/h7M31TanxsuOE6aCzC7LZXm+aYIkT/rY/Zah4=; b=UO2d4v9m/9SLZcZek7uQ1n7cgqVlRvFt8YLiZxE2D0JSo1jPlhcDjWEd1z3d9Zyo6L lyn4hKqoE7s+yS99pV5dZcT3BUmqwYCeFnHV7v/80nWsDQ+2yD4MfetplKlTxwMVffBr mvw0Is263fhlvOKQzJ4nlJlRMpiw2t9yplKChalmTGUswIB4smzzu3I8pZjqZpfrwPgp C7l69H0iAbctBKc7JurEB9eCgxWAiTJ3RWvkXxjCvMLF8pFFverA8/iV/r6YMjPU1wen tBMQY6UJLFMV/5WmH+ubvfL9ebXnxjxD3vWkW5jcMjFxK2JrvYLM3xQEfee0kkTP0+vM 3zmQ== 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 f6-20020a631f06000000b0043961d06e6bsi4513113pgf.787.2022.11.18.14.49.50; Fri, 18 Nov 2022 14:50:03 -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 S232775AbiKRWtI (ORCPT + 99 others); Fri, 18 Nov 2022 17:49:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232235AbiKRWqt (ORCPT ); Fri, 18 Nov 2022 17:46:49 -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 3BC99B5C6A for ; Fri, 18 Nov 2022 14:46:36 -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 1owA7j-0007WR-OI; Fri, 18 Nov 2022 23:46:15 +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 1owA7f-005895-Nt; Fri, 18 Nov 2022 23:46:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7f-00Havx-3Q; Fri, 18 Nov 2022 23:46:11 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter , Javier Martinez Canillas , Thomas Zimmermann , Dmitry Torokhov , Benjamin Mugnier Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 016/606] drm/bridge/analogix/anx78xx: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:50 +0100 Message-Id: <20221118224540.619276-17-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?1749876005154730099?= X-GMAIL-MSGID: =?utf-8?q?1749876005154730099?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c b/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c index 5997049fde5b..a3a38bbe2786 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c +++ b/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c @@ -1214,8 +1214,7 @@ static const u16 anx78xx_chipid_list[] = { 0x7818, }; -static int anx78xx_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int anx78xx_i2c_probe(struct i2c_client *client) { struct anx78xx *anx78xx; struct anx78xx_platform_data *pdata; @@ -1390,7 +1389,7 @@ static struct i2c_driver anx78xx_driver = { .name = "anx7814", .of_match_table = of_match_ptr(anx78xx_match_table), }, - .probe = anx78xx_i2c_probe, + .probe_new = anx78xx_i2c_probe, .remove = anx78xx_i2c_remove, .id_table = anx78xx_id, }; From patchwork Fri Nov 18 22:35:51 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: 22573 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447743wrr; Fri, 18 Nov 2022 14:50:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf4b9O3LfyUZ2YpPXsMMD9kQZ78ugOEoN2ti6musdKsvj5VN86/6VdYixvogrEpVepYEHOi7 X-Received: by 2002:a17:90a:668b:b0:218:8666:e77f with SMTP id m11-20020a17090a668b00b002188666e77fmr5203238pjj.0.1668811814926; Fri, 18 Nov 2022 14:50:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811814; cv=none; d=google.com; s=arc-20160816; b=lhjZUcVxdriWxkxWALePQOmOXq3GxZ5TRGnHZktbx9zZLCjC33pECBlZyBA8E9Zf1w taGGTpdCOfT8/xVLEJIRf00KPg5yQkJ4lfrn29wu506sYcL8noE2Q7Pl7RxsLJGkWDkC Cw7dPfKdPfOtrxx68WWVMMD0yuKsLHvtwv1o95DCRUybadfKOWBHiM2e+Hpnzl+VuYOn 62cD6GopAJRGQ+407SU1RpzxRyqwAviI4NulTmhuB+piFxMRfVUPlMnzb55GAQ8Z35Ox 8VnJ41pF7EK02p8Pru1oCeWDXKTYYe8ViUjDv8SPXOYX16YrmrNitoLLghEL+eC3asVf 0rBw== 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=UOHq5ZoO0SYUe8RycwMCMwojPFoV1MtK++wz6zb/BDw=; b=dPVJjKglcUGKavwRfRoR17CEim13CRWbRdhrXoVzUoktKGc3otYZYfHVchgjQsCdnG e0y9yNx7qvz9al2hHUemUjUngFTHSAxHbkd6aKclV2z14MnSF0hvLZBERzUH+6GEVk0S H7R1YrXfQil/+1B1lJ5h1SofWKQEGl58dxq4bc8OwVUlu4Yi57WaNiMgkDiczhkkfoGK 75kjFKq7VPWsQPIFaSGaYQdbT7jx7uikXaFbCpfqFGqyMVg6w6lmnowZseFsVA/8JWLU aydIL3+KJcvo4PnkuOShbatnbHsI9MQXJQEeW9nvzf/4tMPBwLzEqNLuruCYPhDK0xkb cuXw== 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 n9-20020a654cc9000000b00470051e58ffsi5108427pgt.626.2022.11.18.14.50.02; Fri, 18 Nov 2022 14:50:14 -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 S233484AbiKRWt2 (ORCPT + 99 others); Fri, 18 Nov 2022 17:49:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231584AbiKRWqv (ORCPT ); Fri, 18 Nov 2022 17:46:51 -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 B1D53B7E84 for ; Fri, 18 Nov 2022 14:46: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 1owA7j-0007W2-Ns; Fri, 18 Nov 2022 23:46:15 +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 1owA7f-005890-I5; Fri, 18 Nov 2022 23:46:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7f-00Haw1-9N; Fri, 18 Nov 2022 23:46:11 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter , Xin Ji , Hsin-Yi Wang , AngeloGioacchino Del Regno , Javier Martinez Canillas , Thomas Zimmermann , Marek Vasut Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 017/606] drm/bridge: anx7625: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:51 +0100 Message-Id: <20221118224540.619276-18-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?1749876017924233189?= X-GMAIL-MSGID: =?utf-8?q?1749876017924233189?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/analogix/anx7625.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c index b0ff1ecb80a5..86a52c5f4fbc 100644 --- a/drivers/gpu/drm/bridge/analogix/anx7625.c +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -2562,8 +2562,7 @@ static void anx7625_runtime_disable(void *data) pm_runtime_disable(data); } -static int anx7625_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int anx7625_i2c_probe(struct i2c_client *client) { struct anx7625_data *platform; struct anx7625_platform_data *pdata; @@ -2756,7 +2755,7 @@ static struct i2c_driver anx7625_driver = { .of_match_table = anx_match_table, .pm = &anx7625_pm_ops, }, - .probe = anx7625_i2c_probe, + .probe_new = anx7625_i2c_probe, .remove = anx7625_i2c_remove, .id_table = anx7625_id, From patchwork Fri Nov 18 22:35:52 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: 22549 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447251wrr; Fri, 18 Nov 2022 14:48:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf7zL3WBgC6Z3yHK6YdyioEu1mgeqEElOGHRrayrulm3SSRclD13XTxo0YMwFEDyXBSDKJ4u X-Received: by 2002:a17:906:948c:b0:78d:e869:f328 with SMTP id t12-20020a170906948c00b0078de869f328mr7330508ejx.696.1668811731512; Fri, 18 Nov 2022 14:48:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811731; cv=none; d=google.com; s=arc-20160816; b=kDX+avY0hMDYzh8elnrd8HhvUXQxGExPqOcV2eJVtLNgng64stgj0ysZQgSizrq8Zx 77QoJpiIdA6CilqfBvK3QpoHCGElW6/8eCyvo9ycCtJHRcKa693Sgh0eOjyl65ZrHOfy t+ryLjxDJAO75jL/mugV0VblVEI+Za6w+tN4NFG3fxl6wgtpvtsXOKnHFjVVW920Txxh kUr6FPCTCR5RtiGLjbsuTZcUUkNt5Ps+MUhPDx8AQOlivzY6HfZYH/4Po78ea9EeRv+8 DZDBybp5voHPlZ4uVCANwJJ7XFx8dpfnJb8u6V0kq3kxMDlwlCRdmQYohZJ6plJKoENW /8QA== 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=4q34lMOnnXDs48jMwH+WOTFUsD/hImejPC9NysP+aaE=; b=DyBA09KFHDzh6/Y/MJrmBNVw4zoXP18HyqEkiV7F0lWgHknoLrX7XJmui1n/bBi9QN Dskz67uZG46+JtH/IQTq/NqaJgHiENfiKzOj6Zp/pNo2m3MXXq8b2O4AD0PsaUUcGwfK PzdKpeOe4Wj4haPfLamLq1Z+TF6qPpXIp9IbARbU+RTA94NNY0rzLS0YnWfxgQ7YTflj UJm9h5hfhXM0rzkeB1di/U2cB+5jiaZtwbXHSnzW4jhrPFcXQLS0wNV87LncKp8cIBU6 2ysTpibayOLOOglHhkPTYRBoPPXDJIG4doJZwDUm6xgbyJy12+OXPam57Gv+c0nPiPpZ 8MRQ== 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 qn5-20020a170907210500b00773db392e1esi3578979ejb.997.2022.11.18.14.48.23; Fri, 18 Nov 2022 14:48:51 -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 S232754AbiKRWrd (ORCPT + 99 others); Fri, 18 Nov 2022 17:47:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231669AbiKRWqg (ORCPT ); Fri, 18 Nov 2022 17:46:36 -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 F1AE9A3173 for ; Fri, 18 Nov 2022 14:46:29 -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 1owA7j-0007XU-3a; Fri, 18 Nov 2022 23:46:15 +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 1owA7g-00589D-9g; Fri, 18 Nov 2022 23:46:13 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7f-00Haw5-G1; Fri, 18 Nov 2022 23:46:11 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jagan Teki , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 018/606] drm/bridge: icn6211: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:52 +0100 Message-Id: <20221118224540.619276-19-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?1749875930261049318?= X-GMAIL-MSGID: =?utf-8?q?1749875930261049318?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/chipone-icn6211.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/chipone-icn6211.c b/drivers/gpu/drm/bridge/chipone-icn6211.c index bf920c3503aa..0e37840cd7a8 100644 --- a/drivers/gpu/drm/bridge/chipone-icn6211.c +++ b/drivers/gpu/drm/bridge/chipone-icn6211.c @@ -740,8 +740,7 @@ static int chipone_dsi_probe(struct mipi_dsi_device *dsi) return ret; } -static int chipone_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int chipone_i2c_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct chipone *icn; @@ -796,7 +795,7 @@ static struct i2c_device_id chipone_i2c_id[] = { MODULE_DEVICE_TABLE(i2c, chipone_i2c_id); static struct i2c_driver chipone_i2c_driver = { - .probe = chipone_i2c_probe, + .probe_new = chipone_i2c_probe, .id_table = chipone_i2c_id, .driver = { .name = "chipone-icn6211-i2c", From patchwork Fri Nov 18 22:35:53 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: 22547 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447172wrr; Fri, 18 Nov 2022 14:48:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ZzCFpZ8y7J1tefIwu6wQxubui0FkiFsoyRbfmqY56Y87BZtctUgOT9cAweWZeog9BaGqq X-Received: by 2002:aa7:cccb:0:b0:462:9bc2:d039 with SMTP id y11-20020aa7cccb000000b004629bc2d039mr8034316edt.127.1668811715741; Fri, 18 Nov 2022 14:48:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811715; cv=none; d=google.com; s=arc-20160816; b=ItoenzQORErwGPukD/bVSzcFsJdG2H4hc5+UpfoI/txJdAH5Mm3OCTiWcBrwNwBUru g3PA74LCP7BaVV2TzSzSCf72KRfN2xLHjoGwIIDPZryRlZVLSFd1NEh5wKBUQEd8pmne ptQBBN5+0ptkDi8EUdqAK+fQI7ed2f+nFxYLvus/89ZlbS1NDxECdal8F+VzrQ7DuISK W6WqQtzWBRTq5hna1FeWe9SvrZSlDtnvOwYPvSwj3A+QWcwHa8nmsyVGTCvkmLVp+ddr ztttDrUYjTO+i3OAYIoX1OBRS1sSqVtQdRYEIv8fyz6K28xVEeI/fWejXrwjYGpldg/M 2vSg== 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=QZKDhGvntosvehsEiDTcuWF5yJBM+zT4c7efqNzU2mo=; b=VT3m7PN+NeW/f5tSKY1Na8eWS4816WZTLyqeiUF4xIuCyx+7qv4ws1XCGEqWLpK5hD 6qVKT26hFq6dF1fg7CMdPNYS74XlxLhKv0fcVBmDueZCV0IgUtHjfHYfMhy5tmMs9ioG hDcOJvN+8ciZEtUxlqa2LLgQVEVg6CW+IVrKF+Ls/Fhh9M/sx7wpb9nvsOgUSerj+yJp MopfAlFv3TgIWwY1+R90Kh0xPIdqi1wU6+saAnSwA013EAkp3AXDu79pvhQVw/lyeOT4 IEIS1+VcgIAlR7/oN5Qla8dxx4Xp2A4PQo88/R1rxFv6sgt7mhJGE+iczwEL15cULQkD GDvw== 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 x4-20020a05640226c400b0045743696acbsi4420061edd.139.2022.11.18.14.48.09; Fri, 18 Nov 2022 14:48: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 S232665AbiKRWrV (ORCPT + 99 others); Fri, 18 Nov 2022 17:47:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231925AbiKRWqa (ORCPT ); Fri, 18 Nov 2022 17:46:30 -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 53C6AA3163 for ; Fri, 18 Nov 2022 14:46:29 -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 1owA7j-0007Vg-3a; Fri, 18 Nov 2022 23:46:15 +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 1owA7f-00588y-Fo; Fri, 18 Nov 2022 23:46:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7f-00Haw8-MN; Fri, 18 Nov 2022 23:46:11 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 019/606] drm/bridge: chrontel-ch7033: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:53 +0100 Message-Id: <20221118224540.619276-20-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?1749875913486249435?= X-GMAIL-MSGID: =?utf-8?q?1749875913486249435?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/chrontel-ch7033.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/chrontel-ch7033.c b/drivers/gpu/drm/bridge/chrontel-ch7033.c index b94f39a86846..339b759e4c81 100644 --- a/drivers/gpu/drm/bridge/chrontel-ch7033.c +++ b/drivers/gpu/drm/bridge/chrontel-ch7033.c @@ -528,8 +528,7 @@ static const struct regmap_config ch7033_regmap_config = { .max_register = 0x7f, }; -static int ch7033_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ch7033_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct ch7033_priv *priv; @@ -604,7 +603,7 @@ static const struct i2c_device_id ch7033_ids[] = { MODULE_DEVICE_TABLE(i2c, ch7033_ids); static struct i2c_driver ch7033_driver = { - .probe = ch7033_probe, + .probe_new = ch7033_probe, .remove = ch7033_remove, .driver = { .name = "ch7033", From patchwork Fri Nov 18 22:35:54 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: 22550 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447261wrr; Fri, 18 Nov 2022 14:48:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf6c6+ok8znFzKhJKqTJI1vtjFdmS0RBpwG0Ch3Up8y/AcM5x6FzDCUzQSY2aq/AKgiLzUb8 X-Received: by 2002:a63:902:0:b0:46e:9bb2:f0f7 with SMTP id 2-20020a630902000000b0046e9bb2f0f7mr8425181pgj.203.1668811732621; Fri, 18 Nov 2022 14:48:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811732; cv=none; d=google.com; s=arc-20160816; b=WXhReaB9Cm9ySAoeKbAalOA9zrZkgV/Ig9M9G2M4oEsZ4f4ruev1bfoYMzto79ghn7 Xg812+e0owDVW43huGG2tgWE/KJ98/+06d/OykK9SziPKOAkcALRS0nApNDPmX5jSy4O UNO4atIM2rkPL1bldKq6PF/WygSb+r62QIBM57xmpNYhpvBYgwdHPjVqY+LQu0h9O+EV eLumPBmy1kzVXGdPEaYoVkDH9tAFe61Bp/nEob30uMHTht4EIw14dYEQjMNOyMsGxXMS dbdy8XXYsS7nmCVvvcJm82f+2CzPLrv+3NKsFmD/E6yrLYoGVeEm5duXQbZHODNMhx4F Pgdw== 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=mfhElN6Elrd3hFRKC4iBIDmOkmT85T5nCKRRVgb8D9E=; b=BBIX/UMdxqkcWsMoRhV9jWrPqlA15k3RaZ3vpeI7mU3j70wsZJ7R1THh5Iz6nZrjFD hqWRdBmHuPz5fmzc+MvblA3HkDbFpkmdWtZr1SPAVudBvn4gdsktjRD97nyRUaI6K1Ez 9YhsimS5wsm4VHHNHNED0IMtSgxRvkgwN03YYvESzdkodTZNfMs6rTJnggSAJLmsOazs Tp02woQerATLqbZNlO8KxPJdENvtmfRBohx0zujt69qCiyNfNBNT/3vrvN/e39kU1VFf qltOmSvWtFcWjuEXFBB+SIu4sU/Y0iqKH4NRVFLK7aobYJc1GtrNNNyAgspBRvYKFBHv aOsQ== 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 x186-20020a6386c3000000b0046b2ebb0a4esi4646252pgd.212.2022.11.18.14.48.36; Fri, 18 Nov 2022 14:48:52 -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 S232388AbiKRWrp (ORCPT + 99 others); Fri, 18 Nov 2022 17:47:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232023AbiKRWqh (ORCPT ); Fri, 18 Nov 2022 17:46:37 -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 1684C970B7 for ; Fri, 18 Nov 2022 14:46:31 -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 1owA7j-0007Xz-3O; Fri, 18 Nov 2022 23:46:15 +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 1owA7g-00589I-Ez; Fri, 18 Nov 2022 23:46:13 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7f-00HawD-S2; Fri, 18 Nov 2022 23:46:11 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 020/606] drm/bridge: it6505: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:54 +0100 Message-Id: <20221118224540.619276-21-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?1749875931627314388?= X-GMAIL-MSGID: =?utf-8?q?1749875931627314388?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/ite-it6505.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/ite-it6505.c b/drivers/gpu/drm/bridge/ite-it6505.c index 21a9b8422bda..fea2b4279c31 100644 --- a/drivers/gpu/drm/bridge/ite-it6505.c +++ b/drivers/gpu/drm/bridge/ite-it6505.c @@ -3265,8 +3265,7 @@ static void it6505_shutdown(struct i2c_client *client) it6505_lane_off(it6505); } -static int it6505_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int it6505_i2c_probe(struct i2c_client *client) { struct it6505 *it6505; struct device *dev = &client->dev; @@ -3387,7 +3386,7 @@ static struct i2c_driver it6505_i2c_driver = { .of_match_table = it6505_of_match, .pm = &it6505_bridge_pm_ops, }, - .probe = it6505_i2c_probe, + .probe_new = it6505_i2c_probe, .remove = it6505_i2c_remove, .shutdown = it6505_shutdown, .id_table = it6505_id, From patchwork Fri Nov 18 22:35:55 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: 22557 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447354wrr; Fri, 18 Nov 2022 14:49:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7QFDWhXNb0foEQtY++EYvofBzDw3broi43mvzc5bsVxr53ulIN/ElZLhgnmDVp5C+w+61d X-Received: by 2002:aa7:c7d5:0:b0:44e:bee5:4242 with SMTP id o21-20020aa7c7d5000000b0044ebee54242mr7956645eds.128.1668811752827; Fri, 18 Nov 2022 14:49:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811752; cv=none; d=google.com; s=arc-20160816; b=BtSnJSLlWf6A6sGIJlmfvQgUBzFRV2kHaPpR69qu6PewJFTnvn+SCNTOp9U74KAYWB WywUUJBEa07pvd8B86RA9blaTEty7SJmtLADs5Dpsa4RxpdSWr3WPTasuMjjykelrCiA UMqgR5LqcaIt8i+SOH5s2eqTyTRDbQSEydlRQaQag3aHKr8QNchKrlg1Ls0kdLJn7Wh7 3Vp594yqLoQQLKE9KiFTK+AzmwAWo2rNLYDWrDFZmqVXjqIZ0RNkuW2toKRYmjGQ3HWT qE/sLjzj0z53Tjfnmk8+3eqoldYoikm4Bdx3wKyBkjvFXXkPIAl+/iMMPxxGCpFAvbtE 7ujQ== 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=PC6P27gGXrf0Abn7DpZHGjsn8vWWmMmmb4SvpnTRSt8=; b=pJNP+j2c9tk7AtBqjSn5Qw9j8xR95xt7yvhwlfmuiVHHoBJ1hodYDeQ/4s7cUGQM6T i/pE5/TIdcmK+kp2jQHo/ds1v3nTtyrZsz4kkRPxqockt1uusiW34NzC6X5ipdosApEV jmm2wi5iBaA1/7Y684CJ2bWZRElyl5DlG2Jcc5DENsUs87FfIpaow29qVcLKxKz+sLtw iLJUY1Gny+60vOQFR7v5a078xTEkOHzx8NqWtY1q3d2qpV/OfRaIEuo61H43amrNoEZP ekAPhbvlznngTi2+cmFL823Sx5JeIUefZ4vQ2db4ISckhO5E0ow1MkbQQ44IEPO62/6g 4O1w== 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 dp16-20020a170906c15000b007ae377adb6asi4088820ejc.628.2022.11.18.14.48.48; Fri, 18 Nov 2022 14:49: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 S232912AbiKRWr6 (ORCPT + 99 others); Fri, 18 Nov 2022 17:47:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232051AbiKRWqi (ORCPT ); Fri, 18 Nov 2022 17:46:38 -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 3E18EA4145 for ; Fri, 18 Nov 2022 14:46:31 -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 1owA7j-0007ag-3a; Fri, 18 Nov 2022 23:46:15 +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 1owA7h-00589U-5w; Fri, 18 Nov 2022 23:46:14 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7g-00HawJ-9F; Fri, 18 Nov 2022 23:46:12 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Phong LE , Neil Armstrong , Andrzej Hajda , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 021/606] drm/bridge: it66121: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:55 +0100 Message-Id: <20221118224540.619276-22-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?1749875952236622293?= X-GMAIL-MSGID: =?utf-8?q?1749875952236622293?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/ite-it66121.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/ite-it66121.c index 4f6f1deba28c..7476cfbf9585 100644 --- a/drivers/gpu/drm/bridge/ite-it66121.c +++ b/drivers/gpu/drm/bridge/ite-it66121.c @@ -1512,8 +1512,7 @@ static int it66121_audio_codec_init(struct it66121_ctx *ctx, struct device *dev) return PTR_ERR_OR_ZERO(ctx->audio.pdev); } -static int it66121_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int it66121_probe(struct i2c_client *client) { u32 revision_id, vendor_ids[2] = { 0 }, device_ids[2] = { 0 }; struct device_node *ep; @@ -1649,7 +1648,7 @@ static struct i2c_driver it66121_driver = { .name = "it66121", .of_match_table = it66121_dt_match, }, - .probe = it66121_probe, + .probe_new = it66121_probe, .remove = it66121_remove, .id_table = it66121_id, }; From patchwork Fri Nov 18 22:35:56 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: 22565 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447573wrr; Fri, 18 Nov 2022 14:49:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf5cFkyalK3Do0ZsadY1q78eLnqlwsNzTfzyI09q4hDmOzv7KpBIdw/Kifn6Rw+JcEXv55kb X-Received: by 2002:a17:902:b7cc:b0:17f:8f89:3ee8 with SMTP id v12-20020a170902b7cc00b0017f8f893ee8mr1544997plz.122.1668811785782; Fri, 18 Nov 2022 14:49:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811785; cv=none; d=google.com; s=arc-20160816; b=gWY6rMVHua7cthTeLuTq0ehctnCh6c6AOmtDlBapgPG8IDeOrfQovrqq045vPj9SvD Q65350R7B1LbzXeS9S52cZ1cj0g44HvGFVAX0dBWVgjXzY4H5/6bAXyqoNP2lbf9Z6m4 PooqndWWr1G8znzkB5sUZNxOav7wXdmnGXm7tp6f14sJ86Q5+3mI94tla7saYpuG9cwk dhfr/1z2JZ5Tv2dTG7ZFUHJshJtt6R2LFQP1RYocmQPxaGFUqF6os3Pr6C5VyIndxz2X Zf4+G5J7RziNWh1IKJFXxk5Fz4NOvAufIYeFGHhGPFsvT5neD7SdWK8MX3RAy7BuHmyA EeYw== 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=aoMK92FLuq5kK9ZAcg+hS4XdyEoA9rqJjNAJWmbKg9k=; b=Nh0Akh8sRShW9vIa42OlMSM8cVgFQVce4QWgyOPWiijLIr8crGJa796fT3KEzbpgux 9uLijhFu1mM0lKecL21EoI2Cuq46cWh6yaLvu6w2/MKlVqtZ9sgKMm/xn7pTLIwRDnVt PEgCyYLgup7ugjY48DT2nZA82+/PiXxTX/hX9d1NbLwrHIrVwE/C50TVLrlZE+475y7q DA+ugDz8IvYtTNQgbH3YPD0Nt9Fj2JhENUQffOtTm4Gaugzz3K7vSfm/2VgJKAzsKkxh A4b6PkaFpQHKDzTCG9Qr4U3QpPW4aZGuGCAloqM9Kvsy0WKttCACEr4jVtxCJrPIh9uw 4bJw== 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 w4-20020a656944000000b004770764db90si4514680pgq.698.2022.11.18.14.49.33; Fri, 18 Nov 2022 14:49:45 -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 S233259AbiKRWsr (ORCPT + 99 others); Fri, 18 Nov 2022 17:48:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231904AbiKRWqr (ORCPT ); Fri, 18 Nov 2022 17:46:47 -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 11988B4071 for ; Fri, 18 Nov 2022 14:46:32 -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 1owA7j-0007Zf-3n; Fri, 18 Nov 2022 23:46:15 +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 1owA7h-00589Q-08; Fri, 18 Nov 2022 23:46:13 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7g-00HawM-Ew; Fri, 18 Nov 2022 23:46:12 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Adrien Grassein , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 022/606] drm/bridge: lt8912b: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:56 +0100 Message-Id: <20221118224540.619276-23-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?1749875987523854451?= X-GMAIL-MSGID: =?utf-8?q?1749875987523854451?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/lontium-lt8912b.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/lontium-lt8912b.c b/drivers/gpu/drm/bridge/lontium-lt8912b.c index a98efef0ba0e..c5fff9b41dfc 100644 --- a/drivers/gpu/drm/bridge/lontium-lt8912b.c +++ b/drivers/gpu/drm/bridge/lontium-lt8912b.c @@ -685,8 +685,7 @@ static int lt8912_put_dt(struct lt8912 *lt) return 0; } -static int lt8912_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lt8912_probe(struct i2c_client *client) { static struct lt8912 *lt; int ret = 0; @@ -758,7 +757,7 @@ static struct i2c_driver lt8912_i2c_driver = { .name = "lt8912", .of_match_table = lt8912_dt_match, }, - .probe = lt8912_probe, + .probe_new = lt8912_probe, .remove = lt8912_remove, .id_table = lt8912_id, }; From patchwork Fri Nov 18 22:35:57 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: 22555 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447338wrr; Fri, 18 Nov 2022 14:49:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf6rr3aU7C2e8krlShzBj/hHcVY/Za1rrkqoZJnFhgO999u08XE/XtPQGljln+YAqx2ombd3 X-Received: by 2002:a17:902:b20f:b0:188:fd02:5462 with SMTP id t15-20020a170902b20f00b00188fd025462mr1687764plr.36.1668811747589; Fri, 18 Nov 2022 14:49:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811747; cv=none; d=google.com; s=arc-20160816; b=XtVf5qRURFLGH4oTaUd1KfP9aRwDU1PccTUrJBv+8F6c4nj3ugX2o6wzpyHHHLOJHS ykTADUwrU5sNfzSbn9777M9vgmIBUcDf6e0qZLigZ+8TjYhvdnsADp+zWMETt/Ik9i3a 2fVGRYY20kAvceB7xzAbg1ncbWThPFXKTClpjmmNWlunV77BM41+50mhovMs58ks11rV ycCIk+mjhkt7083SSRvJsYER7/Y3o0ny+nZmuPBziCLognRp6i53DmUSNfB+9JHCoQsc AiR5wlx1dnGnz1aVQXm1PRdwKd+loI4VBEB4CWaPSyPFrOMUd4h5aLR8X5LqucKtgQtc +qxA== 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=pQrj6cwzG9rBhFnTIC8OL9vjIOJFStGecK51OoXqnGA=; b=0n7UwvVys1oT9k1j5oIKlNgFBYiLtsc0R01AFitaA88P8yYeBQIugucKPM6RIuXR3Q sKv9XpcFCKesL/hKeyKtT5j0NyEPUSO6QjmvLgeFc2xeklNzPv9UXKAou8Cx6lbC+wRh h+bHxXwuGlFBECz/dwDx6fx7+oDQ5pPqtiS+XUUYQfh3b3kBrxecV2YYrCCtp4Q9jj4N 6ZDk440kiXWXlvrWqudElngUbuJTOPeqM/KkYmhChqaU3m7INMM86ZETFqt8mhN21gvh UlKN5PdQlaXKyHJNFGA3Nq1D0Rb4ZZmdDEjcSKEfjJORoYTdL1uL6TRFjKTRmqR2h7ix Pgbg== 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 qb12-20020a17090b280c00b001fe4eebefe5si7998782pjb.135.2022.11.18.14.48.54; Fri, 18 Nov 2022 14:49:07 -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 S232422AbiKRWru (ORCPT + 99 others); Fri, 18 Nov 2022 17:47:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232054AbiKRWqi (ORCPT ); Fri, 18 Nov 2022 17:46:38 -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 20E5EA317B for ; Fri, 18 Nov 2022 14:46:31 -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 1owA7j-0007Xu-36; Fri, 18 Nov 2022 23:46:15 +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 1owA7g-00589H-Em; Fri, 18 Nov 2022 23:46:13 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7g-00HawR-Kb; Fri, 18 Nov 2022 23:46:12 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 023/606] drm/bridge: lt9211: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:57 +0100 Message-Id: <20221118224540.619276-24-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?1749875946899753594?= X-GMAIL-MSGID: =?utf-8?q?1749875946899753594?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/lontium-lt9211.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/lontium-lt9211.c b/drivers/gpu/drm/bridge/lontium-lt9211.c index 933ca028d612..3e19fff6547a 100644 --- a/drivers/gpu/drm/bridge/lontium-lt9211.c +++ b/drivers/gpu/drm/bridge/lontium-lt9211.c @@ -720,8 +720,7 @@ static int lt9211_host_attach(struct lt9211 *ctx) return 0; } -static int lt9211_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lt9211_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct lt9211 *ctx; @@ -786,7 +785,7 @@ static const struct of_device_id lt9211_match_table[] = { MODULE_DEVICE_TABLE(of, lt9211_match_table); static struct i2c_driver lt9211_driver = { - .probe = lt9211_probe, + .probe_new = lt9211_probe, .remove = lt9211_remove, .id_table = lt9211_id, .driver = { From patchwork Fri Nov 18 22:35:58 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: 22576 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447842wrr; Fri, 18 Nov 2022 14:50:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf5+TViJ7FMuXqJrNKSW549W4yHT18R0O+fUrD6T72RQPRz82salk7TvOcQB3kKeb+LavI3q X-Received: by 2002:a05:6402:4445:b0:468:eef6:a83c with SMTP id o5-20020a056402444500b00468eef6a83cmr7232340edb.191.1668811831932; Fri, 18 Nov 2022 14:50:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811831; cv=none; d=google.com; s=arc-20160816; b=c8zArE3qW+Pm2BiV5fc1oyibZtbD2uPB8vtEOWD9dsBc3K/lkY64jzwZpxkRNb9R9M Bmv90olKvrqbOutwu2TayNKUjXY8Ev0F5BnnfdxwL16uNC0BTOrF0ZW2KLpKJBaFwE/4 9dIZllOKBW50nkrrlIjF6eRRdnGgq4NFHuAjcdPiZ1dGH6Aixs4/ldKh8PrTE0NRy5sI QSz/qMvdntQqG8J8/YYFHgZkjjyE/lxNu/5HnQt9gswwNhkg7k+cTcw5SMEOI12gECEW oy72wIyhRJl4fuMtgZU2g+M6B4f78dKswCOEfoP7+iOMLHarGfKmhG7gpAj0Jn9poqpz D9PQ== 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=7JC3Eb3mldt32x9vSkEcDCNn5E4YXzYjrBusGUotkr0=; b=e1RVlmasc/BhMvQnflZRk0bouMIusHOo+KzCMiNkTLfmpl33CwM2UNZLCAinutZmWe I929HfgR6129hIazRKLKafENbdN2TNkXrqo2z0j8U8kdB5tV7zLUPLM32ZMd9CBZme85 ReZn3Lm3PwTyO7gRNJn6RsD97rImOmYLhOF2w/l6yrQqTZDX/8/ywgWuzcm3h2I/rywD gCfgDzUeUTIcPWyv4mV0ox5XsMQ2UXWhXcS0Fm+GDYpmKkA2mWVAhTu5UJiq1ibfkem/ XFVOPMUaaDkY3XITxcs+V0RDHIOS5vsZZPWOv7Klsx4uRNRIuwmt56DggHgbr/W7Ikgd uMmg== 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 qq18-20020a17090720d200b0078db89b526asi3150410ejb.108.2022.11.18.14.50.08; Fri, 18 Nov 2022 14:50:31 -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 S233538AbiKRWtg (ORCPT + 99 others); Fri, 18 Nov 2022 17:49:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232315AbiKRWqv (ORCPT ); Fri, 18 Nov 2022 17:46:51 -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 2276EB7EBC for ; Fri, 18 Nov 2022 14:46:38 -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 1owA7k-0007e1-Bl; Fri, 18 Nov 2022 23:46: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 1owA7i-00589m-Cs; Fri, 18 Nov 2022 23:46:15 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7g-00HawV-Px; Fri, 18 Nov 2022 23:46:12 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 024/606] drm/bridge: lt9611: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:58 +0100 Message-Id: <20221118224540.619276-25-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?1749876035616224758?= X-GMAIL-MSGID: =?utf-8?q?1749876035616224758?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/lontium-lt9611.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/lontium-lt9611.c b/drivers/gpu/drm/bridge/lontium-lt9611.c index 7c0a99173b39..ffcdc8dba379 100644 --- a/drivers/gpu/drm/bridge/lontium-lt9611.c +++ b/drivers/gpu/drm/bridge/lontium-lt9611.c @@ -1108,8 +1108,7 @@ static void lt9611_audio_exit(struct lt9611 *lt9611) } } -static int lt9611_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lt9611_probe(struct i2c_client *client) { struct lt9611 *lt9611; struct device *dev = &client->dev; @@ -1248,7 +1247,7 @@ static struct i2c_driver lt9611_driver = { .name = "lt9611", .of_match_table = lt9611_match_table, }, - .probe = lt9611_probe, + .probe_new = lt9611_probe, .remove = lt9611_remove, .id_table = lt9611_id, }; From patchwork Fri Nov 18 22:35:59 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: 22563 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447548wrr; Fri, 18 Nov 2022 14:49:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf5hZymxvdo+RIJIKr/THLiDKCA+kWdGExFLFg3xEo0Rmyh/j0WD/Nl5W5ZvtNOWv2U6ZepY X-Received: by 2002:a17:90a:8a13:b0:20a:e24d:5e32 with SMTP id w19-20020a17090a8a1300b0020ae24d5e32mr15832933pjn.138.1668811782388; Fri, 18 Nov 2022 14:49:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811782; cv=none; d=google.com; s=arc-20160816; b=XYIWLOkvISh0Op8NxJPGVUVSggMBaq2sMmUzmPNzWDehBi9pb4KlJdfr9iZaAla9jD Mr919RlgfCgrYCMBp37I6SkRhN5Y53LiM3ehvnNxDN8g3f76Ss1Hm/ebcdsKEfWBWSmR P0oiUkE/Hsh8BAMsd0rKb2XNcTzRIfebpT3bhCRfmDGDRnmvl8T48jn4x/dQ0pLVhNHF NmMVyioGBZ3crROfD851RHsJSuJGkwOsZUqTTaaUemDZdmZhCc/SGOABDo7HTSetfkNK tdyDYCVmEqkism37QJQbNFPg1HEni71HN2kSPEamjDlTjMibe0UbaSBYn1d4ilxn0YdA kKTg== 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=Q9OTV/QEdA4l8Eb9V4WPv+PqGtmFA5ri4rX7ZwT7T2o=; b=uylCvG8AkdpAJmKJXJUYWnG+7K+vj2AxmeLfwCV32AlrGsAKbJ56TXjei2+RVrr+rN 4EqFw97RwTiMSeDnnz2k2NnyhaKY0zeU9JeaFjBhW1OArBTuN7JwLvIUYWTzZmmpLJpn VX5yv++G+8SZsDnr5PRhMCAShjVixPxsCUsuO8jjrwKRUGjCfmiXs94aLBRSVkfstJhm O6dwcSMMVpCOXYYvcr8j1tRqVpHUcIRXzGwHiZR0F7bsQRG9/t3RvsVHYuPuMxLvvObD 8oIZAYi3d1TeDiga2t+Nx/dghQKGjnvr11b7bxU0ah0dbwahYvhCc6S+QZJAgwv913EG ILDg== 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 d10-20020a056a00244a00b0056ca7c10cf2si5370482pfj.251.2022.11.18.14.49.29; Fri, 18 Nov 2022 14:49:42 -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 S233179AbiKRWsg (ORCPT + 99 others); Fri, 18 Nov 2022 17:48:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231609AbiKRWqm (ORCPT ); Fri, 18 Nov 2022 17:46:42 -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 A8032970A6 for ; Fri, 18 Nov 2022 14:46:32 -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 1owA7j-0007dO-Sl; Fri, 18 Nov 2022 23:46:15 +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 1owA7i-00589b-0n; Fri, 18 Nov 2022 23:46:14 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7h-00HawY-0X; Fri, 18 Nov 2022 23:46:13 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 025/606] drm/bridge: lt9611uxc: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:59 +0100 Message-Id: <20221118224540.619276-26-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?1749875983473589316?= X-GMAIL-MSGID: =?utf-8?q?1749875983473589316?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c index fa1ee6264d92..583daacf3705 100644 --- a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c +++ b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c @@ -844,8 +844,7 @@ static const struct attribute_group *lt9611uxc_attr_groups[] = { NULL, }; -static int lt9611uxc_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lt9611uxc_probe(struct i2c_client *client) { struct lt9611uxc *lt9611uxc; struct device *dev = &client->dev; @@ -1012,7 +1011,7 @@ static struct i2c_driver lt9611uxc_driver = { .of_match_table = lt9611uxc_match_table, .dev_groups = lt9611uxc_attr_groups, }, - .probe = lt9611uxc_probe, + .probe_new = lt9611uxc_probe, .remove = lt9611uxc_remove, .id_table = lt9611uxc_id, }; From patchwork Fri Nov 18 22:36:00 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: 22561 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447523wrr; Fri, 18 Nov 2022 14:49:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf4xFg99N3bff9d3S/y1d9qiiKAMWavcubbLJIUMAxr0rYrz/m9h3lEGpr6W0hE49E8gRR0M X-Received: by 2002:a17:902:a3c9:b0:179:f580:bca5 with SMTP id q9-20020a170902a3c900b00179f580bca5mr1527039plb.139.1668811778366; Fri, 18 Nov 2022 14:49:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811778; cv=none; d=google.com; s=arc-20160816; b=HbTNkxUiilz3jVXLWjOsHOQmLU9/LeQJ2PT6mCKy0CcOIuz+VVBYQ3se+ViBAjloxA tdXMOhCgQzFRBvDWu4C0Dk6PQLBg/AzfvFt/3NCIghy77AGM8rfHiGZStF6Z7jInFUpg fbYGYBKPgmxQoE/WVo+cA+YKXC0cih2Q9YfjG8bW6MWdR+J/nRzwOOO2fTYsNKCDK/Z6 znzKXTzaPB7tkfaLOSue/K3+3+WyUzdLgoJ4zSU0tQ2YgrcyxsdwW/gSNX1j2aB/PsAy ByZlqzdg4wsj60+xRN/O54CqxcwL/lxK5C+ZUBTepKlh2XkQd2aM7sK3kEvbY1H0SRAO j+ew== 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=InYFBVmgIogmtOaGB34EY7T1AWehzJ3vbnMURoN2z68=; b=jo3wBcVTn/dDD3/h0XmyvDotXA35R3IOZTCSXxV9iCgqBcOHE9sQLMQbmlukWgmlzn H/2cHuuLLpmuWI1J/NQ6VaNN0YTxJndi9vtRRifxktOUntHWUta2sonwpQb6Zjk8XhoK 6brIBjhedAnfSv5VTS28+nsSVNYLVbd0xaOtBvp6Z+EzIpQdaPofDTGIgL+Cjx8K4Jan dHVLWVpcTKAy1MuweLR6hYBNj593gCfx15ohixJmK6MmWCWXhmEiJkqaZdsNyEzIQnp5 5FdRyhJBOoPy+GjyKYM8ZYOseUA5Rn0mDTtY3VO/dXBKxYPQousJX2Y6WPR+7U8hxd8V 1dUA== 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 c3-20020a17090a558300b00213cdfa8abasi4103845pji.173.2022.11.18.14.49.25; Fri, 18 Nov 2022 14:49:38 -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 S233146AbiKRWsb (ORCPT + 99 others); Fri, 18 Nov 2022 17:48:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232129AbiKRWqm (ORCPT ); Fri, 18 Nov 2022 17:46:42 -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 0007E970BC for ; Fri, 18 Nov 2022 14:46:31 -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 1owA7m-0007fQ-7F; Fri, 18 Nov 2022 23:46:18 +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 1owA7j-0058A9-6h; Fri, 18 Nov 2022 23:46:16 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7h-00Hawb-65; Fri, 18 Nov 2022 23:46:13 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Peter Senna Tschudin , Martin Donnelly , Martyn Welch , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 026/606] drm/bridge: megachips: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:00 +0100 Message-Id: <20221118224540.619276-27-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?1749875979475351677?= X-GMAIL-MSGID: =?utf-8?q?1749875979475351677?= 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 Reviewed-by: Laurent Pinchart --- .../gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c b/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c index 97359f807bfc..4ee4a825a936 100644 --- a/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c +++ b/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c @@ -336,8 +336,7 @@ static int ge_b850v3_register(void) "ge-b850v3-lvds-dp", ge_b850v3_lvds_ptr); } -static int stdp4028_ge_b850v3_fw_probe(struct i2c_client *stdp4028_i2c, - const struct i2c_device_id *id) +static int stdp4028_ge_b850v3_fw_probe(struct i2c_client *stdp4028_i2c) { struct device *dev = &stdp4028_i2c->dev; int ret; @@ -376,7 +375,7 @@ MODULE_DEVICE_TABLE(of, stdp4028_ge_b850v3_fw_match); static struct i2c_driver stdp4028_ge_b850v3_fw_driver = { .id_table = stdp4028_ge_b850v3_fw_i2c_table, - .probe = stdp4028_ge_b850v3_fw_probe, + .probe_new = stdp4028_ge_b850v3_fw_probe, .remove = stdp4028_ge_b850v3_fw_remove, .driver = { .name = "stdp4028-ge-b850v3-fw", @@ -384,8 +383,7 @@ static struct i2c_driver stdp4028_ge_b850v3_fw_driver = { }, }; -static int stdp2690_ge_b850v3_fw_probe(struct i2c_client *stdp2690_i2c, - const struct i2c_device_id *id) +static int stdp2690_ge_b850v3_fw_probe(struct i2c_client *stdp2690_i2c) { struct device *dev = &stdp2690_i2c->dev; int ret; @@ -424,7 +422,7 @@ MODULE_DEVICE_TABLE(of, stdp2690_ge_b850v3_fw_match); static struct i2c_driver stdp2690_ge_b850v3_fw_driver = { .id_table = stdp2690_ge_b850v3_fw_i2c_table, - .probe = stdp2690_ge_b850v3_fw_probe, + .probe_new = stdp2690_ge_b850v3_fw_probe, .remove = stdp2690_ge_b850v3_fw_remove, .driver = { .name = "stdp2690-ge-b850v3-fw", From patchwork Fri Nov 18 22:36:01 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: 22560 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447511wrr; Fri, 18 Nov 2022 14:49:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf4cpUbXVj0+vHZmcm59/lof2HI4vhToz025fVKlPaNDmWTWZxvBAVpVrLZN5qypYC51l0w5 X-Received: by 2002:a17:906:1182:b0:78d:99f2:a94e with SMTP id n2-20020a170906118200b0078d99f2a94emr5029061eja.232.1668811775876; Fri, 18 Nov 2022 14:49:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811775; cv=none; d=google.com; s=arc-20160816; b=OLo3MJCaVgp9KPmrVkfwsSGERqRPh01FbvoB7+CoPvJH9N7fmeP2ZgSUY6kkxAU5DR AG6wrWry2LTNR/+hcRucnpKJp7Yi8L+dQ9SztwZ9FvklpE9iMJ+rD65+rVA3XfBERBnm eIQdB1LCtOfbj+YwueZAN8mm9Csv481epXcpfAX0v3XyYvLU0S+ltdLE/2DBCUMIBHE8 oogh7ICz4YAC4hmpoJdnZnHceR9TvxEZZTmPUYaFDimhR65PuMjM7XONjX3J6/6TrIsk EzR1/iSZH/8/lS2Pa130rNLk52i5wjoPqo45xBNduDwrBR3+K82tCtpyRcDEeCn26L71 /Prw== 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=+LKeEoguSmWFE7hyQ6Q/3DokVhPrV0a/V67MycNaivE=; b=tntj4IpzHxKl1sSu/juYn3cfPT/SWfila9pmRGCwokzwsHvnufU1/z4ojZE+D8W1iI jEy1i1hZxHG13DyIjlsC5L+G93K2IPDcXYpTFl1dlVdn7gaFQGQOjsldgT2KTzdglkbq VFNOT3fw+fdQ8be7ODLOEqU8J4F91WofY3CMbCA9JKNLxOrCYd2OFKTPWrbeuRX653X+ SW1o1HA5qJ2zzwivCYyysFQDKdUdrdCcL1uAiNqfWhgTc70FjIG4lWvek+ozTXWHsYqp SrSf/oZuaflwb162Kc7JFwh4dU7XA0ps2M11J5GxALrmseQtP4nDvwCLx9JA+EPTf8KZ ZksQ== 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 l17-20020a170906795100b00781d695b597si4156472ejo.473.2022.11.18.14.49.11; Fri, 18 Nov 2022 14:49: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 S233066AbiKRWsQ (ORCPT + 99 others); Fri, 18 Nov 2022 17:48:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232107AbiKRWql (ORCPT ); Fri, 18 Nov 2022 17:46:41 -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 8B00FAD9A7 for ; Fri, 18 Nov 2022 14:46:31 -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 1owA7k-0007el-Pf; Fri, 18 Nov 2022 23:46: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 1owA7i-00589u-PW; Fri, 18 Nov 2022 23:46:15 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7h-00Hawf-CC; Fri, 18 Nov 2022 23:46:13 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 027/606] drm/bridge: nxp-ptn3460: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:01 +0100 Message-Id: <20221118224540.619276-28-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?1749875976791940437?= X-GMAIL-MSGID: =?utf-8?q?1749875976791940437?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/nxp-ptn3460.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/nxp-ptn3460.c b/drivers/gpu/drm/bridge/nxp-ptn3460.c index 0851101a8c72..cd292a2f894c 100644 --- a/drivers/gpu/drm/bridge/nxp-ptn3460.c +++ b/drivers/gpu/drm/bridge/nxp-ptn3460.c @@ -257,8 +257,7 @@ static const struct drm_bridge_funcs ptn3460_bridge_funcs = { .get_edid = ptn3460_get_edid, }; -static int ptn3460_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ptn3460_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct ptn3460_bridge *ptn_bridge; @@ -336,7 +335,7 @@ MODULE_DEVICE_TABLE(of, ptn3460_match); static struct i2c_driver ptn3460_driver = { .id_table = ptn3460_i2c_table, - .probe = ptn3460_probe, + .probe_new = ptn3460_probe, .remove = ptn3460_remove, .driver = { .name = "nxp,ptn3460", From patchwork Fri Nov 18 22:36:02 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: 22586 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448076wrr; Fri, 18 Nov 2022 14:51:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf7DTbDOmtCNOKV95VR2IuVOzmMECGExyUzDlqHzY2blRsN9iV/hYnPo+hIJpLXeOpheTTqM X-Received: by 2002:a17:902:b691:b0:17e:3f0f:5ad0 with SMTP id c17-20020a170902b69100b0017e3f0f5ad0mr1463175pls.162.1668811873270; Fri, 18 Nov 2022 14:51:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811873; cv=none; d=google.com; s=arc-20160816; b=w5GC1M6MncQOqfVkyPNgKh7teAzl1OfgW8tOq2isZWKI31XWXHTYGu64Rjz4FHnEtV /TBKy0yEYHWxrrtw6ruVkkzq3y/ZIqh0BzIowNW7m4G0y+Q0EykPSrtRpdva0vTPLS50 Ll62N9dJBlATIIagzvSajZjeMHIFfHRQpF0F9xnymgCxkmkHUSL42TfqInK1Py7z2mep /bzS7oePa1Zk/wsNi7wZDohR76dvrmZBfHACMO3vCPKGt5Lk/Pa7FYbCZNtNSJ63XqWL JscGyNCSH7xtEZB4JFio4jNvyHHjzqT5yqSAOV2CGjydxMWLArljY2G6nEhPPkq1E01j v78Q== 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=jPg6elFQxvGJbKHsy4Up+n3WFwaqvMLpZ8QKB7IMCm0=; b=07P1o3LU0sH6IAHxyTPjLW7eHri0aqSV2iv/Wer//UcwZj9O0wGfb8oCydcBd1dlqt EzP/di4RbZYcp0kEwFyGtfIt76IfSwO4EBqtPJlwkCecigOZkt0x8B0gcI14nOUZBP49 Sl6+axeDpLd3bLjofHQiuKbwp/scxjdjd7nxkOwtj1UcdMi+02c3IvrWWpOA5qI8W6ch IjTK/saWmpwhtGbJ8IqohSC+JIEQBhC0eLI2lFfu4oWleUVayrT/3H2YXA5V3QaNEn1l hgrqniGQU2dmBV8JoR6kF9e0ae1lfU7bpyoY3jkbLL/D6h8aympxApU4PmAakKMoY14a 1yGg== 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 t141-20020a635f93000000b004622caf9ac4si5033650pgb.805.2022.11.18.14.51.01; Fri, 18 Nov 2022 14:51:13 -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 S233845AbiKRWu3 (ORCPT + 99 others); Fri, 18 Nov 2022 17:50:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230498AbiKRWqk (ORCPT ); Fri, 18 Nov 2022 17:46:40 -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 74CAE94A6B for ; Fri, 18 Nov 2022 14:46:31 -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 1owA7l-0007gS-Ji; Fri, 18 Nov 2022 23:46:17 +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 1owA7j-0058AL-Oa; Fri, 18 Nov 2022 23:46:16 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7h-00Hawk-Ig; Fri, 18 Nov 2022 23:46:13 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 028/606] drm/bridge: parade-ps8622: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:02 +0100 Message-Id: <20221118224540.619276-29-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?1749876078483764720?= X-GMAIL-MSGID: =?utf-8?q?1749876078483764720?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/parade-ps8622.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/parade-ps8622.c b/drivers/gpu/drm/bridge/parade-ps8622.c index 309de802863d..530ee6a19e7e 100644 --- a/drivers/gpu/drm/bridge/parade-ps8622.c +++ b/drivers/gpu/drm/bridge/parade-ps8622.c @@ -442,9 +442,9 @@ static const struct of_device_id ps8622_devices[] = { }; MODULE_DEVICE_TABLE(of, ps8622_devices); -static int ps8622_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ps8622_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; struct ps8622_bridge *ps8622; struct drm_bridge *panel_bridge; @@ -538,7 +538,7 @@ MODULE_DEVICE_TABLE(i2c, ps8622_i2c_table); static struct i2c_driver ps8622_driver = { .id_table = ps8622_i2c_table, - .probe = ps8622_probe, + .probe_new = ps8622_probe, .remove = ps8622_remove, .driver = { .name = "ps8622", From patchwork Fri Nov 18 22:36:03 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: 22552 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447314wrr; Fri, 18 Nov 2022 14:49:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf4qv0ur3DCB7ivmfWCU3+w36MB8B/gbICsWZvSKdE6wlE7LNPMa4nml24AsEomvTW5B4GX7 X-Received: by 2002:a63:a51d:0:b0:473:f7fb:d2c7 with SMTP id n29-20020a63a51d000000b00473f7fbd2c7mr8405731pgf.535.1668811743274; Fri, 18 Nov 2022 14:49:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811743; cv=none; d=google.com; s=arc-20160816; b=nUceQ4dy29sXbQA5hEG27s3uz6VCeMWeaNXyu7zi7cmFT4ZDkYYpplDKPbY/09pNp3 80CrSE+4O8bOYacGtL3wb/OzZEBcONQiV8gZKbogD8umFMEQjI5DPjovafGzQqKJKfvo tyTSiQw5TSx+3+CFAIa+HfjxFTWdXTUDoRR4yUKElsmpfe20txooGXW5SiYqwpswWcEx tHJU6T7N6/L4CJ24O/TJzfwMTzrr+JgSZLEFayDKEOijP/GZx4RVro9K1mucRcdKRZ9P DO4MiWBPYRbqSgvz9CmPRy9LUEX2Umejfj23JcoPCOj8q7IXG4+8YzVq5uJswa5A10bw 6mzw== 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=QOZGpNqHKb3oHnullUTSu7fnW36uY1GjkUrU4BzC/LI=; b=KQ5XGUm1BzRkyyu4Go5SuhAaTqsR5eJ7XfWqlSbWCQuxkYLVo1CfldkfFlq4h1NHJ1 sccj4vQ/1JXtk6GPkD955hMJ6jeWTD2cDM/TswmpKtYaWTGH7z+50uzl/oQSUoCvy7CS 6LFYpM46L7CeRsp5RJRFojL4fIv5iHROJ+R+GQupdFNSSEQg24pENFgNlzxGPhl+9T7v M7H44rxZdEtN0e79FlvXvqzkpGf4CcLAXyEz3+fjjb2y7cnKJ1Nazuq5TNoeQN7HbfSm CC/ZBNxMom3mml0PxM61Kl1uq4zDVlXjk8I7pK91SdSfylBMge48C3hDJ7QQvpg4iS+E QPLw== 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 h127-20020a625385000000b00557eeba9fa4si4652267pfb.91.2022.11.18.14.48.49; Fri, 18 Nov 2022 14:49:03 -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 S232947AbiKRWsB (ORCPT + 99 others); Fri, 18 Nov 2022 17:48:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231894AbiKRWqk (ORCPT ); Fri, 18 Nov 2022 17:46:40 -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 55056A4147 for ; Fri, 18 Nov 2022 14:46:31 -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 1owA7l-0007g9-Ia; Fri, 18 Nov 2022 23:46:17 +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 1owA7j-0058AI-KF; Fri, 18 Nov 2022 23:46:16 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7h-00Hawn-OF; Fri, 18 Nov 2022 23:46:13 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 029/606] drm/bridge: sii902x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:03 +0100 Message-Id: <20221118224540.619276-30-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?1749875942837150649?= X-GMAIL-MSGID: =?utf-8?q?1749875942837150649?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/sii902x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/sii902x.c b/drivers/gpu/drm/bridge/sii902x.c index 878fb7d3732b..ea590db41970 100644 --- a/drivers/gpu/drm/bridge/sii902x.c +++ b/drivers/gpu/drm/bridge/sii902x.c @@ -1066,8 +1066,7 @@ static int sii902x_init(struct sii902x *sii902x) return i2c_mux_add_adapter(sii902x->i2cmux, 0, 0, 0); } -static int sii902x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sii902x_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct device_node *endpoint; @@ -1169,7 +1168,7 @@ static const struct i2c_device_id sii902x_i2c_ids[] = { MODULE_DEVICE_TABLE(i2c, sii902x_i2c_ids); static struct i2c_driver sii902x_driver = { - .probe = sii902x_probe, + .probe_new = sii902x_probe, .remove = sii902x_remove, .driver = { .name = "sii902x", From patchwork Fri Nov 18 22:36: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: 22556 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447348wrr; Fri, 18 Nov 2022 14:49:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf797Ixsjk/It4pgfQ2yKLVSMaJres1X5sg/TOzykT4mZGOALWw6WnhipcjqvPVqtnhCoPxN X-Received: by 2002:a05:6a00:c5:b0:56b:a4f6:e030 with SMTP id e5-20020a056a0000c500b0056ba4f6e030mr10052556pfj.85.1668811750771; Fri, 18 Nov 2022 14:49:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811750; cv=none; d=google.com; s=arc-20160816; b=HBujVJXS+XcqNVok6//f1jpL3Cml2GyazcOzb/+iZuHtW2Q0wK2i/Uwt5/k+FSGvsd M4wPMOZfcYI6UX2gAWsFP61gdYJOwDFnMLvum/B2gCfmwr4sBpWE9AtKDEdHls4sK6Pe 6Xh7tx1nxzKHvAi7DcavmAFYlAylKXhW2wXKn551j5Dmj/hwuMgpC8OIg/S3c9RJ8LeO f2Ftjtn34BtC86hUmgj4rH7aTD9KRtVtIubpGKF0gO5I3RiTXnhTyPehQ21V1E1sFH0R gk/8pUXYMuIP8PTccSyRopmePL+m2XqUKQK19K/dtQpiPBbMy8si/2TciiW7ZyFeDQpv c0tQ== 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=MXNj5pkCvwcoGJqBicF+yCUljQ9M30UROwwyK8tAX04=; b=Ne5WVNZEAENswWiUA1hbBW6Q38sEVW9YKTwHwRlFHs8sfjQq6jNv4gi1J8f6zUIrNq ARbOty+/bc4mK0RQ35+lTmjTb+XvtC3btj5+ax9ItUicOi7pB/3UnvBhP/GW2g4UttOG Rltcf7Sv9WTy/jzqZiFOFMLr9cSXigjIE88uq3Ugyaox5JuHz5MkJP7z/xGSJ1ZGEXpg gauqGRZDKEbFTtAf1hhPg4RSVewmRY1PiWI4M0YX1PUYPF7FVIHgqa6Jvjq1FkhF1Lai BTIpiTEIEGGcuLDv//cy1ciFnuAFHbc0fmgRankeQL8f/LVhT1ClRiK5Xn/rQFBF7SwX +8yg== 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 li18-20020a17090b48d200b00213e4bcfc20si8332622pjb.157.2022.11.18.14.48.58; Fri, 18 Nov 2022 14:49:10 -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 S233029AbiKRWsH (ORCPT + 99 others); Fri, 18 Nov 2022 17:48:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232120AbiKRWql (ORCPT ); Fri, 18 Nov 2022 17:46:41 -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 9CC13B1B9E for ; Fri, 18 Nov 2022 14:46:31 -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 1owA7k-0007f1-No; Fri, 18 Nov 2022 23:46: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 1owA7i-00589x-TX; Fri, 18 Nov 2022 23:46:15 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7h-00Hawq-Tm; Fri, 18 Nov 2022 23:46:13 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 030/606] drm/bridge: sii9234: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:04 +0100 Message-Id: <20221118224540.619276-31-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?1749875950018067637?= X-GMAIL-MSGID: =?utf-8?q?1749875950018067637?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/sii9234.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/sii9234.c b/drivers/gpu/drm/bridge/sii9234.c index 5b3061d4b5c3..099b510ff285 100644 --- a/drivers/gpu/drm/bridge/sii9234.c +++ b/drivers/gpu/drm/bridge/sii9234.c @@ -886,8 +886,7 @@ static const struct drm_bridge_funcs sii9234_bridge_funcs = { .mode_valid = sii9234_mode_valid, }; -static int sii9234_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sii9234_probe(struct i2c_client *client) { struct i2c_adapter *adapter = client->adapter; struct sii9234 *ctx; @@ -961,7 +960,7 @@ static struct i2c_driver sii9234_driver = { .name = "sii9234", .of_match_table = sii9234_dt_match, }, - .probe = sii9234_probe, + .probe_new = sii9234_probe, .remove = sii9234_remove, .id_table = sii9234_id, }; From patchwork Fri Nov 18 22:36:05 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: 22587 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448092wrr; Fri, 18 Nov 2022 14:51:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf5rMzfW34Wx0UzvWqx7JIPHe/YcBLo6nnX8JecCwt8boz6Mtx1o34sSDfViCl8gN/F1vlRr X-Received: by 2002:a05:6402:389:b0:459:2515:b27b with SMTP id o9-20020a056402038900b004592515b27bmr8024399edv.338.1668811876547; Fri, 18 Nov 2022 14:51:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811876; cv=none; d=google.com; s=arc-20160816; b=Ccw8e6XXljZTlo70OX1q3aCjDkuTMfjOAcegUxttgPvb8/s4VCea8jR4eHqXq3C9OR Hv6dcPWiU2EYMUm6/m5mWNyeG3bo8pIjKYVWwQ4XLA1oh+xaM6XXIt27dHWtbxZyZreY AASvYZ9Fj5ID5wAEmkAAjZsfi6XHNi+RxfpGMYIv84Wd8dEe9cxudsuM0TdQbRATrI8q N5eYqKXser/8E9FeVsXlvtVhWbOJ2wIqM73ZwuQ5I+kAPJFm9XaiG5LtCbpg7iw/Cie/ 3sn7/OnGCF6yYQbPT7LenYf/w2q891GYaSYkbOARmUU9gHM/OtNM/Vm3u5HuUOZjz6nI 4v1g== 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=UwKHUFA85LVq5iMULU/2B39Do4xOdlKGaQseyQo/Unw=; b=SXLRMv9n07Q8Zvx9rnCAeLA32JzgH6GWkVuziNy50hBqwa4v+N1AYFrX+Q19894RcJ kFzD9FZRYP4pxcT8vLxSMcHkeyUzfPxOgtU6nTtXQrfScSgMeB7Web3SEoo/3abimJoF 5XAlBxSEIwuNWZmfCGH8gELnosyCyfOnx0hWsmKE2/6kRv22v0z8Syi5nXMX9qBhuI1e Iw9CWmJ+lzHmeLJ7nlS1jNAzAZ50JX/qYE0Sdxg9znz8lFxd+MIrY+OmIRYCLmlvrdFE A5RGyk3tlkkJbUGobe1e5Vjbkv9Ost9iOjaLObuo8QRfdhJ8F0YOj+cd4j6xEKzCLWfz 86Tg== 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 y15-20020a056402440f00b00461a144e980si4397118eda.379.2022.11.18.14.50.53; Fri, 18 Nov 2022 14:51:16 -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 S232893AbiKRWry (ORCPT + 99 others); Fri, 18 Nov 2022 17:47:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232052AbiKRWqi (ORCPT ); Fri, 18 Nov 2022 17:46:38 -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 20DC2A317A for ; Fri, 18 Nov 2022 14:46:31 -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 1owA7m-0007hX-78; Fri, 18 Nov 2022 23:46:18 +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 1owA7k-0058AZ-DD; Fri, 18 Nov 2022 23:46:17 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7i-00Hawu-36; Fri, 18 Nov 2022 23:46:14 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 031/606] drm/bridge: sii8620: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:05 +0100 Message-Id: <20221118224540.619276-32-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?1749876082141986828?= X-GMAIL-MSGID: =?utf-8?q?1749876082141986828?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/sil-sii8620.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/sil-sii8620.c b/drivers/gpu/drm/bridge/sil-sii8620.c index 511982a1cedb..b96d03cd878d 100644 --- a/drivers/gpu/drm/bridge/sil-sii8620.c +++ b/drivers/gpu/drm/bridge/sil-sii8620.c @@ -2284,8 +2284,7 @@ static const struct drm_bridge_funcs sii8620_bridge_funcs = { .mode_valid = sii8620_mode_valid, }; -static int sii8620_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sii8620_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct sii8620 *ctx; @@ -2379,7 +2378,7 @@ static struct i2c_driver sii8620_driver = { .name = "sii8620", .of_match_table = of_match_ptr(sii8620_dt_match), }, - .probe = sii8620_probe, + .probe_new = sii8620_probe, .remove = sii8620_remove, .id_table = sii8620_id, }; From patchwork Fri Nov 18 22:36:06 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: 22554 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447334wrr; Fri, 18 Nov 2022 14:49:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf6/TVtHgZ+7GTn0hHQhCk0uiQ41vYRqpB6n4n+1OQ9gX5a5Bkh5Xh2cpiIZk1VQdFkRF//I X-Received: by 2002:a17:902:f605:b0:188:fcc2:1fa9 with SMTP id n5-20020a170902f60500b00188fcc21fa9mr1531829plg.80.1668811746959; Fri, 18 Nov 2022 14:49:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811746; cv=none; d=google.com; s=arc-20160816; b=MJZSjakxWxoQW8u/0/CPVrnxAgxwmQA8vK3Rqgt+wW7YGGDKS5ukga8tPNATaOG00y Ur79TSzd/kPKAMW9fNXtEO4y09He1knsw9HwRzWJ/7e2qdUaB+7okwZ27BVKegTY7pVZ tF7TxAsaP6FCxF2+X7y3B0S2GAeielC+nYAIbo6iMXhSjLizQtQwlcGKtppyDlEYwAXs wuB+9HY8tveUPCf17B2mX+m1tsLdhqCzoT0SDRPZGIvW5DUvqmR6+/UeoVlRK/Sq7yIY KoBJFr7Aavubi0hrbteY7VsqlPERpiviLdatrmvR7EL6v9fOn6QGJjo7HlCD+1HZR0TQ OV5Q== 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=ex+kl/3BNA6IjR7joVOhLzmWt+8Btas84HRXC961dBM=; b=Nbchtj3AHowBrUzoJB4xKM21ibjWCE1HEovwzAv8l+qvCQm1kx6jVx8D1IHmZ5M4qG GuUqXa6MrUSnukXb07qo25Vs2NVeed2aZ9s0RLKyk6Pcc3FRYGGqb7/faPVYf54OrwA1 mN1hKKcaoGx9ZJYpOLj5aDJtouopOLnWpZuU2ycdO4uFWuSos8JfxyEyqjKRiRn7yU0e NORm6sGJnqHXQxrGEFZEOcDfMilbCMeWGo2Rqc+FKSlPi8SqOrVKrWcXLKFSV9EoX41q oQpAmr0VTUrkWpusbSeBJ2cHqDSyh6GYEm+YiswN12yY6CLmC5tw7Ll3s7kdtfyl4PA8 YRgw== 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 j4-20020a635944000000b0046fec9f9ed8si4758698pgm.704.2022.11.18.14.48.54; Fri, 18 Nov 2022 14:49:06 -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 S232972AbiKRWsF (ORCPT + 99 others); Fri, 18 Nov 2022 17:48:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232124AbiKRWql (ORCPT ); Fri, 18 Nov 2022 17:46:41 -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 AB91DB2210 for ; Fri, 18 Nov 2022 14:46:31 -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 1owA7k-0007eS-Na; Fri, 18 Nov 2022 23:46: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 1owA7i-00589s-Ma; Fri, 18 Nov 2022 23:46:15 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7i-00Hawy-Al; Fri, 18 Nov 2022 23:46:14 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 032/606] drm/bridge: tc358767: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:06 +0100 Message-Id: <20221118224540.619276-33-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?1749875946734006220?= X-GMAIL-MSGID: =?utf-8?q?1749875946734006220?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/tc358767.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c index 2a58eb271f70..a4725efe812d 100644 --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c @@ -2029,7 +2029,7 @@ static void tc_clk_disable(void *data) clk_disable_unprepare(refclk); } -static int tc_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int tc_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct tc_data *tc; @@ -2209,7 +2209,7 @@ static struct i2c_driver tc358767_driver = { .of_match_table = tc358767_of_ids, }, .id_table = tc358767_i2c_ids, - .probe = tc_probe, + .probe_new = tc_probe, .remove = tc_remove, }; module_i2c_driver(tc358767_driver); From patchwork Fri Nov 18 22:36:07 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: 22571 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447685wrr; Fri, 18 Nov 2022 14:50:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf55tlQIlpKwQRM4bxm9+vNwJWWjz/Ebq5JAf2gxrh0zM1NM08NmA5SRUfQkQJvtnIXYTE8A X-Received: by 2002:a17:907:2bc2:b0:7ae:bfdb:7706 with SMTP id gv2-20020a1709072bc200b007aebfdb7706mr8029032ejc.207.1668811805698; Fri, 18 Nov 2022 14:50:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811805; cv=none; d=google.com; s=arc-20160816; b=IB9RwMHUC380RnhDFOibv0IoWHBMt3JFOmCNXGjPIjs4pc8i7HtyVJrpyzo7CmqqBl GMvyGBSe5NpNWWWED1uvtuYA4F96nVWxuZbsMsaOr3Drrm5QHna3oZRtVf1SiAJuR/PK yhSUzwqdG+a0/IdWBtvNj4Sd1HrEVzU3m4H/GjfajUVPkIi4HchcVGrYQf7NOEh4izUz 3alMwI4WAnXkc0E8kWoulxodEqnqKwFXT1y7bJ3fEoE0BmzMyMEZbe8vndzGVUrqNWPu VcbsoT8VCtyDB4tO4bUkdy6/kj34l3oHQF2L5P/BlNOaKQBfZ+pHcr49/Qe3LK1tLzFX KKZQ== 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=kThSUXA00/8ynSmcpckTKILegslWRWp65IZ2S6y8t4o=; b=wRoLj9zogarhBuXTbx1Q8woj6bpmr9IMDP3ISPUqauvoxBSeiz+jO2ePzz8183r4uC tydBy54hXIbyq1u8FeGicKxN5hn45lLsj/JurQ8own3uTUXxMhWbuiVfpyvRPiN/MBAt VFEc1gHlhp3q9XsGuP6rfKosapfTuh/GVbo9J8HwdEN7zSIE+iR1ut20s1iVautrQGz6 y1eVmJoZle1qF0m0osq+3ToS/fPWQ/VWxmSgv+k4p4TzFoAow05CvcpfIlNqxAOlMotO 7O0mbZkKUt8HXQTsLj6iAAZOm/Xxf8nneSSrdhqGMrcFN8hCNcI43VZLI9j0V+m0LRYh yTYw== 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 m19-20020a056402431300b00459060fce1bsi4507787edc.574.2022.11.18.14.49.41; Fri, 18 Nov 2022 14:50:05 -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 S232717AbiKRWsx (ORCPT + 99 others); Fri, 18 Nov 2022 17:48:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232173AbiKRWqs (ORCPT ); Fri, 18 Nov 2022 17:46: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 11BA3B4F13 for ; Fri, 18 Nov 2022 14:46:32 -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 1owA7n-0007j5-8S; Fri, 18 Nov 2022 23:46:19 +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 1owA7l-0058As-D6; Fri, 18 Nov 2022 23:46:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7i-00Hax1-GL; Fri, 18 Nov 2022 23:46:14 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 033/606] drm/bridge: tc358768: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:07 +0100 Message-Id: <20221118224540.619276-34-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?1749876007689746346?= X-GMAIL-MSGID: =?utf-8?q?1749876007689746346?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/tc358768.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/tc358768.c b/drivers/gpu/drm/bridge/tc358768.c index 4c4b77ce8aba..839b8832b9b5 100644 --- a/drivers/gpu/drm/bridge/tc358768.c +++ b/drivers/gpu/drm/bridge/tc358768.c @@ -1018,8 +1018,7 @@ static int tc358768_get_regulators(struct tc358768_priv *priv) return ret; } -static int tc358768_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tc358768_i2c_probe(struct i2c_client *client) { struct tc358768_priv *priv; struct device *dev = &client->dev; @@ -1085,7 +1084,7 @@ static struct i2c_driver tc358768_driver = { .of_match_table = tc358768_of_ids, }, .id_table = tc358768_i2c_ids, - .probe = tc358768_i2c_probe, + .probe_new = tc358768_i2c_probe, .remove = tc358768_i2c_remove, }; module_i2c_driver(tc358768_driver); From patchwork Fri Nov 18 22:36:08 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: 22558 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447365wrr; Fri, 18 Nov 2022 14:49:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf5R40aWLJ3HllGRGVLaIRvtGrz6V6Oqrdr4M9Q7F7Ik9/LmSkJ5+LdqqUWgEdIySsGGznrU X-Received: by 2002:a62:bd18:0:b0:562:3aed:e40c with SMTP id a24-20020a62bd18000000b005623aede40cmr10082023pff.2.1668811755617; Fri, 18 Nov 2022 14:49:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811755; cv=none; d=google.com; s=arc-20160816; b=OxDFZbGQRQnNgbKOk1jDlO5WW0DfLbJswL0yeRp9a5I9JrQsYMmua9PpdN0fb2Ctx1 gsZvP7IdSNquTCVHS1ZVB1SqZDrf8zsvMZGPkaq+FUgNFQcnId0jdX0XEmF1EriAMiMz 00aohT6OtVNCuybIZXSJhnLQjsTHpUl5yQD91L92qA3rKl3FLTHEEjeOrXso7U8mKd63 d+sKF+nuhStQoakPdypfreEPceCCiaz1vmdjAzEpxn2P2ctaTsVAr0P8ujAFSEOFixs8 X7sNwkO8OU0LSVnkjHGTlqEh1+ESqtuQbRtXgTk9h+xfgA4siyjci6549EDrIENEQfSW w36w== 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=p4IFOe5H5LTt6/+keSqyYX9DyI72kg2uFDAGys3XxX4=; b=pX/wSSr0YmMTQcKoljbnJL6dz3MFEPXNVzw5gidnqx4aZuunv+55AQcff78zKLJL34 L4YIhs2BCY8Q+t6upet4dSgo0Bl0dJZnOo3jEpzGM6OcuxQRf4UmQWlzkqFnfzDL+zT1 SHvGaNY+9pGzL9T/635g4llSodFGLZJAYioJsGOgNhHdpetP5z1jVv4PnUbRGU8MLY4E qsD14xqajs/guV+BmO2dtR5blYupY8/DzzilUHvaUjuJdWYrRtczorEX+GOcifWlt/Ym o/+Jgix/neSjxCmk7Bz67020ZLlZYqes6C2wV+mhsfTrj4gEzpvC/mT30gwroLlR7gCX kRXg== 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 q207-20020a632ad8000000b0046f58fc74d0si4808339pgq.752.2022.11.18.14.49.02; Fri, 18 Nov 2022 14:49:15 -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 S232530AbiKRWsL (ORCPT + 99 others); Fri, 18 Nov 2022 17:48:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232109AbiKRWql (ORCPT ); Fri, 18 Nov 2022 17:46:41 -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 82132ABB8F for ; Fri, 18 Nov 2022 14:46:31 -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 1owA7k-0007fJ-Ue; Fri, 18 Nov 2022 23:46: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 1owA7j-0058A3-1T; Fri, 18 Nov 2022 23:46:15 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7i-00Hax4-MD; Fri, 18 Nov 2022 23:46:14 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 034/606] drm/bridge/tc358775: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:08 +0100 Message-Id: <20221118224540.619276-35-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?1749875955814618989?= X-GMAIL-MSGID: =?utf-8?q?1749875955814618989?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/tc358775.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/tc358775.c b/drivers/gpu/drm/bridge/tc358775.c index 3ceb0e9f9bdc..91b5e1207c47 100644 --- a/drivers/gpu/drm/bridge/tc358775.c +++ b/drivers/gpu/drm/bridge/tc358775.c @@ -637,7 +637,7 @@ static int tc_attach_host(struct tc_data *tc) return 0; } -static int tc_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int tc_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct tc_data *tc; @@ -729,7 +729,7 @@ static struct i2c_driver tc358775_driver = { .of_match_table = tc358775_of_ids, }, .id_table = tc358775_i2c_ids, - .probe = tc_probe, + .probe_new = tc_probe, .remove = tc_remove, }; module_i2c_driver(tc358775_driver); From patchwork Fri Nov 18 22:36:09 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: 23145 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488616wrr; Fri, 18 Nov 2022 16:46:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf7MvQqLN0BbVlU8Ar1x5LxXIn9rdT0/OSE2hmX1M8425Yvfkemwl/zZ2ncGlEwUx3fODhcE X-Received: by 2002:a17:906:328e:b0:78d:7f22:2c53 with SMTP id 14-20020a170906328e00b0078d7f222c53mr8113777ejw.420.1668818788515; Fri, 18 Nov 2022 16:46:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818788; cv=none; d=google.com; s=arc-20160816; b=u159L8d7vfCemnVPEVcnLWaaxlWslHMykkuMlU/kjHZvP8Rup/fIGULagX0HDXpIuo 0P4WNpAv0tYSWBRwHsDZWbMWf7o2ytDDbHlLU1k81iLwq/arkk8JLj+cjEPGId2hMgtV J2Ky840ylrP8hzu1iV8wRBNxciZof2crIcRSnsCbnwwU8BaGhhYoIfYit/dcWE4exY7C Cs1+u06CdKc3ZEsE9Tec/WfadeM0DViuFnOGuVK9NegoFQIASpElrAN+jOR8Cu3ULfc5 xWJJdMJq8NUt9zCO934i0cx0BRZPzWXVsYB52sVNTQ1Z7NXu9IREzS4Ft0ZTJXxytIeK JirA== 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=uu3bAwEWxW2zeeQkvVjI3ixp3OwHejkiHYUJjaliLwc=; b=Ol0G8mH9ERcP32h4kswen3gafxRSv4OGXGB9la4y3sDDM2+uJCR0YqOK+8UBCBim0e lQ7x7Nmj04oQ43+6MXp736NqhIBPDmqOKLVKcD735qjzQLZEIAkbytpG8uhcY0p9oadl TNU05lXzxi/eaV7pyNFfbQEEFEhR+AD+YHfSXNbRyKks8Y9e3/jstUBI2GxNNjaJt5iw z2t/RctJpNwrzTFOkW/X75Nz0EjV4rQNRh6Qao6RmaGPU365rLv+7PZuvDwh0yj8oL/l fhNl6eCoVa7mxIgbNAIfqJ+tDCeGMZIf7NLGMpdNMW87dCQUzqaB+N404jFsALtkrN32 a9Xg== 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 xh13-20020a170906da8d00b007adf38290f1si4238115ejb.642.2022.11.18.16.45.57; Fri, 18 Nov 2022 16:46:28 -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 S236865AbiKSAlB (ORCPT + 99 others); Fri, 18 Nov 2022 19:41:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234690AbiKSAj1 (ORCPT ); Fri, 18 Nov 2022 19:39:27 -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 4DEA2C7223 for ; Fri, 18 Nov 2022 15:44:31 -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 1owA7u-00083a-GR; Fri, 18 Nov 2022 23:46:26 +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 1owA7p-0058Ce-V4; Fri, 18 Nov 2022 23:46:22 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7i-00Hax7-Rf; Fri, 18 Nov 2022 23:46:14 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 035/606] drm/bridge: ti-sn65dsi83: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:09 +0100 Message-Id: <20221118224540.619276-36-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?1749883329961286373?= X-GMAIL-MSGID: =?utf-8?q?1749883329961286373?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/ti-sn65dsi83.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi83.c b/drivers/gpu/drm/bridge/ti-sn65dsi83.c index 7ba9467fff12..aab7412b09bd 100644 --- a/drivers/gpu/drm/bridge/ti-sn65dsi83.c +++ b/drivers/gpu/drm/bridge/ti-sn65dsi83.c @@ -653,9 +653,9 @@ static int sn65dsi83_host_attach(struct sn65dsi83 *ctx) return 0; } -static int sn65dsi83_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sn65dsi83_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; enum sn65dsi83_model model; struct sn65dsi83 *ctx; @@ -730,7 +730,7 @@ static const struct of_device_id sn65dsi83_match_table[] = { MODULE_DEVICE_TABLE(of, sn65dsi83_match_table); static struct i2c_driver sn65dsi83_driver = { - .probe = sn65dsi83_probe, + .probe_new = sn65dsi83_probe, .remove = sn65dsi83_remove, .id_table = sn65dsi83_id, .driver = { From patchwork Fri Nov 18 22:36:10 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: 22588 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448124wrr; Fri, 18 Nov 2022 14:51:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf6HqGcPb12CpRdoXub51oIcSNAdL16wWc3unPe0aRJYL3KwjInn37wCyyUmAzPLtD4Xz2Fn X-Received: by 2002:a17:902:cf0e:b0:17c:5b01:f227 with SMTP id i14-20020a170902cf0e00b0017c5b01f227mr1660703plg.3.1668811880812; Fri, 18 Nov 2022 14:51:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811880; cv=none; d=google.com; s=arc-20160816; b=oE7xo96ARKtv2wOJjcTJihbgw9KBdktCWDVnHsyvikxwHfT76256I5t0iu+SfSM9mq YK3OCVQVDSiFdwSG7nY6tjoafgN0VWZoGcE4Dk6p+e27NSA790JYy7uzGgnAYydE4nDf I9L3ozjB8Qeb2UzqYoFs0Ojri+Bf0jzkF77lSPJ/AVS5xzBVMLtCurAWM3Xgby1tTitb kzQShuvjyq2od1f9ikIxtc3y5doND9+Z4eMvFgMgIPGWWPOUI0EMpcJiNO5i8jrt4+xv wKJb+NKAj8NUIlwXo9jiZ1mKGFfGFf85BBRwqH5XEZ4DZlewd8NFm1lYd88RnUIWoiqd DUaQ== 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=9QQBq8l8SbIs3HYgmIyqQRptnPwgRUMbhCcq4f5L98s=; b=tc1KmqP+dDPTIgq1atCpa4nsyzxk7oUDAo4CoNT4UYWrpf/9Tt2Z7D1MkqBlQhn6qD u1GdwHRhLJ5HfmCSzENMBCLiuRXHdQ9GJ0Tf1uVo7Z2vZOvJziW2S+Tr6ml3oCzDNf4B BRyNELyDhneHqELwmbcFJ9ieLWrK/KfrtMVQyaILuIIvC2jUPcWuD/augSV6THHr0WDP C/9gOx7UPN1TzJLZabdCGQu+DjFHUh3NhGzmGrnj0Rsua8O35Us92TS2/Gc/Mtryx+8D s/Tp1OH4jx5xEv6X5T23vM/DN4g8dfzpB8e917Up2XtYkh06CKLwhOPD6dU7OG7zjC/k T7mQ== 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 j3-20020a170902c3c300b001854f631c8esi4529938plj.221.2022.11.18.14.51.08; Fri, 18 Nov 2022 14:51:20 -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 S232536AbiKRWui (ORCPT + 99 others); Fri, 18 Nov 2022 17:50:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232098AbiKRWqk (ORCPT ); Fri, 18 Nov 2022 17:46:40 -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 7ABDAA4161 for ; Fri, 18 Nov 2022 14:46:31 -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 1owA7l-0007fo-AA; Fri, 18 Nov 2022 23:46:17 +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 1owA7j-0058AE-Ex; Fri, 18 Nov 2022 23:46:16 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7j-00HaxA-10; Fri, 18 Nov 2022 23:46:15 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Douglas Anderson , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 036/606] drm/bridge: ti-sn65dsi86: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:10 +0100 Message-Id: <20221118224540.619276-37-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?1749876086751448022?= X-GMAIL-MSGID: =?utf-8?q?1749876086751448022?= 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 Reviewed-by: Laurent Pinchart Reviewed-by: Douglas Anderson --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c index 3c3561942eb6..856d28dec4bf 100644 --- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c +++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c @@ -1850,8 +1850,7 @@ static int ti_sn65dsi86_parse_regulators(struct ti_sn65dsi86 *pdata) pdata->supplies); } -static int ti_sn65dsi86_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ti_sn65dsi86_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct ti_sn65dsi86 *pdata; @@ -1950,7 +1949,7 @@ static struct i2c_driver ti_sn65dsi86_driver = { .of_match_table = ti_sn65dsi86_match_table, .pm = &ti_sn65dsi86_pm_ops, }, - .probe = ti_sn65dsi86_probe, + .probe_new = ti_sn65dsi86_probe, .id_table = ti_sn65dsi86_id, }; From patchwork Fri Nov 18 22:36:11 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: 22559 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447491wrr; Fri, 18 Nov 2022 14:49:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf6NrEIxy2YY1uK4bT9pT37kV5XnQIMsZglWg4PfZ0zG+cqPp6YlfKi7XG8V7n69IC+rVghV X-Received: by 2002:a17:902:6505:b0:186:ae32:28bc with SMTP id b5-20020a170902650500b00186ae3228bcmr1653993plk.41.1668811774282; Fri, 18 Nov 2022 14:49:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811774; cv=none; d=google.com; s=arc-20160816; b=p/xpb6uv4kJYjZUmW0hZRMQ+l6OIkI2tcXwZR204EpuCb/4i+7ufHlrLzD4fc8oUvX yNlWPuFsGnUHgKKixy1KWHCA3NIrw/5caATrubzoFPfYiS+9yof0j45lzyJ3bTTsz/oR +uBzd738CfwoH2n+R9ZxEXCcs9/Kgs9YSSuPtY1w9ezINXaBJqGT4lEBj7Dt2DT4BGL3 g3oVcETQWVW97JjPCdzc1TRzxGnafdgci1DTntZqFjuLolxX3iviCO+w1uo7wCORbVey c3KP414x00SJSCXzraKywWHlsEO6+xVgnwYsi44o/Ur9wqzD7ClSw4QHEzNne2hFEIy5 oW7g== 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=FLXTrsKGzCxYGR15FvzUDPpaqz6+YE3wJjFeJb7VKcI=; b=RKXMLG5eIZBXkWjFK3lo8+yoNh94KPET1deNxXyo0MjEG2wJEHowR3+daxV5Mle7y4 qMJcE6j4LalqD/YAD0QiqwHoAs/MuIgkLMAtdTvKJqSIkqyJqzFkPJ7OWb/pP5JhqdOD xzQIf6VYpil4v3yUUWe4OIps8ggElC/N4hv8tr6J8mLPqX874kgE02W6C59UZ/22oR43 hIP73bpbbQBv5tIjo/ij24lOwm4Mcupp5XiAob4AN1k7R4eo0U7wUeJJoVLOL0AJwGet 6oENIFG0PR4FfxflLxl6Up2QQNCR9T98/DDtL17nuTvNEbLAMFYNVlLgjQfPQLCuQNWh bQvg== 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 x186-20020a6331c3000000b0044e466f47a2si4987945pgx.141.2022.11.18.14.49.21; Fri, 18 Nov 2022 14:49: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 S232020AbiKRWs0 (ORCPT + 99 others); Fri, 18 Nov 2022 17:48:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232128AbiKRWqm (ORCPT ); Fri, 18 Nov 2022 17:46:42 -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 1175DB388B for ; Fri, 18 Nov 2022 14:46:32 -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 1owA7l-0007gW-Pj; Fri, 18 Nov 2022 23:46:17 +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 1owA7j-0058AQ-U0; Fri, 18 Nov 2022 23:46:16 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7j-00HaxE-7G; Fri, 18 Nov 2022 23:46:15 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 037/606] drm/bridge: tfp410: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:11 +0100 Message-Id: <20221118224540.619276-38-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?1749875975218747319?= X-GMAIL-MSGID: =?utf-8?q?1749875975218747319?= 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 Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/ti-tfp410.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/ti-tfp410.c b/drivers/gpu/drm/bridge/ti-tfp410.c index b9635abbad16..6db69df0e18b 100644 --- a/drivers/gpu/drm/bridge/ti-tfp410.c +++ b/drivers/gpu/drm/bridge/ti-tfp410.c @@ -379,8 +379,7 @@ static struct platform_driver tfp410_platform_driver = { #if IS_ENABLED(CONFIG_I2C) /* There is currently no i2c functionality. */ -static int tfp410_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tfp410_i2c_probe(struct i2c_client *client) { int reg; @@ -411,7 +410,7 @@ static struct i2c_driver tfp410_i2c_driver = { .of_match_table = of_match_ptr(tfp410_match), }, .id_table = tfp410_i2c_ids, - .probe = tfp410_i2c_probe, + .probe_new = tfp410_i2c_probe, .remove = tfp410_i2c_remove, }; #endif /* IS_ENABLED(CONFIG_I2C) */ From patchwork Fri Nov 18 22:36:12 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: 22631 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp459717wrr; Fri, 18 Nov 2022 15:22:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf58+IxvxUaPRfZehtm3NG/L1PsxmiG9Hs/QyhRb/Jsi/EHV7A5szQsTiX9wFVf0ikkyDAlk X-Received: by 2002:a05:6a00:1c8d:b0:56c:f87e:c662 with SMTP id y13-20020a056a001c8d00b0056cf87ec662mr10105123pfw.65.1668813727028; Fri, 18 Nov 2022 15:22:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813727; cv=none; d=google.com; s=arc-20160816; b=HsfwTjPLKZtVKjAOsi+n2ZY46vRyJZcEkquP9B30KvDiOJ0wg36LFotLJJQoPf3GQx 2qrkSezwsc2OzXs3p1cv0MnZ+XTrlZwwD/E7ugTStBr48XwM8UU59NDUuksW4Oi68LE5 p7QObYoVcZvS5TTZZmxUg2OQd8zqwmTkd99g0hGDj18PMAzDSdc1RaiBuCNo5dsiMzt5 G0Lhh3WxryMpkFJgpV4wEXHfJTScbHhUPOTStGvnz1hBkjV076ovDA407wwZm+0C9iB0 s9m1pkBHXrqBgYgKs5LMR5TNSDvhh/CI+2qUpCoQcuT2KoxrlZ236SxuLd7/wQlynxXs m9dA== 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 :dkim-signature; bh=FDnXQfNsVIQQAB8toYO2vJHOqHHXC5TFrxL7tejmNVw=; b=lADVgZ7djfSi6/+447Yj0ALPTU/HQU15yiImwhHb6M5f3h9PIPii18RfpAd5WA+rHM 8hn3S2HqbKY5iflIqXJ4240Ylti9KGBf9mO3gGz6ewFvEnyo5OANZWPeIWpnPkQCZlh2 ZJbSSWOnjwyg35zauZpDclE8uLYStpiolhryoFTnC1ugGvI6cOe1HuVjU85PZQ8uz58g Mjtskit4XXhts6bWF90wtLXHiwDowweUnizZfiXbQcvA9+9wtZmr26IgoGUzN87ROa+j LFZyKFye1tU7Sr7UmQF6WFQ+XTsQA4ztIEyFREFsafOu13f2fncXExE4n9pT/wDTPu11 PLzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kleine-koenig.org header.s=2022 header.b=KuKVH8yt; 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 i12-20020a170902c94c00b001748ede4e05si5341699pla.119.2022.11.18.15.21.53; Fri, 18 Nov 2022 15:22:07 -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; dkim=pass header.i=@kleine-koenig.org header.s=2022 header.b=KuKVH8yt; 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 S233705AbiKRXTW (ORCPT + 99 others); Fri, 18 Nov 2022 18:19:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234215AbiKRXTE (ORCPT ); Fri, 18 Nov 2022 18:19:04 -0500 Received: from algol.kleine-koenig.org (algol.kleine-koenig.org [162.55.41.232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91EF597ED1; Fri, 18 Nov 2022 15:04:23 -0800 (PST) Received: by algol.kleine-koenig.org (Postfix, from userid 1000) id 5F70968F731; Fri, 18 Nov 2022 23:46:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kleine-koenig.org; s=2022; t=1668811575; bh=LlspP/CA3mDLhx5AvEkQCfgDBdtUPqlu+K6RNIoku6U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KuKVH8ytJVbCJPPfClkVqVK/dVOGGWU+fk6eowX6oJJfczzpxGgC3Wv9NCrA79VCu PjpMMMixcBbeLppwKyYjjSWahr2tlIrPk+O2AT6OqPZ6TpiTUPMOqLDLfefieggdd1 jAGbGJ7dbzYJCEVPoG2a7l3wPR9Q8EYXB6P40m6Kvaxks407PlFze8XWz44WGIWyPO b1bOrpwmJnFrEE+9HbCOutdTPdzp/pn0W1G7EJzclTU40X9JYohKFu5OZkL4mYHym5 C9Mr4ocS6IZeufXFM/Xn8n6EdRDpHUPP33C8kzFRUbv9Z9l1ezF5YnG2fGfbEDNUbg mla6R1S0pjflQ== From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , David Airlie , Daniel Vetter , Javier Martinez Canillas , Ajay Gupta , Benjamin Mugnier , Srinivas Pandruvada Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?utf-8?q?Uw?= =?utf-8?q?e_Kleine-K=C3=B6nig?= Subject: [PATCH 038/606] drm/i2c/ch7006: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:12 +0100 Message-Id: <20221118224540.619276-39-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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham 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?1749878022376974789?= X-GMAIL-MSGID: =?utf-8?q?1749878022376974789?= 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 Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/i2c/ch7006_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i2c/ch7006_drv.c b/drivers/gpu/drm/i2c/ch7006_drv.c index 578b738859b9..e0476a5bf84c 100644 --- a/drivers/gpu/drm/i2c/ch7006_drv.c +++ b/drivers/gpu/drm/i2c/ch7006_drv.c @@ -386,7 +386,7 @@ static const struct drm_encoder_slave_funcs ch7006_encoder_funcs = { /* I2C driver functions */ -static int ch7006_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int ch7006_probe(struct i2c_client *client) { uint8_t addr = CH7006_VERSION_ID; uint8_t val; @@ -495,7 +495,7 @@ static const struct dev_pm_ops ch7006_pm_ops = { static struct drm_i2c_encoder_driver ch7006_driver = { .i2c_driver = { - .probe = ch7006_probe, + .probe_new = ch7006_probe, .remove = ch7006_remove, .driver = { From patchwork Fri Nov 18 22:36:13 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: 22551 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447288wrr; Fri, 18 Nov 2022 14:48:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf7LSJ93MdlIuX6ViB+WLHQLItklQXF4dr4/+wz5j9D2PSOLBvS1zsX29/1CuX2If8lmbVAE X-Received: by 2002:a17:906:144c:b0:7ad:cda3:93c7 with SMTP id q12-20020a170906144c00b007adcda393c7mr7812494ejc.500.1668811738776; Fri, 18 Nov 2022 14:48:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811738; cv=none; d=google.com; s=arc-20160816; b=JmihtQ4WSeTdHjpIiMM+Don1aUFZsB0HOWyITJhkY1w9OWG3kxcFOF9XczeWFhnY1j ayK5qF2ZXqOf372YvoN0WbOrF1aLEmr6VpSTTsFy7NjfzQhI574XIjmiu2p3yQKhJdUQ s4xCmdHgfFliIwJrowybWePxogFOte/WYw2AZOD2j5Rx2Mfg5uhQTshI3LWG0uGpARfP a0pT4EpyvlPTby75w3wKrNdf1gQJ2IDK9ruVfc/fT8BZGf9dFIdOfL81crH9PEFK+JIo nKvM57RZdGbofhHpvL479XBg4z4Avz77sc//mH7VVq/okH3kwCYxQ5YBd73cT0U9IMft PkPA== 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=QQzlzG9cYMVPkGers09zPN/XyQ4AqeGHc/t898/BVw4=; b=KFwZnS8OxjdW5ZfzFWyOXX8vJ9wWbqomCIcImWQP3CUpm6czOJX8HZFJlD2qP3RXUF mRFZ3G4ILZQqODMbTw3055FXvIlwawf6O5SckBDA/RvKeEofRpN3CSE9F2+s0xtwesmj 89xF7MPRvAyvat5qcEJW9k7xivhu8TrU5fTXE8Yl74OibKHX7m7a1+gbmKmoyWLH1ECJ lagf3meqeWYcPjkWxvCVLV7Qu/r/8cHCYYHcHj28kglTNVMP0uiZQ/T4ISJHmN1Vgd5d o5E5M4okU3IxddmxLTe6ZdTKuxCkfW1bppMj3PQdkCutb5DyoE8p7iY6D0rKg+EGDayf pCqA== 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 gt20-20020a1709072d9400b007879bb73291si216281ejc.807.2022.11.18.14.48.30; Fri, 18 Nov 2022 14:48:58 -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 S232799AbiKRWrj (ORCPT + 99 others); Fri, 18 Nov 2022 17:47:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232038AbiKRWqi (ORCPT ); Fri, 18 Nov 2022 17:46:38 -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 390F9970A3 for ; Fri, 18 Nov 2022 14:46:31 -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 1owA7n-0007jc-Td; Fri, 18 Nov 2022 23:46:19 +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 1owA7m-0058BD-0J; Fri, 18 Nov 2022 23:46:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7j-00HaxI-HI; Fri, 18 Nov 2022 23:46:15 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 039/606] drm/i2c/sil164: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:13 +0100 Message-Id: <20221118224540.619276-40-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?1749875937719040530?= X-GMAIL-MSGID: =?utf-8?q?1749875937719040530?= 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 Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/i2c/sil164_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i2c/sil164_drv.c b/drivers/gpu/drm/i2c/sil164_drv.c index 1bc0b5de4499..f57f9a807542 100644 --- a/drivers/gpu/drm/i2c/sil164_drv.c +++ b/drivers/gpu/drm/i2c/sil164_drv.c @@ -350,7 +350,7 @@ static const struct drm_encoder_slave_funcs sil164_encoder_funcs = { /* I2C driver functions */ static int -sil164_probe(struct i2c_client *client, const struct i2c_device_id *id) +sil164_probe(struct i2c_client *client) { int vendor = sil164_read(client, SIL164_VENDOR_HI) << 8 | sil164_read(client, SIL164_VENDOR_LO); @@ -420,7 +420,7 @@ MODULE_DEVICE_TABLE(i2c, sil164_ids); static struct drm_i2c_encoder_driver sil164_driver = { .i2c_driver = { - .probe = sil164_probe, + .probe_new = sil164_probe, .driver = { .name = "sil164", }, From patchwork Fri Nov 18 22:36:14 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: 22562 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447540wrr; Fri, 18 Nov 2022 14:49:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf4XOMjX22ekmsu5a3hFSN1XUOj4cmxCSUe34qLyViHC2QOK2WqvlY+e/4ZVnqJt5oFBVSPz X-Received: by 2002:a17:902:b613:b0:181:9900:18df with SMTP id b19-20020a170902b61300b00181990018dfmr1529011pls.70.1668811781430; Fri, 18 Nov 2022 14:49:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811781; cv=none; d=google.com; s=arc-20160816; b=rlqmV7AVoHP1qVvdhYo65CskAQQrlHxqx8c7GqQy0ftZWfvP/MJWy2WImpln4Fyv4V ihTx5q6m0q9iOC1lgv/gIh0kbUfUZBSM97oSFbBarbKXfM6vcevqvaUMD4S1RrtwwAEZ r4Wz9Ld2nftIdBBR15wArQWhydmbCa3LjRhDhpYdWKcVnwB5wmeuLcaRd8UzUceu2geD 0y9QqwLcmW7lbwjdkmWbRZaKHJFjgdRoD57SBrJd3eZGwveLsazcqZqS4lQp6ZVbOt46 BQ4qLMZKEPxmMDe6zYO+fIZB0Sv6/C3GkdDnE1su17zVw7KXCPJeDY2nND0N4pffFIQr Yj2Q== 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=cvV3V1xKoHko0u06j8hQKbVJCWwGrxtktnwN1ylogaY=; b=PEoO3VuFWvtBejzGIE3qVAjMAfz+pj2cSs/MpY74gUZ4yIZHzD1WoHutr3iO/UXs5Q wMYHekRgGuz0EXIHetUbtV9xHVPZpWbinBjEWtUk8j5NLkSFk/jOCVL4kmBJehr4Xynu d9c3q1zYcNVb+z4xuAmL3SU5He68zIrFHxtcmvBMs/xlQbxmoxrSDQ6mGXR/sYC+WtzZ PWTzsLGm7Z/Zw1U+nAF/Gw7OgoNQF71gzPs5df2ZOcTpwuyfJnobQapRv5Qt0Ow14VWi 6GK7l0WsJ/Xpow3hgeIpYde2KmvjA80cx3iqerz+6miAk8EcjKeAq9xM7RdBPuEzXEQz ZXEw== 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 b12-20020a056a0002cc00b005638baac87csi4178702pft.64.2022.11.18.14.49.28; Fri, 18 Nov 2022 14:49:41 -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 S232683AbiKRWrZ (ORCPT + 99 others); Fri, 18 Nov 2022 17:47:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231963AbiKRWqb (ORCPT ); Fri, 18 Nov 2022 17:46:31 -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 80CB1A3167 for ; Fri, 18 Nov 2022 14:46:29 -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 1owA7n-0007iw-4D; Fri, 18 Nov 2022 23:46:19 +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 1owA7l-0058Aq-9w; Fri, 18 Nov 2022 23:46:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7j-00HaxL-MW; Fri, 18 Nov 2022 23:46:15 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , David Airlie , Daniel Vetter , Peter Senna Tschudin , Luca Ceresoli , Benjamin Mugnier , Peter Rosin Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 040/606] drm/i2c/tda9950: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:14 +0100 Message-Id: <20221118224540.619276-41-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?1749875982442751236?= X-GMAIL-MSGID: =?utf-8?q?1749875982442751236?= 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 Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/i2c/tda9950.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda9950.c b/drivers/gpu/drm/i2c/tda9950.c index 9ed54e7ccff2..b8c143e573e0 100644 --- a/drivers/gpu/drm/i2c/tda9950.c +++ b/drivers/gpu/drm/i2c/tda9950.c @@ -375,8 +375,7 @@ static void tda9950_cec_del(void *data) cec_delete_adapter(priv->adap); } -static int tda9950_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tda9950_probe(struct i2c_client *client) { struct tda9950_glue *glue = client->dev.platform_data; struct device *dev = &client->dev; @@ -493,7 +492,7 @@ static struct i2c_device_id tda9950_ids[] = { MODULE_DEVICE_TABLE(i2c, tda9950_ids); static struct i2c_driver tda9950_driver = { - .probe = tda9950_probe, + .probe_new = tda9950_probe, .remove = tda9950_remove, .driver = { .name = "tda9950", From patchwork Fri Nov 18 22:36:15 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: 22548 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447217wrr; Fri, 18 Nov 2022 14:48:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf5qc9VQZX5kLbiXkSWBCUfUQQfY76jrea5ggQopvY2/zCzaPSZSTA9WoKLoaZjmkuKZqokh X-Received: by 2002:aa7:cac2:0:b0:461:caa4:4ad3 with SMTP id l2-20020aa7cac2000000b00461caa44ad3mr7698023edt.392.1668811726093; Fri, 18 Nov 2022 14:48:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811726; cv=none; d=google.com; s=arc-20160816; b=Pb1BmQzq93757ytWZ3sIRzQJx8xINA/hHYm6EdXahWz9Qd5+VVX8PIXeQ6HdECaWeA 1Y6rO3YfgHvurUk6kHcJy7MB055IYosSoaIeOgqrmic/nykf9jdjalaBY8CZMdsgurWD XHDKokj91WTxifkkDAgFG+rHX469LVom6AQt9TNqY7dwzyfnXKpluzXkCrJOlV7A24qJ hRRh5RYTXEDRVytGHeyw39h2HvNmkvbwUG7Sj3y91d8T80jJ8IEIRD22W382E7nFJo5g Ni2LYPHnRLppM96gFChzlpDiF/+BLzEXY6ILAxKtToCCwYfu2d+u+AjIyZsxOxM3BXnt K28w== 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=TmoDcnhkga9Y+rMZtjilrJt0MVhMkLLMArhLR8sHDoo=; b=AcKSUavPqCnqfJfXl8/Fq383uSzpaQ7eYkVnSilLYpPGC5hgzehSgo4WgRrhx0fuou a0tLdinCLHBSvhhM7YRG5eHG8NMAOc8GI6Qqv5v6O2Z2jNMgMSlvPxcoGUwhy/xEsyxh AWMQX0HCCq+hqf16x03HlkELeqsOyKHo/wi5gWAFXkQgOx1UQe0fZwvD9XlvlvRMeE1a 6lWaZv/UwhZxZQVhi93A0vzQS+3n2po2Asz2of48jc3hsijfDVKrsc906zenyPFXpjpM 1LCaCDB0NmoNdNWOg5C52Od0YBjfOiIkl5/DEART/MVDHefwL2ngjXT+yHkSKObyYkO7 1iCQ== 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 gb27-20020a170907961b00b00787803711f9si4598626ejc.353.2022.11.18.14.48.17; Fri, 18 Nov 2022 14:48:46 -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 S232705AbiKRWr3 (ORCPT + 99 others); Fri, 18 Nov 2022 17:47:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231961AbiKRWqb (ORCPT ); Fri, 18 Nov 2022 17:46:31 -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 A4819A3169 for ; Fri, 18 Nov 2022 14:46:29 -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 1owA7m-0007hW-9t; Fri, 18 Nov 2022 23:46:18 +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 1owA7k-0058Aa-D7; Fri, 18 Nov 2022 23:46:17 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7j-00HaxQ-Ru; Fri, 18 Nov 2022 23:46:15 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Russell King , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 041/606] drm/i2c/tda998x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:15 +0100 Message-Id: <20221118224540.619276-42-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?1749875924258352065?= X-GMAIL-MSGID: =?utf-8?q?1749875924258352065?= 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 Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/i2c/tda998x_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index d444e7fffb54..75d65ff27a4c 100644 --- a/drivers/gpu/drm/i2c/tda998x_drv.c +++ b/drivers/gpu/drm/i2c/tda998x_drv.c @@ -2057,7 +2057,7 @@ static const struct component_ops tda998x_ops = { }; static int -tda998x_probe(struct i2c_client *client, const struct i2c_device_id *id) +tda998x_probe(struct i2c_client *client) { int ret; @@ -2097,7 +2097,7 @@ static const struct i2c_device_id tda998x_ids[] = { MODULE_DEVICE_TABLE(i2c, tda998x_ids); static struct i2c_driver tda998x_driver = { - .probe = tda998x_probe, + .probe_new = tda998x_probe, .remove = tda998x_remove, .driver = { .name = "tda998x", From patchwork Fri Nov 18 22:36:16 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: 22590 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448228wrr; Fri, 18 Nov 2022 14:51:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf5IFFQ21wYubiKRZIeuNaSmm4PpX1+T3hlW2I2Q9qlymByZPILAELiI/m33xV0kI0BzEcgk X-Received: by 2002:a17:906:3ac1:b0:78d:36d8:1814 with SMTP id z1-20020a1709063ac100b0078d36d81814mr7461227ejd.99.1668811902411; Fri, 18 Nov 2022 14:51:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811902; cv=none; d=google.com; s=arc-20160816; b=Cksk2IMkNayfKCfQqzZKR23hbFxxm/FfWoJ4MK0z1ey7ubldewjRYZo5mf9AHiU7XU 0rCxUIxM6oU6PkCiXBqQ40p8msBDkKtpxc0ENc0QyfBaBYFVfqcXAbIk38H3l63hYw8l bbEBjNnMWkf6N5D8nLXkiSIYKSe78+famZt5nQcjwJMyTzueZJuyGSwKC/SNsCH2MZkU tg06KD/4qFE5/qmFWbjKIq1CGa+fBDmFhJz8Vdb3QoHcw//ANzL6eHniL4z83LgWuFNA waiCbxp9ypik6W75KxGPv4DmWinxF3sUOQfmZcmBc+7JNHIkfWoR+PkwqJZCTSW0+Ij3 3yWw== 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=KUFfcWwhubQXUP+SuNW5e8uXSUO/ZoR+vwX4/hwxUOY=; b=lE9RQ1aOaCzPTfQW6S5QQF4Om56hWhErkkd0c7eTI+ggoSeAacMwTc8T1V65k5zopz NAkLEnhz8sFB3OLP2MnIMs5Y99YJNHBUU0DmJPu6fro6/5uF//zoyNZFmdLd33CBsDSw t11ZHKvSXy3UxUhp3i1obl+ENqQH3RZPikIFh5dgv1MhFyk92q+5nq8EcMjMgBqe/CA9 fj1K2U1TF7TPjw/N0U9czDvJ/HAbafO+afmOqcRClyqZdFUb8IkkDSdeu2F/9NJIZqHk QyZVZLXOsrIWW3ABwc3mrGP9jDfLZrlunPWXiGfjbU7BfmFqtmCYzmai2gwNwZ6awwK7 nmtA== 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 hb44-20020a170907162c00b007b2a73daaa5si3711246ejc.8.2022.11.18.14.51.18; Fri, 18 Nov 2022 14:51:42 -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 S233093AbiKRWsW (ORCPT + 99 others); Fri, 18 Nov 2022 17:48:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232102AbiKRWqk (ORCPT ); Fri, 18 Nov 2022 17:46:40 -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 7B135A4173 for ; Fri, 18 Nov 2022 14:46:31 -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 1owA7m-0007i9-R7; Fri, 18 Nov 2022 23:46:18 +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 1owA7k-0058Ak-QI; Fri, 18 Nov 2022 23:46:17 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7k-00HaxU-1X; Fri, 18 Nov 2022 23:46:16 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Stefan Mavrodiev , Thierry Reding , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Sam Ravnborg , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 042/606] drm/panel: olimex-lcd-olinuxino: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:16 +0100 Message-Id: <20221118224540.619276-43-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?1749876109037944096?= X-GMAIL-MSGID: =?utf-8?q?1749876109037944096?= 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 Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c b/drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c index 36a46cb7fe1c..aba556c98300 100644 --- a/drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c +++ b/drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c @@ -202,8 +202,7 @@ static const struct drm_panel_funcs lcd_olinuxino_funcs = { .get_modes = lcd_olinuxino_get_modes, }; -static int lcd_olinuxino_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lcd_olinuxino_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct lcd_olinuxino *lcd; @@ -309,7 +308,7 @@ static struct i2c_driver lcd_olinuxino_driver = { .name = "lcd_olinuxino", .of_match_table = lcd_olinuxino_of_ids, }, - .probe = lcd_olinuxino_probe, + .probe_new = lcd_olinuxino_probe, .remove = lcd_olinuxino_remove, }; From patchwork Fri Nov 18 22:36:17 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: 22577 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447870wrr; Fri, 18 Nov 2022 14:50:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf4iA9TMy30CvMqNQasbJdoA26qjpTO6VAylAM8tg8RtMwS7eHzh9LLEXQpzg3zv+QOLopip X-Received: by 2002:a17:902:8604:b0:186:fe2d:f3cb with SMTP id f4-20020a170902860400b00186fe2df3cbmr1432440plo.132.1668811836917; Fri, 18 Nov 2022 14:50:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811836; cv=none; d=google.com; s=arc-20160816; b=s5AfRFDHmHmdUgkLmAE9QyHiwAJfR7ABndaqTx7Io/p1I/f8zMKkPPnwtcektSGPww XKayYTOTul5aPxU5yNXaFIimHOz31UirpWkUgcb1tzMuYDVvffZcmtlPnOPYEnJbdjJ9 Omp3GW1Q7jdrm8Y41OmYV+XenkyE6fh6py4zVcIn1RemhwOXWOvroQailv3LLjRj0ShR qus8QTWsGR/liJXeVvqzvijRGSgI1z43wEV4Tj70J76h7fMnfGimbJJYIEmKgxZ2JB1W uk9JBZCztySTLFetl5xgxu5wWgaf6xqVrPmwoK2aGR2kBjXchlVFSDRCQ2v5S91WcUky Wq/Q== 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=GEgXaclNZNfgJydwa5YruTaB2znZ+sjQ72NlupzH7/4=; b=T0zbePM5lHXgG/kWWqYzkXWYBUgd1OKLHvD4qCIbFkShl6K7xf6yOu0lCzcGRhub0M 2uDhz0LjUEnOPiSP5wPzTcpdVdOzUKtx1rjE3KbeK9tBCbX5e/uBYTC8Bcon5MVuF1Am zeKU2XUEEd+XEwqeKi9gO/oC+olrv3GgSwokoGWzwakHmwo6lPBWWK1Y3/XRa3i7adsq pGiUKbbQ/7LrCXGGb4+h7seKdfpe6+r6HKznvmuH55XSUKN/Ywma2oKC5WySMc2/N5J6 dQ621eZJ3K6aN7bBV1N7aPlojngFIFROkVFFFMnzeut1AdI5h1wrwa7AjKC233a7W6FQ sNRQ== 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 l27-20020a63ba5b000000b00434f938b9efsi5014965pgu.4.2022.11.18.14.50.23; Fri, 18 Nov 2022 14:50:36 -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 S233587AbiKRWto (ORCPT + 99 others); Fri, 18 Nov 2022 17:49:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232340AbiKRWqw (ORCPT ); Fri, 18 Nov 2022 17:46:52 -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 56917A314E for ; Fri, 18 Nov 2022 14:46: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 1owA7o-0007jU-9J; Fri, 18 Nov 2022 23:46:20 +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 1owA7l-0058B4-Np; Fri, 18 Nov 2022 23:46:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7k-00HaxZ-90; Fri, 18 Nov 2022 23:46:16 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Thierry Reding , David Airlie , Daniel Vetter , Florian Fainelli Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Sam Ravnborg , Broadcom internal kernel review list , dri-devel@lists.freedesktop.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 043/606] drm/panel: raspberrypi-touchscreen: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:17 +0100 Message-Id: <20221118224540.619276-44-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?1749876040346215293?= X-GMAIL-MSGID: =?utf-8?q?1749876040346215293?= 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 Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c b/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c index 79f852465a84..1ef1cfd01c77 100644 --- a/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c +++ b/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c @@ -362,8 +362,7 @@ static const struct drm_panel_funcs rpi_touchscreen_funcs = { .get_modes = rpi_touchscreen_get_modes, }; -static int rpi_touchscreen_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int rpi_touchscreen_probe(struct i2c_client *i2c) { struct device *dev = &i2c->dev; struct rpi_touchscreen *ts; @@ -491,7 +490,7 @@ static struct i2c_driver rpi_touchscreen_driver = { .name = "rpi_touchscreen", .of_match_table = rpi_touchscreen_of_ids, }, - .probe = rpi_touchscreen_probe, + .probe_new = rpi_touchscreen_probe, .remove = rpi_touchscreen_remove, }; From patchwork Fri Nov 18 22:36: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: 22542 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp446947wrr; Fri, 18 Nov 2022 14:47:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf5tttOC1X8dykk6AZgCJAGVTxDshQt59joMH5TMT2xoVsCaGJJwtEGQcSQLkQWl4IUF1EUn X-Received: by 2002:a17:906:c7d1:b0:7ae:fdcd:8198 with SMTP id dc17-20020a170906c7d100b007aefdcd8198mr7889933ejb.475.1668811670877; Fri, 18 Nov 2022 14:47:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811670; cv=none; d=google.com; s=arc-20160816; b=W5UuWO8Glwu2ISadyhFVOmdnxpS24fsSgZDyhqhs1vhJhSX+vfjfUCwEkyE9WlsSbB x4WP7M/BbuK8PDs1hHxY7m+uBkX3FT3anQn6lcsJjCSDeoPkw9YPCJvunhjBBxOL7J9D PHiGSA8aF6XXKqdJrJ8ZItM38eCML7OXSjS2rjJur0EagstKkxOqwcjrYPpnJ/80MNKf 6eo9e3WA3H5Nqp2Jv1syktZM26skdHoPKmVvUWKUNZXSa6/ozV0q0LYKF2eMX5BLo2G/ fBp/8JcEQ8u2Eqp145xuC1xto1msWbllD7FR54OGx3DW8i7a9NaNK7ukFxurPmSyrs0H CIKg== 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=RkhrGN23OWN9f1APBe1qgkxCBxLxuJZpp32O7kTf6HY=; b=w9APVtgHj9fkkUIk8OzgaWN5cGxL2KBUXorfebmQjsSPi0Zj9j2bhOpKCKWxcgOXHM Rt2hBf2robrIjtXDDPmboc+F4w5Ml/Aul08y4MwTEV1O2dYWlTca5x9fyRXp3a1yJALf RYbicgUAGwHCDs6KQZUY5pJGD5sdLoqm7Iz/Bruz2E4igU20Zl2VzIjLzyWQjs0uSyG8 iyFyR+sPZnJVEmbuV/zChlziycVANXCj893WMIAcLCA/qGZa++KhxS8CHJNVPl06SplW W4VzXLMqy0h4F9DsImb4GfyVESZhBs78Wa/04O9EaF0LYSZez17Ey8lsH26HK0norBU+ ISpw== 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 cy2-20020a0564021c8200b00462750bbe08si3739242edb.522.2022.11.18.14.47.26; Fri, 18 Nov 2022 14:47:50 -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 S232527AbiKRWqz (ORCPT + 99 others); Fri, 18 Nov 2022 17:46:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231660AbiKRWq1 (ORCPT ); Fri, 18 Nov 2022 17:46:27 -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 4680894A53 for ; Fri, 18 Nov 2022 14:46:25 -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 1owA7n-0007jM-7e; Fri, 18 Nov 2022 23:46:19 +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 1owA7l-0058B1-K2; Fri, 18 Nov 2022 23:46:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7k-00Haxd-GF; Fri, 18 Nov 2022 23:46:16 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang 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 044/606] i2c: core: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:18 +0100 Message-Id: <20221118224540.619276-45-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?1749875866743554695?= X-GMAIL-MSGID: =?utf-8?q?1749875866743554695?= 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/i2c/i2c-core-base.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c index 13fafb74bab8..087e480b624c 100644 --- a/drivers/i2c/i2c-core-base.c +++ b/drivers/i2c/i2c-core-base.c @@ -1018,15 +1018,14 @@ static const struct i2c_device_id dummy_id[] = { { }, }; -static int dummy_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int dummy_probe(struct i2c_client *client) { return 0; } static struct i2c_driver dummy_driver = { .driver.name = "dummy", - .probe = dummy_probe, + .probe_new = dummy_probe, .id_table = dummy_id, }; From patchwork Fri Nov 18 22:36:19 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: 22553 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447319wrr; Fri, 18 Nov 2022 14:49:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Lc3w3gslABcxCsi6w4S1+0+S/55XY0sao8MBL94MvIW1UPGX7ddoiqGQfQtEfbMYobIkq X-Received: by 2002:a05:6402:b50:b0:461:5d0a:78e1 with SMTP id bx16-20020a0564020b5000b004615d0a78e1mr8027814edb.425.1668811744331; Fri, 18 Nov 2022 14:49:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811744; cv=none; d=google.com; s=arc-20160816; b=OXsvZ2WjsLvVfT9WZpuVm0gNGImL7T8LsCiu4FTDDHRmeRmvuAnsMbeBhXiEWscjKW FM3nSPPBP/uuWyBJ+jvxIMDhkGpjGDS7dZeB0QEab2yb9JLUjqve51KaVt586EbP0tL8 1uwULgwStoIWG+ONX68DEeCbt0+UlY4A6V4P9plDtdVaJosZtsxtBvGvp0pK/qMKWIyN 5dZ7mNYsbGRXYi2Fsaoo12USJ+jEIF+Y5Uwr9rowJUCp5+vffi4HDs8OMl0JsOOpKwgq xZSqkT/S16/6qTwuQ56UYGtP6HA/8aQJoLLYSAA2PnEpRnm9EXzofS7oIKxZuANZQrBF kqig== 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=M9SJ4xFFPaNyk/9bruVqpLd0zOo/ndZHqZPzT+eKGHQ=; b=o6PtALuPvDVPdaUi5RcDl+i1mh0FIDFxDQSuerkrfzvnd8iRrdv4FOi5gznN8BSRIm lIEzbNbyOXuMOLf0dTiy07kjhOHjiYAzfKD/bBkU8aTQJhrPks44p5KtEz5lt7Rb4YZP /OHU1iC1YUi2OhyprsNEntb9DUu79yLjdH2l/bhGK0ICt5i1Q+G7pUSI8rOVjVrCJ0Ma GyhWf1APfPsv+/QgS6M6B6RDihf1taffMaD4W/cOLEZefdfxPhWfMrKxDA50BV2k2dhA qu3WnhpoDdIXwVpE+i98obxmjtwOh8KcYOeKXpvRd1Q6JerNcz2dLqktJgvrJZNXBbHg AFfA== 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 a12-20020a1709062b0c00b007adffbaa908si3219587ejg.916.2022.11.18.14.48.36; Fri, 18 Nov 2022 14:49:04 -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 S231940AbiKRWrR (ORCPT + 99 others); Fri, 18 Nov 2022 17:47:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231912AbiKRWqa (ORCPT ); Fri, 18 Nov 2022 17:46:30 -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 F098AA3162 for ; Fri, 18 Nov 2022 14:46:28 -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 1owA7n-0007jZ-LN; Fri, 18 Nov 2022 23:46:19 +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 1owA7l-0058BB-T3; Fri, 18 Nov 2022 23:46:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7k-00Haxh-Mq; Fri, 18 Nov 2022 23:46:16 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang 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 045/606] i2c: slave-eeprom: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:19 +0100 Message-Id: <20221118224540.619276-46-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?1749875943759572892?= X-GMAIL-MSGID: =?utf-8?q?1749875943759572892?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/i2c/i2c-slave-eeprom.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/i2c-slave-eeprom.c b/drivers/i2c/i2c-slave-eeprom.c index 4abc2d919881..5f25f23c4ff8 100644 --- a/drivers/i2c/i2c-slave-eeprom.c +++ b/drivers/i2c/i2c-slave-eeprom.c @@ -140,8 +140,9 @@ static int i2c_slave_init_eeprom_data(struct eeprom_data *eeprom, struct i2c_cli return 0; } -static int i2c_slave_eeprom_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int i2c_slave_eeprom_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct eeprom_data *eeprom; int ret; unsigned int size = FIELD_GET(I2C_SLAVE_BYTELEN, id->driver_data) + 1; @@ -206,7 +207,7 @@ static struct i2c_driver i2c_slave_eeprom_driver = { .driver = { .name = "i2c-slave-eeprom", }, - .probe = i2c_slave_eeprom_probe, + .probe_new = i2c_slave_eeprom_probe, .remove = i2c_slave_eeprom_remove, .id_table = i2c_slave_eeprom_id, }; From patchwork Fri Nov 18 22:36:20 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: 22544 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447078wrr; Fri, 18 Nov 2022 14:48:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Y8YjFL2Peg2bEfCcuRAsEbdR+kjQyO6FS7EizN+t6wnDZ1laRP3jQh4UjntAHLBJT/rx/ X-Received: by 2002:aa7:d816:0:b0:458:4868:814 with SMTP id v22-20020aa7d816000000b0045848680814mr7945959edq.190.1668811695384; Fri, 18 Nov 2022 14:48:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811695; cv=none; d=google.com; s=arc-20160816; b=w+km3pshODz3g9WHLEUkcCSZU4X4wSTnOAEFlI5vPeWgAGZ5oXAlZKpUc/+BMejKrK aWqyiYHpfSw+cG8V+4uzWLmrWJU390y5IR4UcZWyA4H78DIfHwxpR6lxqL7k5qrTIcaG 9PMIjABpl5QQCfzg/QjVLyNojP5Z8We616WmYqMzVNJ01y0dQ9hTjzueOrsfrfhmn81u n6OM66ZgNgDwzn4XvdOMzYa8Jnzq/5ZNw7oec9Yv55GTGxialo9/7pE0R3Ddnr0i5gdt u6ZXmYnXoG6aPmM2zziK4mnWVBUfRE9Jm9EXkoandGhcG42bXen+1CVTQSjSZfer/h+u fnsw== 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=qLtYgsrirpWARBiRQFZlPL4Q7t2DcYs9e9/XbKjWUSY=; b=hYRL4FuyB5nDl0BvkgFArpEmx12jipDbT8u+fhpYdCg0kRUII/o5ws7dzI6gMjaE4j Gj/XeHjgxyZhcGBiHwURGFqNdgw40BzqTc5COrBerhBtnhjkQhGaV5/ypgkJsMUdtFhD HBIsTq1cy2sbrS0+OHPi/f0Ny5wA7gmKcfVshNjhiiUwRpoX+a2qJPSVjumYle4GoY5b 87n5wvSAxsfZmQR6l9QMia7Lw/md8BxDsDylR+oA0vMYWSBlSxddlkS186QcPYNEIgr5 lW7akCsuhVxBPvDUm8dKbOeXgdjvF/F1o31ulR3wXnVIvacS9HQjkOT0FAWO80bbfKA+ 2DOA== 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 i2-20020a508702000000b004691125c420si2035274edb.264.2022.11.18.14.47.50; Fri, 18 Nov 2022 14:48:15 -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 S232638AbiKRWrN (ORCPT + 99 others); Fri, 18 Nov 2022 17:47:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231872AbiKRWq3 (ORCPT ); Fri, 18 Nov 2022 17:46:29 -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 06BA797083 for ; Fri, 18 Nov 2022 14:46:28 -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 1owA7n-0007jV-DI; Fri, 18 Nov 2022 23:46:19 +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 1owA7l-0058B6-PI; Fri, 18 Nov 2022 23:46:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7k-00Haxl-U0; Fri, 18 Nov 2022 23:46:16 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang 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 046/606] i2c: smbus: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:20 +0100 Message-Id: <20221118224540.619276-47-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?1749875892169053203?= X-GMAIL-MSGID: =?utf-8?q?1749875892169053203?= 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/i2c/i2c-smbus.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/i2c-smbus.c b/drivers/i2c/i2c-smbus.c index 07c92c8495a3..f4c74b9135b3 100644 --- a/drivers/i2c/i2c-smbus.c +++ b/drivers/i2c/i2c-smbus.c @@ -112,8 +112,7 @@ static void smbalert_work(struct work_struct *work) } /* Setup SMBALERT# infrastructure */ -static int smbalert_probe(struct i2c_client *ara, - const struct i2c_device_id *id) +static int smbalert_probe(struct i2c_client *ara) { struct i2c_smbus_alert_setup *setup = dev_get_platdata(&ara->dev); struct i2c_smbus_alert *alert; @@ -170,7 +169,7 @@ static struct i2c_driver smbalert_driver = { .driver = { .name = "smbus_alert", }, - .probe = smbalert_probe, + .probe_new = smbalert_probe, .remove = smbalert_remove, .id_table = smbalert_ids, }; From patchwork Fri Nov 18 22:36:21 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: 22572 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447721wrr; Fri, 18 Nov 2022 14:50:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf6QcHN5IW+GDc5Z9R8rKpEFkC2OnrMjOkU6yfH5TiYPsSLaYQlIKOVwpYcr/svHr88L7gfW X-Received: by 2002:a17:902:be17:b0:188:fbc5:b734 with SMTP id r23-20020a170902be1700b00188fbc5b734mr1377998pls.170.1668811812650; Fri, 18 Nov 2022 14:50:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811812; cv=none; d=google.com; s=arc-20160816; b=CGXdsbGvuVB7nqWn+j6y78L9c+Hfwq6CaRhc56EdFhF1q2b822D0TEnBBQwBTmM+EC an7dJrwRmt4c8Pugn8fNbX4lxT0SMsxj5WFdDRnZH502mPXNGBsO9bFLkot3gPQI2xBd 80CX9BEdJ3u9mWiGNMKMcw/P8nmJCeXCV+vosNnVM6+UU3jaVU8uDYEedAF8KDOtlLio twu+t5cM9ZQi5sOc2wnE4le9xeK8JKeH84zaQmmRr+Pr7G6Tc13MbHoJFXzI3/PuqYP0 EQy+FilNkM8nKniXO/2DP0kQihUum5Q7covzZwOXZfkEo3Om+KQL9WG24MB/RogC2jML 3asg== 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=lJ9nvMKbWByo+cDXzOTDTUvJ02S2M6iR6hAjBPl9Y1c=; b=oEUCgockgHRMgsFo07WXQnGIvUazS0CiihVKXcLkR+aJ44ndA52jcKLkhlgDK9G99T 7+jQuUi4ldLmwmLbphis8jPq0n85YSoSgbpBzFasF8pUFdz+0yziWbbMHD6FQphPaGYz ApDp5Yn4urdg4yUDxCNL8uap4sd7P5a3noomLxE31mNs3//EUdbTepXuhtRZWZshLy9B bMUwEdlWFdBXpZiMZmr7xJlOIXRj7UEwwuBIhvUB6cPRfNYpA6um142Hid6lK7+pAq6Q axsXmMWEcPtXvUXyEvqC0pKybR3RuedJL8poSbBwn7xGgynuMmcNj4nLVwaIgcVHACuj vhNQ== 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 k31-20020a634b5f000000b004708e8db2b4si5031981pgl.796.2022.11.18.14.49.59; Fri, 18 Nov 2022 14:50: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 S232784AbiKRWtZ (ORCPT + 99 others); Fri, 18 Nov 2022 17:49:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232291AbiKRWqv (ORCPT ); Fri, 18 Nov 2022 17:46:51 -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 40BAE97083 for ; Fri, 18 Nov 2022 14:46: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 1owA7o-0007kM-Rr; Fri, 18 Nov 2022 23:46:20 +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 1owA7m-0058BJ-9b; Fri, 18 Nov 2022 23:46:19 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7l-00Haxp-4p; Fri, 18 Nov 2022 23:46:17 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Guenter Roeck , Peter Rosin 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 047/606] i2c: mux: pca9541: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:21 +0100 Message-Id: <20221118224540.619276-48-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?1749876015293934568?= X-GMAIL-MSGID: =?utf-8?q?1749876015293934568?= 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 Reviewed-by: Guenter Roeck Acked-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pca9541.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/muxes/i2c-mux-pca9541.c b/drivers/i2c/muxes/i2c-mux-pca9541.c index ea83de78f52d..09d1d9e67e31 100644 --- a/drivers/i2c/muxes/i2c-mux-pca9541.c +++ b/drivers/i2c/muxes/i2c-mux-pca9541.c @@ -283,8 +283,7 @@ static int pca9541_release_chan(struct i2c_mux_core *muxc, u32 chan) /* * I2C init/probing/exit functions */ -static int pca9541_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int pca9541_probe(struct i2c_client *client) { struct i2c_adapter *adap = client->adapter; struct i2c_mux_core *muxc; @@ -337,7 +336,7 @@ static struct i2c_driver pca9541_driver = { .name = "pca9541", .of_match_table = of_match_ptr(pca9541_of_match), }, - .probe = pca9541_probe, + .probe_new = pca9541_probe, .remove = pca9541_remove, .id_table = pca9541_id, }; From patchwork Fri Nov 18 22:36:22 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: 22575 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447800wrr; Fri, 18 Nov 2022 14:50:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf4vvuCVZUH9jnpaqp6XyYMsCECdHhybvoPUni6ybmrWoSPCvOoQrcrtBAcPQAShpWzIZpRg X-Received: by 2002:a17:90a:db0f:b0:218:70ee:e4e5 with SMTP id g15-20020a17090adb0f00b0021870eee4e5mr9857555pjv.28.1668811824787; Fri, 18 Nov 2022 14:50:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811824; cv=none; d=google.com; s=arc-20160816; b=f9zdoSbOCP30+MvIsFg0DMKAh4WJJEC6jhgga34EIIJYeGdsjnbS2yVkBwkc5z8pYc KoUPg11D1IMId4bqOhXowaXWEb9AdU4W+qB2wnuWbBkEyniAXkPBrBgAS8iS7RDjGfNm tR3O6QhFGSjKGIHHuIz1E1lVG8xbqW/6202Dn4Xa7No69B2GkvNyqckLDZFjAAFBZAGl kkp+ipMaDvfXCXIOlpQWidrY/+/78qHCkdP5N+mJJQR2GZtxe2gDPrbarN0kRsv92UwS 8onxbJcm4QA4AGxfsIeTnKdFLAw6eBSeTeFgQQF2hqRMU6Fzuk6nLcrZAdsJPzcYaOVi 7ijw== 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=dO4qgkeiOsGI0Amj14SSVMtat7IX49tQiWv9vnXtvUA=; b=s0CAfoX7Fw7zWIto1PnfArpKdzyDp2UwI4c1b4KBmJZlfPT8XeggoQgQ7uQV7JPutq WiSSPiJWoV+/4VdRTAvzKBrxaAWNIU6i5ZzBwxEl07PBv3REYz4aP06dosHwvNEkW67x 79fygmYckgPC901aZR8bszZ40sRBs3Ymk4bGRJfxb/9MK2l7yya4278dnQnA+5wggnnS FK0GXUK1So7Py8F7ZFglPAe7C92jKnD+qW9oNMYHUuYwCg9uPCg29g9J+OQBjQ0JgzDQ bTruSzn++ofbjO8s2X4XlFv2fNVpnEDJyW9vv6Lc8tgUx4DiwC/cJymIM0s+ptlJgYFg H0PA== 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 a7-20020a17090a854700b00212f86579f8si7802040pjw.111.2022.11.18.14.50.12; Fri, 18 Nov 2022 14:50:24 -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 S233553AbiKRWtj (ORCPT + 99 others); Fri, 18 Nov 2022 17:49:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232326AbiKRWqw (ORCPT ); Fri, 18 Nov 2022 17:46:52 -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 228B0B8541 for ; Fri, 18 Nov 2022 14:46:39 -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 1owA7s-0007yP-LM; Fri, 18 Nov 2022 23:46:24 +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 1owA7o-0058CH-Qa; Fri, 18 Nov 2022 23:46:21 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7l-00Haxs-CG; Fri, 18 Nov 2022 23:46:17 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Peter Rosin 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 048/606] i2c: mux: pca954x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:22 +0100 Message-Id: <20221118224540.619276-49-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?1749876027966841240?= X-GMAIL-MSGID: =?utf-8?q?1749876027966841240?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Acked-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pca954x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b/drivers/i2c/muxes/i2c-mux-pca954x.c index a5f458b635df..3639e6d7304c 100644 --- a/drivers/i2c/muxes/i2c-mux-pca954x.c +++ b/drivers/i2c/muxes/i2c-mux-pca954x.c @@ -411,9 +411,9 @@ static int pca954x_init(struct i2c_client *client, struct pca954x *data) /* * I2C init/probing/exit functions */ -static int pca954x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int pca954x_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct i2c_adapter *adap = client->adapter; struct device *dev = &client->dev; struct gpio_desc *gpio; @@ -554,7 +554,7 @@ static struct i2c_driver pca954x_driver = { .pm = &pca954x_pm, .of_match_table = pca954x_of_match, }, - .probe = pca954x_probe, + .probe_new = pca954x_probe, .remove = pca954x_remove, .id_table = pca954x_id, }; From patchwork Fri Nov 18 22:36:23 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: 22579 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447916wrr; Fri, 18 Nov 2022 14:50:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf4SNmsuNKy3i5wSOC2aqqjlzjBM5tKM3WuVVvlah4c9efYaZNL/P/9h7HXOv3Wepmi12hLB X-Received: by 2002:a62:874c:0:b0:556:e951:f8de with SMTP id i73-20020a62874c000000b00556e951f8demr9925105pfe.59.1668811845392; Fri, 18 Nov 2022 14:50:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811845; cv=none; d=google.com; s=arc-20160816; b=dhR1XjFTjKsJZIFVhv7gpGIHopjFtPbLC5saeVNQqEC6GVyTBlGapKfn+EP0AvkdOV 9K6sY/i3JOiN4AXHXd2qa8nrScsV/+iT9ec/jPTJsZiUC31MncpbIqNc5HpoTKhGiN3M mB6gV2/9F196vy6tDrXvWNA4oU0eynKkoL0GaqylRJtoTUkGjB5owqth1/lPLanbbLdV YtkiYHPIXdKDtntNecCCFL5JTt8Q708U+8NLwTKPSjhZFk0VBsYK1bjyzLjxSAMv8+8a xyDazrML1qn2aigpmU0ezfrxIgHSMPcD8jdiPNoSR4W9bHghe7AMS9bdoOKGsqiybvua iLTw== 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=iZAnrLWH7Ej40XAokuemzq+a+iRcXINRIFNVjUaJwnk=; b=TriTd/Om9mYrmtL1xxZ2RGoOjNpRAYPu0+EV0npeUgX46WWyAFzUTMq7oYFJ8vMgwZ Yltm/Zrdc3b+eWjJ4qiySRg8N8VrIxi2fS7M6PlGh1s6KEEzACc5JnGxg9c/wHjB3MS9 3kyiwJaLg5TPOFXvVaNt1UU05UWv5vf9r/fZKQid+bJgKJh6UfyVjcX3LbOwNgq8zCcw w9zmJ5nxIFGuziXQcetCGao8ykmraATtT4YH5eKUOLujAIitoloBOEuL7ECHwwCIoX0P ujPx6+Cw/pO+kqIvYltwttX9FCWagoaU8cj8Vag7zuRjbQmqZ+gxN/g67fKi4qXnWfA6 jchQ== 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 l10-20020a63ea4a000000b0046f63d17422si4789815pgk.359.2022.11.18.14.50.32; Fri, 18 Nov 2022 14:50:45 -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 S233630AbiKRWtv (ORCPT + 99 others); Fri, 18 Nov 2022 17:49:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232391AbiKRWqx (ORCPT ); Fri, 18 Nov 2022 17:46:53 -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 D4E74B8F8C for ; Fri, 18 Nov 2022 14:46: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 1owA7p-0007qN-U1; Fri, 18 Nov 2022 23:46:21 +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 1owA7n-0058Bi-5h; Fri, 18 Nov 2022 23:46:20 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7l-00Haxx-In; Fri, 18 Nov 2022 23:46:17 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Michael Hennerich , Lars-Peter Clausen , Jonathan Cameron Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 049/606] iio: accel: adxl372_i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:23 +0100 Message-Id: <20221118224540.619276-50-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?1749876049804760414?= X-GMAIL-MSGID: =?utf-8?q?1749876049804760414?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/accel/adxl372_i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/adxl372_i2c.c b/drivers/iio/accel/adxl372_i2c.c index 4efb70a5fe40..e5f310ea65ff 100644 --- a/drivers/iio/accel/adxl372_i2c.c +++ b/drivers/iio/accel/adxl372_i2c.c @@ -18,9 +18,9 @@ static const struct regmap_config adxl372_regmap_config = { .readable_noinc_reg = adxl372_readable_noinc_reg, }; -static int adxl372_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adxl372_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct regmap *regmap; unsigned int regval; int ret; @@ -58,7 +58,7 @@ static struct i2c_driver adxl372_i2c_driver = { .name = "adxl372_i2c", .of_match_table = adxl372_of_match, }, - .probe = adxl372_i2c_probe, + .probe_new = adxl372_i2c_probe, .id_table = adxl372_i2c_id, }; From patchwork Fri Nov 18 22:36:24 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: 22585 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448060wrr; Fri, 18 Nov 2022 14:51:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf5xLrC3D7JiBmtoX6T8ys1nxPygN/a+pIhEFwacgmDdUMTstmr2DnICVXFRBja/BLVeF8i6 X-Received: by 2002:a63:1f1f:0:b0:458:6f51:ff7b with SMTP id f31-20020a631f1f000000b004586f51ff7bmr8538011pgf.153.1668811870828; Fri, 18 Nov 2022 14:51:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811870; cv=none; d=google.com; s=arc-20160816; b=BkrbpY+KcYGsYYvQrdszFifp3ja4LCQnS45Z5NTy/4Fc6Xz/9DQ/Dqlh3PXq1aaK5K 0nlIU2HuSw9ql+AKOE6eXr1V5my9lQe3PHthmpOS0cxq5UsiFH8QrTUOQk8yRG/EgwR5 JzcxWJrQNE2fo6y042hug7vew3ppafhTzSMYNtdkxrRFR9D0m4WMpmbe8Rw2Ua74ychI YTuOPh00b7hSrooUjcLTrTDqkX+eISJ6heqJbXhWhJYUp6NXS0tEKtc7rETEPehL30zn x5wBeZGRv3/uYkfo2UMN/iuY3wSjbJP66xHWg46a0bLWDWanSXWwvhHdvExShbhStCL0 S8sQ== 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=Ow4kqG4nVa5H6DEf+kzD85tesfsB6Jl+kcXeSPZT2dg=; b=O0UGCRRCZnDYNUPbJEoJpBDLiVxbeNh/iHZHbEQ9eywAbHYgGwgtLVLpdeO50NhZEx Kry3241f7WBbp8r1IsMFSqcyiFJ4G9/drJq+M8wZKkzHOwSEx4XhC3ON7/44Al3YQWu8 O0H2pnGyFUF6AF/GgoL+DVUiOGOuiSv1axo6vcIWq4+fVrwBMP48+LyRdmwSf+/HXpxf FHGHYyoyEo+qYBHypx/3nOqOMMHvR7dAzMkNQA+ua67S/NeqfuYGwl980QLffdn4L3Pj PzVfnGm4UMx2XNrlj4koz3ntGlihthWvl87tIDeWCmZTYLSC1kBJW1bLUeiUsya6LmQd x+5A== 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 h13-20020a17090a470d00b0020d4dc7fa97si4118348pjg.110.2022.11.18.14.50.58; Fri, 18 Nov 2022 14:51:10 -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 S233217AbiKRWuX (ORCPT + 99 others); Fri, 18 Nov 2022 17:50:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232634AbiKRWrL (ORCPT ); Fri, 18 Nov 2022 17:47:11 -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 E9490B94BF for ; Fri, 18 Nov 2022 14:46:44 -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 1owA7q-0007o2-63; Fri, 18 Nov 2022 23:46: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 1owA7m-0058BW-R2; Fri, 18 Nov 2022 23:46:19 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7l-00Hay0-Q1; Fri, 18 Nov 2022 23:46:17 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , Srinivas Pandruvada , Petr Machata , Antoniu Miclaus , Dmitry Rokosov 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 050/606] iio: accel: bma180: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:24 +0100 Message-Id: <20221118224540.619276-51-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?1749876076191562510?= X-GMAIL-MSGID: =?utf-8?q?1749876076191562510?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/accel/bma180.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/bma180.c b/drivers/iio/accel/bma180.c index d03fc3400f94..eb697eeb4301 100644 --- a/drivers/iio/accel/bma180.c +++ b/drivers/iio/accel/bma180.c @@ -921,9 +921,9 @@ static const struct iio_trigger_ops bma180_trigger_ops = { .reenable = bma180_trig_reen, }; -static int bma180_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bma180_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; struct bma180_data *data; struct iio_dev *indio_dev; @@ -1134,7 +1134,7 @@ static struct i2c_driver bma180_driver = { .pm = pm_sleep_ptr(&bma180_pm_ops), .of_match_table = bma180_of_match, }, - .probe = bma180_probe, + .probe_new = bma180_probe, .remove = bma180_remove, .id_table = bma180_ids, }; From patchwork Fri Nov 18 22:36:25 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: 22582 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447987wrr; Fri, 18 Nov 2022 14:50:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf7bA6YGw56aeKpE6iSjB4ReeXtqcw0hnXkqfXOpexQIrYDb289DzUaNHictNE2IdEhlHxxT X-Received: by 2002:a17:90b:2705:b0:218:78ae:bdaa with SMTP id px5-20020a17090b270500b0021878aebdaamr8867520pjb.162.1668811858678; Fri, 18 Nov 2022 14:50:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811858; cv=none; d=google.com; s=arc-20160816; b=y8TEfoPdQIyqIZpqX5AQS/xJwcxTvwic3v+DNcI6KR7/fDa0vhxfUtk20JCKN3PPGP oldi/cc01l5OvBN3cuYDbiiEF17ZUtl8CfqzQ22xwCN7OWmU6UVu7zO4wBu5Ctqjt0sP EkofElcvBk4S+ms5n3ZQeUyBmv2TnFsyo0Kqumyz45xsHCYvKmjzTuKCIRZZsT++3Jug 2LwaC9ffOdSjONtjdAmtkcJynCGi0AUUY8PauPA9gBLTThM62q4z4IC56Hk5xEW1ofiV EEzLvrSTeP98RpAtcNWdkMnex1M21UtzVxMPmxg9ItIes3/BRnJ0W2+UlzxiykPR8TIr bU3Q== 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=NDHAn+r84woKbunoJdQBhlD5fXFOpQvls5DKboIvxwg=; b=TNcFDMqiWeGlvjuAe3FiFHK+DZny04l8ezi+k/q0H9Av8+GxNYI7oHtZsGHjtEs1yy s0B7y/HSqcMeN1ybG9gGGXv3Zw8cQgTR6Bwk5baYz4Fwzb2RJX2lDyFqBe+EFAvH4BZG /w/9AeDdbnWLYLgt+cAq3aXJvFK+wultC2eIGPfFozDQipW0mAy9YRndqrxBhMEAcHoR L3+kpQINOIGcWJ+S0tPi+ou35S3jE6SL1gZnAlRYyu3yi+c80gkwMK/u2eyo6dFf8o55 kJ65ASu2AJWIWlzB1l1Qyg9UOlryvzme/SUA/ozWmhxpV736G3CZQNz3Rvc/r3nf9jYR ZftQ== 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 u17-20020a056a00125100b0056b345b7f5dsi5037963pfi.26.2022.11.18.14.50.46; Fri, 18 Nov 2022 14:50:58 -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 S233750AbiKRWuE (ORCPT + 99 others); Fri, 18 Nov 2022 17:50:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232560AbiKRWq6 (ORCPT ); Fri, 18 Nov 2022 17:46:58 -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 313EFB8FBB for ; Fri, 18 Nov 2022 14:46:42 -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 1owA7q-0007to-Uw; Fri, 18 Nov 2022 23:46: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 1owA7n-0058Bw-Vh; Fri, 18 Nov 2022 23:46:20 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7m-00Hay4-1S; Fri, 18 Nov 2022 23:46:18 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dan Robertson , 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 051/606] iio: accel: bma400: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:25 +0100 Message-Id: <20221118224540.619276-52-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?1749876063409793387?= X-GMAIL-MSGID: =?utf-8?q?1749876063409793387?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/accel/bma400_i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/bma400_i2c.c b/drivers/iio/accel/bma400_i2c.c index 1ba2a982ea73..688b06dae669 100644 --- a/drivers/iio/accel/bma400_i2c.c +++ b/drivers/iio/accel/bma400_i2c.c @@ -13,9 +13,9 @@ #include "bma400.h" -static int bma400_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bma400_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct regmap *regmap; regmap = devm_regmap_init_i2c(client, &bma400_regmap_config); @@ -44,7 +44,7 @@ static struct i2c_driver bma400_i2c_driver = { .name = "bma400", .of_match_table = bma400_of_i2c_match, }, - .probe = bma400_i2c_probe, + .probe_new = bma400_i2c_probe, .id_table = bma400_i2c_ids, }; From patchwork Fri Nov 18 22:36:26 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: 22580 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447958wrr; Fri, 18 Nov 2022 14:50:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf5bmKYRQ0kqyU5b7OG+4iMy6KhY1DxpFYQXi/ioiPFdeC3BDNp4WL86LnHJe3Wb5NnWE9Ne X-Received: by 2002:a17:902:7d89:b0:189:325:3f72 with SMTP id a9-20020a1709027d8900b0018903253f72mr1498640plm.156.1668811853066; Fri, 18 Nov 2022 14:50:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811853; cv=none; d=google.com; s=arc-20160816; b=o+fsPsuewzUj11+fEDrUYLViomTsmGctTNRX3i9xYUMjzAEB2gpIUptGm1pep+XCK/ p/R5aeFGTC1iUMolT7S976a4qPiDti4iwB1zmVQbbFMgo7wB7FjNV5zXxYDSkVcO3DgL qgqfDoxEdDDFeQ3oQXsE0/o4QE7fkWgawcEyAqgVWW3+sgc4tJmLvISBffZJmdp5/+UW AN1jGv9oq/AmDrOQ6zdWj0OScQuvYjN5CrP3H3AAP3/wag2COX3GneTHdZw0bfbXrHR1 2Cg8ty8A3sD6WvwzC+AWgMVCbCh/Eat6NH/kR/rbbmUzTIJVoN4IcIOXAO9ZVYGAKC8G +2Fg== 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=uCTzoTzlSEvZR1oZ10cV5XZVG7hTexj3Cf7g5PZGOMU=; b=Q5vHhph2/KvAP0FKFRNb8QLyF3dy5irc13fLHxrBrefAxJY402OYDKs7w0pA9ykSq7 bzCfJuNtKYGemZnWn+1L0RmdjkFGekpcNaNd20ICWUzBL2xRKS0sVn+LYhxD57L9gG1W J6e17J0LuzHQfiUZigMzm8c7CvGnHd76tzW7j/EHkUaAZ64e3Av8P6O6qp0IL6R1vxK0 ZS1FP0FYMYObJSncjATSn2pIZUD+cPY0df6gU7J8i5ESAllXc7e0iXZwU/8o2MEYTaYv F9eU4RMe1ZepOCn+5blj7oJCySZXJcYrWYUJNCKtgayKgAkJ2T5YG1chj7GVKQ3ZMs1/ RGKg== 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 b74-20020a63344d000000b0045f74df51dfsi4739086pga.536.2022.11.18.14.50.39; Fri, 18 Nov 2022 14:50:53 -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 S233660AbiKRWt5 (ORCPT + 99 others); Fri, 18 Nov 2022 17:49:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232445AbiKRWqy (ORCPT ); Fri, 18 Nov 2022 17:46:54 -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 C8B64B8578 for ; Fri, 18 Nov 2022 14:46: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 1owA7p-0007lf-56; Fri, 18 Nov 2022 23:46:21 +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 1owA7m-0058BQ-G2; Fri, 18 Nov 2022 23:46:19 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7m-00Hay7-8a; Fri, 18 Nov 2022 23:46:18 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Srinivas Pandruvada , Dmitry Torokhov , Corey Minyard 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 052/606] iio: accel: bmc150: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:26 +0100 Message-Id: <20221118224540.619276-53-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?1749876057440662591?= X-GMAIL-MSGID: =?utf-8?q?1749876057440662591?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/accel/bmc150-accel-i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/bmc150-accel-i2c.c b/drivers/iio/accel/bmc150-accel-i2c.c index be8cc598b88e..509cab2bd694 100644 --- a/drivers/iio/accel/bmc150-accel-i2c.c +++ b/drivers/iio/accel/bmc150-accel-i2c.c @@ -171,9 +171,9 @@ static void bmc150_acpi_dual_accel_probe(struct i2c_client *client) {} static void bmc150_acpi_dual_accel_remove(struct i2c_client *client) {} #endif -static int bmc150_accel_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bmc150_accel_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct regmap *regmap; const char *name = NULL; enum bmc150_type type = BOSCH_UNKNOWN; @@ -269,7 +269,7 @@ static struct i2c_driver bmc150_accel_driver = { .acpi_match_table = ACPI_PTR(bmc150_accel_acpi_match), .pm = &bmc150_accel_pm_ops, }, - .probe = bmc150_accel_probe, + .probe_new = bmc150_accel_probe, .remove = bmc150_accel_remove, .id_table = bmc150_accel_id, }; From patchwork Fri Nov 18 22:36:27 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: 22578 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447887wrr; Fri, 18 Nov 2022 14:50:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf7o2jnHMQjDP4eqGZtPFkVaTPq3a1f8csKSOBcOAa0la064M04QWeDdNPFZzAUEcoZyx0EZ X-Received: by 2002:a17:90a:9f03:b0:211:59c6:6133 with SMTP id n3-20020a17090a9f0300b0021159c66133mr9877555pjp.238.1668811840869; Fri, 18 Nov 2022 14:50:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811840; cv=none; d=google.com; s=arc-20160816; b=iLPqo6mJ4f57wxylkbvnToJr0Titx/z4kyivf1Dv3gjXnpLNfebJdsxAhdu5BMgjS9 TeifZcQLJdXlZ1X7TfBlGoT5+aUMwl4Ma0UjMf6Mp3+i22iCOvmdpqUiPe0pk5YXcVVU doo1t4fehfygY2vPOLwdDDXqnNFaiG2zyINL7rYwMSX60jRh+ZAld1PrVWc/O/9nE3RE 1GVVRjwvttC+9bpw3RJpN9sY+X2L2jsiK48x2dybUN8EJQ8L16MAM2xIprUFdIeilSzU AANbu5ShjyjWWk7JN6P2e7jDClDc1T+EXeDF8y6fbLWqj7pQnaLb4pkbHVCYpvKdeu+r qCEw== 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=1bIcZvzoYSJMK0vF22soRDN1UibFpcWl0jtyHxydMZ8=; b=0QGH/tE1vdq/vkQepOClU4adbeJNOQL5+gujNKsG8Q4VliBpOD0K7/fEnJ5TkK5gwd MFhZY0rSW2UXfl0aasIyYcBhWMedQs5+sTTuxKSq4OtLFKzNqMaJRffXWPYzdkHBcQ3W vekmCXyBQUaE/r/7k/mU33rLjqiuKDIUdvzHBo66RMlpkzlLI2tyCBG1aR8Yu0xslqXG F1xio4A8RT9uYiDzUYmVPjGKGPGOaFVSp2qcSv0u+pX2bJLOCDrMTSN5CG/Kv1h5ZmH+ 98GIEYNpEbvCBLYh5o3WXcTH3/G1AemBO5HN3q7FWmQSUs9CHBAOh9EXuoaaA8Ghl497 rGuQ== 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 lb8-20020a17090b4a4800b0020d2d8c9a84si5064711pjb.137.2022.11.18.14.50.27; Fri, 18 Nov 2022 14:50:40 -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 S233598AbiKRWtr (ORCPT + 99 others); Fri, 18 Nov 2022 17:49:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232349AbiKRWqw (ORCPT ); Fri, 18 Nov 2022 17:46:52 -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 A688DB8F85 for ; Fri, 18 Nov 2022 14:46: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 1owA7p-0007or-JP; Fri, 18 Nov 2022 23:46:21 +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 1owA7m-0058Ba-VI; Fri, 18 Nov 2022 23:46:19 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7m-00HayC-GV; Fri, 18 Nov 2022 23:46:18 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Paul Cercueil 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 053/606] iio: accel: da280: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:27 +0100 Message-Id: <20221118224540.619276-54-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?1749876044672239455?= X-GMAIL-MSGID: =?utf-8?q?1749876044672239455?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/accel/da280.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/da280.c b/drivers/iio/accel/da280.c index 04e9c5678964..38a7d811610e 100644 --- a/drivers/iio/accel/da280.c +++ b/drivers/iio/accel/da280.c @@ -105,9 +105,9 @@ static void da280_disable(void *client) da280_enable(client, false); } -static int da280_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int da280_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); int ret; struct iio_dev *indio_dev; struct da280_data *data; @@ -184,7 +184,7 @@ static struct i2c_driver da280_driver = { .acpi_match_table = ACPI_PTR(da280_acpi_match), .pm = pm_sleep_ptr(&da280_pm_ops), }, - .probe = da280_probe, + .probe_new = da280_probe, .id_table = da280_i2c_id, }; From patchwork Fri Nov 18 22:36:28 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: 22596 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448370wrr; Fri, 18 Nov 2022 14:52:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf5oV7nTr9g0hmcZyv557cD7PAWqWWefoN+VfGgrnhUp3KAx0vDezY91aH+7URZBVBR8lZyX X-Received: by 2002:a17:903:2687:b0:176:d217:7e68 with SMTP id jf7-20020a170903268700b00176d2177e68mr1581628plb.63.1668811933826; Fri, 18 Nov 2022 14:52:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811933; cv=none; d=google.com; s=arc-20160816; b=nVNRqk6lCSn9/ftIizb9VuCAKt04b0s1Z6LUZdDXOHk55ZlEYLanRv9+Hdl9Pn4tI0 6Rj6WBf+HDH1P9jrBFeJmD2aAggZVmquJhtjGFOzdxDStxiO6Bq2mDj+r6l96bHI9xWK FrPfBQOYQpC8PCxIRUNI8w9/Sy7CA9Ncux06trmeY3tUhiIoS16czpdd5W3a/yxPlF/W JSmOMramkFULP5z7LFGEeeAtqHr2W89rAXFtrPA+qSgrs6hZKw5P91afn8RyoomynHPb RCXmAw8oLZCIvvtQY1H8wwe2VaNpm8Bs0okQ0HjfHSBvVwAyFYI9As7zdQAj/rwFUAYL fOkA== 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=9Jo4axDPuJg116Iw6ZNoPAQJf3+irZB1wfG6lnSoljM=; b=HWCWuJobOK0fMMa+Uo8cDoBaI4NXlhN8DpWRGqDqNFJL9etvYdYR/bHWUhRgYIMQxP svij1Td0EM3H6nT8ObRPvFg+s/cxK1AzNm47yakQZ3VgV/Y4rv19X9v8+qsTCQvMEZcr FGsC0TS5fQRP+OwYbRz06/e2kAQACApm0BWNoR87AnJrqyQFNDhYH6rwPMnfaqyiwpcQ +XHdh2WsscGreuhGLcLCczj1GD0dHZrwypPQ1HO+UPuMdp9I6Pd+ku6FrIDK0SAglj1R GFw2hH0TQWYXRozmlwlTnLxKHQwlfj9G6S8QQqMyUSzP4THW9b5KjKWgtVmGPlPfDvvo 2w/g== 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 c18-20020a056a00009200b0056cb8f67eefsi4570008pfj.70.2022.11.18.14.52.01; Fri, 18 Nov 2022 14:52:13 -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 S233485AbiKRWvO (ORCPT + 99 others); Fri, 18 Nov 2022 17:51:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232763AbiKRWtD (ORCPT ); Fri, 18 Nov 2022 17:49:03 -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 C3702B9728 for ; Fri, 18 Nov 2022 14:46:51 -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 1owA7q-0007qI-Fj; Fri, 18 Nov 2022 23:46: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 1owA7n-0058Bh-4k; Fri, 18 Nov 2022 23:46:20 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7m-00HayH-OV; Fri, 18 Nov 2022 23:46:18 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , Jean Delvare , Srinivas Pandruvada , Dmitry Rokosov , Miaoqian Lin , wangjianli 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 054/606] iio: accel: kxcjk-1013: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:28 +0100 Message-Id: <20221118224540.619276-55-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?1749876142456604244?= X-GMAIL-MSGID: =?utf-8?q?1749876142456604244?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Reviewed-by: Andy Shevchenko --- drivers/iio/accel/kxcjk-1013.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/kxcjk-1013.c b/drivers/iio/accel/kxcjk-1013.c index e626b6fa8a36..98da4bda22df 100644 --- a/drivers/iio/accel/kxcjk-1013.c +++ b/drivers/iio/accel/kxcjk-1013.c @@ -1424,9 +1424,9 @@ static const char *kxcjk1013_match_acpi_device(struct device *dev, return dev_name(dev); } -static int kxcjk1013_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int kxcjk1013_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); static const char * const regulator_names[] = { "vdd", "vddio" }; struct kxcjk1013_data *data; struct iio_dev *indio_dev; @@ -1732,7 +1732,7 @@ static struct i2c_driver kxcjk1013_driver = { .of_match_table = kxcjk1013_of_match, .pm = &kxcjk1013_pm_ops, }, - .probe = kxcjk1013_probe, + .probe_new = kxcjk1013_probe, .remove = kxcjk1013_remove, .id_table = kxcjk1013_id, }; From patchwork Fri Nov 18 22:36: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: 22581 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447967wrr; Fri, 18 Nov 2022 14:50:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf71x65KKr51XFOm8O16acTT1R/wrLbDlROvtrgoULLzum6CxaeTy/Z2yV/gkXu53SFyP9FU X-Received: by 2002:a63:444:0:b0:46f:eb81:8c01 with SMTP id 65-20020a630444000000b0046feb818c01mr8374593pge.68.1668811854657; Fri, 18 Nov 2022 14:50:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811854; cv=none; d=google.com; s=arc-20160816; b=MCXbGgpjavOI4BUFgI6xKq1R6x0XCFce0JcujXzEU219gZeUJP92PAjn/ibSGdhDPp XzetN0KnLyge+O+KBetjbxhCNvrd3XyCDTkltaiqJ8Lbp19re4/X86IlIPY+fZbbMXQF uuUTq1F6t03qVHxVjAyEczKpc94Cu8aoYsQUenPTSgAMsE4vxfADHQsRXfaij3FR5gub 6mKb07vk9OVqk2YhJItFwI3mkC6OqUt7Aonerr3rztTCVBt2Hcrr9C3CuIY0xYxRu2OV I/EHU0AtiR9z54jtsBCU46QLs0SsSZM1poI+XHdIddla6a05bhiFh9Ua5UFEZSTtoCRj bzaQ== 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=RxqHX/3ILX7u+1fEUxpY6dZ7FIxtJkJgvxxxXWaCA3s=; b=Xoeywrp2KHLE9KdTV3fbcKh9OTT19dq61IROxJCOCOiJA80+MJJeFTO9MDeAESBkYV puMQLJCYDRp7Ntm8e88LXU2qyvkzevHnr7pUcJwzn43rPqLlr8qkr9d2Q+a6f4wcJs7j 83DoAcH1WEN7uiMG/19Tm+9RTkgqhryyTEYsyoA4V49AeiDw9k/dA8ZH38Gtxc5utHQx qWfNtyGhu5HY+ug/xlm8LZAwbmWULQPIYMsMyr9sQm1rh2d5Tzu7gaVos5fXGvHWXceK A8FGCoNFRS7VZoZ4HF+FVo0ZwkXcMvyrT56QKTpMUVVjLZVzxKPBLHdUTTjO+mbjAVUA Q+mA== 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 b9-20020a1709027e0900b00176939b5cd9si3570554plm.578.2022.11.18.14.50.41; Fri, 18 Nov 2022 14:50:54 -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 S233683AbiKRWuA (ORCPT + 99 others); Fri, 18 Nov 2022 17:50:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232480AbiKRWqz (ORCPT ); Fri, 18 Nov 2022 17:46: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 1EE1CA3163 for ; Fri, 18 Nov 2022 14:46:42 -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 1owA7p-0007pd-L3; Fri, 18 Nov 2022 23:46:21 +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 1owA7n-0058Bd-2E; Fri, 18 Nov 2022 23:46:20 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7m-00HayM-Ve; Fri, 18 Nov 2022 23:46:18 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Crt Mori , Petr Machata , Maximilian Luz 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 055/606] iio: accel: mma7455_i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:29 +0100 Message-Id: <20221118224540.619276-56-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?1749876059009231178?= X-GMAIL-MSGID: =?utf-8?q?1749876059009231178?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/accel/mma7455_i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/mma7455_i2c.c b/drivers/iio/accel/mma7455_i2c.c index c63b321b01cd..a3864dbe2761 100644 --- a/drivers/iio/accel/mma7455_i2c.c +++ b/drivers/iio/accel/mma7455_i2c.c @@ -10,9 +10,9 @@ #include "mma7455.h" -static int mma7455_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int mma7455_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct regmap *regmap; const char *name = NULL; @@ -46,7 +46,7 @@ static const struct of_device_id mma7455_of_match[] = { MODULE_DEVICE_TABLE(of, mma7455_of_match); static struct i2c_driver mma7455_i2c_driver = { - .probe = mma7455_i2c_probe, + .probe_new = mma7455_i2c_probe, .remove = mma7455_i2c_remove, .id_table = mma7455_i2c_ids, .driver = { From patchwork Fri Nov 18 22:36:30 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: 22589 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448174wrr; Fri, 18 Nov 2022 14:51:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf5aGrxRu1i1q3TbRtZGVEQFdlylsBq2rXgV2cUo43UMn+mcdywscXnWLnstLuvOsYOsffhy X-Received: by 2002:a17:902:9889:b0:182:e9dd:936d with SMTP id s9-20020a170902988900b00182e9dd936dmr1716736plp.6.1668811890750; Fri, 18 Nov 2022 14:51:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811890; cv=none; d=google.com; s=arc-20160816; b=N7j7++cRPXsC9HoPCeDHEVAHPg4hR1HS02c1mCKL2+Ix6XVzTpChWu93rkIqK1wNAV Y6PkGceTPWNTvwKrJJkKXClZVjaOuk32XH4ls1t9tXGj/xtDEw7cVNINgB5WJ0v9rWeE NCFt1ovVlePPwv3zzdETwt1oaYkUKA2SYDRJL7L8s1KaWiNldWLaWX1OPp4tt2ZZQ9hX 1PwLmLN1ppXvUSkvlHwkAmxVZCzTHB9uriMkiQYJ/ESSaALqP9XzPCG/6tyXksmlLXvy M2dtxwv+wgujV72OPdEHpaDtA9ygfLITLUon4Q3Nsbq77YKHI8nwrzwB5jUzVHHvpuVl 0ucA== 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=0sOA0QM6S4JFRoK3pyAn50MDdP+GPVF1sfVYxGKV4+k=; b=c1O/vzYPKw6Osa5PtnJTZ3eL/wvbXGo1KwDgfKpiXszUBga0SNBh1D62Ao3naWIPk9 Cv3vaH1oaSeCpzriVIvHIE0ESQm69GXSUS+z/CHCQ8Tw85SpspH8uAkuLe7GZHbOXeVn AFf+aDctipHjerEPKJ8OfqbxqiuDfuQjDPkdYToDPGC2uNbZnSBUeC3LQ/oM8QwkQbkC kEqtD62LUIq83Z5OlUeHVqAbx0TAC4RvAwgwjXyYC46IMqROM6bg4bgfs4TX5jb/53A+ TSsiKpr7xXfzgTyf0inwKrCQ7i6obrGiv9ukY65Bxit4syDRnmoYBFuYN6ZKRw6vGfrw Oy3Q== 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 dc8-20020a056a0035c800b005728c05ef9esi4772717pfb.14.2022.11.18.14.51.18; Fri, 18 Nov 2022 14:51:30 -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 S233373AbiKRWum (ORCPT + 99 others); Fri, 18 Nov 2022 17:50:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232838AbiKRWrq (ORCPT ); Fri, 18 Nov 2022 17:47:46 -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 6FFB5B9626 for ; Fri, 18 Nov 2022 14:46:47 -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 1owA7r-0007tB-EV; Fri, 18 Nov 2022 23:46:23 +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 1owA7n-0058Bs-Qh; Fri, 18 Nov 2022 23:46:20 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7n-00HayQ-6b; Fri, 18 Nov 2022 23:46:19 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Hans de Goede , Haibo Chen , Martin Kepplinger 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 056/606] iio: accel: mma8452: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:30 +0100 Message-Id: <20221118224540.619276-57-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?1749876097271355035?= X-GMAIL-MSGID: =?utf-8?q?1749876097271355035?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Reviewed-by: Hans de Goede --- drivers/iio/accel/mma8452.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c index 3ba28c2ff68a..f97fb68e3a71 100644 --- a/drivers/iio/accel/mma8452.c +++ b/drivers/iio/accel/mma8452.c @@ -1545,9 +1545,9 @@ static const struct of_device_id mma8452_dt_ids[] = { }; MODULE_DEVICE_TABLE(of, mma8452_dt_ids); -static int mma8452_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mma8452_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct mma8452_data *data; struct iio_dev *indio_dev; int ret; @@ -1846,7 +1846,7 @@ static struct i2c_driver mma8452_driver = { .of_match_table = mma8452_dt_ids, .pm = &mma8452_pm_ops, }, - .probe = mma8452_probe, + .probe_new = mma8452_probe, .remove = mma8452_remove, .id_table = mma8452_id, }; From patchwork Fri Nov 18 22:36:31 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: 22591 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448236wrr; Fri, 18 Nov 2022 14:51:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf60oEnit+Y4bTtHqYYqlej7c6dyUM88SCHJ6r+8B0lA6l15kCyFf0AY2EsRhLf/+BvPIHRr X-Received: by 2002:a63:4708:0:b0:461:4039:88d1 with SMTP id u8-20020a634708000000b00461403988d1mr8246822pga.568.1668811903555; Fri, 18 Nov 2022 14:51:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811903; cv=none; d=google.com; s=arc-20160816; b=N31eJ0T95egB//PI7yjLCynH2gM28AeUIj42U3XU1l3/fVSaa7wRjoQbPT9fT5xhyF RcC8cbX4expmxe9gsSSJwO8uLFJhRI/ulxm3Pn/wuZ80Ai3LrVF+aJ7BW/6YdH1XND2Q XlxMWiiwgimXU++TvJq4MJmf1vL5mpONh5fwmXet3+c+bpZb0gJwV8NcuLbU38hCqI0L 0jujMbJ7LqS+kzeLg/qY9ucfQdkkUX99gar1YuqKhaDJMJPPg6hzBfIHD/pBo91f6FVE ZdSKGT1+1L9ywi2f8T2gdGPaMwzEyCkAOr55qHFqE6JUDj8moVEfG2pCnMjTW3cEazEu +sjA== 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=t8CVsNyuYO74K6pq56rlQvNLaocdKmYPyyvAt+owVsg=; b=O91QD73ieRXkKkoAh+HRKdRrLfVTyZnJSBnaBjfj0POJMur7sK+y5SHfAn0ul2LLpn 74gFJPPhdZlEUo6WXm5B6ZvmFYba5da7K1TSsKmBIEopZj8da3RqiC3dz4v2SzXovjEr KOwV4/4F5IcYs97inXHvgN3DaTWgQ1NmNXY4DMaSe0nnKu6+Y0z/9ZMR502LJwGW1tAw l0MZcBlFR54FkzGLUSWWxZqhDRP6OFWaEutg932ee1Dp5HB473KKHkfaXbJ+IomX+yV9 VCepxPeoXWattJ2bxgVOo8zxjI7wIeTQeahrwAuT1tzElkwSzh4mh6zNpJphPOczIZ7O 2ZzA== 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 f9-20020a63f749000000b0046004f18c6csi4906665pgk.456.2022.11.18.14.51.30; Fri, 18 Nov 2022 14:51:43 -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 S233875AbiKRWur (ORCPT + 99 others); Fri, 18 Nov 2022 17:50:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232851AbiKRWrq (ORCPT ); Fri, 18 Nov 2022 17:47:46 -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 39A9BA288E for ; Fri, 18 Nov 2022 14:46:48 -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 1owA7r-0007wb-FG; Fri, 18 Nov 2022 23:46:23 +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 1owA7o-0058CA-FT; Fri, 18 Nov 2022 23:46:21 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7n-00HayU-DN; Fri, 18 Nov 2022 23:46:19 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , =?utf-8?q?Marek_Beh?= =?utf-8?q?=C3=BAn?= , Crt Mori , Miaoqian Lin 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 057/606] iio: accel: mma9551: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:31 +0100 Message-Id: <20221118224540.619276-58-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?1749876110831384232?= X-GMAIL-MSGID: =?utf-8?q?1749876110831384232?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/accel/mma9551.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/mma9551.c b/drivers/iio/accel/mma9551.c index f7a793f4a8e3..aa4f5842859e 100644 --- a/drivers/iio/accel/mma9551.c +++ b/drivers/iio/accel/mma9551.c @@ -446,9 +446,9 @@ static const char *mma9551_match_acpi_device(struct device *dev) return dev_name(dev); } -static int mma9551_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mma9551_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct mma9551_data *data; struct iio_dev *indio_dev; const char *name = NULL; @@ -607,7 +607,7 @@ static struct i2c_driver mma9551_driver = { .acpi_match_table = ACPI_PTR(mma9551_acpi_match), .pm = pm_ptr(&mma9551_pm_ops), }, - .probe = mma9551_probe, + .probe_new = mma9551_probe, .remove = mma9551_remove, .id_table = mma9551_id, }; From patchwork Fri Nov 18 22:36:32 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: 22592 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448251wrr; Fri, 18 Nov 2022 14:51:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf4UnLX4ZafSHo6lzKcJDt8ttSq11KbJkSZLNC9VC3e6FaL1xVrJBwtDTyrojkCParylqiiA X-Received: by 2002:a63:c41:0:b0:46f:81cc:5ecb with SMTP id 1-20020a630c41000000b0046f81cc5ecbmr8495085pgm.459.1668811906718; Fri, 18 Nov 2022 14:51:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811906; cv=none; d=google.com; s=arc-20160816; b=o/4Tiyrx9+DwolMCLu7aaYyk6d9uFwZOl0n4tlZ6igJBxAcGqGDrooZxYO9q2Psi5T a7iVeQ6YRMzdcEqoT7o0DDGVnA859CdIo/OAHB7Xq/msqi1cfkv3p1Hk5d2AOxgYsgSz ODvuZkOBaV4KTmPCJSUdUpSu4rDLEkUaGrRwri4f7L4hjZRjzkXfLVwcOOTtTHsVfI9C 6Gaf+8/KrsM9cxM7x5FxL33gzOHWklDhmGQVutil2S/O6NmZBqUj7ssWVGY1SLusCSPe YJxFzK/ETqGO6Rg6cPnYG2+o9Cjc55L2fnXUZA+ocPfDEKQy2N+0t4p6zDsZ5LXeyMee ot4w== 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=V7H8D/eHaQ9qbIflP/9dRtW53mHG1BM77odvxSZeHJE=; b=pLkjcrRzalXBpNMb3Gr4/0/cNI8aIH3nfU8pVDYV0yMTWs9wIpWCStcFDR6/INACjc czzbdCoN1G8A3GSKIyDSIH894rw0ZnzoMNwntliS453G4dlGi2+w1/uJ8HR6SpkHjO/5 vaMBRcJnT8i9upjN/+qvRDV9GNOozzPrDZylfiDHF0s/h8J/b1IvAkWRbc3hQ6duu636 RVQoEZrSjCB8hBnbyv5N+8LS2xLVOI6dyNU8cuWEKJ83abrvhvmQ5HwiVMWLQD4IQQL/ PhNdevBf3ys+yPmEC5CC94m7kTWxf8mlf40Ga3RbT0G3IOGpAp+Q7wlUnVYK8ti0mEJb nAVg== 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 bt7-20020a17090af00700b0020d9c20092fsi4128448pjb.181.2022.11.18.14.51.34; Fri, 18 Nov 2022 14:51:46 -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 S233900AbiKRWuu (ORCPT + 99 others); Fri, 18 Nov 2022 17:50:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232892AbiKRWry (ORCPT ); Fri, 18 Nov 2022 17:47:54 -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 B0CD5B960C for ; Fri, 18 Nov 2022 14:46:48 -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 1owA7r-0007vO-OO; Fri, 18 Nov 2022 23:46:23 +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 1owA7o-0058C3-8R; Fri, 18 Nov 2022 23:46:21 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7n-00HayY-Kd; Fri, 18 Nov 2022 23:46:19 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , Miaoqian Lin , Benjamin Mugnier , Antoniu Miclaus 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 058/606] iio: accel: mma9553: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:32 +0100 Message-Id: <20221118224540.619276-59-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?1749876114045568845?= X-GMAIL-MSGID: =?utf-8?q?1749876114045568845?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/accel/mma9553.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/mma9553.c b/drivers/iio/accel/mma9553.c index 2da0e005b13e..0af578ef9d3d 100644 --- a/drivers/iio/accel/mma9553.c +++ b/drivers/iio/accel/mma9553.c @@ -1073,9 +1073,9 @@ static const char *mma9553_match_acpi_device(struct device *dev) return dev_name(dev); } -static int mma9553_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mma9553_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct mma9553_data *data; struct iio_dev *indio_dev; const char *name = NULL; @@ -1246,7 +1246,7 @@ static struct i2c_driver mma9553_driver = { .acpi_match_table = ACPI_PTR(mma9553_acpi_match), .pm = pm_ptr(&mma9553_pm_ops), }, - .probe = mma9553_probe, + .probe_new = mma9553_probe, .remove = mma9553_remove, .id_table = mma9553_id, }; From patchwork Fri Nov 18 22:36:33 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: 22870 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472121wrr; Fri, 18 Nov 2022 15:59:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf4sH1Stpw2uyTRn5HsQ5o7SuEumVm4ClSQyaW3yfjZdAZ/gD6WE/O3zoM+OqxZbYZ6PPLAv X-Received: by 2002:a17:902:6a86:b0:187:722:f4db with SMTP id n6-20020a1709026a8600b001870722f4dbmr1758034plk.87.1668815967009; Fri, 18 Nov 2022 15:59:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815967; cv=none; d=google.com; s=arc-20160816; b=hgLc+TPNf7l5jq4zHo9CFRQjrD1OA8GBluxb/2LD3FexOXKXpjY207ziRtuLLML2hA 3s4gRmDhTIT3bMgM6jwkjHePuwFJjc7xe5vlDXq8Idm7ebRT08YRBVgTSY1Kc4St2+a8 +aTa35x39XXAyOsDSHTgfA1zv758InZb67VuarSsx5gFH8jN64AB3k6P4BSipGUAm7A5 NVn3uhB2o0khZ0w742ze9ztE7Y7EHDM/ETESobF2xOOl9Kw18XIxjRHqYjs5Gyb2Ku42 x8rSxClZV6UeQZ7RjwEKPzFchlhOY5WnTx1UZXAmLbFZivuThV8ZaBgLGba2oRrXqKGd DztQ== 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=eOqqdwiU6jqnw5yqHc+FOzZA/R9cfoyx4fwDss0J5FY=; b=T2m/M+XNTQ0DOYbuNx3CNB+/+sjDmikiEdYDCU77vqxReEhhj/M5WfBhjFLoF213/w 59I/rzvn/6fHDJdnwgtvpotVwKPQ60mD3vddTrc1a+4gXlBElmRL00TIlnI4FXmkT5s2 uhW5pZnhrjIxEge8puNm1XqqjrnJ5zwSl1yxDUBoKoVUhdfN+VCUGxzltArusTc7CM4b 93Nk0V4AjnWahXYlhbF5Fnbc3PpRYIa6Xvu6MNuxDEMbkWPTsRQ9uNd4M7uIUp3tY3ct xr63HQRVi3aDCb2eDk+eDTuGM/ljqL0Ukg72kuTqtMIM4O5oH8I050apC4ryNMJh8zC0 5HeQ== 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 b14-20020a17090acc0e00b00213120e0c85si7983053pju.156.2022.11.18.15.59.14; Fri, 18 Nov 2022 15:59:26 -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 S236955AbiKRXwt (ORCPT + 99 others); Fri, 18 Nov 2022 18:52:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236808AbiKRXvg (ORCPT ); Fri, 18 Nov 2022 18:51:36 -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 2F2AABB5C2 for ; Fri, 18 Nov 2022 15:27:01 -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 1owA7t-0007zJ-3h; Fri, 18 Nov 2022 23:46:25 +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 1owA7p-0058CL-1W; Fri, 18 Nov 2022 23:46:21 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7n-00Hayc-RV; Fri, 18 Nov 2022 23:46:19 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 059/606] iio: adc: ad7091r5: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:33 +0100 Message-Id: <20221118224540.619276-60-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?1749880371173317739?= X-GMAIL-MSGID: =?utf-8?q?1749880371173317739?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/adc/ad7091r5.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/ad7091r5.c b/drivers/iio/adc/ad7091r5.c index 47f5763023a4..7d6709da1005 100644 --- a/drivers/iio/adc/ad7091r5.c +++ b/drivers/iio/adc/ad7091r5.c @@ -69,9 +69,9 @@ static const struct ad7091r_chip_info ad7091r5_chip_info_noirq = { .vref_mV = 2500, }; -static int ad7091r5_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int ad7091r5_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); const struct ad7091r_chip_info *chip_info; struct regmap *map = devm_regmap_init_i2c(i2c, &ad7091r_regmap_config); @@ -103,7 +103,7 @@ static struct i2c_driver ad7091r5_driver = { .name = "ad7091r5", .of_match_table = ad7091r5_dt_ids, }, - .probe = ad7091r5_i2c_probe, + .probe_new = ad7091r5_i2c_probe, .id_table = ad7091r5_i2c_ids, }; module_i2c_driver(ad7091r5_driver); From patchwork Fri Nov 18 22:36:34 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: 23041 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp485881wrr; Fri, 18 Nov 2022 16:37:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf7J+4+tE3jQjYKWSVXAKmfV2HsfcelzzyPJRDD6LnAxSvU+lsv4iYa1GtS1GGReubJy84t+ X-Received: by 2002:a17:906:b794:b0:7ae:6450:c620 with SMTP id dt20-20020a170906b79400b007ae6450c620mr7912788ejb.270.1668818278370; Fri, 18 Nov 2022 16:37:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818278; cv=none; d=google.com; s=arc-20160816; b=rW43Ulf9AnE0HiyYdULhzBFH5+voZ9Tf2z05yNf4b5mi9HPTT1ws+kr1QwiC2K+T2H akKYKBjk2IS9jMjC/O4dbc9KYovdb+mRiN82HNBmg0q+XEC5oFt58KgN5poaz/y+Vm7J OICHQ2rV4UjNtjqBo9cHfRCyDbjRTuT0bAZLG92vd2Uyhf0ViGhA0WFSzpiDMd7NzUUm yppBC5xzAb8QFeWWMjMYS3018iE0yGPCSuIVAPpiUcSVXw4BQBA7BiUhGI65FRw49/vY BRCUnX5kmJfyg94sTKXy1phD41UBMQVz5yBo7pUq74mj5N5UagP5uL4ULp0x6087+UGy pJrg== 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=8w0fvpot+Q3SU8DTaPJu9oeSyz/tXxMXy4Mt8Wjfk34=; b=dbQBe0ATKBmGkKDriyjyYCY+WvwNtmo1Ddjpog3bg2iQMVVAqlgp2mW7WC+7cnVI9B yG9gLdDNJCe6NlIKvoZl6EISPN/Pgz+p6X52YMtz+VHH805ZbNS5Ubri/7wOIyIUg0ny PFHMg3gUqU1Y/zJilnvcRq1+R11kpwrp9wYhwqKZ4XPBP/tsV6wYa+/w6PAk3yfB9JtQ lBaLYyhNj8MTnDj7QkF69N3TdE4YboLMWTTEVKAgzFbDdbiWpJDlIWx7PZBTlMYKJq3y ebXWrhsu96DxUZlxtdIysNazKrnLE6xk/O40wCT9kUYT4+BCDASc2nARwK+876EJtBOF l7Ow== 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 qf35-20020a1709077f2300b007ade22f401bsi5243132ejc.759.2022.11.18.16.37.33; Fri, 18 Nov 2022 16:37:58 -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 S237932AbiKSATr (ORCPT + 99 others); Fri, 18 Nov 2022 19:19:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237919AbiKSATQ (ORCPT ); Fri, 18 Nov 2022 19:19:16 -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 B9A6FB70E2 for ; Fri, 18 Nov 2022 15:36:17 -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 1owA7t-00081n-VR; Fri, 18 Nov 2022 23:46:26 +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 1owA7p-0058CX-HQ; Fri, 18 Nov 2022 23:46:22 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7o-00Hayh-2k; Fri, 18 Nov 2022 23:46:20 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 060/606] iio: adc: ad7291: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:34 +0100 Message-Id: <20221118224540.619276-61-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?1749882795035655316?= X-GMAIL-MSGID: =?utf-8?q?1749882795035655316?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/adc/ad7291.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/ad7291.c b/drivers/iio/adc/ad7291.c index e9129dac762f..3dd0105f63d7 100644 --- a/drivers/iio/adc/ad7291.c +++ b/drivers/iio/adc/ad7291.c @@ -465,9 +465,9 @@ static void ad7291_reg_disable(void *reg) regulator_disable(reg); } -static int ad7291_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ad7291_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct ad7291_chip_info *chip; struct iio_dev *indio_dev; int ret; @@ -553,7 +553,7 @@ static struct i2c_driver ad7291_driver = { .name = KBUILD_MODNAME, .of_match_table = ad7291_of_match, }, - .probe = ad7291_probe, + .probe_new = ad7291_probe, .id_table = ad7291_id, }; module_i2c_driver(ad7291_driver); From patchwork Fri Nov 18 22:36: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: 22583 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448008wrr; Fri, 18 Nov 2022 14:51:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf62k6J/N2PIN0QxqzuK7T9K881wVZAjgUWf8lyxyGCTbU4qel40R3nTZ5Mtp4bWMF/klGHJ X-Received: by 2002:a05:6a00:22ca:b0:56e:64c8:f222 with SMTP id f10-20020a056a0022ca00b0056e64c8f222mr9872859pfj.71.1668811862318; Fri, 18 Nov 2022 14:51:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811862; cv=none; d=google.com; s=arc-20160816; b=fchA63l7UpWgpXrv+7Lqsa2En+hJ5YyNOKPGvz2ziw9Bw+fPNCOoZco5TxFDI+2/j5 XE+FiTcOYsGQVVn2KJaP0h9Gmlce7/bQRrF55GvcxkTxSNyELRXPiMmCl32fE7KckNa2 2BtEk08egjcLwW3r0JVIPEMOhyEaSAa68NEtrLFDVHrK0yLflxRSBVk9iY0+LqOY5YAm S7oUwx+vA7l3PwrS4epLJJFxRIxPyXeHgvSZzkTdlVE/S58sN75wTrNJD1VxgDSH6SWt NnfB615Nfmr9ZMuKKgE6SDsIjXvvZGwwIKXo6ZdC+yOhtQUc8sr/m3kc9Ig2rAENnVFV stVA== 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=CYnSXhyE5GAYyB7ICppebjl8oncIMm11EbqIg0bZCLU=; b=RjwlVXBJtPySpQcWt6Zug+0PdIknLo/cui+k4jjaJ77LtUYHUKshT4YSlAwg49Wx5d R4u5BwaZZJVlwJRvUTAAm9HgRn5G/ZCu0ZJDWRe+BHHiEbWRg9178hrkobkykuvNj2Ay XvVKdwoZ1q8WX4m45ytUMQEfoVDEGrS64vHmJltkIaWAO4rMyNVg2pX5O96OjZUPyVuU 9nuFg9lPPcPfoqgcLir/pxxVm9WWcbJguLXlt0xQe3BGibP7WvJRfBdxF/03fNnVD6mH S6n+z94axlJeGI9wmR63Mn5mktnki0Ljgkr4Ob5YmZpoWSM/vViyBjvq5tXNR7kF3jTB kbPw== 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 e2-20020aa78242000000b005633766252asi4449506pfn.313.2022.11.18.14.50.50; Fri, 18 Nov 2022 14:51:02 -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 S233765AbiKRWuI (ORCPT + 99 others); Fri, 18 Nov 2022 17:50:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231660AbiKRWrA (ORCPT ); Fri, 18 Nov 2022 17:47:00 -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 5E693B8FA2 for ; Fri, 18 Nov 2022 14:46: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 1owA7r-0007vC-Ma; Fri, 18 Nov 2022 23:46:23 +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 1owA7o-0058C2-8K; Fri, 18 Nov 2022 23:46:21 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7o-00Haym-9w; Fri, 18 Nov 2022 23:46:20 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 061/606] iio: adc: ad799x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:35 +0100 Message-Id: <20221118224540.619276-62-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?1749876067468287067?= X-GMAIL-MSGID: =?utf-8?q?1749876067468287067?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/adc/ad799x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/ad799x.c b/drivers/iio/adc/ad799x.c index 4730d8d0f4c3..8f0a3a35e727 100644 --- a/drivers/iio/adc/ad799x.c +++ b/drivers/iio/adc/ad799x.c @@ -775,9 +775,9 @@ static const struct ad799x_chip_info ad799x_chip_info_tbl[] = { }, }; -static int ad799x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ad799x_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); int ret; int extra_config = 0; struct ad799x_state *st; @@ -968,7 +968,7 @@ static struct i2c_driver ad799x_driver = { .name = "ad799x", .pm = pm_sleep_ptr(&ad799x_pm_ops), }, - .probe = ad799x_probe, + .probe_new = ad799x_probe, .remove = ad799x_remove, .id_table = ad799x_id, }; From patchwork Fri Nov 18 22:36:36 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: 22990 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477107wrr; Fri, 18 Nov 2022 16:10:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf66zHS01s2+flsclnV2oj/258EsCOfLWeR3kj7+7uyZGGa2e7zgQUfy118adrxDoluKMfOv X-Received: by 2002:a17:90b:128b:b0:20a:f469:7307 with SMTP id fw11-20020a17090b128b00b0020af4697307mr16233615pjb.213.1668816641288; Fri, 18 Nov 2022 16:10:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816641; cv=none; d=google.com; s=arc-20160816; b=pqmALnfmf8SieGXDhvWHITksW2Hl2PcPfKhWFGLL3DAcpucihmKacYnqABLL2YwJhO 65Iv9wFnERXihFOUeoxu/i/pwdvboYX53XdFnNPmTZvs4XRItexRyPa5kVTAzAnf/5gp F89RcRSrnQ2xKseaQHYXaRtO3p5c/PRa6FGUqy24T31em3T90kBIC/wgg5pAfy+7ewHw D8Kcul9Bk0iX2it/lVmGkuh16zKKp/gYLf7hByLI4dj7jXTbSySU7sL4vSNJCl4PBqnv +eFgBIZVH0oEJmDtsoRfMY2DYJjYYILqu5KclmYhXQqqXVqK6Gow+lCQzMmnvYkTUCim vuRQ== 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=h5Cb1Q99j2QxS8F5hwI8zLCOdwdYGiqPMdraUfxA4IY=; b=TILOY6H1Mkr2F5mOdl5U3QI+3HkXXaCJTc9Zq4nK/X1g+IyJEcwcDozuLhw81iQaiM iH5LB/giIew/ZHX1gdhiSqf5MHB8YFfLNtk6FWM+3vNer2AdG/tEoe5rUpn9MyLnueE+ /yH965Pa7a7nxvh8/vvKS5WVVqKyuwNibMQlFE5LG004YIBPpfvD5uBakJS92rpDjrkL /nTxF2txwhX39BZNcGYXDxpbx/ajVFKnABt2vQKTmn7opuFI75w75t8sxqAfyGSLXPBU 4xFbzieo0J1K1TnYstPH29hVFTz7wwhO9JdDZzdqGJyiAUJHCTJTDHRCgJ0jJAh6ftqb W+cA== 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 y38-20020a056a001ca600b00571a681de73si4482768pfw.293.2022.11.18.16.10.25; Fri, 18 Nov 2022 16:10:41 -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 S237258AbiKSAGm (ORCPT + 99 others); Fri, 18 Nov 2022 19:06:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237363AbiKSAGS (ORCPT ); Fri, 18 Nov 2022 19:06:18 -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 56B0EED729 for ; Fri, 18 Nov 2022 15:31:38 -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 1owA7u-00085G-St; Fri, 18 Nov 2022 23:46:26 +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 1owA7q-0058Ck-8J; Fri, 18 Nov 2022 23:46:23 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7o-00Hayp-HL; Fri, 18 Nov 2022 23:46:20 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , Dmitry Torokhov , Miquel Raynal 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 062/606] iio: adc: ina2xx-adc: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:36 +0100 Message-Id: <20221118224540.619276-63-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?1749881078239421250?= X-GMAIL-MSGID: =?utf-8?q?1749881078239421250?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/adc/ina2xx-adc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/ina2xx-adc.c b/drivers/iio/adc/ina2xx-adc.c index 910e7e965fc4..38d9d7b2313e 100644 --- a/drivers/iio/adc/ina2xx-adc.c +++ b/drivers/iio/adc/ina2xx-adc.c @@ -946,9 +946,9 @@ static int ina2xx_init(struct ina2xx_chip_info *chip, unsigned int config) return ina2xx_set_calibration(chip); } -static int ina2xx_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ina2xx_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct ina2xx_chip_info *chip; struct iio_dev *indio_dev; unsigned int val; @@ -1090,7 +1090,7 @@ static struct i2c_driver ina2xx_driver = { .name = KBUILD_MODNAME, .of_match_table = ina2xx_of_match, }, - .probe = ina2xx_probe, + .probe_new = ina2xx_probe, .remove = ina2xx_remove, .id_table = ina2xx_id, }; From patchwork Fri Nov 18 22:36:37 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: 22879 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472212wrr; Fri, 18 Nov 2022 15:59:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf4lk3N4ERzdb6TV2oeEyBYX1PTm8IK+g+4kTsM9ikrH7Eba6vbIQNb1D5mBCUxvUiaEVUWn X-Received: by 2002:a05:6402:180d:b0:469:58:b18b with SMTP id g13-20020a056402180d00b004690058b18bmr5597193edy.240.1668815984207; Fri, 18 Nov 2022 15:59:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815984; cv=none; d=google.com; s=arc-20160816; b=WCx85Ki3M9YM9WiHt5hdzoqkYk172crMuBGkigizfC8NRzyBaXVtn6eLVkKzr6LiHx 7Ap7wjFAwWaNx5f5mXAVp7eeVOgX3S66ac/fM3JWmx7S7OMI3BSpx1y+qeiBTb/u2D0B vlOvzTonoLzxjmP43rVOpBDx7InS+w5MNpuFTD3xzMOX6Or3PbcFB2PcnH7b1IhohKs5 yFHCGpFC/OH25lbLPglTNZXO3g2S34lMfcvTlK4BqzDlPsMUVFdLkHEVNbEhaB/www7v gRAOKuItJ4+LAAszvmq2OP0wUtGsXzpLyc0NUrsAaWu6wQgNt8hEYv6SHl1JBDWbVEOM uxhQ== 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=0Su/3UeLv2lPKVOer0syV2S/0E4yFuHAi6jJq6joyB0=; b=PpLc6IZbW5K8zYNylzr/RVa11qvUb8vv0O3VEbat4W6Y7+wDc9JTqZVxZK4G/qWKBP jNQKNWpLLqG4+G2gc+hqdoO7fGh4EQrE5LAliqU65hb/uPCxda8nmPe5zHRVAIa2RrsD ZEz4Y1gSnHbuurUImt+Kdw++LOS0IKT6X5zYT2/cEztGInJAX1x02kxWxgqHbdQ3SWl9 Vg/1fqBdyhNra+OvBSd7vL5hXrLzHFCNHfMGKGteuIAeK+0eP/Fa+zQmIGdydVWjTHpi SzFOrOjp+T26uFCzhbMhkrRBxKq5B4R0R9kvV+Jj71taQqn2Mc00PwW2gxffv5XYfz0Z qOvQ== 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 w18-20020a056402269200b00461e122a4e4si4620803edd.314.2022.11.18.15.59.18; Fri, 18 Nov 2022 15:59:44 -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 S236449AbiKRXqi (ORCPT + 99 others); Fri, 18 Nov 2022 18:46:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236791AbiKRXqN (ORCPT ); Fri, 18 Nov 2022 18:46:13 -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 662D6D39ED for ; Fri, 18 Nov 2022 15:25:11 -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 1owA7t-0007zW-7Q; Fri, 18 Nov 2022 23:46:25 +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 1owA7p-0058CN-3g; Fri, 18 Nov 2022 23:46:22 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7o-00Hays-NK; Fri, 18 Nov 2022 23:46:20 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 063/606] iio: adc: ltc2471: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:37 +0100 Message-Id: <20221118224540.619276-64-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?1749880389484175695?= X-GMAIL-MSGID: =?utf-8?q?1749880389484175695?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/adc/ltc2471.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/ltc2471.c b/drivers/iio/adc/ltc2471.c index 0e0fe881a8e6..eeb2945829eb 100644 --- a/drivers/iio/adc/ltc2471.c +++ b/drivers/iio/adc/ltc2471.c @@ -99,9 +99,9 @@ static const struct iio_info ltc2471_info = { .read_raw = ltc2471_read_raw, }; -static int ltc2471_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ltc2471_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct iio_dev *indio_dev; struct ltc2471_data *data; int ret; @@ -146,7 +146,7 @@ static struct i2c_driver ltc2471_i2c_driver = { .driver = { .name = "ltc2471", }, - .probe = ltc2471_i2c_probe, + .probe_new = ltc2471_i2c_probe, .id_table = ltc2471_i2c_id, }; From patchwork Fri Nov 18 22:36:38 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: 22593 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448300wrr; Fri, 18 Nov 2022 14:52:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf5yTUJ/n93p4q3cAr5ZHoZXZxLOHYPaJZ7+q2Dka9qTpqw9OR1sOL5V4kFEgYENOEN681vg X-Received: by 2002:a17:903:3292:b0:188:fd91:8538 with SMTP id jh18-20020a170903329200b00188fd918538mr1396247plb.151.1668811920338; Fri, 18 Nov 2022 14:52:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811920; cv=none; d=google.com; s=arc-20160816; b=PtwLWLYjx65Mp3lAkur+dGv7b3ID/4rjf8lkzXMFv8EsU+KGsh347KE5Jihvillgnh s97D/XrH4RMCG3E4TLIo8SOX79BSxxO6hCYjmUht2IRchu+O8i4PtKcktD8hY7IeiF8F QNqEX5wrG7lUS4FPEXyw2YH5tETupKwzJlCc2PhCRf6eXqCVQWmHePt3ykNhLvj0oZfc RRMTwTwjOrgcIgwyjC/zkgt3Mqy47RVoukHjAWJdGDh5ItKngmnCtDBwHWnKk8ThtOZs BDCRaLOYFHtLt6yWaH6b+Rg3H237f6Rq6dkpttlrpBfuKjXh8ncp2MVI+GrzCoLLRQ1+ 5nCg== 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=ZYnU37+i2sKbzI8WgT8G0QVQVAT6nz3IVneE5FjOdco=; b=WZYFUbYrmYhz9thEDDyfssF8sBs8Z/uqm9xeUfgTaJf9P9WqZ0ISUx8a96aj63XdTW fJQDLtfK1tJtCnmgXItkDjK6+gqbHdB2pVVtkL5DxYL9UHwEkTYwPLWqU8l3Yu0X8cGV AYUfjBE/Piao5KLZieweHPvr6uaECO8DKs8q/tX3FO+jiRuNTrZW+f93EyId3wurNs1Y pSyTwvXx49gtEoPVtKDb2hVAna7lxTk/5tRndJKpQYiYUO1KllrYTwr2kf3NsVCA78lk VD4mW1N37EmgUOzfwnuKq4+sxhwx4eb7vxF9skSfdN+Ht2FzMXuWC32zfNvd2XmybO0p toxg== 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 x20-20020a17090aca1400b002006ace0cc4si7338223pjt.138.2022.11.18.14.51.47; Fri, 18 Nov 2022 14:52:00 -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 S233416AbiKRWu6 (ORCPT + 99 others); Fri, 18 Nov 2022 17:50:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233147AbiKRWsb (ORCPT ); Fri, 18 Nov 2022 17:48:31 -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 01D5EB9713 for ; Fri, 18 Nov 2022 14:46:50 -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 1owA7x-0008H4-3u; Fri, 18 Nov 2022 23:46:29 +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 1owA7s-0058DS-GD; Fri, 18 Nov 2022 23:46:25 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7o-00Hayw-UD; Fri, 18 Nov 2022 23:46:20 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 064/606] iio: adc: ltc2485: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:38 +0100 Message-Id: <20221118224540.619276-65-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?1749876128208431689?= X-GMAIL-MSGID: =?utf-8?q?1749876128208431689?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/adc/ltc2485.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/ltc2485.c b/drivers/iio/adc/ltc2485.c index 37c762f8218c..6a23427344ec 100644 --- a/drivers/iio/adc/ltc2485.c +++ b/drivers/iio/adc/ltc2485.c @@ -89,9 +89,9 @@ static const struct iio_info ltc2485_info = { .read_raw = ltc2485_read_raw, }; -static int ltc2485_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ltc2485_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct iio_dev *indio_dev; struct ltc2485_data *data; int ret; @@ -133,7 +133,7 @@ static struct i2c_driver ltc2485_driver = { .driver = { .name = "ltc2485", }, - .probe = ltc2485_probe, + .probe_new = ltc2485_probe, .id_table = ltc2485_id, }; module_i2c_driver(ltc2485_driver); From patchwork Fri Nov 18 22:36:39 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: 22904 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472657wrr; Fri, 18 Nov 2022 16:00:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf7PCDxMD3sxszqe0AJJjULSpk9KLTzJJf+B8KsXzqM5OZ7V+CQWoZSUHAxSC9aNBj35UWo/ X-Received: by 2002:a63:5724:0:b0:46f:9c0c:8674 with SMTP id l36-20020a635724000000b0046f9c0c8674mr8473690pgb.26.1668816040793; Fri, 18 Nov 2022 16:00:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816040; cv=none; d=google.com; s=arc-20160816; b=MLmBHNteZzxQTgf33EJPJWCNvsg+PoeRduXDEtpAZgR6OzvuwHEJIBt545JqYbXd0k SPWkQeE9mpFoDQJdUFz0NndPcwyz5U2TzOKqag+h9TqwW7yPzoiNtsKBS7wDM5X1IrHN Zi3gW8mK9lLv9UrTHcbC34IWD9p3NmgVloqFULWHFFhlewzLR1xkzYr1CkpBCt8vJ7rj ldHzHPID7lg5O1Jw7EMLmK3qMSbo9ndKixEVRi5orDxxoMxURAo5yTMKlqykNr9vGUzK fJZKWwlVxaNT96TrWlJCwYt3SO4dQJAP+uAZSqRN4Mttmu77zj7iv3BpX5/CkEWOSxDl J4hg== 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=0dj+wYLV9m+msuqfy7YMyZw7uU3AMdQ3auLUJn7PDFQ=; b=QIqZRyQgrMdDcXZAwx9uUbFz9BMcq7pYiNiTUi8XPnTQXZbDiPTXfWj9yFFkSEAqmJ sQW2cuRuL61/pdUIEvZ/8oruLcdog114BXADYP6Q6B5Z54xDcghpI9BeEOeYPDg7YL6P XJYf2zTBXwDQNSD3weT9+B0Zju9o12avDu9XxbS8wQniUx6lIVQqyxa/lKwldF9/skNO hBwQ5DMJC9jJJX0/QPIVDHHTta+jE/OLXaSehIRQXBjKMytfYZLnfkESKxkY9RrynIjR Rpoy6yGjGIf/xo/8PqrGGUTDH1poFtWloYcKzqt+BRfsqwH6f8ove4X1aDQBSlRGCB/K Vw9w== 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 pw2-20020a17090b278200b002187965af4csi4571207pjb.71.2022.11.18.16.00.25; Fri, 18 Nov 2022 16:00:40 -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 S232563AbiKRXzO (ORCPT + 99 others); Fri, 18 Nov 2022 18:55:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237080AbiKRXxd (ORCPT ); Fri, 18 Nov 2022 18:53:33 -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 4BA3BD2DE3 for ; Fri, 18 Nov 2022 15:27:45 -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 1owA7v-00087I-8y; Fri, 18 Nov 2022 23:46:27 +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 1owA7q-0058Cx-L1; Fri, 18 Nov 2022 23:46:23 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7p-00Haz0-5x; Fri, 18 Nov 2022 23:46:21 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 065/606] iio: adc: ltc2497: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:39 +0100 Message-Id: <20221118224540.619276-66-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?1749880448526508843?= X-GMAIL-MSGID: =?utf-8?q?1749880448526508843?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/adc/ltc2497.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/ltc2497.c b/drivers/iio/adc/ltc2497.c index 556f10dfb502..17370c5eb6fe 100644 --- a/drivers/iio/adc/ltc2497.c +++ b/drivers/iio/adc/ltc2497.c @@ -94,9 +94,9 @@ static int ltc2497_result_and_measure(struct ltc2497core_driverdata *ddata, return ret; } -static int ltc2497_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ltc2497_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); const struct ltc2497_chip_info *chip_info; struct iio_dev *indio_dev; struct ltc2497_driverdata *st; @@ -165,7 +165,7 @@ static struct i2c_driver ltc2497_driver = { .name = "ltc2497", .of_match_table = ltc2497_of_match, }, - .probe = ltc2497_probe, + .probe_new = ltc2497_probe, .remove = ltc2497_remove, .id_table = ltc2497_id, }; From patchwork Fri Nov 18 22:36:40 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: 22871 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472135wrr; Fri, 18 Nov 2022 15:59:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf4WFxHoZ8cZmGKODPblidZyRKM4K/oxmmLUHK9VWOBSQSTLEbn2Q8YU9Spt1KnfFnEG5OxG X-Received: by 2002:a63:155e:0:b0:476:95a8:de91 with SMTP id 30-20020a63155e000000b0047695a8de91mr8654483pgv.102.1668815968970; Fri, 18 Nov 2022 15:59:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815968; cv=none; d=google.com; s=arc-20160816; b=D40jw6EDNwooZ+MM1/5TPeastg58o8ygcICELa73xMedWTOaYLd2FWXdD6WD/WhCXP PmLhbXp7QnXuv0hrKCupQuQUC7Rkk1j49+0hVl3Xm+qY7KGEJznZMoEJkq52lwnN63SB ULVpMDdlsSzcbko9STdjXZpg6Vh5nZ9kfqk5M35ji8VZKh2nXhfTLBCGNqREnbYftpH5 sb9lPYolhumxYHuDGS3iczTjLopa153rODER0cEegkPzIKQCb3Nl1pwhi50G1l+QzbmB Jc4IBXakBvX0N5M5KiKUNak629EM6Nsj2SjWT7pQLUg/o6IAxGTbgs+BvkgeQqEiZrF/ 3rDA== 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=6AzXJ9KJeQa36XwKCFQq3vz5M7xt1weoZXuvSqk8oAw=; b=jl0ny+NkRk+k8OMhswW6ISeoiGhaKARzd5yVZyDta0csnmxzoVQmiKxYjsCWcRP8Dh Uv28OiguS5eAOON3aGk2M36rwsW/vuPHoOt4gzEyJfQIG/57bDCdhAxQwGuoCa80vpJw lj1IJcN2BuaV2USCRfz+B9KWdlY8S4q7Vfxc7V7oQm4Xf3SbPAJd7RfTwtJ+fKaQXdVS eT62lS5RglRP+jM4B+mYccJ6VObb0mP+Dn56mvnydN+L4QTD97tSm36rhi+rxQFN2RUK viTesUCNBekkHCpJ/5laEB0SlzjVo/cXHEr7PqYqGudTpe/o6pJxnkW2VFFVr42L8gL+ lCbg== 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 n7-20020a63ee47000000b0045d60c88ad2si5000914pgk.164.2022.11.18.15.59.16; Fri, 18 Nov 2022 15:59:28 -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 S236983AbiKRXwv (ORCPT + 99 others); Fri, 18 Nov 2022 18:52:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236951AbiKRXvj (ORCPT ); Fri, 18 Nov 2022 18:51:39 -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 75229BB5E7 for ; Fri, 18 Nov 2022 15:27:05 -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 1owA7t-000816-OL; Fri, 18 Nov 2022 23:46:25 +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 1owA7p-0058CU-E7; Fri, 18 Nov 2022 23:46:22 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7p-00Haz5-Cy; Fri, 18 Nov 2022 23:46:21 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , =?utf-8?q?Nuno_S=C3=A1?= , Matti Vaittinen 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 066/606] iio: adc: max1363: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:40 +0100 Message-Id: <20221118224540.619276-67-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?1749880373513999275?= X-GMAIL-MSGID: =?utf-8?q?1749880373513999275?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/adc/max1363.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/max1363.c b/drivers/iio/adc/max1363.c index 42d3479cefb7..73b783b430d7 100644 --- a/drivers/iio/adc/max1363.c +++ b/drivers/iio/adc/max1363.c @@ -1579,9 +1579,9 @@ static void max1363_reg_disable(void *reg) regulator_disable(reg); } -static int max1363_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max1363_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); int ret; struct max1363_state *st; struct iio_dev *indio_dev; @@ -1718,7 +1718,7 @@ static struct i2c_driver max1363_driver = { .name = "max1363", .of_match_table = max1363_of_match, }, - .probe = max1363_probe, + .probe_new = max1363_probe, .id_table = max1363_id, }; module_i2c_driver(max1363_driver); From patchwork Fri Nov 18 22:36:41 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: 22877 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472215wrr; Fri, 18 Nov 2022 15:59:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Wg3Z2EpqFP/pMXNxM2cjHt4gfG8FVMd1YCBn49PjY2eRZCn+KRunXoz9uqPcRpQMBERFt X-Received: by 2002:a17:906:a40c:b0:7ae:180e:9b53 with SMTP id l12-20020a170906a40c00b007ae180e9b53mr7982504ejz.206.1668815984351; Fri, 18 Nov 2022 15:59:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815984; cv=none; d=google.com; s=arc-20160816; b=ekzNi0xCIVC05Uqhx0yCK67bSj5617m45VaoW+GCMJTS36UBDvbELPkcSys0OoPA9U UbLSr82BOT8W7+cI5yUgM+X9kIIuOvL27nCG3YjGzBgDgMv52LFUyYJYa/T9yLzTxa/A s0AIgglSMDpyUfLC0k+/4VQSiHlOHEv+8h1MgABWuSQh2rIezE5ax++sRtbJBw1MYkJK qhhkNGyOvbB/uFSJ1LvW6zL3AugUdETt7GngUYfKzr9cFLgKRJMNDjW/eYQhGyvUMlmU wSazsE6Tcw0G5flQRSPnayJW2MGDN0YM9hzS2uayG3hzZhTt09EkOV0pCytH01yzXOse b2kw== 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=2nIQ06MK22EzaCwcLdCBQub12qrkDIYNtAQTO1AY6AY=; b=N/A3W8aKIbsCwZ/76qKwr0YDwWgfVVZShyEaLpqb7NClEKTcdlOhSJ+/tdlsbjlUVo /iFn5I/oGHWlB/lBa/Bww+lwxSzC1Qm4u89h/gzEh6vIx4Ba3kHzZ0rJJCRBhvgYAlO7 mcTVn3G3DNkefQT4dcd5rKhyuZTvLIIq2IMhwwOU+Yrib9SAwiOV/24YuKRVqg2844+T yuAF0sgC3h9A1YDJzsrda5EfzPQckNbXHK0aEKVWNq7D9ZXGZwkpN90w8NSaGtOSiW6I agkYy5q+7iLoeH9l1Qe0+kUEzmZydWd4Hck2RKVGmVlP74Txm5ULmsxOJxNoRnyABh17 L+lg== 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 v2-20020aa7d802000000b004617facf124si4073416edq.253.2022.11.18.15.59.19; Fri, 18 Nov 2022 15:59:44 -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 S234892AbiKRXqO (ORCPT + 99 others); Fri, 18 Nov 2022 18:46:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232884AbiKRXpy (ORCPT ); Fri, 18 Nov 2022 18:45:54 -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 37B74D2F66 for ; Fri, 18 Nov 2022 15:25:02 -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 1owA7v-000865-3E; Fri, 18 Nov 2022 23:46:27 +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 1owA7q-0058Cq-Cm; Fri, 18 Nov 2022 23:46:23 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7p-00Haz9-KB; Fri, 18 Nov 2022 23:46:21 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Jacopo Mondi , 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 067/606] iio: adc: max9611: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:41 +0100 Message-Id: <20221118224540.619276-68-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?1749880389413512737?= X-GMAIL-MSGID: =?utf-8?q?1749880389413512737?= 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 Acked-by: Jacopo Mondi --- drivers/iio/adc/max9611.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/max9611.c b/drivers/iio/adc/max9611.c index f982f00303dc..cb7f4785423a 100644 --- a/drivers/iio/adc/max9611.c +++ b/drivers/iio/adc/max9611.c @@ -510,8 +510,7 @@ static const struct of_device_id max9611_of_table[] = { }; MODULE_DEVICE_TABLE(of, max9611_of_table); -static int max9611_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max9611_probe(struct i2c_client *client) { const char * const shunt_res_prop = "shunt-resistor-micro-ohms"; struct max9611_dev *max9611; @@ -557,7 +556,7 @@ static struct i2c_driver max9611_driver = { .name = DRIVER_NAME, .of_match_table = max9611_of_table, }, - .probe = max9611_probe, + .probe_new = max9611_probe, }; module_i2c_driver(max9611_driver); From patchwork Fri Nov 18 22:36:42 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: 23096 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487623wrr; Fri, 18 Nov 2022 16:43:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf4qveqJ0a5vx4Xy89AWSL8eB+mSLxL9ZqlVQX1zy0MMJKgHtUQKZzoJOZW1jgH1ncfUeIKM X-Received: by 2002:a17:906:1d14:b0:7ad:79c0:46f4 with SMTP id n20-20020a1709061d1400b007ad79c046f4mr7920363ejh.363.1668818615278; Fri, 18 Nov 2022 16:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818615; cv=none; d=google.com; s=arc-20160816; b=m5pVcC4fthmGclZsUnRcELUu77j4V4nfP/3zklNCn8S0MUfjt6WDaaFloF1e/Gbr5j dD+cYyv3y3fP/8UN7LimC8kMnrUUdkidNdODXB8Xf6GYNLUEj9+sbvZ7xUuRDu2Et0ZG 4t9upeSIfuxp82EBzlyWZAUPO7OuMlebq4hQ8g5QymcXffF/eohcPR7mcwl6T1gkbKmG 07If/Bw2vOw/+q3OCk66PpBYXJok4Shh7aouso6SJ3Htz8+af3sK+C1uUvw74YEGn/zV SWf/1Zc44Hmc6CA1dsdKFfaj45haa7sM8hO9+sjjATAZiJ/FB5j1BLrbj4+yJdPpeLDm q5wA== 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=hwTedo8+KlS0uWPD+QPH2X0YfbKbXIw9XbLO9KR80sg=; b=L1w6UlpgK7dMCd3Tcb1chqF8x9i7zkfZgED9xoUQFkQvLFTq3GN6+v4TfX05wx8kF7 c59kZ8EMKwIwNHwib3m8iLyC1blhQ8TCNPX3FUAn2L43DukTW2i3wrz8ZNn6BURXhpvs JEDmBM1JXBZKBQW2x+yhuZqAz/Ga9/1ZsyrwhWMgVGndL4JUbdmzPkYG4m93ZQbiw63r U+pIISb1yMrWhCxgDQu6mY0SmzVGMEjjm5xzgNuzCESqrHEwg95ETmrSf6O/NZkS6idJ plbnyCqSC8KGDSAmuxJyD6AFYHLEfi2Y3HX1eyx1yLVrJ6QTUHSyrVBM7jV0jLrcDYvR T0yQ== 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 k26-20020aa7d8da000000b0045cc36d6d8fsi3951360eds.336.2022.11.18.16.43.04; Fri, 18 Nov 2022 16:43: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 S236010AbiKSAeU (ORCPT + 99 others); Fri, 18 Nov 2022 19:34:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234693AbiKSAdy (ORCPT ); Fri, 18 Nov 2022 19:33:54 -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 198FD113FC3 for ; Fri, 18 Nov 2022 15:42:39 -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 1owA7u-000855-Ry; Fri, 18 Nov 2022 23:46:26 +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 1owA7q-0058Cj-7A; Fri, 18 Nov 2022 23:46:23 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7p-00HazD-So; Fri, 18 Nov 2022 23:46:21 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 068/606] iio: adc: mcp3422: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:42 +0100 Message-Id: <20221118224540.619276-69-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?1749883148041745102?= X-GMAIL-MSGID: =?utf-8?q?1749883148041745102?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/adc/mcp3422.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/mcp3422.c b/drivers/iio/adc/mcp3422.c index da353dcb1e9d..ada844c3f7ec 100644 --- a/drivers/iio/adc/mcp3422.c +++ b/drivers/iio/adc/mcp3422.c @@ -330,9 +330,9 @@ static const struct iio_info mcp3422_info = { .attrs = &mcp3422_attribute_group, }; -static int mcp3422_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mcp3422_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct iio_dev *indio_dev; struct mcp3422 *adc; int err; @@ -417,7 +417,7 @@ static struct i2c_driver mcp3422_driver = { .name = "mcp3422", .of_match_table = mcp3422_of_match, }, - .probe = mcp3422_probe, + .probe_new = mcp3422_probe, .id_table = mcp3422_id, }; module_i2c_driver(mcp3422_driver); From patchwork Fri Nov 18 22:36: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: 22905 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472724wrr; Fri, 18 Nov 2022 16:00:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Cdf7fYmq0sGlIwRb471k6U7VcMkjar0gd2FZH4SHaxDSdcPVXyC9IHEuSvR/9cF0gl6Gw X-Received: by 2002:a63:1942:0:b0:46f:7b0d:3602 with SMTP id 2-20020a631942000000b0046f7b0d3602mr8555214pgz.143.1668816048951; Fri, 18 Nov 2022 16:00:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816048; cv=none; d=google.com; s=arc-20160816; b=QB0SbrUSYUUtBvsSdBEGN+z/5JrlmB5bjzSIridus7TlIR7OgqmKjPS5LCbmcInDbk 5BW/5IAmejP8pL69nd/zyj5xVLIMyfTr0bjZZOIidcvOg0vEoUr6Stw7CCtrKfRimmt2 TfaK3Ck7e0Sk1B1U9357wDCfSxOKDSb/WQ79uxP8lWQMbnWyFBY0rDf5FWGWGv3b83i8 jBl4iRCfKGql/KXZ7chE2T5V0KaQ6LP6HZlTCncwYDpqbMv0WAQ7iaX5Fkmk4zv2dwP7 a/z8YXzPget/L8e7abOPExlBK+AY9qC+vs1lTEbOHREEprb42FSwEqJlGFdCcAMK6v9t 0uqA== 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=kJk1OCH/Zr/HU6kUyTf2PckaAt7tjVFR8jPasYJQ2a8=; b=tBmLS+zbp1RmF9OzDwvde/YfjLk23eARCIEZnjSSBTny7C0e1ZSn2/hTJJkAJe1uy4 EcJqZuq8HlLP8JMuxlwuc+3rxGloG+XK8+34DjUp85MQOJiNac/QL19VVH/05sAYcNd1 F2tdXs7BslUWm7i1F0nrKz6S3fBpOMWATCTm25Kt8EbJsQE/K5bodouGI0N0q4pBoTbi HrOrYGvLuSCGOOy46DbeRMC1QEGq0KciYyXkgE2wReEnxyZVqxkh1jNrnUQGxkBbjRt1 lUjMjrInV6MpkMCmIeChB7rdQfpWw3SFLF0XhEjPHO0M58EET69Zh5/mfpWiFBdIT/vV AZkA== 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 203-20020a6300d4000000b004403ddda6e6si5202263pga.847.2022.11.18.16.00.34; Fri, 18 Nov 2022 16:00:48 -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 S231491AbiKRXz2 (ORCPT + 99 others); Fri, 18 Nov 2022 18:55:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237106AbiKRXxm (ORCPT ); Fri, 18 Nov 2022 18:53:42 -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 B69C6D2DEB for ; Fri, 18 Nov 2022 15:27: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 1owA7v-0008AD-PF; Fri, 18 Nov 2022 23:46:27 +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 1owA7r-0058D6-3C; Fri, 18 Nov 2022 23:46:24 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7q-00HazH-3j; Fri, 18 Nov 2022 23:46:22 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 069/606] iio: adc: ti-adc081c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:43 +0100 Message-Id: <20221118224540.619276-70-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?1749880457501885997?= X-GMAIL-MSGID: =?utf-8?q?1749880457501885997?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/adc/ti-adc081c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/ti-adc081c.c b/drivers/iio/adc/ti-adc081c.c index bd48b073e720..c663dc59d459 100644 --- a/drivers/iio/adc/ti-adc081c.c +++ b/drivers/iio/adc/ti-adc081c.c @@ -152,9 +152,9 @@ static void adc081c_reg_disable(void *reg) regulator_disable(reg); } -static int adc081c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adc081c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct iio_dev *iio; struct adc081c *adc; const struct adcxx1c_model *model; @@ -235,7 +235,7 @@ static struct i2c_driver adc081c_driver = { .of_match_table = adc081c_of_match, .acpi_match_table = adc081c_acpi_match, }, - .probe = adc081c_probe, + .probe_new = adc081c_probe, .id_table = adc081c_id, }; module_i2c_driver(adc081c_driver); From patchwork Fri Nov 18 22:36:44 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: 22652 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460695wrr; Fri, 18 Nov 2022 15:25:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf7CkYNVVbj+0M+4wjPWdm4dcOtvVt9lZ1VJhVT+DjDwMfzTZ/FZsfPpXMHuX8TdsRLGjsBa X-Received: by 2002:a17:906:1c59:b0:7b1:6b94:129a with SMTP id l25-20020a1709061c5900b007b16b94129amr7885031ejg.328.1668813903753; Fri, 18 Nov 2022 15:25:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813903; cv=none; d=google.com; s=arc-20160816; b=obuu1CYXmNrR0qbB0ZnMht7j5gQWoYDcDPg5bRY3y8NiZA1AKPOsryeT6KY0zS5uqU 1KEaO/gbxaxv0w01R2hVUke/zbL5HZFYw2cO5wENJx8hARag1RPmS6FT39RdzQsiOHA5 hvxs3+3GcGNn9u/xD0sQzy4gSE9VINM0BgV9iFAcqydB94l02tEu3NXq+xylKhiVxa2d v8GNS2xAU9i2doYA8aqqj/rhAEufdZmp1agzCJMi7fQbLAHmHnKvZ++inYqPvHWjr4Q5 NCDG+f6IfMLrkKNkPnGNU4SrnhOit3f/JbOpHLaqlxnDK+I4GrNo1+g/52q6ZkKBFMmx XCSQ== 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=rHm594D5wu36wGBh2cGd20ADQacGWnj4A7Pw5QluPdc=; b=YW9RfYDfgY2Gk5tPQb94Rkgo61JpYhrWDugzUXV3ff2o5LMxwgHahbkeV9lJQMyEBr eayjb5hxgOgt6yVt2LTC1oJLCgpzaHwsokWiyim5qsprb1KnkV/GzS1lRaWVBb10WRwe Vhj75WyoT86Nx9iVKQDh88wyiz/zw70gmeHi8cYGIr+amqEoqGlI9MJCKz6bd9bBeee3 RzhR70Pe7CEgNVQ7E3Xjgp7465ySFHlxrWelkUodJaRE6Ma29UschxIldkw7812nwqr6 UGP72BKQZ2H/uND0ih3+XPuf+Wxy54XZSbxEermf6aY6EpLAsgWKic+AFYExTyc+XRiP dCzw== 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 dc20-20020a170906c7d400b00741a0c28f07si3413353ejb.943.2022.11.18.15.24.36; Fri, 18 Nov 2022 15:25:03 -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 S235392AbiKRXVg (ORCPT + 99 others); Fri, 18 Nov 2022 18:21:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233578AbiKRXVB (ORCPT ); Fri, 18 Nov 2022 18:21:01 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49BF1E10 for ; Fri, 18 Nov 2022 15:11:49 -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 1owA7v-000869-7I; Fri, 18 Nov 2022 23:46:27 +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 1owA7q-0058Cr-Cr; Fri, 18 Nov 2022 23:46:23 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7q-00HazL-Aw; Fri, 18 Nov 2022 23:46:22 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , Marek Vasut , Corey Minyard 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 070/606] iio: adc: ti-ads1015: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:44 +0100 Message-Id: <20221118224540.619276-71-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?1749878207657992292?= X-GMAIL-MSGID: =?utf-8?q?1749878207657992292?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/adc/ti-ads1015.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/ti-ads1015.c b/drivers/iio/adc/ti-ads1015.c index 8bceba694026..56af5e148802 100644 --- a/drivers/iio/adc/ti-ads1015.c +++ b/drivers/iio/adc/ti-ads1015.c @@ -974,9 +974,9 @@ static int ads1015_set_conv_mode(struct ads1015_data *data, int mode) mode << ADS1015_CFG_MOD_SHIFT); } -static int ads1015_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ads1015_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); const struct ads1015_chip_data *chip; struct iio_dev *indio_dev; struct ads1015_data *data; @@ -1195,7 +1195,7 @@ static struct i2c_driver ads1015_driver = { .of_match_table = ads1015_of_match, .pm = &ads1015_pm_ops, }, - .probe = ads1015_probe, + .probe_new = ads1015_probe, .remove = ads1015_remove, .id_table = ads1015_id, }; From patchwork Fri Nov 18 22:36:45 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: 23076 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487038wrr; Fri, 18 Nov 2022 16:41:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf6G1YN2EaM+8jltYV63RMdS08FjUXHd1p5+4Gxnq64pr7DT20p7ch8K5QKwvVNV2hpxyCpV X-Received: by 2002:a05:6402:cae:b0:461:9349:79cf with SMTP id cn14-20020a0564020cae00b00461934979cfmr8016496edb.179.1668818512162; Fri, 18 Nov 2022 16:41:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818512; cv=none; d=google.com; s=arc-20160816; b=EgOpUpNKbvy45N4xVaf4TiW3ObtAm9cm4JEKhpQ8UNAG8huPZU7VZXCMzUAeL0hmmA V9QbmY+YyfZLcQjVyZ01Zmtlbw0ZZ0+N6ejj1ohN4pJ09/ekdazYFsWhKTMrHW1KmaWz FQXJ5/HMcqH6zxpCIjA7yyx1Em9nRgUWmlv3X4TT57wDlZz8u+cfe35W+kHTS4Va0Bt5 5mzdGGqi7h0Sq7IA5VnsTwL7q66G78LU3vfanY9RFdRCzgJKZ35tYJPNhQlKF3jsTzhI 8zYqhzvPHFuMAx+GyYh7g8QYjkfG+9DSMuz4GPMddvIphwAltO3AhRNtbPfN9JpG67uJ NJCQ== 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=45XKCB+qf+0jKliD9Sa20koRVq4XUB5Kq81Us0WndrE=; b=zN7KRv8YFQfv8k0NWiK7YfJdbzG5uzIjCXGLt8DBhLTMuhLyU4W1fCKX5kAVRtd1/s 4qqIci/T4rUDVtHRMysn/+2RIT+w99GTMP023WR+iX3AwVNKu9fbw2EMDnl5C5lvv7nu i847i2ySmaTog9z9awlufsp+o8cU7V6dQcreNLnyW8H/LunkY+orpKAMxtHxg/d74W3o LlfQ482F7WmO9IowaI1KtXtEPFjvzGEm5Hmdt9WV2rr0zYgvwwCXjEVbNp1/X494ZHRY 11t8y+8fw72P8nKgNUAVuwQ6ghzbq3r2lcE7NFZFzwti+UciC19DOUaXGLEjzCoG9H2p b9Hw== 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 d5-20020a056402144500b0046906b7a5c8si2883025edx.559.2022.11.18.16.41.26; Fri, 18 Nov 2022 16:41:52 -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 S235494AbiKSAh1 (ORCPT + 99 others); Fri, 18 Nov 2022 19:37:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234926AbiKSAgL (ORCPT ); Fri, 18 Nov 2022 19:36:11 -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 616738FE63 for ; Fri, 18 Nov 2022 15:43:24 -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 1owA7w-0008DB-E0; Fri, 18 Nov 2022 23:46:28 +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 1owA7r-0058DD-NL; Fri, 18 Nov 2022 23:46:24 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7q-00HazQ-I1; Fri, 18 Nov 2022 23:46:22 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 071/606] iio: cdc: ad7150: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:45 +0100 Message-Id: <20221118224540.619276-72-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?1749883040321446402?= X-GMAIL-MSGID: =?utf-8?q?1749883040321446402?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/cdc/ad7150.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/cdc/ad7150.c b/drivers/iio/cdc/ad7150.c index 1113745890ca..79aeb0aaea67 100644 --- a/drivers/iio/cdc/ad7150.c +++ b/drivers/iio/cdc/ad7150.c @@ -536,9 +536,9 @@ static const struct iio_info ad7150_info_no_irq = { .read_raw = &ad7150_read_raw, }; -static int ad7150_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ad7150_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct ad7150_chip_info *chip; struct iio_dev *indio_dev; int ret; @@ -647,7 +647,7 @@ static struct i2c_driver ad7150_driver = { .name = "ad7150", .of_match_table = ad7150_of_match, }, - .probe = ad7150_probe, + .probe_new = ad7150_probe, .id_table = ad7150_id, }; module_i2c_driver(ad7150_driver); From patchwork Fri Nov 18 22:36:46 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: 22843 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471972wrr; Fri, 18 Nov 2022 15:58:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf410dR1Ak5gIHy73ItKSyN1uvaZ+uw5d9o/eJonwK/jVxGIVaHJuHt8+GBBYYAOneffgJGS X-Received: by 2002:a17:906:1484:b0:7ae:6746:f270 with SMTP id x4-20020a170906148400b007ae6746f270mr909222ejc.728.1668815936865; Fri, 18 Nov 2022 15:58:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815936; cv=none; d=google.com; s=arc-20160816; b=Yn5ufKmpF3oU/3l5sp7qSA7mCmndwarnw8srf+jTV5DVxAaGM1ryPr4L7MKKPK7B6h n3fnc+G77l2h/xQ9bzy4bNrCHkXH8XLtWqXpTTvhvT8Zy0c0jFI9DS6uDv6RnLHudcRf 1Wq1yJJHLY9sz8VqkCFMwuC8pybJ8yx/OF3Kp7dfOfuObqDQWgvcSNJrUmAUoBfuyZtb 5sFl/oRQpY5Lmeh8e2EgqzAR5DRFsBfQ4dfjoO0AhK87iInfQ54wQxYHdbKw/oAs8ngQ hvIo4lzyIyPJ0Grwr0s825VdITZ7biQV9S8uHQqPN2WNPLzwlR+OBSIi3RfYV91cSzMq gf9w== 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=rF1MJiUA3is42DPmjT74bJ+3HlCNWO6x2rFfKI58SlI=; b=E4R4pbhOxPoZGoEtRo3+4CXz4VYZXBAZxLp7HazdUWbwqsb/hDpRAHnNZih2UMDJAX 22YTbYUv52X+synqaO2bqlDHHr5PDGulvo1aB4FRqjRzOebXsxWMC+CGzRz5sSlOWQE8 zpzDkOL/a/vLHk7bG0kM1TrUt3//gAidLOJNEmFA8NjxnG+tTE1H8fRUAkiZxFnqJuMM t3rq+r1mLmNU4N4Inxe9jWN/5ZlnMrUG627UYvtceEd6sQfacejBZAlbOjzYawrqbQ0R +tnXvEW7g66M9FltMmL8vuZ4VXPoPk2IymHB683c1rJVIxq3DBmyUrj1aXjzL02azywd XKvg== 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 c9-20020a05640227c900b00462ab8923ccsi4498050ede.600.2022.11.18.15.58.32; Fri, 18 Nov 2022 15:58:56 -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 S236893AbiKRXtn (ORCPT + 99 others); Fri, 18 Nov 2022 18:49:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236847AbiKRXsp (ORCPT ); Fri, 18 Nov 2022 18:48:45 -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 87E9FE932F for ; Fri, 18 Nov 2022 15:26:26 -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 1owA7w-0008Hx-UA; Fri, 18 Nov 2022 23:46:28 +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 1owA7s-0058DW-KQ; Fri, 18 Nov 2022 23:46:25 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7q-00HazT-Oi; Fri, 18 Nov 2022 23:46:22 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 072/606] iio: cdc: ad7746: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:46 +0100 Message-Id: <20221118224540.619276-73-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?1749880339916958062?= X-GMAIL-MSGID: =?utf-8?q?1749880339916958062?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/cdc/ad7746.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/cdc/ad7746.c b/drivers/iio/cdc/ad7746.c index b266f5328140..6f68651ce1d5 100644 --- a/drivers/iio/cdc/ad7746.c +++ b/drivers/iio/cdc/ad7746.c @@ -717,9 +717,9 @@ static const struct iio_info ad7746_info = { .write_raw = ad7746_write_raw, }; -static int ad7746_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ad7746_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; struct ad7746_chip_info *chip; struct iio_dev *indio_dev; @@ -810,7 +810,7 @@ static struct i2c_driver ad7746_driver = { .name = KBUILD_MODNAME, .of_match_table = ad7746_of_match, }, - .probe = ad7746_probe, + .probe_new = ad7746_probe, .id_table = ad7746_id, }; module_i2c_driver(ad7746_driver); From patchwork Fri Nov 18 22:36:47 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: 22594 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448321wrr; Fri, 18 Nov 2022 14:52:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf5UVotqJ2IR0cXRxxwznEazxn9ITej090tJuWlqxD+O55D8GQkC2R0GFUoQugZnM2ZBSIXk X-Received: by 2002:a17:90a:2dc3:b0:213:7f5:a972 with SMTP id q3-20020a17090a2dc300b0021307f5a972mr16141662pjm.159.1668811924029; Fri, 18 Nov 2022 14:52:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811924; cv=none; d=google.com; s=arc-20160816; b=b1vTidgLNVXzSkiGvdUIyaxMdCj3OtnnlyAw66SOiU5HpLdyv3TgbGRYBErgO2IdKz xREeI45PGdvBJgEqtCHj7SL4RAdnKtu9Aou0Z7jd6ww94RKBNxP5i7CUOAsZCjVVPgMo P2a8qIp35zxfi8XDDzfw6WKR6B2cjWc9iTuumbeGbXlK1QxK0SaiP0VovbkMeRPf3dp3 lkekoUllTp3ctTBkZWf4UyVDlcUzTDbDWl/nWcpI2/+JJRz+DVgpgiWpfujWzy4KlrY/ ppdMUnzRfKvUAlnsPDdC/qrCbG6ZLw6ztaUoB35x5pDmHB8NdiC2t8g8vPZouZn74y2K CnQg== 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=eowwGH0UhBEIZRwCF836nkxZfJl1TCdNf8a/L4pF8VI=; b=omCF7rqNAbTJVr278dHJ5LxnH0TTmu4IBOH9P3hwuDVEvfLGJ0uI8fn4NNophH/lLZ Cb+8uMED5uteqg1wP+mqLG7Jc4BQmpDvRZkGjQajq7EjsG5x1a5iT5tBlGrW+lZp4pl1 wCF/pkgPwyYKF+RMsaGJ2M+Sb/VT0dhsmuqyQ1zP6+3v9UxAN+xigQLiGhAtkZxMTzBl J6jhfeThWM6wIESat9sItgw8uejfORtZiIx+CTQfp7W5RDtkgBhCBT/2ImxEULJCTYrz xV7Xs8QegpFKeR5oy596fyfXfo2CdHVG0oV3M78TlWICFtIghLXW6pw2F72/nETUowIE c1mw== 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 y10-20020a170903010a00b00179c921918esi4349113plc.17.2022.11.18.14.51.51; Fri, 18 Nov 2022 14:52:04 -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 S233977AbiKRWvG (ORCPT + 99 others); Fri, 18 Nov 2022 17:51:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233150AbiKRWsb (ORCPT ); Fri, 18 Nov 2022 17:48:31 -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 79AC2B949D for ; Fri, 18 Nov 2022 14:46:50 -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 1owA7w-0008Hw-TT; Fri, 18 Nov 2022 23:46:28 +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 1owA7s-0058DU-K2; Fri, 18 Nov 2022 23:46:25 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7q-00HazX-Ve; Fri, 18 Nov 2022 23:46:22 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 073/606] iio: chemical: ams-iaq-core: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:47 +0100 Message-Id: <20221118224540.619276-74-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?1749876132046712694?= X-GMAIL-MSGID: =?utf-8?q?1749876132046712694?= 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/chemical/ams-iaq-core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/chemical/ams-iaq-core.c b/drivers/iio/chemical/ams-iaq-core.c index 97be3669c554..0a0fbcdd4469 100644 --- a/drivers/iio/chemical/ams-iaq-core.c +++ b/drivers/iio/chemical/ams-iaq-core.c @@ -135,8 +135,7 @@ static const struct iio_info ams_iaqcore_info = { .read_raw = ams_iaqcore_read_raw, }; -static int ams_iaqcore_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ams_iaqcore_probe(struct i2c_client *client) { struct iio_dev *indio_dev; struct ams_iaqcore_data *data; @@ -180,7 +179,7 @@ static struct i2c_driver ams_iaqcore_driver = { .name = "ams-iaq-core", .of_match_table = ams_iaqcore_dt_ids, }, - .probe = ams_iaqcore_probe, + .probe_new = ams_iaqcore_probe, .id_table = ams_iaqcore_id, }; module_i2c_driver(ams_iaqcore_driver); From patchwork Fri Nov 18 22:36:48 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: 23141 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488493wrr; Fri, 18 Nov 2022 16:46:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf6/0RnhqQD3RQr69b2Av8iytPXG9G1tQC7ItSlt0ty1tKSWaQsMB4YgaEBZLewcsuOgSBxE X-Received: by 2002:a17:903:2452:b0:188:edd2:317f with SMTP id l18-20020a170903245200b00188edd2317fmr1902097pls.127.1668818766932; Fri, 18 Nov 2022 16:46:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818766; cv=none; d=google.com; s=arc-20160816; b=DLj0b08ERuidbWX+ttYT5YLl1tnLGroqq+QDiNPSXXunS6DMHmdZdp6CU67lt3sXab hpA69Rq4a0VtEcYLeqPGYq62EeA/ev/VSaKFPlOdQhyqEH+xXKUglgKCpcfbeDWQ/9l8 KOrr2NsfIoWIvr+uJXmLoQ0grYi2PvPybDBPRtu2SBkAcAtVXub4g86lAJbFRgjJFg7d K4G5upt4Hff2TMY2QoYVZvqn16T4Q1r9/RYwJtSzFzlnU5qoGtKXHx0UMp2mmsa0ExPk FrBMrYC/At2s75DOfhFG9I8HeIKtz4yoq81xrGv5viJyZX2AORS6MhvjkqbYMzuQvI2l IVFA== 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=X99CUekQlMMfpXWTo6mSbuO9SRyuqLGGCoLd4yK/fC8=; b=bH9nJZz+MqTQjGUqJVxvj9RC/838WihJ/PWgWKJzss4+YI1TEKdR3r9rssuNcZq846 SDmYE3xw609gIEUsSbKbxvQ9zliHYn/wUn33joChcGFESQFMY1KFsRU1NeZQkLegQ3P8 7aNakt7/cWPlbmo6SgLxipQJu49L+sudm6eOAy743dpRDRb7RzD2RQk818yy8DkAdkak 8pZYw6nxBaoXHThAz8JlAveuMPmFrWJ0vqIP74Oa161XiQch3wrQ9aQufo4Uz9F/7Nzu kt7VhVJAFQjWhOoLgMIU1oKSbVFToJbPFTC6J9t4RNvUmxdoodspsGGBSmriuQH3jWWH zniQ== 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 d20-20020a056a00199400b005618039550fsi5243523pfl.271.2022.11.18.16.45.51; Fri, 18 Nov 2022 16:46:06 -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 S235896AbiKSAkr (ORCPT + 99 others); Fri, 18 Nov 2022 19:40:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233142AbiKSAjX (ORCPT ); Fri, 18 Nov 2022 19:39:23 -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 478CC240AB for ; Fri, 18 Nov 2022 15:44:28 -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 1owA7w-0008Cm-N4; Fri, 18 Nov 2022 23:46:28 +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 1owA7r-0058DC-L3; Fri, 18 Nov 2022 23:46:24 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7r-00Haza-6r; Fri, 18 Nov 2022 23:46:23 +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 074/606] iio: chemical: atlas-ezo-sensor: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:48 +0100 Message-Id: <20221118224540.619276-75-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?1749883307682092918?= X-GMAIL-MSGID: =?utf-8?q?1749883307682092918?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/chemical/atlas-ezo-sensor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/chemical/atlas-ezo-sensor.c b/drivers/iio/chemical/atlas-ezo-sensor.c index bbcf5a59c1f4..307c3488f4bd 100644 --- a/drivers/iio/chemical/atlas-ezo-sensor.c +++ b/drivers/iio/chemical/atlas-ezo-sensor.c @@ -201,9 +201,9 @@ static const struct of_device_id atlas_ezo_dt_ids[] = { }; MODULE_DEVICE_TABLE(of, atlas_ezo_dt_ids); -static int atlas_ezo_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int atlas_ezo_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); const struct atlas_ezo_device *chip; struct atlas_ezo_data *data; struct iio_dev *indio_dev; @@ -238,7 +238,7 @@ static struct i2c_driver atlas_ezo_driver = { .name = ATLAS_EZO_DRV_NAME, .of_match_table = atlas_ezo_dt_ids, }, - .probe = atlas_ezo_probe, + .probe_new = atlas_ezo_probe, .id_table = atlas_ezo_id, }; module_i2c_driver(atlas_ezo_driver); From patchwork Fri Nov 18 22:36:49 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: 22599 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448747wrr; Fri, 18 Nov 2022 14:53:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf5mkmppSFRrDUrkV8WTVEJA5pryqcJzypNVqMb0fcM9HD9fJxBCrdrQv4oNO/P0yBY2Tj/D X-Received: by 2002:a17:90b:3809:b0:20a:c64c:ae80 with SMTP id mq9-20020a17090b380900b0020ac64cae80mr10231133pjb.12.1668811996515; Fri, 18 Nov 2022 14:53:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811996; cv=none; d=google.com; s=arc-20160816; b=HltclxuEXLiDbtc4UeqV++o2FnoJ4E8UVEYccSObT9pdp5sSezsATPkgjFdqpXJwBr JCslV4J4dejemOBzOfV96PPTa9gOx49m1xaCZi6rwb5VzrV7+c07ZXeMIW7fJoDeletX OSEh7eBr/qXy4yhQlJqGji9X/Cb2dEkrPJOP6A6N+4YtXl55cT28SILSm+m98Z/nJywZ vm7MVZ/C473HjWGScWnZYHbaATmntHTt6m/TXBx3G52HwE4E0FsXi5YfHra+IWIDrkMk ubszogP8wC50/chjAlTryNVJaCjeWPcGgyOSOvQUgg6F+phxv2XKR0WVNpMt6SZSjDMK WGMA== 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=WUjGSET/v667BtsjWo9pAjBQMx6I6CxpIDJMOJKE/XU=; b=PYW3ZS/5befUm0E1W7st/Xwhceg8PQyEhF5lnisFaSYvL7q54Ap+gZ31g3nsKIj+N2 ARaU/0y5YMUAV0I+CmjxTM9BWMeyOVESFPlE+r45TFoxM35tWat2k0WaUJe7m6o3i4LA awlqIpgDqqaBPD2ieeBAaXlvRbnqlac/ddJ7HAJnLjzPnyjQYkSDoKOl6rAbelUihY3w YO5UapZa1RTh/nTCmojUdlcJD/cr0bHVuU6elI1ae1QCx06l2Jr711/lB/ZCvxlWE+lx cTD8JHvVSnQ8s74zJGYVcdeT4bDEYtE3ouDBAW2E2umfD7oI94F944EYjCBNOBQz1Gnw MBGg== 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 q12-20020a17090a68cc00b002187105ec3dsi4885603pjj.43.2022.11.18.14.53.03; Fri, 18 Nov 2022 14:53:16 -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 S234464AbiKRWw3 (ORCPT + 99 others); Fri, 18 Nov 2022 17:52:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234048AbiKRWwC (ORCPT ); Fri, 18 Nov 2022 17:52:02 -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 7B3AEBB5E1 for ; Fri, 18 Nov 2022 14:47:24 -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 1owA7x-0008Fi-0L; Fri, 18 Nov 2022 23:46:29 +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 1owA7s-0058DL-84; Fri, 18 Nov 2022 23:46:25 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7r-00Hazf-CW; Fri, 18 Nov 2022 23:46:23 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Gwendal Grignou , Peter Senna Tschudin , Heikki Krogerus 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 075/606] iio: chemical: atlas-sensor: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:49 +0100 Message-Id: <20221118224540.619276-76-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?1749876207755652798?= X-GMAIL-MSGID: =?utf-8?q?1749876207755652798?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/chemical/atlas-sensor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/chemical/atlas-sensor.c b/drivers/iio/chemical/atlas-sensor.c index 7cac77a931c7..024657bc59e1 100644 --- a/drivers/iio/chemical/atlas-sensor.c +++ b/drivers/iio/chemical/atlas-sensor.c @@ -608,9 +608,9 @@ static const struct of_device_id atlas_dt_ids[] = { }; MODULE_DEVICE_TABLE(of, atlas_dt_ids); -static int atlas_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int atlas_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct atlas_data *data; struct atlas_device *chip; struct iio_trigger *trig; @@ -767,7 +767,7 @@ static struct i2c_driver atlas_driver = { .of_match_table = atlas_dt_ids, .pm = pm_ptr(&atlas_pm_ops), }, - .probe = atlas_probe, + .probe_new = atlas_probe, .remove = atlas_remove, .id_table = atlas_id, }; From patchwork Fri Nov 18 22:36:50 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: 22595 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448359wrr; Fri, 18 Nov 2022 14:52:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf4W/kqu2kTJwfjgxv9T55XvJyC44bc1ZbcxPbaHotCLKS4JdIJ9WAWasrokqMuR8MXa9o/9 X-Received: by 2002:a17:90b:4b4a:b0:214:6fc:31cf with SMTP id mi10-20020a17090b4b4a00b0021406fc31cfmr15406576pjb.21.1668811932776; Fri, 18 Nov 2022 14:52:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811932; cv=none; d=google.com; s=arc-20160816; b=OYfXF6nf9xYgAq97T7gpMW0EIvSqEdNd0SePhzj+P/MRKDacIJspaOfiUI9cXx8DYJ 6hhepN8+dGygE89qslDoKck1ERFJqZHhKsY2ha30dsi4ke12rHoseGtcz4hd97tiOZqm KfVqP8M2GE7cN8kbtcQD5udzOXI48V6I5naNtc++oK1Sck0HjTg0q87mclSY2WGFem/O WT7EXAjHQXbNMHIkmNRw44Vx79Qr+G34VFyTxb2MZeZFFcVcYwitN/Ajp9Z0dCNhSCYF Vm0V15AzZyOAi2iXk3IdWc5JUq9J1Pu77JQbQL4DfX7MY1xrYAbRVOoFweRmFYdOo9NZ RLKw== 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=idG2Wwyp9bHhAUblgONWt/1hSMHNCPp677DtVNO3Kbc=; b=rPs+XZRNs0I4fNswPQTN0oy/FKMRq1XSxJjInKQ4WEVKLRPnr37rGmNpjYJkzHgQp8 QZhm6Llocqsn0H11QWSF2yqUzx5YU575KuV2I7t9RWlWvlBRHwiMuWI5OVPttgFiUmAU kQJgD8VUbhI5pqOLud6BAbGQtBZPb7W/gmlvuweYwvmzHNBlO9wswn9KDGVDNm2CftuD aRzj2guCUC4JVH+AjdzUerQ8AvkL8JDL56BCRtEoknK5pj4FSHSiDB3DMK0Pz4jT+OqZ iJzLyniml6a1ngrG9poATU0+3rxKcnp2zDSzyJNgK58RvWsbtZaVI4DWQ4DuTCyFiw8n +7Ig== 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 t73-20020a635f4c000000b00476f2af5510si4896819pgb.2.2022.11.18.14.51.59; Fri, 18 Nov 2022 14:52: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 S233478AbiKRWvJ (ORCPT + 99 others); Fri, 18 Nov 2022 17:51:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231961AbiKRWsy (ORCPT ); Fri, 18 Nov 2022 17:48:54 -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 C3ABDB9729 for ; Fri, 18 Nov 2022 14:46:51 -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 1owA7x-0008Nb-Hu; Fri, 18 Nov 2022 23:46:29 +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 1owA7t-0058Dt-S7; Fri, 18 Nov 2022 23:46:26 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7r-00Hazk-JO; Fri, 18 Nov 2022 23:46:23 +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 076/606] iio: chemical: bme680_i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:50 +0100 Message-Id: <20221118224540.619276-77-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?1749876141598111114?= X-GMAIL-MSGID: =?utf-8?q?1749876141598111114?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/chemical/bme680_i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/chemical/bme680_i2c.c b/drivers/iio/chemical/bme680_i2c.c index 20f2c20b6b02..61b12079858d 100644 --- a/drivers/iio/chemical/bme680_i2c.c +++ b/drivers/iio/chemical/bme680_i2c.c @@ -17,9 +17,9 @@ #include "bme680.h" -static int bme680_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bme680_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct regmap *regmap; const char *name = NULL; @@ -52,7 +52,7 @@ static struct i2c_driver bme680_i2c_driver = { .name = "bme680_i2c", .of_match_table = bme680_of_i2c_match, }, - .probe = bme680_i2c_probe, + .probe_new = bme680_i2c_probe, .id_table = bme680_i2c_id, }; module_i2c_driver(bme680_i2c_driver); From patchwork Fri Nov 18 22:36:51 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: 22739 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464825wrr; Fri, 18 Nov 2022 15:35:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf6QV6cJRiay/CigKLDh60xRfSMHi8/CUNB4knGLwP3NFWLf3erjr2HCOCsS3HwBlUlW9SJY X-Received: by 2002:a17:906:4a8d:b0:78d:a4ca:32df with SMTP id x13-20020a1709064a8d00b0078da4ca32dfmr7524629eju.686.1668814550258; Fri, 18 Nov 2022 15:35:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814550; cv=none; d=google.com; s=arc-20160816; b=zIqArONAqSYcja0X2gOT2qvKfkGey8eN5E+jNYaDzzVdk26GnjZ/zr3O7zf/6pxz6t kAOUX6rwLzJzXh6a1RSatPuTi4p99NBDDZh4HGTNJYR0UCVajV71ta4nG8A6GG/AyN2n s8Y4IXaO8s4MRaciEo74aXi/z4GZYsFNetCg+KzbLFzNVEZOWUIQlTjeCpyxJGwlhcZr 2dktTqcEXyinQc0H7jlivrVZto7WAxasyMENJ+kBjT5SUEDVGgZiQg58MuA9NJ1wUghx ZJSlkyGedjBZoLMGZi1GiPto8DxQnL0s+0+5nSHXd5rl+GzwAdc3tXbxfM8F+Mojgj7Q r2Vw== 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=if6Hz8eTbc4M63er/Kv12dY8kXibV64usEYTqJCCW7s=; b=tcqbaUFx0N9eJ2+NgfzOJr/sXDb4zu/hVREZ9zMMJNee6PqdVANlTTptw2nBLQkiER q642gdI513eMBG/t7RolgZ1jbqSBYa/b7hu10NdiUnbJeKXF68+tD8G4smaUOR/KKhQn pzWcah8JnSEGYQnvVaeJtMjQ7I8ZviCj5lglHq+qeeoXhRKPcdCg+XbpUCbhmQ7Bhh7+ wmAa408Fipl5Jf8AN6NimkIF5WyViBUQ6z7FQHK5I2GAzPwJ7iRRDmmMfR/u6S8m7Nl7 H2sNyQrEr04IjYWibUABVBzwXAMEFI78H1MJLzsIaVzbkWTefE0YgDD5ulgMaWuWaTHt CG9w== 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 xe14-20020a170907318e00b0079b40c09982si4146399ejb.340.2022.11.18.15.35.26; Fri, 18 Nov 2022 15:35:50 -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 S236271AbiKRXen (ORCPT + 99 others); Fri, 18 Nov 2022 18:34:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236070AbiKRXbm (ORCPT ); Fri, 18 Nov 2022 18:31:42 -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 8EE7094A53 for ; Fri, 18 Nov 2022 15:19:10 -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 1owA7x-0008KA-BR; Fri, 18 Nov 2022 23:46:29 +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 1owA7t-0058Dh-1T; Fri, 18 Nov 2022 23:46:25 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7r-00Hazo-Pr; Fri, 18 Nov 2022 23:46:23 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , =?utf-8?q?Marek_Beh?= =?utf-8?q?=C3=BAn?= , Luca Ceresoli , Dmitry Rokosov 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 077/606] iio: chemical: ccs811: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:51 +0100 Message-Id: <20221118224540.619276-78-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?1749878885724773531?= X-GMAIL-MSGID: =?utf-8?q?1749878885724773531?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/chemical/ccs811.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/chemical/ccs811.c b/drivers/iio/chemical/ccs811.c index ba4045e20303..6ead80c08924 100644 --- a/drivers/iio/chemical/ccs811.c +++ b/drivers/iio/chemical/ccs811.c @@ -401,9 +401,9 @@ static int ccs811_reset(struct i2c_client *client) return 0; } -static int ccs811_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ccs811_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct iio_dev *indio_dev; struct ccs811_data *data; int ret; @@ -567,7 +567,7 @@ static struct i2c_driver ccs811_driver = { .name = "ccs811", .of_match_table = ccs811_dt_ids, }, - .probe = ccs811_probe, + .probe_new = ccs811_probe, .remove = ccs811_remove, .id_table = ccs811_id, }; From patchwork Fri Nov 18 22:36:52 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: 22774 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466002wrr; Fri, 18 Nov 2022 15:38:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf58Jmr37YwCJFDrzG6+azhY+8AuNUrXz4/KFWp8KlLWogNW6ArlIlUR85CVc14vjUDkvbay X-Received: by 2002:aa7:cd91:0:b0:469:2f36:fd with SMTP id x17-20020aa7cd91000000b004692f3600fdmr2553906edv.385.1668814733875; Fri, 18 Nov 2022 15:38:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814733; cv=none; d=google.com; s=arc-20160816; b=ZkBUFC/B0KoIMVSS5EMa7TGCgOQKiIaoxjWEmhgzLSG3erSwARFYWXToB0EZGJm5fD Zfvjv4iNBNd5UbzR2qyjMB3hw7Z+V9ca0fvJAvKlVf1KNrP7oEMHKm0/0iaXBXbXccBy E6+XdO8Bnsr8/ryUz7SCNN8/cju90NDYGo/wJOfbef9O4V7i7dE8HukcyBS5c/ql1ShE CF+elXQBXjRM0VWMdgv18RxPrkxaKD4h0qD5y7tt0Igv8kH7D13EzApb/ET+1D+yLv1C mpAljDnzfeWXZ6TkJGhE5PkGO6LGqu8Js5NIqK1Mz3/H8mcxKFZr+XI4J7hSKd8Jo4MA 7eyA== 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=ftDnZlC33CcF81IegFhuhJB6iYsRsp6mlr+o7UVsRCM=; b=rvCDYKDxbqqxHzKqXUDvAZfdLEOCUGhikdrQCP0Tg+R0jK0tVY2tSch3DhCaBjNjBX PDMHWZDpBb4+J47ZYsfonYz0yme/MecDd5HhbJ5+uCutjQ20EBROeYRR9VZBzeNUUIBz thNZvL5pP3CilvlAmeELewqx5+Qp24GCRFwtgo25WW7DebkMXQZ65y52sWOQPhh4PnlF X6Ejn7jP4Sm9WWjqSeAhVDb109ZOv/GM+XOCsMiSxLZE+grBrNk6GEFVF6g5ZYN9xL76 n4Y4TKQf00VoqebNkgUd1pBVnkEt59U23RVSAUkFjbbdpeeFivhOz2nd0yOvLFwpJGaO jLxw== 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 gn42-20020a1709070d2a00b007ada3808562si4361420ejc.737.2022.11.18.15.38.28; Fri, 18 Nov 2022 15:38:53 -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 S236536AbiKRXhL (ORCPT + 99 others); Fri, 18 Nov 2022 18:37:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236442AbiKRXdA (ORCPT ); Fri, 18 Nov 2022 18:33:00 -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 8B52D881A3 for ; Fri, 18 Nov 2022 15:20:56 -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 1owA7y-0008Py-BQ; Fri, 18 Nov 2022 23:46:30 +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 1owA7u-0058EF-FQ; Fri, 18 Nov 2022 23:46:27 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7s-00Hazr-0j; Fri, 18 Nov 2022 23:46:24 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Roan van Dijk , 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 078/606] iio: chemical: scd4x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:52 +0100 Message-Id: <20221118224540.619276-79-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?1749879078407876346?= X-GMAIL-MSGID: =?utf-8?q?1749879078407876346?= 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/chemical/scd4x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/chemical/scd4x.c b/drivers/iio/chemical/scd4x.c index 54066532ea45..f7ed9455b3c8 100644 --- a/drivers/iio/chemical/scd4x.c +++ b/drivers/iio/chemical/scd4x.c @@ -615,7 +615,7 @@ static irqreturn_t scd4x_trigger_handler(int irq, void *p) return IRQ_HANDLED; } -static int scd4x_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int scd4x_probe(struct i2c_client *client) { static const unsigned long scd4x_scan_masks[] = { 0x07, 0x00 }; struct device *dev = &client->dev; @@ -690,7 +690,7 @@ static struct i2c_driver scd4x_i2c_driver = { .of_match_table = scd4x_dt_ids, .pm = pm_sleep_ptr(&scd4x_pm_ops), }, - .probe = scd4x_probe, + .probe_new = scd4x_probe, }; module_i2c_driver(scd4x_i2c_driver); From patchwork Fri Nov 18 22:36:53 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: 23071 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486978wrr; Fri, 18 Nov 2022 16:41:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf4klAkvWIJ5Djk7iafLL838rnatOXMqrol8bEJwFu5ukM9LFw5DNlApdkBZRa+i7anizCbC X-Received: by 2002:a17:907:a803:b0:7ae:bfeb:f484 with SMTP id vo3-20020a170907a80300b007aebfebf484mr8114626ejc.174.1668818504281; Fri, 18 Nov 2022 16:41:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818504; cv=none; d=google.com; s=arc-20160816; b=g1UZKdVc+T7YqdR1/ByKELRqcrK8OpaDv+gQy/+9rcbiGxj4x9qQFPE85ivvwQ6Vh3 V6QpxQLoATlpQbifC8wACatAiDR2en4rUkHvNk68WLNfSp716ZQ0vorttBbjj1WE12WQ J/cxOSYpU/CisjuO1hkwnqc9GrbNeQl5ROOXwpq8+p5Y+SmCKk4JhSHjxdpBpBw7zh5z kW85E27XzoKmy1zDegsNow3rCupnz0dOALpmnVPcyFUReCDWp1+ZdU3pWnN95/Xymfml 93yUlnB1wNeCICe8RTwqx2BP7wlk9NG3MIPaJKoiDvvn7g4XX/Y+sjkGt7P21rD/LLmP 7zHg== 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=cDbxt78FncIZOIXXjCwo3x6iFRG/wWMEH18tNxRRRUI=; b=QUGMYwgG8WaVo1V+V5kSZeeyC7b7zU7wDqpd5xeB20/C2dId9L1LeW6IwPBzSglNYz C1nIE0BMFw0HjINJA2WYtSh6GbVL2m8ThwCA5G5AKO+cN2EbwtW04+3joKfts/+1G7CR QbnsHf3fJnM32Wk6bnlCv8BilIe+h+N0ZU1HFtFWXNfLnoJzBN9Ifvcay2G1O5NeKsER Ucu44K42whZgqYlT2L2jGv2EaXSHyp2LQ2G3rMkG5y9WcutuhyWGflNnmn3G9Fc0Ut6Y mYdrjFq5JdRUHQSOsV045NdT7gO+5WupuVj38SPLJv8+XErUb/TIXriirQVJ1UbnqQ5P ovKQ== 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 m10-20020a056402430a00b0045c98bb5359si4920820edc.590.2022.11.18.16.41.18; Fri, 18 Nov 2022 16:41:44 -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 S232755AbiKSAgr (ORCPT + 99 others); Fri, 18 Nov 2022 19:36:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232306AbiKSAfx (ORCPT ); Fri, 18 Nov 2022 19:35:53 -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 304708C4BC for ; Fri, 18 Nov 2022 15:43:20 -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 1owA7x-0008JN-Hm; Fri, 18 Nov 2022 23:46:29 +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 1owA7s-0058Dc-Ts; Fri, 18 Nov 2022 23:46:25 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7s-00Hazv-8S; Fri, 18 Nov 2022 23:46:24 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Corey Minyard , Adrien Grassein , Miguel Ojeda , Hans Verkuil 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 079/606] iio: chemical: sgp30: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:53 +0100 Message-Id: <20221118224540.619276-80-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?1749883032387645216?= X-GMAIL-MSGID: =?utf-8?q?1749883032387645216?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/chemical/sgp30.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/chemical/sgp30.c b/drivers/iio/chemical/sgp30.c index e2c13c78c7e0..9d0c68485b63 100644 --- a/drivers/iio/chemical/sgp30.c +++ b/drivers/iio/chemical/sgp30.c @@ -496,9 +496,9 @@ static const struct of_device_id sgp_dt_ids[] = { { } }; -static int sgp_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sgp_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; struct iio_dev *indio_dev; struct sgp_data *data; @@ -575,7 +575,7 @@ static struct i2c_driver sgp_driver = { .name = "sgp30", .of_match_table = sgp_dt_ids, }, - .probe = sgp_probe, + .probe_new = sgp_probe, .remove = sgp_remove, .id_table = sgp_id, }; From patchwork Fri Nov 18 22:36:54 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: 23151 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488999wrr; Fri, 18 Nov 2022 16:47:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Pf05m8WlRGKTGWReZdkzLxUX4F6X5Hdb1MT5O+sOb8pgaIUdGAqnJmcYo/vu3rp1NPQVt X-Received: by 2002:a17:906:6bda:b0:7ae:4a7f:3281 with SMTP id t26-20020a1709066bda00b007ae4a7f3281mr7620753ejs.50.1668818860945; Fri, 18 Nov 2022 16:47:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818860; cv=none; d=google.com; s=arc-20160816; b=dObXsE11Td8W7UGCYiBaMaUH8Z3OQxgQ2ap8Ho5Z8c5ThUpYnAWzGDuxjLjraikbq9 3xehddlEcE912f8x12XQLnzwOCm8DhCIXQgDLd4eGySby7PnW9pUoLFxEPccoD8Mzkep +hFc0VxXEnpC3x0Inc4/fj7Vkqbq0Yz2J4kAyxtxEYywPl0VQQal7ffl0ieER0Y1touH 8/a5tkPtQlHfUtcSdDadCXndIE3ZUmFrSiPy3Mc6u0E6dmmKPLrnsn/jtl6VvIWRbjMa xFJyFswhNiQP7qzsFGjDwomYB7du5/w/VBoBLS43i14I9RIyaCqyNYC8nuUmAOx753bR VyJg== 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=dIlLOCf0fplX+UOxSAgYpvLYSa0sFHBWyW4BoT0pZhw=; b=T02DrIAZ5nspH7xe3Y6ExuJKdH1Eig18i5aXZI8DEUTv7MkqbRo3cPO70NCUlm0M28 w7Vo5VCs4CMz2ksQ6vRy6I+u150vV4XJtp8HnIUwqc1fhQ0j9oi2AItZXL4/E2Z1EwBX a6ud+8rZrIITLk4mfwPff1S30EOjqeIaZslKFZEzsBCHp8gtNOQXoDilmKqIZFqJ8Qro WzORJNiizOnzwnzNoK+SkMa9HNwAIq7Ckay89KXw76izQP83zesXM8BFqLstlKgQfrRO wUzgW5YLpErHksLIvxC0wVAHiJ/GYBwI7APBangOSA4QKdGoJEmZuOK05DH6Mlrt4meJ ElVQ== 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.47.16; Fri, 18 Nov 2022 16:47:40 -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 S232201AbiKSAlt (ORCPT + 99 others); Fri, 18 Nov 2022 19:41:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236550AbiKSAkG (ORCPT ); Fri, 18 Nov 2022 19:40:06 -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 760EDC76A9 for ; Fri, 18 Nov 2022 15:44:42 -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 1owA7y-0008RU-Qo; Fri, 18 Nov 2022 23:46:30 +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 1owA7u-0058EN-P4; Fri, 18 Nov 2022 23:46:27 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7s-00Hazy-Fl; Fri, 18 Nov 2022 23:46:24 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andreas Klinger , 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 080/606] iio: chemical: sgp40: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:54 +0100 Message-Id: <20221118224540.619276-81-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?1749883405682820371?= X-GMAIL-MSGID: =?utf-8?q?1749883405682820371?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/chemical/sgp40.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/chemical/sgp40.c b/drivers/iio/chemical/sgp40.c index 8a56394cea4e..c0ea01300908 100644 --- a/drivers/iio/chemical/sgp40.c +++ b/drivers/iio/chemical/sgp40.c @@ -311,9 +311,9 @@ static const struct iio_info sgp40_info = { .write_raw = sgp40_write_raw, }; -static int sgp40_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sgp40_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; struct iio_dev *indio_dev; struct sgp40_data *data; @@ -368,7 +368,7 @@ static struct i2c_driver sgp40_driver = { .name = "sgp40", .of_match_table = sgp40_dt_ids, }, - .probe = sgp40_probe, + .probe_new = sgp40_probe, .id_table = sgp40_id, }; module_i2c_driver(sgp40_driver); From patchwork Fri Nov 18 22:36:55 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: 22778 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466075wrr; Fri, 18 Nov 2022 15:39:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf75YXDy0GkvOPoPDQJJ96RGKw+DGK/Tp2Mp3VnFWu7V6OpVEIItTSFc/eXwf7ZE5v+figsk X-Received: by 2002:a17:906:a58:b0:7ad:b45c:dbca with SMTP id x24-20020a1709060a5800b007adb45cdbcamr7905758ejf.388.1668814744872; Fri, 18 Nov 2022 15:39:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814744; cv=none; d=google.com; s=arc-20160816; b=Ym5QAYajV53a+pJD4mbiPpubhexK1cnWwO8fsqp+qxX+FaTGp/r4soDj/iG8beX7oK Ok+SOga3g7rJu6HCgxxHVgglCGHaSTW9Qse2IY1A0ZtFKOfQXfe04Ce5ddG+oECWdGxa ujKlH3CNK+QcZC7EsIumDbJKrzVRL7OrtM3hCZCFwnoCMyaqF/yXYBujzRuM7MIq0rLI mVoyqX5WrlQe5LIiFOrIqQjDgyX2k7Q34OOVSrMhdbXv2lt6/fPf6cM4SHuYDdE4SWig H8pfLwGzJEZJS9nFEsp1aQsNcigJaxwy9h2ou8S8VXzjdlL0uga2GsqJ0BptgkT4hvrq aDTg== 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=Zr3Rfc6H2pqHicrbu0kxH66+CC4c24khau9NagfwYxg=; b=TFMh2sE+GNZ065xvBI10IkrAao+Tf/uPbcyMes1JDWFGwlOWUIjoqvLo6Gz4RhaHoB qHMXvD0Yl3iSHZGq5BYYsTzqNKFEyxCiUEk2hmBtgfLepJ9fHvAqjBhnDoEz5oV5FRAD GxTh8sqojlgL2M4gcrWh/G3TYxVraHdb/uz30KQ6DtikItJKgN/0pVAFqxephuMsdmOC HYcX/YNJsujMarr3ry1H3aZa9eslGDh1ZFVgC7quc44XIqEpiuneRjO1P/ZIo5UbEUg0 PVnaNi/oB0nE528ZSigXueNAdlG6c5METBkCpnZsoYq89ZYO+rPrEFwQuL/9MdsUz31j sImw== 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 x12-20020a170906134c00b007a0b28c324esi3181762ejb.1008.2022.11.18.15.38.38; Fri, 18 Nov 2022 15:39:04 -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 S236613AbiKRXhW (ORCPT + 99 others); Fri, 18 Nov 2022 18:37:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236463AbiKRXdC (ORCPT ); Fri, 18 Nov 2022 18:33:02 -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 833D14F182 for ; Fri, 18 Nov 2022 15:21:07 -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 1owA80-0008UZ-4z; Fri, 18 Nov 2022 23:46:32 +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 1owA7v-0058Eh-ER; Fri, 18 Nov 2022 23:46:28 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7s-00Hb02-Mo; Fri, 18 Nov 2022 23:46:24 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 081/606] iio: chemical: vz89x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:55 +0100 Message-Id: <20221118224540.619276-82-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?1749879089673778315?= X-GMAIL-MSGID: =?utf-8?q?1749879089673778315?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/chemical/vz89x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/chemical/vz89x.c b/drivers/iio/chemical/vz89x.c index e7e1c74a351e..d4604f7ccd1e 100644 --- a/drivers/iio/chemical/vz89x.c +++ b/drivers/iio/chemical/vz89x.c @@ -348,9 +348,9 @@ static const struct of_device_id vz89x_dt_ids[] = { }; MODULE_DEVICE_TABLE(of, vz89x_dt_ids); -static int vz89x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int vz89x_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; struct iio_dev *indio_dev; struct vz89x_data *data; @@ -402,7 +402,7 @@ static struct i2c_driver vz89x_driver = { .name = "vz89x", .of_match_table = vz89x_dt_ids, }, - .probe = vz89x_probe, + .probe_new = vz89x_probe, .id_table = vz89x_id, }; module_i2c_driver(vz89x_driver); From patchwork Fri Nov 18 22:36:56 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: 22716 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp463342wrr; Fri, 18 Nov 2022 15:32:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf42SciDhc/M4rx4V3h+MDmNHR7+Pgm2uVYTZpd7ms44dPT24WUyMEjx1+xd6dJkqJkgNN/B X-Received: by 2002:a17:907:75f3:b0:78d:b046:aaae with SMTP id jz19-20020a17090775f300b0078db046aaaemr7546100ejc.218.1668814331755; Fri, 18 Nov 2022 15:32:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814331; cv=none; d=google.com; s=arc-20160816; b=K9bZL4ioOZKEJN8hj4+nlCWjSYN/HGCPG/tHiP5IOZFuynNG1OdtuSzmoxuFy3uobf 8MDGefbGFrBfFBuefkuor99ipF44rPlruoA+4BZ/5sEbVaE33V6NEvAB+wnVQGzcYzpL piZV5SdDe6ebOcwg3Rr/IxYbZdkAiW+kHaosVtG89JW6uXkvdtdM7iEmz7MaWvJeT144 DiHwYLJdQM8tqCldAwzdZduhXYBR431YPIT6ChMgguDi6PpdHc9Ob1KBYdyhf3n5MS0g qtjCVcDvJOtAxontb4rUMom2JK3ItiGIxkr3QRSWWCphLmreBbflyRnmLIUrKIKA4RN9 0HAA== 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=yWIrvELob0cqcarM62D8ic323Z4AXclHlAHbDpzIS9o=; b=bjwznIDl72/7nJV17CK0d1vOJnoZ8opdMFF6DVAuJGCz48raA6BnZTXMSkl6xAAldH tJ8Inkscbq3AQFKy7L+d2LvDWlCVrhdllKDMyyji1gg/gkIExegomvxFVgty35nJJ3CY 1VT38iHnw/1xJfKaWP6vDZ5ENzv59d7syW/4pinrLU1iHlzlbCrBck/N8MjZio62Bgs6 m6VFtUpj6QgtvLCTuEt+7Xu9RbN7aVjqqy5Df34BSTk5QqXB5wW1dG+q0YKiDF/19fk9 5zvMeTc/7cv1qs2NvXyMACg2qpLSR2WW5XZciPV1LH4E4MdGC9eR+W/XVFpyFrHjJIiD jsNw== 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 xg12-20020a170907320c00b007aeff3b0b17si4503026ejb.674.2022.11.18.15.31.47; Fri, 18 Nov 2022 15:32:11 -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 S236026AbiKRXbG (ORCPT + 99 others); Fri, 18 Nov 2022 18:31:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235872AbiKRX3j (ORCPT ); Fri, 18 Nov 2022 18:29:39 -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 ED6A56DFE8 for ; Fri, 18 Nov 2022 15:17:47 -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 1owA7x-0008M4-Ee; Fri, 18 Nov 2022 23:46:29 +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 1owA7t-0058Dn-Gm; Fri, 18 Nov 2022 23:46:26 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7s-00Hb06-Tp; Fri, 18 Nov 2022 23:46:24 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 082/606] iio: dac: ad5064: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:56 +0100 Message-Id: <20221118224540.619276-83-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?1749878656747921336?= X-GMAIL-MSGID: =?utf-8?q?1749878656747921336?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/dac/ad5064.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/dac/ad5064.c b/drivers/iio/dac/ad5064.c index 4447b8811827..f01249c1ba93 100644 --- a/drivers/iio/dac/ad5064.c +++ b/drivers/iio/dac/ad5064.c @@ -993,9 +993,9 @@ static int ad5064_i2c_write(struct ad5064_state *st, unsigned int cmd, return 0; } -static int ad5064_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int ad5064_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); return ad5064_probe(&i2c->dev, id->driver_data, id->name, ad5064_i2c_write); } @@ -1056,7 +1056,7 @@ static struct i2c_driver ad5064_i2c_driver = { .driver = { .name = "ad5064", }, - .probe = ad5064_i2c_probe, + .probe_new = ad5064_i2c_probe, .id_table = ad5064_i2c_ids, }; From patchwork Fri Nov 18 22:36:57 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: 22914 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472935wrr; Fri, 18 Nov 2022 16:01:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf59Y+9cw4bFMS4+ewrOPEFV/x/zop/gcNa4tmavcLd3PeZaGOdBMRa2+1T7w+hOQACCiGED X-Received: by 2002:a17:906:eb19:b0:7ad:d7a5:6c2a with SMTP id mb25-20020a170906eb1900b007add7a56c2amr7845197ejb.138.1668816070196; Fri, 18 Nov 2022 16:01:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816070; cv=none; d=google.com; s=arc-20160816; b=eWtAw5DR6/gl7YObenQkxAFhZxZTaB7bzlz1RWQWT3KBIHqL/TR4E/5RI/THzUWwKp Bt5F9Nej2a2z2JxlNR1eSRqgIffh6zLvhzC/L128D7C8mH/w+9U42+WUicL87Q3PzHea 5Wlz7HoNQrpts0zeNB5yLXe9bX9MOuylPuYeXFOVhWAG9SlPMMNx+eVzkS6LcB8gNDNv 3DBnwyoBVIgSoDe24RgJLEWSbHIPAg8YUU8DUEtcmX/LWEWQ106jZEUupFyjeESyQRBR vZK+khs/56mBu2N8VeOIZHQpEgSDKSMfrwhm7lGXaEl1XO86THg24M1NddZ9fVcPMVwX SpxQ== 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=useNI+8nL+dKz63PCrqLm1FSS/0sMxuL2pGzyoKuY0M=; b=ScrWijc6fyPXSHQIPMs7JOSvH0P9epF/wDW+Y1OnlA/T2N3txpgo/Ula0uDdxgbSCQ U0FSLsE8DhVNGdApugfH7RPVH0elWcARdSBAwfshWB8BYiWvuqRuOxM8+gs9V1T118eI dyGDzRPsp0u6c4Z08UKJr1z+FiXOhk5SJuLZdMg1jq4qNcKQAZN4BOQUmWEwjPj3r/mn oE8S4FjMnqx1m/oAP6nOHVdRPDnwlTLsM7YqTfcWP9jG03KmF3FDV8lPs6x9mca+l1XG AFoQJSvr4LReEYpbT/OH0QFovEyhAGf8gnWfpbZIXoN2nd1u9NfVYDZdBVgzdc6Trc/Z NVRw== 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 g13-20020aa7c58d000000b00461c9edc3a5si3935902edq.77.2022.11.18.16.00.45; Fri, 18 Nov 2022 16:01:10 -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 S230076AbiKRXzs (ORCPT + 99 others); Fri, 18 Nov 2022 18:55:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237095AbiKRXyO (ORCPT ); Fri, 18 Nov 2022 18:54:14 -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 B93EFBE240 for ; Fri, 18 Nov 2022 15:27:52 -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 1owA7y-0008O2-2k; Fri, 18 Nov 2022 23:46:30 +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 1owA7t-0058Dw-V5; Fri, 18 Nov 2022 23:46:26 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7t-00Hb09-4Y; Fri, 18 Nov 2022 23:46:25 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 083/606] iio: dac: ad5380: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:57 +0100 Message-Id: <20221118224540.619276-84-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?1749880479935123960?= X-GMAIL-MSGID: =?utf-8?q?1749880479935123960?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/dac/ad5380.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/dac/ad5380.c b/drivers/iio/dac/ad5380.c index a81bfa47a221..64b4519f8f5e 100644 --- a/drivers/iio/dac/ad5380.c +++ b/drivers/iio/dac/ad5380.c @@ -546,9 +546,9 @@ static inline void ad5380_spi_unregister_driver(void) #if IS_ENABLED(CONFIG_I2C) -static int ad5380_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int ad5380_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct regmap *regmap; regmap = devm_regmap_init_i2c(i2c, &ad5380_regmap_config); @@ -589,7 +589,7 @@ static struct i2c_driver ad5380_i2c_driver = { .driver = { .name = "ad5380", }, - .probe = ad5380_i2c_probe, + .probe_new = ad5380_i2c_probe, .remove = ad5380_i2c_remove, .id_table = ad5380_i2c_ids, }; From patchwork Fri Nov 18 22:36:58 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: 22600 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448858wrr; Fri, 18 Nov 2022 14:53:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf7VYiYf5qSEVebmFsw6GKHrpfA4TuD85k8MRwZMEmoZgs74SJsOK4V8KEIuTMfhOIQ57POo X-Received: by 2002:aa7:9546:0:b0:562:5026:b136 with SMTP id w6-20020aa79546000000b005625026b136mr9868567pfq.84.1668812013023; Fri, 18 Nov 2022 14:53:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812013; cv=none; d=google.com; s=arc-20160816; b=YCMd2e3sIjl/wKHbTWesPr4v8ufT2JPA6ugN9WN5ZXEMA11yZb8ycMADU8Bctj7g74 p+L6WK/Xs+6gnIXQCYsBc9XshXlSEKGOij4GQwaRlgkBkqWektWmvIrTYYN7YsrvrBZZ 21U8auobHVh3Uja+APmwJaRjMTCjatl3zEvlY7QM519BBFUujphTEfhyTXHLTCWDtn5F CNdSylufJOqfZDMoU/7O5JwEgNvs1bwRzPiW2uFf+HnxTEj72WM/qD35meW2wvyodhR5 COqNIGepWVCTv/YYwHIZlmmGKtkxSNKVmnwBNUG57x+JVI854iOd3pwGhYfZFjMLQlET UAvA== 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=dauKZ9A84M2KF+USPJYvzYxN5ckBVxZHn+x3ejdGB2I=; b=j/Prpzi71o6lyDB8wdVvHhmi/4frnlHFUr/i3Uezb8c8UYOGzqGyoat9cbxGvig15Z OUk1wnkLJzp0asVdKwcKE15vUOQFQgFGP5PD7qXPG8reSEOItPZwHZ6QZ42qRTmUUjKF ZjoOxZ3pJ13KqyxPr73OzB0HeKhy7b760aH8JSZ7NAF9jomTK6nidD5DAxb+zQWS5Y1P qhG1ZdmmgEUbYe/qeXl6V+huzYpPQXhfIP6xBOWmUTD3G4GHbi6rjm5fO/dn3HXe2K4x IcjcuYT/2FoEe4v1qvuJYbAOKd/Hokg5ifhxyhoplJa/Lo9lUdcTkjCoL8nlxpm3MfW4 +G6A== 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 x2-20020a170902ec8200b001781e393237si5348059plg.443.2022.11.18.14.53.20; Fri, 18 Nov 2022 14:53: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 S233125AbiKRWw5 (ORCPT + 99 others); Fri, 18 Nov 2022 17:52:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232615AbiKRWwY (ORCPT ); Fri, 18 Nov 2022 17:52:24 -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 B1CFFBCDC4 for ; Fri, 18 Nov 2022 14:47:32 -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 1owA7y-0008Ny-3p; Fri, 18 Nov 2022 23:46:30 +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 1owA7t-0058Dv-UJ; Fri, 18 Nov 2022 23:46:26 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7t-00Hb0D-Bx; Fri, 18 Nov 2022 23:46:25 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 084/606] iio: dac: ad5446: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:58 +0100 Message-Id: <20221118224540.619276-85-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?1749876225000075354?= X-GMAIL-MSGID: =?utf-8?q?1749876225000075354?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/dac/ad5446.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/dac/ad5446.c b/drivers/iio/dac/ad5446.c index 7324065d3782..aa3130b33456 100644 --- a/drivers/iio/dac/ad5446.c +++ b/drivers/iio/dac/ad5446.c @@ -568,9 +568,9 @@ static const struct ad5446_chip_info ad5446_i2c_chip_info[] = { }, }; -static int ad5446_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int ad5446_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); return ad5446_probe(&i2c->dev, id->name, &ad5446_i2c_chip_info[id->driver_data]); } @@ -595,7 +595,7 @@ static struct i2c_driver ad5446_i2c_driver = { .driver = { .name = "ad5446", }, - .probe = ad5446_i2c_probe, + .probe_new = ad5446_i2c_probe, .remove = ad5446_i2c_remove, .id_table = ad5446_i2c_ids, }; From patchwork Fri Nov 18 22:36:59 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: 22672 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp461283wrr; Fri, 18 Nov 2022 15:26:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf6N52hgZO0aoHm0hJwrO1FTxGDsDA3OULiaeiSkZnDWRSj+DxTPEmN9/TND5S56aSr327DP X-Received: by 2002:a50:ed0a:0:b0:468:ff2d:def8 with SMTP id j10-20020a50ed0a000000b00468ff2ddef8mr5594512eds.399.1668814002716; Fri, 18 Nov 2022 15:26:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814002; cv=none; d=google.com; s=arc-20160816; b=prKoUuiyaD3O7c5ZGJo08E8CQo890vV3UL87yUvLU/WnnIPklLR6XKJyjt5FYgAUO2 fAb0dwrdzr+mCCJ6O8px/VFbPNikmOFVUalmsuLg4B1CE0hTbPumcpO8BHPegmwx+Bwh RIc3wIQq6ry/iuUk4QHaiZ2uJFFldYmnEkt39cFS81GhxMffoMGOGujwO+vWvcXpqqNn yQaBdeNeC81zVejDWydx3D1dRnmeziB2Z97EYya1w38gIRRodYL9iGyCIlM/5a4qYK1F jxWCKr12cGRDRP9jR7OfwlTHKISaDkAURL7k1Ng79aFvZi3BHQhVzR6kl481g5vbza22 NXYw== 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=quQDvdZCsTckh4e3Ggdk1AlA+VdC35GJEuN9wh1NzzM=; b=CQLwz+72pWAUSLJsM5cZ+JV5BSQFHlYeZObfdOrvA7nkYZJlUu89lnO+y9l5D+BcRX RSLLziY80OJWolmgQ9FJ5sOnOCEdxgKF0gkekAVbpCVUJwtzT1Noyi5vXA1rcnLh5Mtp PrpK030IFIoYvL/vAzxiyYocJ1uDrpya4mhSh5AT75vgQjnerM15oFQntx7PuRTsKxxn /XOuyDcLwSKHqCSLD43v4+h6FuZBvUKs/5oEZpzEgdHNX3cDq8rRczy8Q2i8t41WPW/3 sYGwq0Bod3zZdlfWUOQkgwC9kQ0WOpPnulk87ys00SZqDl/mLGMvAMeiKGY+pTWOjMk/ TNvA== 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 fg8-20020a056402548800b00462772162bbsi3778534edb.423.2022.11.18.15.26.18; Fri, 18 Nov 2022 15:26:42 -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 S235670AbiKRXZQ (ORCPT + 99 others); Fri, 18 Nov 2022 18:25:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235690AbiKRXWa (ORCPT ); Fri, 18 Nov 2022 18:22:30 -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 699F3DF2 for ; Fri, 18 Nov 2022 15:13:24 -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 1owA7y-0008OX-2q; Fri, 18 Nov 2022 23:46:30 +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 1owA7u-0058E5-4p; Fri, 18 Nov 2022 23:46:27 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7t-00Hb0H-Iz; Fri, 18 Nov 2022 23:46:25 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 085/606] iio: dac: ad5593r: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:59 +0100 Message-Id: <20221118224540.619276-86-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?1749878312203737382?= X-GMAIL-MSGID: =?utf-8?q?1749878312203737382?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/dac/ad5593r.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/dac/ad5593r.c b/drivers/iio/dac/ad5593r.c index 8e5e014e0c28..d311567ab324 100644 --- a/drivers/iio/dac/ad5593r.c +++ b/drivers/iio/dac/ad5593r.c @@ -99,9 +99,9 @@ static const struct ad5592r_rw_ops ad5593r_rw_ops = { .gpio_read = ad5593r_gpio_read, }; -static int ad5593r_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int ad5593r_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); if (!i2c_check_functionality(i2c->adapter, I2C_FUNC_SMBUS_BYTE | I2C_FUNC_I2C)) return -EOPNOTSUPP; @@ -138,7 +138,7 @@ static struct i2c_driver ad5593r_driver = { .of_match_table = ad5593r_of_match, .acpi_match_table = ad5593r_acpi_match, }, - .probe = ad5593r_i2c_probe, + .probe_new = ad5593r_i2c_probe, .remove = ad5593r_i2c_remove, .id_table = ad5593r_i2c_ids, }; From patchwork Fri Nov 18 22:37:00 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: 22863 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471982wrr; Fri, 18 Nov 2022 15:58:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf5lOx6/O3lchF1UYmTN66sBsR4k2jvUw0YKgjnEdBfJuHIArZIqNE5FP+mfSvgr8FT+wgXM X-Received: by 2002:a50:ff0d:0:b0:461:c6e8:452e with SMTP id a13-20020a50ff0d000000b00461c6e8452emr8027500edu.298.1668815937175; Fri, 18 Nov 2022 15:58:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815937; cv=none; d=google.com; s=arc-20160816; b=Qm2+jwEoICiHEurpSY25Ht8ypw6ZnAvZs7ZI+PNZdvXj1c0Q+lmRlRqJXnfdCgkuTO g63XgqH+JbCTDZksp6wfDzABVY0UjmKodDcbBHH1gdOHcCyobPC2lHbePuKlu5suZe/j 5U7VnSbKoPstHihx54+n3J+TD4VcfXu9llKWMjtQ2ED3ZjZTU1UYgJH4Mo9xa20KOB2C dw7pmSTYlGc2bSLc848r34Tdwr/Vdxl28dYh3wDjq5UaEV7S0JDIr5miX1ppQx7njgGY ++dwI1LVfbqeSGklKYWblp3qTS7oKZTtfwvGAH1KXlfy0Ev2PVnk1Sk1TETKfOIGFoY4 /h3w== 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=S7tgvhvTkpnh3sPfO3LYbPVWkWEmXx7uS2P6TU52nHU=; b=WKhq/gjLsMF35XoZ9QCeb84LJCoSrFHaNp/VN2iAkumTtXRHG+e9uXzseqDmmAGtpP Wk9fj5nAm49E0qx5Ie12mG4RUejzgDtcrSIz7A4tsN482YLG9sO2FVpUV3b6zvlDx/Bp ZKu4vNR51RxpLitNfWQ2YjyJ7alOreTIze6ZgxoAyIE+RkYGGFdVNnSDQZLgOJgUWHRX Tb5cZn7kHS6nMlCNtzpZE7/R+AYOtvtsABVnO0nNF9294a00661E0iSgYH7bVgRZSZok kZjJVh3Lxhl7eah/Dv1xwF0LSMmhEXdf8DgwJZeeSJHtlvWc0y5HGxKAw2I5cupkqkSq lzfA== 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 mp9-20020a1709071b0900b0078ed891fef3si4132368ejc.440.2022.11.18.15.58.32; Fri, 18 Nov 2022 15:58:57 -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 S236903AbiKRXuA (ORCPT + 99 others); Fri, 18 Nov 2022 18:50:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233587AbiKRXtV (ORCPT ); Fri, 18 Nov 2022 18:49:21 -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 0085EEC09E for ; Fri, 18 Nov 2022 15:26:30 -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 1owA7y-0008PT-CC; Fri, 18 Nov 2022 23:46:30 +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 1owA7u-0058E9-BK; Fri, 18 Nov 2022 23:46:27 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7t-00Hb0M-Q3; Fri, 18 Nov 2022 23:46:25 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 086/606] iio: dac: ad5696-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:00 +0100 Message-Id: <20221118224540.619276-87-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?1749880340514188353?= X-GMAIL-MSGID: =?utf-8?q?1749880340514188353?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/dac/ad5696-i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/dac/ad5696-i2c.c b/drivers/iio/dac/ad5696-i2c.c index aa36cbf0137c..160e80cf9135 100644 --- a/drivers/iio/dac/ad5696-i2c.c +++ b/drivers/iio/dac/ad5696-i2c.c @@ -58,9 +58,9 @@ static int ad5686_i2c_write(struct ad5686_state *st, return (ret != 3) ? -EIO : 0; } -static int ad5686_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int ad5686_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); return ad5686_probe(&i2c->dev, id->driver_data, id->name, ad5686_i2c_write, ad5686_i2c_read); } @@ -113,7 +113,7 @@ static struct i2c_driver ad5686_i2c_driver = { .name = "ad5696", .of_match_table = ad5686_of_match, }, - .probe = ad5686_i2c_probe, + .probe_new = ad5686_i2c_probe, .remove = ad5686_i2c_remove, .id_table = ad5686_i2c_id, }; From patchwork Fri Nov 18 22:37:01 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: 22598 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448538wrr; Fri, 18 Nov 2022 14:52:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf6eePlXcB9bTzGUPkCXLc8249T9PLezn7zRL5dS5li/ewbl10EzwpLeU9kdZDvNXrn6r6wD X-Received: by 2002:a17:90a:4283:b0:218:4953:58aa with SMTP id p3-20020a17090a428300b00218495358aamr15840346pjg.219.1668811961115; Fri, 18 Nov 2022 14:52:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811961; cv=none; d=google.com; s=arc-20160816; b=bXwx2d0M/4m5AN/qbTZezFO3D0GYVfyErgq/1kHv78oxowwKxi/drlA3IXstUHl0nh OTpUTZ43tRnR5FhS5PdiIJZDUJQvxJNWm/7tyb47xzhdFtQDXy3B/v2RPdO+rKDkEhVW z4qrptYFPmo4JO2iTz8uoDc1mpARJO/S/lBpTGC49mT43HyrGZx86xqNHZ9ZFjAvi5GY g3jEcsUxu6oyPXaX82tQPX1tFlXkGQd+7Qyick3lpJbL3XGJ9W3dsF5QwUDmR9UgGcGA afseVh1RjpxcpNmQCNe8OIiUpP23BftM9lFIoEv6m7TNSfhGHJ7DBZibTaOJHVMLl2hj Jd+Q== 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=BQAJ4oAO5PF8bjghHq6guXlqNNd6ITJFqsMZd1h8meY=; b=A/Afp9U4a3iGqBXer82gjR4l39Kaxf/+hwuuNYOJj0PIIXjh8/DWDUkX5mbdBotnTm bgjIHb2KMnobTd5BJf+aIUJ28jbi7hJsVZ+E6PMpdsSFR2y4LOkuW+sNLu7XD2NF9z1U 01h8GEpjDlm5TBfEKmQY8+QsXqb/E6ihFZHRbYTJkuOWoIa4lJ8DVKKwmKw7tH7y/bmE RDAzW4lG6lF39BpmItaTV6WyqD+LmbWd6rabGB4JZ6D5eFjPGaZbpFqv5uZVoz8B/ShY OY0g6qYki7svgOj/12xBIZf/waZJIsA9UgBW0iXlYpoq+3WSkxrQO/VsMm5cbUSoKuin vYqw== 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 y186-20020a638ac3000000b00434b19dc958si4677518pgd.349.2022.11.18.14.52.28; Fri, 18 Nov 2022 14:52:41 -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 S234354AbiKRWwJ (ORCPT + 99 others); Fri, 18 Nov 2022 17:52:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234095AbiKRWvr (ORCPT ); Fri, 18 Nov 2022 17:51:47 -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 09F14BB5C2 for ; Fri, 18 Nov 2022 14:47:17 -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 1owA7y-0008RR-SS; Fri, 18 Nov 2022 23:46:30 +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 1owA7u-0058EM-O3; Fri, 18 Nov 2022 23:46:27 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7u-00Hb0Q-1g; Fri, 18 Nov 2022 23:46:26 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Maximilian Luz , Peter Rosin , Hans Verkuil 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 087/606] iio: dac: ds4424: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:01 +0100 Message-Id: <20221118224540.619276-88-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?1749876170841441126?= X-GMAIL-MSGID: =?utf-8?q?1749876170841441126?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/dac/ds4424.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/dac/ds4424.c b/drivers/iio/dac/ds4424.c index 3e17a681174e..a16a6a934d9d 100644 --- a/drivers/iio/dac/ds4424.c +++ b/drivers/iio/dac/ds4424.c @@ -213,9 +213,9 @@ static const struct iio_info ds4424_info = { .write_raw = ds4424_write_raw, }; -static int ds4424_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ds4424_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct ds4424_data *data; struct iio_dev *indio_dev; int ret; @@ -312,7 +312,7 @@ static struct i2c_driver ds4424_driver = { .of_match_table = ds4424_of_match, .pm = pm_sleep_ptr(&ds4424_pm_ops), }, - .probe = ds4424_probe, + .probe_new = ds4424_probe, .remove = ds4424_remove, .id_table = ds4424_id, }; From patchwork Fri Nov 18 22:37:02 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: 22604 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449106wrr; Fri, 18 Nov 2022 14:54:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf6apEka67WMzN/c9BgBDOg2dtFn9vcbL5ikOhB4KLVuNkhzICqKCEzapj3ko0F7zruOF+dh X-Received: by 2002:a17:906:79c4:b0:778:e3e2:8311 with SMTP id m4-20020a17090679c400b00778e3e28311mr7977778ejo.342.1668812059071; Fri, 18 Nov 2022 14:54:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812059; cv=none; d=google.com; s=arc-20160816; b=Mrl1DNgSHplhIDzuvwT1LRWlkrbMcWPQEsCAhFavydzoxqR18Q0JOHzen9vPsltUB7 mTkrg/0mUFukoXwuGDeIizVDXb6goiz8wkjg3zR4l+1dwLIKh3/y06v9vQu0iEdMFYj8 WNIvIcAiSjlctPpidFt3AUPiSQzC/UEhvlg74hG/gzA0L8mp+YprzNUKCw33/ioR9QBC KxjhYcAtWHl5ENLztnezo8vG897kWohvPMsBGEWxnxIvmG9MqBs9zVMuPG0zzd0/9acX +ht99x/8Q7QDXKINCubXftnMaDaY1UnMbZtgKrkpQks+VQ9PTgi6tq4elMDgqgpGj48a Hckw== 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=tJFKtkbAjgzfWll5LzSEVsFUAbh2BBN3QPwEumRjIEU=; b=XCYO38cCLaiwDFhn7Yw9U8SoJCtHEkOdzf10Gi5TRgUJ27KG6u9zKA5UYhZ7yfV4XS nIgm3byGAG13G1BfrNPmbc/Tf7V1CO9E7FCiGyaTer3GqQat9oRi8gQTxdiS9LnhMgY7 ZJd/CLCsjsxxzA8IabmUgycXk+LguPy07Wj8NlnjAsLm2uR9Rb4LxtZTY/o8U30Rvbqd g1ufvcQU/kEJcD2/K8+hZoCUdVlalB+VwqHmkxsmNH7K5J0xeTUlKS2B23dd32DMO7em EebN8KyB/QOsAMqdE3DxnmEOELoDI2l/XVigqxK+fQWl0eJ37Vr/W4FOSv3569+YF4WV TdMA== 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 y15-20020a056402440f00b00461a144e980si4397118eda.379.2022.11.18.14.53.54; Fri, 18 Nov 2022 14:54:19 -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 S234551AbiKRWxF (ORCPT + 99 others); Fri, 18 Nov 2022 17:53:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234456AbiKRWw2 (ORCPT ); Fri, 18 Nov 2022 17:52:28 -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 19669B5C48 for ; Fri, 18 Nov 2022 14:47:33 -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 1owA7z-0008U2-4a; Fri, 18 Nov 2022 23:46:31 +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 1owA7v-0058Eb-7s; Fri, 18 Nov 2022 23:46:28 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7u-00Hb0U-9A; Fri, 18 Nov 2022 23:46:26 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Hans Verkuil , 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 088/606] iio: dac: m62332: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:02 +0100 Message-Id: <20221118224540.619276-89-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?1749876273372888134?= X-GMAIL-MSGID: =?utf-8?q?1749876273372888134?= 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/dac/m62332.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/dac/m62332.c b/drivers/iio/dac/m62332.c index 5a812f87970c..b692459b0f23 100644 --- a/drivers/iio/dac/m62332.c +++ b/drivers/iio/dac/m62332.c @@ -176,8 +176,7 @@ static const struct iio_chan_spec m62332_channels[M62332_CHANNELS] = { M62332_CHANNEL(1) }; -static int m62332_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int m62332_probe(struct i2c_client *client) { struct m62332_data *data; struct iio_dev *indio_dev; @@ -239,7 +238,7 @@ static struct i2c_driver m62332_driver = { .name = "m62332", .pm = pm_sleep_ptr(&m62332_pm_ops), }, - .probe = m62332_probe, + .probe_new = m62332_probe, .remove = m62332_remove, .id_table = m62332_id, }; From patchwork Fri Nov 18 22:37:03 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: 22597 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448429wrr; Fri, 18 Nov 2022 14:52:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf4/RRg65e47Y7MZG6SFMm/iQGhrYgpSy024BMPRCoqEtpMOZw+YupQCh5V+DkzDB3g5As6E X-Received: by 2002:a17:902:aa88:b0:182:2589:db21 with SMTP id d8-20020a170902aa8800b001822589db21mr1448031plr.151.1668811942824; Fri, 18 Nov 2022 14:52:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811942; cv=none; d=google.com; s=arc-20160816; b=QvLwdL8452Uw5GW3ZU8hg3lwjVtOMivka2YsrIuOMHrbIwNWdJqD9PQ6/wFjUT/wZE 2mO8yfKP7pOCGLKd7IG1ggIxNhvmMmQ6DIhcBvFU7wdodW/eCcQ48xlVuIvgGdJ/fc8r t3J8RgmRmurtX4LaAhhkviCMcfNmRLZjvpGfX447Eb2RvgGnDZh9BPfXyPsvCYuQUYLN UJPZS5CtwzAmvqojMs5EOlwEQbymY7dZK8DWU0yCJaGP9Fsg3bbNwvRHCpKv5dPZzSsL p0JdUqnSxqvx0mmyFUbU4NNaXAl0sgJYmjoh+DV6caS/8vuzZtHZl+QXP6X/PdzCic5S JYmQ== 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=pO9oFXFBdAlyUSCnOR4V7Z9nVfag+tOtcYGTro5G8jE=; b=0nfqCibr14TB4DuPT6WqRN9WGgtjloKUUD/wp4zhwPsnn+eaLEFr6wEC05lUMBMZcB Udfhoa8fMCzP9da1uyvrMqeCbYh8wLs9zOd7oWJvr9W75sAXdnreQ9d1p/JY0J0aqdKI J9UR/AI8VZui0oY928caFeltGki6YxR2k2M48yKkN6FkurDl6Pnk29XRmS/lLTtVvVJx xKk18Hwn4EcWg+XD2m5yD+F15RbXgI/HLEllvQK3wqLOt6pTSjnZoQ8O7Hh7BzmTrtph +dNb87HYyIxu85hGu2QQFHV9qasIufJJGUVOLC3t/tjEe0vY+yLNLPCEkHqRT4i/PdA3 jDcQ== 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 w130-20020a628288000000b00571b10549b0si4456207pfd.87.2022.11.18.14.52.10; Fri, 18 Nov 2022 14:52:22 -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 S233944AbiKRWvr (ORCPT + 99 others); Fri, 18 Nov 2022 17:51:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233370AbiKRWun (ORCPT ); Fri, 18 Nov 2022 17:50:43 -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 E63EEB9B8D for ; Fri, 18 Nov 2022 14:47:03 -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 1owA7z-0008Qv-5c; Fri, 18 Nov 2022 23:46:31 +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 1owA7u-0058EJ-Ka; Fri, 18 Nov 2022 23:46:27 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7u-00Hb0X-FQ; Fri, 18 Nov 2022 23:46:26 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Paul Cercueil 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 089/606] iio: dac: max517: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:03 +0100 Message-Id: <20221118224540.619276-90-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?1749876151653670776?= X-GMAIL-MSGID: =?utf-8?q?1749876151653670776?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/dac/max517.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/dac/max517.c b/drivers/iio/dac/max517.c index 373ce6ff83b7..25967c39365d 100644 --- a/drivers/iio/dac/max517.c +++ b/drivers/iio/dac/max517.c @@ -141,9 +141,9 @@ static const struct iio_chan_spec max517_channels[] = { MAX517_CHANNEL(7), }; -static int max517_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max517_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct max517_data *data; struct iio_dev *indio_dev; struct max517_platform_data *platform_data = client->dev.platform_data; @@ -203,7 +203,7 @@ static struct i2c_driver max517_driver = { .name = MAX517_DRV_NAME, .pm = pm_sleep_ptr(&max517_pm_ops), }, - .probe = max517_probe, + .probe_new = max517_probe, .id_table = max517_id, }; module_i2c_driver(max517_driver); From patchwork Fri Nov 18 22:37: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: 23101 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487639wrr; Fri, 18 Nov 2022 16:43:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf64o5d+NOS4FbVgq//YZMtvRvXdPDlcxNkgEOSj7TGKWDN6sq9O09Pc8Undlq84Jk1L+UCh X-Received: by 2002:a17:907:8dcc:b0:7b2:b5aa:f1e0 with SMTP id tg12-20020a1709078dcc00b007b2b5aaf1e0mr4433210ejc.54.1668818617277; Fri, 18 Nov 2022 16:43:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818617; cv=none; d=google.com; s=arc-20160816; b=w7865vILYrLlsptZBdDgHNA/FFFy4s7PgvuvPZtaW4PyukhBb8ZCgDi3gmNUGyPdcK S3ClKzTj4BK0w4qfeiWFgy03b1gqyqKLTdfLzWjqE+lyg+mQUdRKZQosyG5S+rOZTNYZ IvzKEfZr8p8EgNDnfQsPEQDzUulzDpckz+ncflRcY+X/irrs5Hi5Z6FHqs1g/vivAecs EAfKYDeBGtF/jxc16xiLNspbgcIuUQ0Zg4vIfAibcNzoG7j3rFDiwb9h6EewhOEttKnn J/t2n0BlPtfNRjGAhL6FTok98OpPUc7yDc+vTRT5I9o5UJuv7Sdf+Zqyn5MbPo/4wRjv 7hAg== 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=q3wAsINW6y7CFKmRCblWw8pcKEY9iWEsktJpuFf/LiY=; b=xVXUjjKZa/IN/dyVw7yqXcVL65P9jE/Rl1N6JS6+W2RDmwt5RuFX/2QR1aATvmYtYW rO8h2h1Tk+NZ6nNKECsehbW9S51clNMV3iEUrOSimT1VLPbNa90lmzBFqDdI0dw+GCsS K+2PWiGWj7TP1m8p7c07odVZVtkJjbXVMn9oeP4zEGVhEfyJC/biGJZDsL1wD+UVbU2i X7ZMrvU4as1vvdqZKpMgn+UKzJLuXCwODegsIcc4ugAknAaca5NQG4hlWKh2Si63ucLt 9kcY5JSPLX6oA1O0cXXixPdFEO3TN7211Y+MfxmllLuodbmxr42IgCyS2l81owS2jJH5 lr4w== 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 mp8-20020a1709071b0800b007986956bd8esi4606687ejc.472.2022.11.18.16.43.05; Fri, 18 Nov 2022 16:43:37 -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 S235474AbiKSAe2 (ORCPT + 99 others); Fri, 18 Nov 2022 19:34:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235172AbiKSAeD (ORCPT ); Fri, 18 Nov 2022 19:34:03 -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 E413212AC1 for ; Fri, 18 Nov 2022 15:42:42 -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 1owA7z-0008TJ-1d; Fri, 18 Nov 2022 23:46:31 +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 1owA7v-0058EX-2t; Fri, 18 Nov 2022 23:46:28 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7u-00Hb0b-Oy; Fri, 18 Nov 2022 23:46:26 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , Paul Cercueil , Antoniu Miclaus 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 090/606] iio: dac: max5821: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:04 +0100 Message-Id: <20221118224540.619276-91-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?1749883150122093452?= X-GMAIL-MSGID: =?utf-8?q?1749883150122093452?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/dac/max5821.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/dac/max5821.c b/drivers/iio/dac/max5821.c index e001b594d5b1..23da345b9250 100644 --- a/drivers/iio/dac/max5821.c +++ b/drivers/iio/dac/max5821.c @@ -300,9 +300,9 @@ static void max5821_regulator_disable(void *reg) regulator_disable(reg); } -static int max5821_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max5821_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct max5821_data *data; struct iio_dev *indio_dev; u32 tmp; @@ -377,7 +377,7 @@ static struct i2c_driver max5821_driver = { .of_match_table = max5821_of_match, .pm = pm_sleep_ptr(&max5821_pm_ops), }, - .probe = max5821_probe, + .probe_new = max5821_probe, .id_table = max5821_id, }; module_i2c_driver(max5821_driver); From patchwork Fri Nov 18 22:37:05 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: 22623 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp450650wrr; Fri, 18 Nov 2022 14:59:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf4HzU0KrrH/KmYPJwzLEUcVlkN/xvfkswpQXYMa4k25wpV97h8ueZEAxbjnyydwjJYkra+Q X-Received: by 2002:a62:4e96:0:b0:56d:a89d:fb9b with SMTP id c144-20020a624e96000000b0056da89dfb9bmr9994208pfb.24.1668812346976; Fri, 18 Nov 2022 14:59:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812346; cv=none; d=google.com; s=arc-20160816; b=J4g0smPmqx2BMyLIluN7QJKxPIHN9bdOCHQBH3TtF36f8kf4E38Rc4FTAhESv0tRLK YB8SioUpjlvIxqpA7GaU4DJ0BK8YeLkknSB3+wnm8SdW3x4gBOM17TTyW1OWAOXJt8iE Ea18pV75WcFcSspfyJDTfJIVrN5CiKOUBCc1LRrf1IzzbSVUtLlaZ99GJCGS1Lt30gNt amt2iOoL82o7lIwL+zt9wYacsv+BB6hDMcvmkrqxi0fx7wLk/M5Dxb+MkocT87YxtrH0 v5zmn1n7IEVlxCQPaPTe7yjecS+N/FjFeQRlrtML6/MeKETNgd4SqCRllkoSsp7Y03/F UkXw== 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=3kLPM07lKL3uHTOLpMQvPnDF1mt2ffZINZNF924ZQIg=; b=cy8Rk3RLUiYPJgLcwKWjSA2zpENixyht1bZ80UxmYu4hBHL3PCN42b9Yd38CQ7037u XHZyqlAARBIYhqsE9FQWF+Jcsd9cKFOFJ8PJDRW6G8/o3CEVy19Ioce9vanUQP+S67YM GoneX03z4E0Rjz8YyL61aNi9Cd7LVZzDFAtRRicN/s1OCu+pz3gWfhOzF9QWvqVC4nKu gvrCHoTQdQmmkHdC1SorlDp/ijuArImYixBCljOzMRSBuqDheV4uVtHx5mZTOKEmjwzE GcLWiMxhohBry2B1M0myJI+ncChMkNTtlMQ7zkAqYI8Hx7o/yQNmLU1rbP/cpKQ2GbY6 +qhQ== 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 w20-20020a63fb54000000b00476dd604aa8si4759977pgj.767.2022.11.18.14.58.52; Fri, 18 Nov 2022 14:59:06 -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 S234959AbiKRWyi (ORCPT + 99 others); Fri, 18 Nov 2022 17:54:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234761AbiKRWxq (ORCPT ); Fri, 18 Nov 2022 17:53:46 -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 035EFBE872 for ; Fri, 18 Nov 2022 14:48:00 -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 1owA80-0008Ua-Cq; Fri, 18 Nov 2022 23:46:32 +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 1owA7v-0058Ej-Ev; Fri, 18 Nov 2022 23:46:28 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7v-00Hb0h-1L; Fri, 18 Nov 2022 23:46:27 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , Jean Delvare , Hans Verkuil , Antoniu Miclaus 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 091/606] iio: dac: mcp4725: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:05 +0100 Message-Id: <20221118224540.619276-92-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?1749876575541999993?= X-GMAIL-MSGID: =?utf-8?q?1749876575541999993?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/dac/mcp4725.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/dac/mcp4725.c b/drivers/iio/dac/mcp4725.c index 446d1a8fe4be..46bf758760f8 100644 --- a/drivers/iio/dac/mcp4725.c +++ b/drivers/iio/dac/mcp4725.c @@ -369,9 +369,9 @@ static int mcp4725_probe_dt(struct device *dev, return 0; } -static int mcp4725_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mcp4725_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct mcp4725_data *data; struct iio_dev *indio_dev; struct mcp4725_platform_data *pdata, pdata_dt; @@ -524,7 +524,7 @@ static struct i2c_driver mcp4725_driver = { .of_match_table = mcp4725_of_match, .pm = pm_sleep_ptr(&mcp4725_pm_ops), }, - .probe = mcp4725_probe, + .probe_new = mcp4725_probe, .remove = mcp4725_remove, .id_table = mcp4725_id, }; From patchwork Fri Nov 18 22:37:06 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: 22849 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471980wrr; Fri, 18 Nov 2022 15:58:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf44IZCyp4xZmiB+Z+gyzNbdCumMajgxmKnWUmPoYnhWdRr+u3gmz7FChwDtF6zo3/3sENqk X-Received: by 2002:a05:6402:389:b0:459:2515:b27b with SMTP id o9-20020a056402038900b004592515b27bmr8179755edv.338.1668815937004; Fri, 18 Nov 2022 15:58:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815936; cv=none; d=google.com; s=arc-20160816; b=HffgoFWM9NBBo2uwHb1xLRk5nsiVSyaW6wKD3kxHKHSVUBZ2WwCddh9F6Tj1ZKv9jh 4oCXaSexbIrK3T7QhDl0eKNueV6MzBhSiQab8jsAsk7AvIR0J7lqk/y7MNQ3uJ7Ym7Se F2mY7l4/TLBWPJNJVXDXlV4zu8j33bADCyOgZA4i+PA9IYQD1KyQlPTFKI5ZnFB9IvNi seSBRKEzOau9L4OVF00PSLoH+en4zEduNG8x32hUjbVZvMRB1LrPlQ3qy7/He3QvafSa 22ZI/u3jl2eicttppyfCdU0AmVEq+/MwZY5k1UR+JURxbIwl7nswL6t9Ce1AyG1HAfYu QcOA== 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=AGXX3bAur0XbsgItoirKCl4CaZYX0Z7kvV2X7Ug4szU=; b=X7PK2UQMLfBxsZ0zSit8InyemlUOx5BvXoVWrPIcPSuai75FApDGm/Wv3y9DZEG15X 10OjwPGE0QytBASj2Ua9zjYve6Uqt+k/v7Jl+uqLFDx3ZcKgk1/MGDw0i/hGiC7wM9L9 H+z/Qj4ZhT2kh6KLANqfLc/kGZ1XQ9E3sPzATZ8ooUfvi7iBeJ17ARf8PIRmBBEerboL rRxUHUnaP5fKBeGS/1tz2BC86EFE27z+Q1r0if78sdBD1gWgjU+nWz853AB3SGPBqTjI +TsD5b/jZLFxh1an+UXEn91/sYhEqgFt7UjIqv+Sh1QFhD+YpUbRDXy7OEskyDA1DkPn 95Vw== 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 bm6-20020a170906c04600b00770872942d8si3485711ejb.958.2022.11.18.15.58.32; Fri, 18 Nov 2022 15:58:56 -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 S236794AbiKRXs2 (ORCPT + 99 others); Fri, 18 Nov 2022 18:48:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237107AbiKRXra (ORCPT ); Fri, 18 Nov 2022 18:47:30 -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 2CA87E3D32 for ; Fri, 18 Nov 2022 15:25:53 -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 1owA80-0008Vy-TV; Fri, 18 Nov 2022 23:46:32 +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 1owA7v-0058Er-N1; Fri, 18 Nov 2022 23:46:28 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7v-00Hb0l-8Z; Fri, 18 Nov 2022 23:46:27 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Laurent Pinchart , Peter Rosin , Andy Shevchenko , Antoniu Miclaus , Jose Cazarin 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 092/606] iio: dac: ti-dac5571: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:06 +0100 Message-Id: <20221118224540.619276-93-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?1749880339801529881?= X-GMAIL-MSGID: =?utf-8?q?1749880339801529881?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Reviewed-by: Laurent Pinchart --- drivers/iio/dac/ti-dac5571.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/dac/ti-dac5571.c b/drivers/iio/dac/ti-dac5571.c index 3210e3098f9a..40191947fea3 100644 --- a/drivers/iio/dac/ti-dac5571.c +++ b/drivers/iio/dac/ti-dac5571.c @@ -306,9 +306,9 @@ static const struct iio_info dac5571_info = { .write_raw_get_fmt = dac5571_write_raw_get_fmt, }; -static int dac5571_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int dac5571_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; const struct dac5571_spec *spec; struct dac5571_data *data; @@ -426,7 +426,7 @@ static struct i2c_driver dac5571_driver = { .name = "ti-dac5571", .of_match_table = dac5571_of_id, }, - .probe = dac5571_probe, + .probe_new = dac5571_probe, .remove = dac5571_remove, .id_table = dac5571_id, }; From patchwork Fri Nov 18 22:37:07 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: 23135 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488432wrr; Fri, 18 Nov 2022 16:45:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ojAM3V6jMJOA+AU356JodVUxm9rjQWfIP9WHvA3O9bwrKcCpEmoZCHVD2X467FIUjN63T X-Received: by 2002:a17:906:ca0e:b0:78c:1f2f:233e with SMTP id jt14-20020a170906ca0e00b0078c1f2f233emr8153394ejb.307.1668818758222; Fri, 18 Nov 2022 16:45:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818758; cv=none; d=google.com; s=arc-20160816; b=Iky5JegnPKPdLnGJneycC3zF13EiicdrLPCTlr9agdgfUrZO9fSe0jmo+UnKbJW+dz vR/ioiwXmL/GWkDp8QZAJMHOhfdW2haiv1UxCdZrtH0Lt29mkNxgHJa1UJa3kQ9NRXt6 XjMMTj8QMVV1OU6PqP5mOo+eN/R+gCCh1iavTqGiXpwVc4X9tBBsWZ2M49EJ4tK8PWEj a6UQHRZgZVNSFPI6Qnw77+UgTa46K5M3BbtNxS3AygqJ3HCLdF1b9qjvG8ljryfSXAaF 2ziG8lwarmBFF66qODNlQIcBnrY7LlWWatym6QWI2W5GolXh4ne24ac2YRbnDzBySuXe TZlQ== 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=yFxA8masrLoYqjRwWa52CgbZ8Yo1YiZQR97Qw3wDk4U=; b=t0RzLmMdFvPFTOFGnoZKDDwqlOhyXASFbvrR8ptWwBuJ1PEytN+4rmGbHXn3UWMbj2 IHwdKcL+dOCM2g6SU5RXAzCXAq2hd55hn/+mqB3i9qp2q0jOLmmBGOsjXD77V9Rrrc4g bIv6OaCFRu71AWuBhJhwee2Ve0R5BqZHDpwr+008sDKp+4axBF4gNz3YoiupJLFg9DyP pYVrx+hMHyMIgreWRvL3qRKf1ekAUGrVBJswGgWAMVCPhvH7V/RjSequIv6WHnuIcjHj ppMinXgYUigpEHuaeE27s6WbyMasTEujAQMhEqqFenIB79BnEqXdkyx+GIvtfVjZrUpR 2r+A== 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 sc6-20020a1709078a0600b007add8160fd9si1365085ejc.765.2022.11.18.16.45.26; Fri, 18 Nov 2022 16:45:58 -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 S236493AbiKSAjk (ORCPT + 99 others); Fri, 18 Nov 2022 19:39:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235819AbiKSAik (ORCPT ); Fri, 18 Nov 2022 19:38:40 -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 99CC51181E6 for ; Fri, 18 Nov 2022 15:44:15 -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 1owA80-0008UY-9E; Fri, 18 Nov 2022 23:46:32 +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 1owA7v-0058Ee-Bq; Fri, 18 Nov 2022 23:46:28 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7v-00Hb0p-ET; Fri, 18 Nov 2022 23:46:27 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Srinivas Pandruvada , Jeremy Kerr , Adrien Grassein 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 093/606] iio: gyro: bmg160_i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:07 +0100 Message-Id: <20221118224540.619276-94-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?1749883298390751881?= X-GMAIL-MSGID: =?utf-8?q?1749883298390751881?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/gyro/bmg160_i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/gyro/bmg160_i2c.c b/drivers/iio/gyro/bmg160_i2c.c index 908ccc385254..2b019ee5b2eb 100644 --- a/drivers/iio/gyro/bmg160_i2c.c +++ b/drivers/iio/gyro/bmg160_i2c.c @@ -13,9 +13,9 @@ static const struct regmap_config bmg160_regmap_i2c_conf = { .max_register = 0x3f }; -static int bmg160_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bmg160_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct regmap *regmap; const char *name = NULL; @@ -70,7 +70,7 @@ static struct i2c_driver bmg160_i2c_driver = { .of_match_table = bmg160_of_match, .pm = &bmg160_pm_ops, }, - .probe = bmg160_i2c_probe, + .probe_new = bmg160_i2c_probe, .remove = bmg160_i2c_remove, .id_table = bmg160_i2c_id, }; From patchwork Fri Nov 18 22:37:08 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: 22957 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp475133wrr; Fri, 18 Nov 2022 16:05:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf7H2NQCWcmeDZ8jqC1O6Qo/3e1k0xsd2p/vO/DJYoGSNUEMcEadWlfzN8YRZlTuwBV/A3rm X-Received: by 2002:a17:906:245a:b0:78d:857d:b4a8 with SMTP id a26-20020a170906245a00b0078d857db4a8mr7410051ejb.495.1668816342497; Fri, 18 Nov 2022 16:05:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816342; cv=none; d=google.com; s=arc-20160816; b=VYJldPpvxcxri6DarXsw7beyMgglq10y5B0O+C+KCuPUcGxKG+2We17qc0hTVhLHx5 cO8ri8Ahk7hkZFle0eSdW+uLZNVIBxCGQ4i0qaHtoG5f0LQIBZutZHj7ERjI0s5aXX2T zLCTsfUNT7Dsb6veacb8K9GJV6SgXXAWRJ19y+Ho8qOJV8xgqFN43czaaYJHRAAUufmR ifWMXa5AN3u1Ellq2XTwrK/Mge70ZNbWfQYfrSbFfg3SEtNepm3wlYFXDgpKqfLcDwrY Dp0jrYeV7ljP9tbuq3dprubkbGZ/8zF7PMr3o5f6BMFKgSCa+tIKl1CTyKA+59hGQaPq asyg== 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=ufwDa0/C2Yhl9AI6oCIC3T4BZ8GiALQgxm/JkfVcvwY=; b=p92aLwfj8S4+kNPuXN1BwWLpvgI49XbIG8IdNiQO306HdLD8y1eIuQ/9dN/0keA2bv bjBuMTeBEgwfA3XVNETOtsgGQSzXMjo6qfhz2kZ7TOT4tv5NxmiL4qHpJsoWexD7sFaH KIpelhGUMjrCTdAt4vmyZlhmKCOVmNpQA8X0WOBitNhBZSo9rgIvsskyfj/GmDxJ1Sye llNga+s1V9YNC8CISemfrsRAhDnvBdFdiAo/iKEgf+j93B38E15cEJxfWJAIjqIBuk2k qmibbLth655e9CQNh4tR8CI3VT3BhciqzzHQdEjXwU6SrmVvysSYxlEgfiHRME/Y5Vvz xTVg== 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 l25-20020a056402345900b0046883aeffd8si4036480edc.278.2022.11.18.16.05.15; Fri, 18 Nov 2022 16:05:42 -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 S237268AbiKSABL (ORCPT + 99 others); Fri, 18 Nov 2022 19:01:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237567AbiKRX60 (ORCPT ); Fri, 18 Nov 2022 18:58:26 -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 720C5B9617 for ; Fri, 18 Nov 2022 15:29:20 -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 1owA81-0008W4-2E; Fri, 18 Nov 2022 23:46:33 +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 1owA7v-0058F0-U7; Fri, 18 Nov 2022 23:46:28 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7v-00Hb0u-Mf; Fri, 18 Nov 2022 23:46:27 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Srinivas Pandruvada , Corey Minyard , =?utf-8?q?Nuno_S=C3=A1?= 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 094/606] iio: gyro: itg3200_core: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:08 +0100 Message-Id: <20221118224540.619276-95-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?1749880765150202549?= X-GMAIL-MSGID: =?utf-8?q?1749880765150202549?= 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/gyro/itg3200_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/gyro/itg3200_core.c b/drivers/iio/gyro/itg3200_core.c index 74ca22468496..ceacd863d3ea 100644 --- a/drivers/iio/gyro/itg3200_core.c +++ b/drivers/iio/gyro/itg3200_core.c @@ -295,8 +295,7 @@ static const struct iio_info itg3200_info = { static const unsigned long itg3200_available_scan_masks[] = { 0xffffffff, 0x0 }; -static int itg3200_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int itg3200_probe(struct i2c_client *client) { int ret; struct itg3200 *st; @@ -406,7 +405,7 @@ static struct i2c_driver itg3200_driver = { .pm = pm_sleep_ptr(&itg3200_pm_ops), }, .id_table = itg3200_id, - .probe = itg3200_probe, + .probe_new = itg3200_probe, .remove = itg3200_remove, }; From patchwork Fri Nov 18 22:37:09 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: 22605 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449198wrr; Fri, 18 Nov 2022 14:54:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf4eDLM6/CML8iH5RBqboNWGepOLMhkpj+H9MnqeQB3fXMJeVMgUdzHquyDlk3EpqB9AAZo+ X-Received: by 2002:a17:903:2684:b0:186:e8bd:9c14 with SMTP id jf4-20020a170903268400b00186e8bd9c14mr1476219plb.174.1668812072616; Fri, 18 Nov 2022 14:54:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812072; cv=none; d=google.com; s=arc-20160816; b=JXZh3MVEuNfGKiDcw3FJ+MrCYMdRS8B/lhmLqKJpm/f+CgzWSBPlfCU+29UPeF3Rsq 2VqmQEWFxrXp6SCGnRUi29cYLMDPxLMUusif+kV9NlG4BGhx6KJ/WoGJ/1KUQS2vaoMu FXgV03KguWditq2sbL54iPwEwW6uGVDDvYAIl2kdFJ41/Uv/WdTTI56Bd9nrGd4WdljJ cTvUp2ZXQsq89fQ//ABeUoA2eq8bj4VdNeISU7t5H0CSAvExcar8qKVCUoX4na3458oj h+zQTwVuFtbL3gHnAfS5ahm16i9bsQThUz/hAjxXM2gRMqQBoaHtiPnNUaQUJw2EarXU YApA== 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=2Rn6OSzJ4+1R/aJauL82/cBsbSHnHwyYcvT3syBxEkY=; b=goGA1XTes9ZupJx9jAsv4HtyuwvRn01ZXuPC0YlL3XQbybh9qgWVB78EGxmBvzc397 +cVJkEJZvZMGTArOjHQRfyoeJwSrLmSZRTH5Vsu8OPAkKzMCT91viAZekFpTiDr7BR/N 2MZdXWLVxf8YmE8tVFpsmqjZz2Lxtwg8wcFSLOcZZSgUZ6zTlK7pJRdLqPF+RE99sbTo 2tQY2lIxyG3kfJQTDmkGsSBGC7Ev9yTHyNd5Wc2/cJgcQvtQqBqVXjYqspfkVXiLDtH4 37/mIjW7USXEeKMSl3KV+MKp0uvaBRwbR+k0yvpUF9m9tVPcpYFMR3hPjVYfsV2d6vWS nRVg== 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 n4-20020a17090a4e0400b002137030b2basi4194784pjh.54.2022.11.18.14.54.20; Fri, 18 Nov 2022 14:54:32 -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 S234575AbiKRWxt (ORCPT + 99 others); Fri, 18 Nov 2022 17:53:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232430AbiKRWxL (ORCPT ); Fri, 18 Nov 2022 17:53:11 -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 83C63BE266 for ; Fri, 18 Nov 2022 14:47:50 -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 1owA80-0008Vx-Us; Fri, 18 Nov 2022 23:46:32 +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 1owA7v-0058Ep-LP; Fri, 18 Nov 2022 23:46:28 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7v-00Hb0z-TI; Fri, 18 Nov 2022 23:46:27 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Linus Walleij , 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 095/606] iio: gyro: mpu3050-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:09 +0100 Message-Id: <20221118224540.619276-96-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?1749876287888775770?= X-GMAIL-MSGID: =?utf-8?q?1749876287888775770?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/gyro/mpu3050-i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/gyro/mpu3050-i2c.c b/drivers/iio/gyro/mpu3050-i2c.c index 12e3afa9dd11..2116798226bf 100644 --- a/drivers/iio/gyro/mpu3050-i2c.c +++ b/drivers/iio/gyro/mpu3050-i2c.c @@ -32,9 +32,9 @@ static int mpu3050_i2c_bypass_deselect(struct i2c_mux_core *mux, u32 chan_id) return 0; } -static int mpu3050_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mpu3050_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct regmap *regmap; const char *name; struct mpu3050 *mpu3050; @@ -108,7 +108,7 @@ static const struct of_device_id mpu3050_i2c_of_match[] = { MODULE_DEVICE_TABLE(of, mpu3050_i2c_of_match); static struct i2c_driver mpu3050_i2c_driver = { - .probe = mpu3050_i2c_probe, + .probe_new = mpu3050_i2c_probe, .remove = mpu3050_i2c_remove, .id_table = mpu3050_i2c_id, .driver = { From patchwork Fri Nov 18 22:37:10 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: 22602 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448990wrr; Fri, 18 Nov 2022 14:53:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf5g/MpEVdZCCIkROgSX42rbtp1HGqoaJtKfArnOgYw9/zg9z/AUj8WjXnmd1ajj+jHUcpYa X-Received: by 2002:a05:6a00:2161:b0:573:3580:4754 with SMTP id r1-20020a056a00216100b0057335804754mr4066265pff.37.1668812039041; Fri, 18 Nov 2022 14:53:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812039; cv=none; d=google.com; s=arc-20160816; b=jkHoj5oxbmjX+RdK326Tvm6/BbJlGUx1FlzGnI9UsJq4HHxmjzYcxkO/XqdLFhGw1h Jko3JKGOegupz5bKXUhK98r7V9eCTqyD6rm1y1v8kZBYNspv4ZzKZrVwc2ryAj5WPxla 7XNQqlARjIXExLfu9ObipDXk2O/uSEbELKNDborPeOMaVvslpfZ8UQwNeochh/TV7spF xnhZ51vGmzgCEAqizVbwWJiTqxlmIX5orGJaLWtf4fqkqbQ3osLXtNreNo65WwADLix/ UyK2sdB1H24yl/SW4KFa7Yt47q1mwsoUZhFiylRhsusRGc9YmYWLpxFRnh1rOM3mYkDE x+4Q== 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=tEZm0O1BCRX4kv8a/v2WMwjG6sEO/KHDEpPwUMLY5BE=; b=hUjiM7Q6p0FIDTFmEm/Fmj37KkkYvKm364d3VvL0yKEXyJOpWTc5ErQaejD+P+8MD9 Ftwiqnloxaaw4vgxsHP3IC/ijkL+eadOtgGSzA4IxHwkSv1EM25G+0vuKkv5nmqlyCcN j1Ws7vsxyRF/E1ptBOxi6xflwS/8N0l0ok4KJJT0K2pXQh4fp7CKV+HahbXr9pOg5VZh de/VAN6ZyLWCQf+5+u/syWPRFdAdnFSEppcSCi4EoJXvlWodPb5LGCtipY+1KEItu/Gx ZM4a77tcFWxqSuJzT1g/n5TsMGGgVEkYhePiUNbeHoKm3tp8lU0yXJuXM3kHZuu4rjsF hkHw== 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 pc1-20020a17090b3b8100b001fd8713170csi9868465pjb.179.2022.11.18.14.53.46; Fri, 18 Nov 2022 14:53:59 -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 S234670AbiKRWxS (ORCPT + 99 others); Fri, 18 Nov 2022 17:53:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234014AbiKRWwp (ORCPT ); Fri, 18 Nov 2022 17:52:45 -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 61BFC94A7D for ; Fri, 18 Nov 2022 14:47:39 -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 1owA80-0008W1-TP; Fri, 18 Nov 2022 23:46:32 +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 1owA7v-0058Ew-Pt; Fri, 18 Nov 2022 23:46:28 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7w-00Hb13-3Z; Fri, 18 Nov 2022 23:46:28 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 096/606] iio: gyro: st_gyro_i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:10 +0100 Message-Id: <20221118224540.619276-97-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?1749876252526939030?= X-GMAIL-MSGID: =?utf-8?q?1749876252526939030?= 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/gyro/st_gyro_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/gyro/st_gyro_i2c.c b/drivers/iio/gyro/st_gyro_i2c.c index 8c7af42b6558..797a1c6a0402 100644 --- a/drivers/iio/gyro/st_gyro_i2c.c +++ b/drivers/iio/gyro/st_gyro_i2c.c @@ -58,8 +58,7 @@ static const struct of_device_id st_gyro_of_match[] = { }; MODULE_DEVICE_TABLE(of, st_gyro_of_match); -static int st_gyro_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int st_gyro_i2c_probe(struct i2c_client *client) { const struct st_sensor_settings *settings; struct st_sensor_data *gdata; @@ -112,7 +111,7 @@ static struct i2c_driver st_gyro_driver = { .name = "st-gyro-i2c", .of_match_table = st_gyro_of_match, }, - .probe = st_gyro_i2c_probe, + .probe_new = st_gyro_i2c_probe, .id_table = st_gyro_id_table, }; module_i2c_driver(st_gyro_driver); From patchwork Fri Nov 18 22:37:11 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: 22612 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449409wrr; Fri, 18 Nov 2022 14:55:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ScyOOHZCZkN9vyZcHzkIS3bKoZIvarVxbDUSnuWLH8B8SSOGeDd9EoPNxQH2gnbFkd6Sn X-Received: by 2002:a63:2d44:0:b0:46f:7e1c:2bb7 with SMTP id t65-20020a632d44000000b0046f7e1c2bb7mr8337302pgt.368.1668812117718; Fri, 18 Nov 2022 14:55:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812117; cv=none; d=google.com; s=arc-20160816; b=lqiwLjoew7G3ktsCtwbmO09CvKFmY2CI4tEoK7ap4HDAnl3rRigxfNgbtrh2UMKrX+ 2kTZcurLOPurAz/Lv/F0iuwbTBDExwxB0zDMQRPCw5blOb0n7HmOmrYLQtJqZBCy3ZFT 3Ij3Dj8/XPa3CQBqhosLN26227QQ65IQHs1r0g9ooMDns9IS/HunPQ7fW/0U5GFVdjsw xfKMDBAPEU8d4ZjzVfofldxk6dmQWi+I3uXKLswxhFDmX7z0v97Q5QHjQgyUKlqgz3hz iZ8UzF/zCtn+ZhkbH+sjhGLvB8RJTsoqvQtPECqhng0eSvepIjYUgR0G/B0KGAtbg7+v 03BQ== 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=OkVkVtPIgkYxx9oeSjM0TOavGCoMvFzB72Jyxo4sbq8=; b=HEoLcV28J2xRQjmb8GikuMFW2l5379GUyvj7RI1/4RWU121H4BPRLOpuudD5AoBCjI YfxO2O062TxnZkYCLj79FtC8kOpWElw3buQBlpPMk9wOg9EJmd/yxx/ly/kCUpi0RxIF gE5Ay125GwowZyF4VJD/Pg8TzuwFAAz6cXKyihMN4qUEvM/hRK0RyDKXR0Xqodma/cf2 Vf+Y3nIU5xfMU2UwXSXckKz4EHE0j8pbi3OgZ0H/wQ22VLLsXo4I89tLGvFiaP6GbBWU LZJx30N8w+I0wZncA9wLVCfizX/GkDEpYIEE+3tuAAcsV7fpWeXpWT/Iu3QKGyJjd6qd uzvw== 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 oc17-20020a17090b1c1100b00217b50ee7b6si5598919pjb.1.2022.11.18.14.55.04; Fri, 18 Nov 2022 14:55:17 -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 S234949AbiKRWyc (ORCPT + 99 others); Fri, 18 Nov 2022 17:54:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234758AbiKRWxp (ORCPT ); Fri, 18 Nov 2022 17:53:45 -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 02C7DBE871 for ; Fri, 18 Nov 2022 14:48:00 -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 1owA80-0008W6-TB; Fri, 18 Nov 2022 23:46:32 +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 1owA7w-0058F4-0S; Fri, 18 Nov 2022 23:46:28 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7w-00Hb18-Cn; Fri, 18 Nov 2022 23:46:28 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Dmitry Torokhov , Peter Rosin , Peter Senna Tschudin , Wei Yongjun 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 097/606] iio: health: afe4404: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:11 +0100 Message-Id: <20221118224540.619276-98-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?1749876335374945626?= X-GMAIL-MSGID: =?utf-8?q?1749876335374945626?= 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/health/afe4404.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/health/afe4404.c b/drivers/iio/health/afe4404.c index 836da31b7e30..21a6378b7052 100644 --- a/drivers/iio/health/afe4404.c +++ b/drivers/iio/health/afe4404.c @@ -461,8 +461,7 @@ static int afe4404_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(afe4404_pm_ops, afe4404_suspend, afe4404_resume); -static int afe4404_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int afe4404_probe(struct i2c_client *client) { struct iio_dev *indio_dev; struct afe4404_data *afe; @@ -610,7 +609,7 @@ static struct i2c_driver afe4404_i2c_driver = { .of_match_table = afe4404_of_match, .pm = pm_sleep_ptr(&afe4404_pm_ops), }, - .probe = afe4404_probe, + .probe_new = afe4404_probe, .remove = afe4404_remove, .id_table = afe4404_ids, }; From patchwork Fri Nov 18 22:37:12 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: 22960 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp475200wrr; Fri, 18 Nov 2022 16:05:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf7463LPnb25mo6Nv/xunr286+R+1/yzVoORWLvGGzLVhK6/ybJ1z3NA58r9YGUxPhtGmfut X-Received: by 2002:a17:906:3708:b0:7ad:93df:db1e with SMTP id d8-20020a170906370800b007ad93dfdb1emr7922623ejc.445.1668816351854; Fri, 18 Nov 2022 16:05:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816351; cv=none; d=google.com; s=arc-20160816; b=mka+TUIdsQ+m+4lle64z0nEmiKyQOeg0Tgdc84j1I09cn2eXwuqvoyFOAoLg2mEW2M Tm+uWSSmfB1LBjiSFvQF7JYvAMUEkuH3VTtZ5w/CAp5c44d4r2yPCcj/3igRzN560+BM VpgOL9Sv6zIozN0i4Gs1s+CHerclKyB10bhRoJRcU6RNJWGftbSLSz6L/zFz0IsswmQy YUbStIlsP/2Z4QckL2n/KFceiz/b7nA9uG3xSBJlF4PnqDgV4iUfJC5Wg6TdLGMsb8gm l270Aj4aW5OnIXxVgpTp8cfS+ls/C8gV742IfgxvOLd20C5qDU0oSZGnWFWVSjP1LNEU x3Qg== 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=xPRsLHMe+uI6LRckZ+shxUt1me08P6OmSwnHF3uDyS8=; b=kOcoYaGq1d/iTbqcF5WgF/Re2nNVJwRUWy1e2Ag2YA6z5jbmrjbHxBgQR6HJHd6ZmO ltfDLTSQk/eYRd8dHXG5rbpLEAgqYjZ3yb3GKDXsCCKN9RMBL/7idwjK2CbMCOrG9m3t Sakw5DqjvdNE9r20n41vuYI7BXdyU+l6W335ufyBBu1DHHQf60BMSaPgW6sDOEfF7/rW 5zn3wwre8SKvDClO+YMoMe+Pz89lvwgjQgpI24UQJ9MzG258gJNG8qbtAu6dz5f9DYBK f6zUPP8clCevjPMMspKabb4DOE/ZaZ/JW6Ml7jg46BKL6t6Lo9XylkhOxwZSa/3+v7Ta CqJw== 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 d19-20020aa7d5d3000000b00469322471e2si1132811eds.534.2022.11.18.16.05.27; Fri, 18 Nov 2022 16:05:51 -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 S237290AbiKSAB1 (ORCPT + 99 others); Fri, 18 Nov 2022 19:01:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237225AbiKRX7b (ORCPT ); Fri, 18 Nov 2022 18:59:31 -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 524FCE0B49 for ; Fri, 18 Nov 2022 15:29:32 -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 1owA81-00006Z-IF; Fri, 18 Nov 2022 23:46:33 +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 1owA7w-0058FE-Hr; Fri, 18 Nov 2022 23:46:29 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7w-00Hb1D-Ks; Fri, 18 Nov 2022 23:46:28 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Maximilian Luz , Corey Minyard , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Miquel Raynal , =?utf-8?q?Nuno_S=C3=A1?= 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 098/606] iio: health: max30100: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:12 +0100 Message-Id: <20221118224540.619276-99-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?1749880775102983010?= X-GMAIL-MSGID: =?utf-8?q?1749880775102983010?= 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/health/max30100.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/health/max30100.c b/drivers/iio/health/max30100.c index 3aa5d037a1c3..a80fa9852c22 100644 --- a/drivers/iio/health/max30100.c +++ b/drivers/iio/health/max30100.c @@ -417,8 +417,7 @@ static const struct iio_info max30100_info = { .read_raw = max30100_read_raw, }; -static int max30100_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max30100_probe(struct i2c_client *client) { struct max30100_data *data; struct iio_dev *indio_dev; @@ -500,7 +499,7 @@ static struct i2c_driver max30100_driver = { .name = MAX30100_DRV_NAME, .of_match_table = max30100_dt_ids, }, - .probe = max30100_probe, + .probe_new = max30100_probe, .remove = max30100_remove, .id_table = max30100_id, }; From patchwork Fri Nov 18 22:37:13 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: 23083 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487202wrr; Fri, 18 Nov 2022 16:42:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf7IxqCYaqSJegXKOmrSMXOuZWBwB4iWCA/4uGSEO8wLjSJSpXR6BLK/bqZNSVq4wfOf2KNx X-Received: by 2002:a17:906:144e:b0:78d:cd72:8e3e with SMTP id q14-20020a170906144e00b0078dcd728e3emr7719772ejc.212.1668818533977; Fri, 18 Nov 2022 16:42:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818533; cv=none; d=google.com; s=arc-20160816; b=LpJn0aQumsW5VKRldnUKaX4o2I5ZZdj2dEepxnw5GKRt6kUkm6DZB7SV3gdqIcQBmV qBM4xm+yHqB5us9rcZqgwhT4MpsiljNe3RxKQUHiZIu+QGCFTDCaVkvhOa8Ytq3Bt2uf xTe56c8D6IqkTMVr3QPAYFUM3yh6B618uOt3KLLrQ4rULUB6pCdbDnn9uZSIofArMFEY CrSbEcwQcSPvdSxtyslZ0ZaBMreJ+pfZ0OC92QC9m64xrIdlYue/xxfsMuBx2rJPFvYd ILbKxBNVu0N3wgLGEScJLMpZcK6T20VNmmiBZP7z77MX/K02JuEeMffjZZmgpmKjb4lj 2h5w== 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=UmY6/YehkeU8IQme6CTXNSCYWPlJruWPlaaedfB5/FU=; b=g/lof10zYEalbc2da2PiTNSJdY5B0/YGCcY/V9RyTaoNZqUx0oLXqq5TcJ0jhw2nFK f+8KA2jEorKcTrh9GPrl5FsvDMJe2v1wAoZWGdJApsZ7si6T9LbfE65yw/a12gWXgmoC QfmGeJ3i4x0qi5WEmBXcO1bfDST9nv9lQvZ4hrziyi/LancqOZzfbLd34xLWLDZ5mr0O /LxSaBwdAsT89WmqQPo3+76O9rsVfLVVm12A/nxYZCqodDhv3ZrUjWIvhDCV1MLHyBen rGL0EF8gL+BSxZ+EaLvaTEgjQLMjrH/Zhq789TDmsvUSzw6cc2q0gIR+8XpqR5gbw0kT pyYA== 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 pj17-20020a170906d79100b007a45e4f4ff0si982971ejb.885.2022.11.18.16.41.47; Fri, 18 Nov 2022 16:42:13 -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 S236626AbiKSAis (ORCPT + 99 others); Fri, 18 Nov 2022 19:38:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235986AbiKSAiR (ORCPT ); Fri, 18 Nov 2022 19:38:17 -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 695D9C72EC for ; Fri, 18 Nov 2022 15:43:59 -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 1owA82-0000AT-0e; Fri, 18 Nov 2022 23:46:34 +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 1owA7x-0058FR-5a; Fri, 18 Nov 2022 23:46:30 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7w-00Hb1J-Qp; Fri, 18 Nov 2022 23:46:28 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , Benjamin Mugnier , =?utf-8?q?Marek_Beh=C3=BAn?= , =?utf-8?q?Nuno_S=C3=A1?= , Miquel Raynal 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 099/606] iio: health: max30102: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:13 +0100 Message-Id: <20221118224540.619276-100-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?1749883063064907111?= X-GMAIL-MSGID: =?utf-8?q?1749883063064907111?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/health/max30102.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/health/max30102.c b/drivers/iio/health/max30102.c index 66df4aaa31a7..7edcf9e05687 100644 --- a/drivers/iio/health/max30102.c +++ b/drivers/iio/health/max30102.c @@ -513,9 +513,9 @@ static const struct iio_info max30102_info = { .read_raw = max30102_read_raw, }; -static int max30102_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max30102_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct max30102_data *data; struct iio_dev *indio_dev; int ret; @@ -631,7 +631,7 @@ static struct i2c_driver max30102_driver = { .name = MAX30102_DRV_NAME, .of_match_table = max30102_dt_ids, }, - .probe = max30102_probe, + .probe_new = max30102_probe, .remove = max30102_remove, .id_table = max30102_id, }; From patchwork Fri Nov 18 22:37:14 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: 22691 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462480wrr; Fri, 18 Nov 2022 15:30:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf7hnICa3meZAUoXCBMlDgI9QQaVvyEVO+cl5j0/mitQCqb3YOkTOYwjJv7QbrgJ0aC2gDGp X-Received: by 2002:a17:906:1811:b0:7ae:5a4:5356 with SMTP id v17-20020a170906181100b007ae05a45356mr7841124eje.748.1668814214553; Fri, 18 Nov 2022 15:30:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814214; cv=none; d=google.com; s=arc-20160816; b=uIOAWvramWNrCtgtWFptVeTh1q/DAn7VtyicqQMm6A3wESdrBqc1SVbCLG/JIFNovR 9X6pY+fbsaGKaQq3F4+VPHA9BQ0NkSSw5cNaY7HyQqoxJxu7ZXmh4qzUi1DReggpLY4u 1fGVi8BzmOC66+rvxQ7l0h0OW0WiMGGN3UUfAN92MMslX2S8EG2zyas2CCuWzIXGtL2i ae0Fg28HQVGIFR9Up7MPeRAaZkCZ2XAr19lmLnVlag/Y0EpecpVQksTB/hSfg0mQMGgC A2EvcUoWZMn89Y1t3KvMjLq5ub4Hx6C8YSVJenKYKyRihB/ExBc9a/D+yk9r7wUhZMc5 Z+MQ== 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=8vx6z9uNPKfbWD8GIlLFoQYJnCFtYQMpQGIDpk5El38=; b=wx+Kh1opiBlbGlFVyIFLYgCKEO16I7hQQGs/r9Xi2l8KM8gbBkrBgpjeQwaOuyHVU/ 6Q88LhOxJpXblKmN7AEmKQkQHEUQK3o0XoCEse/kx0o9UpP/3qvGmBK60a/yyYcklrLB GTP4sEMxzF5UlzX5zGck9LMZql4plOL51iQAfOXK7B7gKYGHc64EaqO2IhTHJxVxlk8X 0VJqCW+yKhiygK8yNvSWbzo1aaUoBv7VnHyNsF2vPRrhJ3RXxlV7Eh1ZcRtrp9b7XRsp hyG8x3iwOkUK1iUQ6PVHnU1UiXJfAMKgBpRYcTcbPL6kWM1H1FimIFIkvcCCGKW+KKeK HRHg== 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 l8-20020a50cbc8000000b00461b661d906si4108356edi.256.2022.11.18.15.29.49; Fri, 18 Nov 2022 15:30:14 -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 S235846AbiKRX3Y (ORCPT + 99 others); Fri, 18 Nov 2022 18:29:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235397AbiKRX2l (ORCPT ); Fri, 18 Nov 2022 18:28:41 -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 2D7C67463D for ; Fri, 18 Nov 2022 15:16:34 -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 1owA82-000092-0r; Fri, 18 Nov 2022 23:46:34 +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 1owA7w-0058FM-VM; Fri, 18 Nov 2022 23:46:29 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7x-00Hb1O-1Z; Fri, 18 Nov 2022 23:46:29 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 100/606] iio: humidity: am2315: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:14 +0100 Message-Id: <20221118224540.619276-101-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?1749878533732109104?= X-GMAIL-MSGID: =?utf-8?q?1749878533732109104?= 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/humidity/am2315.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/humidity/am2315.c b/drivers/iio/humidity/am2315.c index 4a39f1019347..f246516bd45e 100644 --- a/drivers/iio/humidity/am2315.c +++ b/drivers/iio/humidity/am2315.c @@ -218,8 +218,7 @@ static const struct iio_info am2315_info = { .read_raw = am2315_read_raw, }; -static int am2315_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int am2315_probe(struct i2c_client *client) { int ret; struct iio_dev *indio_dev; @@ -263,7 +262,7 @@ static struct i2c_driver am2315_driver = { .driver = { .name = "am2315", }, - .probe = am2315_probe, + .probe_new = am2315_probe, .id_table = am2315_i2c_id, }; From patchwork Fri Nov 18 22:37:15 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: 22608 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449336wrr; Fri, 18 Nov 2022 14:55:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf533fxDLa9jiQrRX75dtwvyw6aihrbOmua5GWfRc1UwFiSOwy1IpSGFvGdSBRmSSlK63Q6O X-Received: by 2002:aa7:9dc6:0:b0:561:b2ea:bfe9 with SMTP id g6-20020aa79dc6000000b00561b2eabfe9mr10123902pfq.4.1668812100219; Fri, 18 Nov 2022 14:55:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812100; cv=none; d=google.com; s=arc-20160816; b=LKXkLZmlrKRVtT+se79EW5xPlKv86WZQS7E3ykrMUU/Mj1Cqjc30XhIkkBUQuDnL/D JqHaw9wK9DLtE+0o3hTOhI82KYy9GGS3mNgjK6OwN3nkZOH40H+Nlrwy6yCIoFQrIto/ 53eFDfCGrUWduERIio7rrveywnVmIyfcjqPknbf+ma/fDb0puBu8o8j4AGcWolp9eAqq 0wvkeKcqQgNW09c15LhR1fn2480y2Sgk7lRguhGw7R+fyP1YkVdWMbFR+ghXjW6Ezvu8 j3bqnWCjeht0R32b+fb/1kybcVRrfDPftfw6fmFyVLtEAHjDZSq+MhhSF0US4S1VSvVw kh5w== 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=tpEDofh+Y3Ch02wG/kS5epZXIyeKBhjGa8WStjvD3Ao=; b=B/sG038HDP8R2N0HsSGg7ZwoxoThfJxll5LmRDjFXJ5BgIM9mgpASCo3HIW3kF1z1J ytSs6k8o53UDAGPhBWOR/5wpaEYPQJOL8NdV1+S6vWRtjvPgSnMPci2+Ft7Pg0evB7To EHwvEy/WTw9WCHFliDfQLvzbUhC24NTVX+GlPrKxdaDTAXvq/WTlO0FDgKqq43cc6DYO pfl04vPBmtwTfRF7dADtiztjV6gopKJkQ+2AvJ2Cx0IOzh123zzUKZCtkdhgEAqVh/C/ mVJYYLkrqViMptnGzsuWdoiDiQwRI3yCkBWcTdErm3TppfIRznFzZyC134xKCm4sXUfD qGJw== 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 e20-20020a656794000000b0043c05df34c0si4790718pgr.411.2022.11.18.14.54.47; Fri, 18 Nov 2022 14:55:00 -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 S234743AbiKRWyR (ORCPT + 99 others); Fri, 18 Nov 2022 17:54:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234501AbiKRWxm (ORCPT ); Fri, 18 Nov 2022 17:53:42 -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 01D33BE25C for ; Fri, 18 Nov 2022 14:47:57 -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 1owA82-0000Cf-MC; Fri, 18 Nov 2022 23:46:34 +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 1owA7x-0058Fg-Ii; Fri, 18 Nov 2022 23:46:30 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7x-00Hb1R-85; Fri, 18 Nov 2022 23:46:29 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Kai-Heng Feng , 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 101/606] iio: humidity: hdc100x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:15 +0100 Message-Id: <20221118224540.619276-102-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?1749876316680509617?= X-GMAIL-MSGID: =?utf-8?q?1749876316680509617?= 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/humidity/hdc100x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/humidity/hdc100x.c b/drivers/iio/humidity/hdc100x.c index 47f8e8ef56d6..49a950d739e4 100644 --- a/drivers/iio/humidity/hdc100x.c +++ b/drivers/iio/humidity/hdc100x.c @@ -351,8 +351,7 @@ static const struct iio_info hdc100x_info = { .attrs = &hdc100x_attribute_group, }; -static int hdc100x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int hdc100x_probe(struct i2c_client *client) { struct iio_dev *indio_dev; struct hdc100x_data *data; @@ -429,7 +428,7 @@ static struct i2c_driver hdc100x_driver = { .of_match_table = hdc100x_dt_ids, .acpi_match_table = hdc100x_acpi_match, }, - .probe = hdc100x_probe, + .probe_new = hdc100x_probe, .id_table = hdc100x_id, }; module_i2c_driver(hdc100x_driver); From patchwork Fri Nov 18 22:37:16 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: 22610 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449366wrr; Fri, 18 Nov 2022 14:55:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ZAJ/k+Ka0FWExepvYNtmClhdvqkFyfn6pcgIw2zaMhykVzPWQvHbh7B2un5ORIRFyTz0l X-Received: by 2002:a17:90a:f305:b0:20c:9d98:13f4 with SMTP id ca5-20020a17090af30500b0020c9d9813f4mr9675395pjb.87.1668812107663; Fri, 18 Nov 2022 14:55:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812107; cv=none; d=google.com; s=arc-20160816; b=x0VT3I31GUukAEbZY/GwkVcAYT1ihFa3VFPDcVOAvAPOeHtVXXMALvyFDDjsY+QY5v ghq2njtTog/HlvVVnnBE8onNrifnj46I0PrdqB2PyzmXKKpn0ORtPU7s2yTMc/2kqBp8 P/oiwnmsV+H52OUYA4QTaTsrvqDHDGJbJxsIMK3qrGZz7K7djMgdL9ZTCtNI77vYCCPR fvuZuigi1tIsXcgK1MvrV/E8iw7GKRFz/XYwvmgwqk2AlOlMEpm9anq5fUjZ3rWdxUB2 +gyndsCKAXe7NhNP2u/rSkRdlLr/Jjl6SZZC4PcyMR7e0lnmXyrfLR00cWWUyHDOjlPd d61Q== 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=076VO9aqATpEm2N5P1rru1gme/ZPhRS4l8RT5a3Sja0=; b=RRQiV/uSdbfo0lhBrKHUzCW59wjmNxK27Vsvwpv3Q/kAHHwxnFMcAqSh9kM2HhtdBT 9vl2MSXsltbiusippoWeioLxPAfCMPyybRMqYMoHT+zUC/s9jcMCUjcd77JVyHYecpnT nWz8lPkRt7PwZZTDzBmo/jZtEbsXfg2+E8eGFHrdLb8ItPXGFhbfLnW5St8uDO96OTT4 YJlLojLjky5W7gnPyVdljMMW+rt2/Ep2Eaahvycvz4uVN1vGp2tC/7TlGeOKp0x1C65r bQ/EPQgQjdKX15llp8++EhWzJMPDk5gm1ftx2GX9D7rItdbYgQyGVn+82Muk2EsyQPYS FeRw== 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 73-20020a63064c000000b004770d61d2a9si5013990pgg.120.2022.11.18.14.54.54; Fri, 18 Nov 2022 14:55:07 -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 S234926AbiKRWyX (ORCPT + 99 others); Fri, 18 Nov 2022 17:54:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234741AbiKRWxn (ORCPT ); Fri, 18 Nov 2022 17:53:43 -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 3D53EBE869 for ; Fri, 18 Nov 2022 14:47:58 -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 1owA82-0000Ah-1y; Fri, 18 Nov 2022 23:46:34 +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 1owA7x-0058FQ-5E; Fri, 18 Nov 2022 23:46:30 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7x-00Hb1U-FC; Fri, 18 Nov 2022 23:46:29 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Jean Delvare , Corey Minyard , Andy Shevchenko , Peter Senna Tschudin 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 102/606] iio: humidity: hdc2010: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:16 +0100 Message-Id: <20221118224540.619276-103-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?1749876324637541686?= X-GMAIL-MSGID: =?utf-8?q?1749876324637541686?= 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/humidity/hdc2010.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/humidity/hdc2010.c b/drivers/iio/humidity/hdc2010.c index d6858ccb056e..c8fddd612e06 100644 --- a/drivers/iio/humidity/hdc2010.c +++ b/drivers/iio/humidity/hdc2010.c @@ -251,8 +251,7 @@ static const struct iio_info hdc2010_info = { .attrs = &hdc2010_attribute_group, }; -static int hdc2010_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int hdc2010_probe(struct i2c_client *client) { struct iio_dev *indio_dev; struct hdc2010_data *data; @@ -339,7 +338,7 @@ static struct i2c_driver hdc2010_driver = { .name = "hdc2010", .of_match_table = hdc2010_dt_ids, }, - .probe = hdc2010_probe, + .probe_new = hdc2010_probe, .remove = hdc2010_remove, .id_table = hdc2010_id, }; From patchwork Fri Nov 18 22:37:17 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: 22687 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462307wrr; Fri, 18 Nov 2022 15:29:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf7DP2AoXsvBP3BeOk7mH3sGCr5q6gT+EugpXBdVtXW7dsubxYKjg4LWD2pPmdULgP8y1nUR X-Received: by 2002:a17:906:541:b0:7b2:8431:6d75 with SMTP id k1-20020a170906054100b007b284316d75mr7893653eja.329.1668814186971; Fri, 18 Nov 2022 15:29:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814186; cv=none; d=google.com; s=arc-20160816; b=lhsYpv1Jd1NRSilObXCvEhn2nYPqwwk7lEK9uNvaoagtQaRr52QUUlP3C/EkYd12/b ieBk4Keutq+vCQ+z8xNJ0heZSng2hyQOF2Cx+JCWpPWu2I8xGKMi6Vl5ypcy8NZW+tmT eM6sjSdU86vH/O8Vve4L4gcv27gS2YM40Exe+dXVYoO9/Sx50/O2HGsymguVPYvP1/Tc sNVjt6/UY9JtR98ymm5Xb8SSZwEvWYUMe1i6bxbAL3kL5eltCEfoU6qY9mPapoDr5xUW dhLl2Frz2Umn/rFvJ73IwSEo9LbZvtYWUgNSAJIOIl3M/wgi0y0hPwVt071fhXK7JS1H 2FiQ== 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=R4qpGNzHsR9aIrUzshemLVP1VW6+YB56wxJxNieieq8=; b=AFb/hrMpRRtuD/FMOAXDGRQRofENL7PVoVxul6JzPEiAYbxbUGhy/FACYcWeoEEK+y hCdg2GALEtZ93L32DEgrl6r7X9q5VfG5T99y6WFT5ZVFVPUdCTWx6ityZykvNifYQ6lm WEJ+qZWfFrpIyuFvO1JPOVORgkF3PzO5uNh3a3wFYu/ePe/ptUDYYhcDYf90vkxOX7pD j6/B4PKMDyPrnneWlVTiz/Aw6PHuV7sRqS6SwyicpPHSs7VTxjBNREn5v3ciD1uCDaV9 U3utrUTLoMGhmNUn+/kHhpBq5usK1fiIpCBtl+CaoBPXDAniUxKCLfTU7eJP4ZgDF7iL aAWw== 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 y8-20020a056402134800b004617551556csi3780575edw.128.2022.11.18.15.29.22; Fri, 18 Nov 2022 15:29:46 -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 S235796AbiKRX2q (ORCPT + 99 others); Fri, 18 Nov 2022 18:28:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235715AbiKRX2J (ORCPT ); Fri, 18 Nov 2022 18:28:09 -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 3A08D2B3 for ; Fri, 18 Nov 2022 15:16:00 -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 1owA82-0000Ce-AD; Fri, 18 Nov 2022 23:46:34 +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 1owA7x-0058Fc-H9; Fri, 18 Nov 2022 23:46:30 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7x-00Hb1Y-N5; Fri, 18 Nov 2022 23:46:29 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lorenzo Bianconi , 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 103/606] iio: humidity: hts221_i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:17 +0100 Message-Id: <20221118224540.619276-104-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?1749878504666664607?= X-GMAIL-MSGID: =?utf-8?q?1749878504666664607?= 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/humidity/hts221_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/humidity/hts221_i2c.c b/drivers/iio/humidity/hts221_i2c.c index afbc611f7712..d81869423cf0 100644 --- a/drivers/iio/humidity/hts221_i2c.c +++ b/drivers/iio/humidity/hts221_i2c.c @@ -25,8 +25,7 @@ static const struct regmap_config hts221_i2c_regmap_config = { .read_flag_mask = HTS221_I2C_AUTO_INCREMENT, }; -static int hts221_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int hts221_i2c_probe(struct i2c_client *client) { struct regmap *regmap; @@ -66,7 +65,7 @@ static struct i2c_driver hts221_driver = { .of_match_table = hts221_i2c_of_match, .acpi_match_table = ACPI_PTR(hts221_acpi_match), }, - .probe = hts221_i2c_probe, + .probe_new = hts221_i2c_probe, .id_table = hts221_i2c_id_table, }; module_i2c_driver(hts221_driver); From patchwork Fri Nov 18 22:37: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: 22734 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464538wrr; Fri, 18 Nov 2022 15:35:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf58y0wFf0coYUYK+bv1nyhOKVgikMAs/I/izEizHmrifwyBrQJmbb2NhZb2kkspwtQ//yEV X-Received: by 2002:a17:906:3d42:b0:78d:d12c:7e96 with SMTP id q2-20020a1709063d4200b0078dd12c7e96mr7696205ejf.298.1668814512306; Fri, 18 Nov 2022 15:35:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814512; cv=none; d=google.com; s=arc-20160816; b=oASUVy9Or/neHwRWkyOGPB7PQMzoJu9k/u6bzCrESEO2soJikC+H6MhZpvNilKMk49 9yil5KFfWvIkOqsM6nGJjTrwdljW8+2bd8eyn2fTUhzbF+3Dq7jyWET3Rjjt8vcL9HuP uFqdMmHwVRWSTzS0jy4XZID4KkCChldutz/hDO6M95gvrUpWvihy7PHBrt18T3isirE2 5X0w8Iiuw22RS/vPUGmREmap9q5fZxWplzIJ/1OVW6e+1XW/OY+HB7L/vcSlDjZnHr5o A4+oogTNHXSr/xZUf5+LZkk+Lt57SsncvEUFPMVqqFUje3jwxfS1pyx7WvOVwdveHkJZ M8Tg== 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=yosQteOe0yMmJfQsZIXzfxEz3ET/BiUjGQijgaEJx3E=; b=cjm+MvX/8Hdswp5fyELz/8vYKuBIGNz1CIA5TNk1bTHXxRCXdMOzumzN0WuN0di/XV +2GtPM1NyVmhqplpKkNvvZJxCooqEYerTQ2BRduRrVFB/0lRcjh3uTMC4RCuQy0zNqh2 8ILJ34j5cuUhUzGn9RYW3VPhmLvJi13D4iTv6INMYJ3m5/3U7VE8sCJ+RTbuT+S2nF9T 8W8qYn7evGKzGNYsBVC5K+ZU9nNKwyYe9pyMYsiso1yKvVv5fGzxyW4h++iZKzxmvsRH spMcjNTzGSqy2vUC19yJkSUK5LMm1bARQnz3EfpHsgoAATHNpWLyZRph7RDqsw1PZA5v 6cPA== 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 z27-20020a1709063adb00b0078dacbcaa7asi3693545ejd.992.2022.11.18.15.34.48; Fri, 18 Nov 2022 15:35: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 S236133AbiKRXeS (ORCPT + 99 others); Fri, 18 Nov 2022 18:34:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235833AbiKRXbj (ORCPT ); Fri, 18 Nov 2022 18:31:39 -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 0702878B11 for ; Fri, 18 Nov 2022 15:18:58 -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 1owA82-0000DJ-Oq; Fri, 18 Nov 2022 23:46:34 +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 1owA7x-0058Fk-MA; Fri, 18 Nov 2022 23:46:30 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7x-00Hb1b-Ta; Fri, 18 Nov 2022 23:46:29 +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 104/606] iio: humidity: htu21: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:18 +0100 Message-Id: <20221118224540.619276-105-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?1749878846326745900?= X-GMAIL-MSGID: =?utf-8?q?1749878846326745900?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/humidity/htu21.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/humidity/htu21.c b/drivers/iio/humidity/htu21.c index fd9e2565f8a2..8411a9f3e828 100644 --- a/drivers/iio/humidity/htu21.c +++ b/drivers/iio/humidity/htu21.c @@ -177,9 +177,9 @@ static const struct iio_info htu21_info = { .attrs = &htu21_attribute_group, }; -static int htu21_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int htu21_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct ms_ht_dev *dev_data; struct iio_dev *indio_dev; int ret; @@ -244,7 +244,7 @@ static const struct of_device_id htu21_of_match[] = { MODULE_DEVICE_TABLE(of, htu21_of_match); static struct i2c_driver htu21_driver = { - .probe = htu21_probe, + .probe_new = htu21_probe, .id_table = htu21_id, .driver = { .name = "htu21", From patchwork Fri Nov 18 22:37:19 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: 22613 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449468wrr; Fri, 18 Nov 2022 14:55:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf7mLcwiinwaZUnQbw0OnQTFVyK1ZHG6uESdFb+IKHMEtSGmb2GaijJyU1UAjuRBNJlVIccu X-Received: by 2002:a62:16d3:0:b0:562:c1d4:e287 with SMTP id 202-20020a6216d3000000b00562c1d4e287mr9645071pfw.80.1668812129253; Fri, 18 Nov 2022 14:55:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812129; cv=none; d=google.com; s=arc-20160816; b=moHIHekGcOIQiZ2dByYJo1mw9apkhM7e0UWuinI/SOxgEsAS9dNeMR34RaGdEitxTL nO8ZU9bn2BVGXt9mUxCS6GFpVpKYJt50tpih/rAwzaR7NZtZYB+Vxq6s9XbaehA7xlUF fKdghh1QE6INcDbhOKGtIO5Q5605WywuqfxNJ5g6Re5p5JWcxakQg/o4aloVpFUDfaYF XvogUMYL7YZieHiPBLsfyF0V0tIx7KoEXXTM32Zu5jYsaVoJspviJsp/F2273hVqNDa3 ld3rynrz5gzNzym6D9VRAbgDvJ6eGP5S8JMGboK7mNCJcY7QK24HmKB+J0YdAA/Kv14t tPIw== 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=2reiA9OMXRAoKI1BnFD4XDjDeTe5x8cA+ffibkuI9pQ=; b=kSojq2tcy2GpE/wpjzNe91VrZC2qOlSDNcopGvTfTR1nOQ3SNGjksr0ZjKsoTlU03r FaHNwY1KtO+TOk/MvC+SLHaqmjRsEsMHnLA6LMtIae5HSyoaFnD556idat9Taw6bwB9P Jqtz4bRl9o77mHcv0a/t2SXxl7tL2YPOIvMIY5AerXnP6oFLKvdS3gBd5LPbxvCXmShY xwK4hI5H2Jyt9Ig8NN8Gd1zwqzZ5IGLFsJ9N68kLOg7DYBfw4XHEe4kTZaE8fCLCqkbv cdiElQPRRq6JPDpusUnF+qC2laxJK8dznhXofkoeNPWEuo26iO5/s7e4OnxfOA1qZtbb RofQ== 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 b3-20020a63e703000000b0047701a23907si4650392pgi.252.2022.11.18.14.55.16; Fri, 18 Nov 2022 14:55:29 -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 S234992AbiKRWyu (ORCPT + 99 others); Fri, 18 Nov 2022 17:54:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234794AbiKRWxt (ORCPT ); Fri, 18 Nov 2022 17:53:49 -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 5E6AFBE87B for ; Fri, 18 Nov 2022 14:48:01 -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 1owA82-0000EE-VB; Fri, 18 Nov 2022 23:46:35 +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 1owA7x-0058Fn-S2; Fri, 18 Nov 2022 23:46:30 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7y-00Hb1f-4G; Fri, 18 Nov 2022 23:46:30 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 105/606] iio: humidity: si7005: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:19 +0100 Message-Id: <20221118224540.619276-106-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?1749876347075177107?= X-GMAIL-MSGID: =?utf-8?q?1749876347075177107?= 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/humidity/si7005.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/humidity/si7005.c b/drivers/iio/humidity/si7005.c index 160b3d92df61..fa1faf168c8d 100644 --- a/drivers/iio/humidity/si7005.c +++ b/drivers/iio/humidity/si7005.c @@ -123,8 +123,7 @@ static const struct iio_info si7005_info = { .read_raw = si7005_read_raw, }; -static int si7005_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int si7005_probe(struct i2c_client *client) { struct iio_dev *indio_dev; struct si7005_data *data; @@ -174,7 +173,7 @@ static struct i2c_driver si7005_driver = { .driver = { .name = "si7005", }, - .probe = si7005_probe, + .probe_new = si7005_probe, .id_table = si7005_id, }; module_i2c_driver(si7005_driver); From patchwork Fri Nov 18 22:37:20 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: 22867 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472090wrr; Fri, 18 Nov 2022 15:59:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf5SSzD0S25joJfUT55Gij0MQhATedZwtiRQHWpYRcgikAXEb0lMR+OMNi1wTrDLoiE+C412 X-Received: by 2002:a17:906:f6c6:b0:78d:b367:20c1 with SMTP id jo6-20020a170906f6c600b0078db36720c1mr7416236ejb.530.1668815960667; Fri, 18 Nov 2022 15:59:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815960; cv=none; d=google.com; s=arc-20160816; b=zup2J11skC5XL87aENOn9CGTUm0qKaQBN5uWC8qDxKDWm9qE4W30jEg8VNZrRoX4c9 WiOxl0DtMZ/UDzU/pSvTLM7rYvaOf7Cn2+QGT2pAzfzqHmr5KRI+U1lkbGWTPhBlUQwv 8Xu4zKAprzcaPB8q+ACyOYyV+hjh4uqiphRGiI8K3iiUgJTWafz9V3lNc9xvMoZQ0rua 27AxpHElPgjahs4vSw2tKxC2JE/ZVk6A5yxnawTTy4iK/wlq+tdReS2Iu2/wcmXkysFP aQ8lA16p6Q8MF4vN3ILLO8Atg1qMUYGUO0BcY6BSF6MoRwLklIFfTMrgeakr0v1E4Ccb Ziig== 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=CrOiRLw7NchfAZlF7LWP5RAPx7fzHsHhE1+e4xzTrQ4=; b=N0C0dIgqS65nF0IoBCn7v4o1Nre/0vdMBDvVsaByr887heTdydQiLgU+/a/aqEJYRB e+e7XKpcx3jJ++f2OsfdEwDhwrprGvkIM19Xfu5TqJYY8lYdZkTzStQ51X+otV2drlvY qMIWz2zfUaE90UgISR1gTa/MUlDOrfq6A2JnA/xZohgQ8tFtoCtuMM27yUqF2+DeFbfa np/xN+C6FCPlQTQw2L1QlUbhy/JVfPgwOIbuBnAGX3WHdP+4BiVMx8bF5QmZXeoO+psA nTW2/y/BjH7c604pFW5GjHf+/kk1mE3IT0UE1PbTSP+NgOVUvSMd9dvsYYR/u1ydtVMr gTvA== 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 n18-20020aa7c692000000b00453b9f11b56si3806975edq.261.2022.11.18.15.58.55; Fri, 18 Nov 2022 15:59:20 -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 S236811AbiKRXo3 (ORCPT + 99 others); Fri, 18 Nov 2022 18:44:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236653AbiKRXoB (ORCPT ); Fri, 18 Nov 2022 18:44:01 -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 357E8C78E4 for ; Fri, 18 Nov 2022 15:24:16 -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 1owA82-0000FX-Gx; Fri, 18 Nov 2022 23:46:34 +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 1owA7y-0058Ft-33; Fri, 18 Nov 2022 23:46:31 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7y-00Hb1k-Bg; Fri, 18 Nov 2022 23:46:30 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 106/606] iio: humidity: si7020: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:20 +0100 Message-Id: <20221118224540.619276-107-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?1749880364983241051?= X-GMAIL-MSGID: =?utf-8?q?1749880364983241051?= 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/humidity/si7020.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/humidity/si7020.c b/drivers/iio/humidity/si7020.c index ab6537f136ba..3e50592e8e68 100644 --- a/drivers/iio/humidity/si7020.c +++ b/drivers/iio/humidity/si7020.c @@ -103,8 +103,7 @@ static const struct iio_info si7020_info = { .read_raw = si7020_read_raw, }; -static int si7020_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int si7020_probe(struct i2c_client *client) { struct iio_dev *indio_dev; struct i2c_client **data; @@ -156,7 +155,7 @@ static struct i2c_driver si7020_driver = { .name = "si7020", .of_match_table = si7020_dt_ids, }, - .probe = si7020_probe, + .probe_new = si7020_probe, .id_table = si7020_id, }; From patchwork Fri Nov 18 22:37:21 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: 22945 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474811wrr; Fri, 18 Nov 2022 16:05:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf6v5MRizRTx7ItPaXAVi0YyXCpugrRi46RqCltT9gJdu9ko2O+NItr51xveRX6iDInU70CK X-Received: by 2002:a17:906:99d3:b0:78d:c7fd:f755 with SMTP id s19-20020a17090699d300b0078dc7fdf755mr8098024ejn.702.1668816302695; Fri, 18 Nov 2022 16:05:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816302; cv=none; d=google.com; s=arc-20160816; b=I2/UDE3A/FQ4ZhmIlHl2ZBd28u2jFDA3ovzlzMo6WM+o8cJFb165NhzXTJWBO/KnVw U+cmn8r7/pIHKw9kUDkwfShGnVNvekLYlrPaQlI9MbsOeLNID/DjOrP4TrY2F998sPiq 4ITCUR10R5/Sb/oej5uO5xauJDd1ICzIZTeiZuEkhUQJoeZ0k+lRyChlcY68VfemrgBQ m1N2CkarfRxw9pgXZnRTtIspD7o45Shtt1DDH9YT45cgHXbUDQqY3TjUjltAeh9xOJnQ SXULSsbGR338qFhbPiEhqdo2brGOxZJvqxpTahYEnHnb18UBA2qJTVyt3o/kQ0n/+pge bL/w== 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=QSa497NJ5CnDmFg/HX4RR1goHoGM0eVv/TdXK1Qv5FA=; b=aKxApIQn3hahfRu7qQNJi6whJ4jMT1ZPnNtPdYjSydoXWsHyLK9yJKUQ1JIaGt28mK 35FTck3v9X9/eZw1tHdAPBBISA7W252y7yZjrYkgQAT8t4W9ayYlG7YVzLjDJLSMVZUT 38gEl57rrjBmHSC3VcK2YdkQhEsGI09kCUjFPwiQtiGneOcwsH6b+WswfvYAefLQTRFj dFeAcDGuWRbkCck6k8BYa4/T6qLNK0ZYqUYMB6ldceDJvuzk7aBMUXBcxaWqFt5HF8Lq 86L1SZAnZtfSsj9q63+eZavpsUHWTYDAutYnWsfb7EmUkBEfsmd876e7Fn0Qe7SgtnMr PDww== 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 y9-20020a056402358900b004597671e0ddsi4435782edc.338.2022.11.18.16.04.36; Fri, 18 Nov 2022 16:05:02 -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 S237313AbiKSAAj (ORCPT + 99 others); Fri, 18 Nov 2022 19:00:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237451AbiKRX5q (ORCPT ); Fri, 18 Nov 2022 18:57:46 -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 21D7DCDFFD for ; Fri, 18 Nov 2022 15:29:13 -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 1owA82-0000H1-RZ; Fri, 18 Nov 2022 23:46:34 +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 1owA7y-0058Fz-Ai; Fri, 18 Nov 2022 23:46:31 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7y-00Hb1o-Iq; Fri, 18 Nov 2022 23:46:30 +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 107/606] iio: imu: bmi160/bmi160_i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:21 +0100 Message-Id: <20221118224540.619276-108-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?1749880723531531083?= X-GMAIL-MSGID: =?utf-8?q?1749880723531531083?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/imu/bmi160/bmi160_i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/imu/bmi160/bmi160_i2c.c b/drivers/iio/imu/bmi160/bmi160_i2c.c index d93f4fa2ad55..2ca907d396a0 100644 --- a/drivers/iio/imu/bmi160/bmi160_i2c.c +++ b/drivers/iio/imu/bmi160/bmi160_i2c.c @@ -15,9 +15,9 @@ #include "bmi160.h" -static int bmi160_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bmi160_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct regmap *regmap; const char *name; @@ -60,7 +60,7 @@ static struct i2c_driver bmi160_i2c_driver = { .acpi_match_table = bmi160_acpi_match, .of_match_table = bmi160_of_match, }, - .probe = bmi160_i2c_probe, + .probe_new = bmi160_i2c_probe, .id_table = bmi160_i2c_id, }; module_i2c_driver(bmi160_i2c_driver); From patchwork Fri Nov 18 22:37:22 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: 22890 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472402wrr; Fri, 18 Nov 2022 16:00:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf6WHqhmZDUHxJMvqXq7vwUiXQQv0brCIrLDqTnunTkVHD35TpPCO+2V38nJYoaZd7xwgZ2+ X-Received: by 2002:a17:906:805:b0:78d:8267:3379 with SMTP id e5-20020a170906080500b0078d82673379mr7692737ejd.415.1668816010385; Fri, 18 Nov 2022 16:00:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816010; cv=none; d=google.com; s=arc-20160816; b=BGQShcDrKJe0zCJpk6Bl1U9egEjCtjfcMyc36wpOv1ApFsCU3PokZTDS6ZCDVBAsnF 3WZIAa1N3BQJC4knSEetmxLCuc69JjacbUZhld4ABQs8pqT5TdOCQH1GYRVnsEdlObCV mmc9886pYo/2UICN+neEvO3pKbdooP/BXoJB8IhDuaibHW4fk3M6ww67vF0KOwXNIswQ jI5f8LamvoNhSjGAebrTTG1TcMUh9PlmFwieakuCEtbfE3QQTbSH3cbKBFsTENmhGfJY YvF+Mx9iSP5QTkKGsG3d9feVAZLvNAB9rXTNCMAyaVfFI+LMc1iPqLV4KISe8Mp/Aq17 c+AQ== 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=ZtyWw+H/5b6lzBNu7thRXjsREsj6V5lhqujZAmpxjWU=; b=qz7EW98JXZwijD//miJJLLBHWAScn63t+ckovvEbzjoFthd41p4bZdeZ6NJDA2doqk r2V/RzJIpjnfNHYVZNM3pwPjvHvSVwVdxjP7G5ijoXxQFlZIlXqoc0qy7FC1hkwJKZ8V V2x6opADJkhxSrMg9obEL7asmiAcITRiXyyQZtv6i4mf0cRmSh8qkSzNqCDuyOPhR52+ Hd02uPtLSGvX5v8ovsxtZ5C3EPeT9D/1xQ2R6hT1yWPgQpLWTt2RZH0ohN4rO5LzJ0yA 9UACSARftNiYCnp+EKoWLF153MGenBDZLufvVjqpvOIgG5yhJkJAutpSjgsQ72hbsIA4 HYLw== 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 m12-20020a056402510c00b00457fc1bcf12si366965edd.183.2022.11.18.15.59.39; Fri, 18 Nov 2022 16:00:10 -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 S237102AbiKRXxm (ORCPT + 99 others); Fri, 18 Nov 2022 18:53:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237015AbiKRXwF (ORCPT ); Fri, 18 Nov 2022 18:52: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 A837DBBDCC for ; Fri, 18 Nov 2022 15:27:23 -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 1owA84-0000Jk-1p; Fri, 18 Nov 2022 23:46:36 +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 1owA7y-0058G6-TA; Fri, 18 Nov 2022 23:46:31 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7y-00Hb1t-Q1; Fri, 18 Nov 2022 23:46:30 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 108/606] iio: imu: fxos8700_i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:22 +0100 Message-Id: <20221118224540.619276-109-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?1749880416997115697?= X-GMAIL-MSGID: =?utf-8?q?1749880416997115697?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/imu/fxos8700_i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/imu/fxos8700_i2c.c b/drivers/iio/imu/fxos8700_i2c.c index 40a570325b0a..a74a15fda8cb 100644 --- a/drivers/iio/imu/fxos8700_i2c.c +++ b/drivers/iio/imu/fxos8700_i2c.c @@ -18,9 +18,9 @@ #include "fxos8700.h" -static int fxos8700_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int fxos8700_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct regmap *regmap; const char *name = NULL; @@ -60,7 +60,7 @@ static struct i2c_driver fxos8700_i2c_driver = { .acpi_match_table = ACPI_PTR(fxos8700_acpi_match), .of_match_table = fxos8700_of_match, }, - .probe = fxos8700_i2c_probe, + .probe_new = fxos8700_i2c_probe, .id_table = fxos8700_i2c_id, }; module_i2c_driver(fxos8700_i2c_driver); From patchwork Fri Nov 18 22:37:23 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: 22628 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp457565wrr; Fri, 18 Nov 2022 15:15:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf7xTm49yjMPqd1+hnKnyzFP1+I2zZw1VEAkRZrPe1c7Q4cCEmClhYXyi5ogshbY1toZpwGC X-Received: by 2002:a17:907:8c0d:b0:7ae:70f9:114 with SMTP id ta13-20020a1709078c0d00b007ae70f90114mr7675569ejc.44.1668813332367; Fri, 18 Nov 2022 15:15:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813332; cv=none; d=google.com; s=arc-20160816; b=urdCuerGB35FgM2gSW2k1+DEThXIFfjkttMmq75KHSsf28nAM9VZv1UcgKvAtJQ5w0 AFprINVo8w+HrsLBgkPJfTnajDrslxEf+Kc6wYT6/D9F1ds8HpdC8FwpSR7KZX+/nate NkeOFr7ouS9TyzqSS1i/1lvIRnvZZ1yIy9rC4GulZUBC4/SgxVfZRvhefYdDAqscTxXu Pm32v0wbb4Q69ueDG3cxgK21dQaQ1Iw0s7shEyoHAxwhDZCuXYhvriVFvxwAh5B5UGGw hnkbMcIJYomw/61UNQNERXc5VPp0o+sI50TxuHtaHjot5ndDdFvijz89BfLhVaP9Yhcn HZyg== 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=tpIYlPQHLA/EAzZQ9AQfrsLrKYNP8doxXnqeLsm30Qw=; b=yi7LAzkg3n2gZWrL0sQ+hDK9e/4pZNu/IA40bmu6MTYw5K9aiy2G9QYf7/QSpYi7vn wP2nlzXdR49nVdmYH/mjuOupXhmjv7t8dp2FPvmYLwYc+AiTFLj5/8ru273P2ebgZp9L LaCyQXqj0B2Oz+J73ZtpCjZVeu83N0vVjG6Kashibsfh4DkTM+g+iYEl57CI6ZEyMGkR detAZv9jIGEU1YXgIVhlA9bWW9AUmumyi4VI/rSUU2M4mwBHizJMcdqpexmRqbiNDgQg XhrLIEdDmBGhZeutvtje9cnqJbbwE7YWVDnZE+jl1W3g1/pTlJqGIDQydQ55Ofw6pWdj UxRw== 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 hp36-20020a1709073e2400b00782a33f2850si4370709ejc.736.2022.11.18.15.15.03; Fri, 18 Nov 2022 15:15:32 -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 S235358AbiKRW7S (ORCPT + 99 others); Fri, 18 Nov 2022 17:59:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235570AbiKRW5g (ORCPT ); Fri, 18 Nov 2022 17:57:36 -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 53DFDC72C8 for ; Fri, 18 Nov 2022 14:49:08 -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 1owA84-0000L1-NI; Fri, 18 Nov 2022 23:46:36 +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 1owA7z-0058GA-5t; Fri, 18 Nov 2022 23:46:32 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7z-00Hb1x-00; Fri, 18 Nov 2022 23:46:31 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , Jean-Baptiste Maneyrol , Hans Verkuil , Michael Srba 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 109/606] iio: imu: inv_mpu6050: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:23 +0100 Message-Id: <20221118224540.619276-110-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?1749877608545936397?= X-GMAIL-MSGID: =?utf-8?q?1749877608545936397?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Acked-by: Jean-Baptiste Maneyrol Signed-off-by: Uwe Kleine-König --- drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c index 7a8d60a5afa9..70eaa408e388 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c @@ -95,9 +95,9 @@ static int inv_mpu_i2c_aux_setup(struct iio_dev *indio_dev) * * Returns 0 on success, a negative error code otherwise. */ -static int inv_mpu_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int inv_mpu_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); const void *match; struct inv_mpu6050_state *st; int result; @@ -260,7 +260,7 @@ static const struct acpi_device_id inv_acpi_match[] = { MODULE_DEVICE_TABLE(acpi, inv_acpi_match); static struct i2c_driver inv_mpu_driver = { - .probe = inv_mpu_probe, + .probe_new = inv_mpu_probe, .remove = inv_mpu_remove, .id_table = inv_mpu_id, .driver = { From patchwork Fri Nov 18 22:37:24 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: 22629 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp457646wrr; Fri, 18 Nov 2022 15:15:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf6+rYuZ5gyGJ7rQMCyyNm12IPCLMbPgVc5Pt4gH9D1rxwNjNfQmsp3NXteP/h+tMsjDVWuE X-Received: by 2002:a17:906:4e89:b0:7ae:c1b2:d928 with SMTP id v9-20020a1709064e8900b007aec1b2d928mr7827718eju.296.1668813348092; Fri, 18 Nov 2022 15:15:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813348; cv=none; d=google.com; s=arc-20160816; b=JQp/nDNUQPXBxhphq+HzlxiGsgifFJrrYaW7GeS+opc+R8XE0ng0gbNNPYltvWbEPy TK/1tNuEfrYUsjKDfbAFfRoffFfxK9O9fA/Lp2ONedgLyVNaONIoNf44k+J7iX0MzfjA /5/+0hD5F3o/ybgr+rQkND2piZEUR01ydvjZWwVkUzggjRoQIkuy66KmKQtWDLPcluEC MKCcNGmgxmWM4TnlPZ/uS/6QiRYVeCE2dw1p+EZATNs8bYBefwlvYuNAKxVLo0JX/AVz gbIJmoSnLqqal0eWS+kXgAY5QbWcgbxWZBj1vEBJmf+JK7Nylpu/fEM6il2lEz5P9um7 uw3g== 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=uIsD79h0UZzr1Wzd6zUmmcdYIHE2B7/VbpCFEiA1Xls=; b=Kcy6qNqsPsSk2PxQ3B/ifiPbOKPGzsBSmq1dbQMw6hQHStJDEw76JiB2Nw+gUGuUfR l9tTrc9WVuXLTrsiWZ4XRyfpbkblmaTOszl8AFq5wbRxWXkH/O0h/MsSBgzyhfiKXsWv MEgRMhPc0tTx8yTQQPYAsErPfBwY7Hbs2rkHmPSLrxLT6faC2/JlJNMaEa4S2X3mlMD4 zRrYZKCq3JKNB6Qyt+LicufUJH56Bp6zjTDxpYW8SsClqlwwGBI9t2mDb4qMlfkISU6k mgP5+yVwft11A0rQVHBOzhPXeETlSBFl8LlFg7odUZgcNAnMkhgG4NcNprPAgAnsbXkX 2M/Q== 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 xh13-20020a170906da8d00b00780837381d8si4540871ejb.591.2022.11.18.15.15.24; Fri, 18 Nov 2022 15:15:48 -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 S235280AbiKRW7A (ORCPT + 99 others); Fri, 18 Nov 2022 17:59:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235632AbiKRW5r (ORCPT ); Fri, 18 Nov 2022 17:57:47 -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 23FDFC72F0 for ; Fri, 18 Nov 2022 14:49:13 -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 1owA84-0000MF-Ne; Fri, 18 Nov 2022 23:46:36 +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 1owA7z-0058GM-Jr; Fri, 18 Nov 2022 23:46:32 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7z-00Hb21-5O; Fri, 18 Nov 2022 23:46:31 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , Hans Verkuil , Peter Senna Tschudin , Miaoqian Lin 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 110/606] iio: imu: kmx61: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:24 +0100 Message-Id: <20221118224540.619276-111-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?1749877625496386987?= X-GMAIL-MSGID: =?utf-8?q?1749877625496386987?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/imu/kmx61.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/imu/kmx61.c b/drivers/iio/imu/kmx61.c index b10c0dcac0bb..e692dfeeda44 100644 --- a/drivers/iio/imu/kmx61.c +++ b/drivers/iio/imu/kmx61.c @@ -1276,9 +1276,9 @@ static struct iio_trigger *kmx61_trigger_setup(struct kmx61_data *data, return trig; } -static int kmx61_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int kmx61_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); int ret; struct kmx61_data *data; const char *name = NULL; @@ -1517,7 +1517,7 @@ static struct i2c_driver kmx61_driver = { .acpi_match_table = ACPI_PTR(kmx61_acpi_match), .pm = pm_ptr(&kmx61_pm_ops), }, - .probe = kmx61_probe, + .probe_new = kmx61_probe, .remove = kmx61_remove, .id_table = kmx61_id, }; From patchwork Fri Nov 18 22:37:25 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: 23016 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp478239wrr; Fri, 18 Nov 2022 16:13:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf533/TlctfveJRZpogsGy1WR2g0hiOXFNZsB1HqTkUxRlYGY3VW5MhDMf33gGR1vCoc6pPO X-Received: by 2002:a63:f152:0:b0:476:a612:abd7 with SMTP id o18-20020a63f152000000b00476a612abd7mr8555255pgk.241.1668816820629; Fri, 18 Nov 2022 16:13:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816820; cv=none; d=google.com; s=arc-20160816; b=M2KbmUxBRS7oW8mzKcGDguPVvOzTjUO0Ycrspe3mcP9Shy1ZfcsTYMpkZtbnoJlrvu oZMrlhDD2IEMWXIaollCG1SJVbLw72hLIzm8XYdcsCkHhWn2fENM+ipdl2y7jpAFXKTk gXzDHTRnDX+ZOyHnBqZuhFbnadcdpx178oqbe7bnjU1J22qvYRXrlmHbq6lMOWpkUY/w mBRNbEc6IidOg9zQFyy5OmZV0k4qyjFCybIXESxSobQzm7zhqeGyO1WC+ezMaNIsrhwC 2FZIyklBR6MsWgOyLXq15deruAC5u5afCG4E+dHxiXlZT+IxB7XC6UJAl2fBFdeW+a3l yuuA== 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=afiCHV/wX28nA4Yz7Vyw8I8JdgxhL810H55DaT6bGUk=; b=AWTjwZLpTTMqEDux6oRb6ngAoa9eHOx5Q8i0ASCyw8zvzRTsXMlpQ8WTuEk4kpyL3s ytt/0Bbhas0kFbvFtofvmoQ5/xNurLaTAiAnhV36qHq/O865uf3r8QUhk70cUqXOfsOI l8xW9zco8qJb4FW52PKWu102amHqINHlXGJZs72vzvnCnM8nZk+BT3e6SaIfB8UT4Udq nW/rnoujPCdupak0Fy3dkt4XFeooN1n1PXd0Cub4OQ7pjONoJ6N/HDWdMLsv1UiH4Vc5 f/Qqy3I3QUG2Xg0lueK6LkgzYLymsp6YsioqgAX25UFCIiHq60DuVbOjaeYLImCBuC1m SpZw== 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 b14-20020a17090acc0e00b00213120e0c85si8010365pju.156.2022.11.18.16.13.27; Fri, 18 Nov 2022 16:13:40 -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 S237772AbiKSAMq (ORCPT + 99 others); Fri, 18 Nov 2022 19:12:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237661AbiKSAKx (ORCPT ); Fri, 18 Nov 2022 19:10:53 -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 52DF4165B0 for ; Fri, 18 Nov 2022 15:33:34 -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 1owA84-0000LW-HX; Fri, 18 Nov 2022 23:46:36 +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 1owA7z-0058GF-BO; Fri, 18 Nov 2022 23:46:32 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7z-00Hb24-Dm; Fri, 18 Nov 2022 23:46:31 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lorenzo Bianconi , 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 111/606] iio: imu: st_lsm6dsx: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:25 +0100 Message-Id: <20221118224540.619276-112-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?1749881266539428510?= X-GMAIL-MSGID: =?utf-8?q?1749881266539428510?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c index 0faf1b4c11af..3570fac1b612 100644 --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c @@ -21,9 +21,9 @@ static const struct regmap_config st_lsm6dsx_i2c_regmap_config = { .val_bits = 8, }; -static int st_lsm6dsx_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int st_lsm6dsx_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); int hw_id = id->driver_data; struct regmap *regmap; @@ -152,7 +152,7 @@ static struct i2c_driver st_lsm6dsx_driver = { .pm = pm_sleep_ptr(&st_lsm6dsx_pm_ops), .of_match_table = st_lsm6dsx_i2c_of_match, }, - .probe = st_lsm6dsx_i2c_probe, + .probe_new = st_lsm6dsx_i2c_probe, .id_table = st_lsm6dsx_i2c_id_table, }; module_i2c_driver(st_lsm6dsx_driver); From patchwork Fri Nov 18 22:37:26 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: 22601 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448889wrr; Fri, 18 Nov 2022 14:53:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf6jL0jTZAfRvxYxX7nFbeHxwsFdS15lAF/UuftW0zpayovovpB40MwJ72FKTh1KrRPYblu1 X-Received: by 2002:a17:90a:8904:b0:218:93e8:800f with SMTP id u4-20020a17090a890400b0021893e8800fmr2019737pjn.136.1668812019453; Fri, 18 Nov 2022 14:53:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812019; cv=none; d=google.com; s=arc-20160816; b=kDtkCuE4escJDI1gJd3F/J8PZ9UHqeLefqZdt91xqIFA4DUDUDgu/CG4FvEX3M/id/ Iu5rFaTg3fORUVCik5f9ytvWxNQWYZCwRtbkpe2vqsn5eZhoOVNbLb9tiK68IzxjFJyN gmEkq491WdQPbWMH/y0hFDpAig8KrPT8RoP44ExSKJIp/1eDhEA0nPwjnk5gvCVPGLz1 U1gafccNeTvGXA9WTYfDHivp9Np7q4GjfcK2b97GP4t1C1nyOa2JPhxFEWc8QosE/HJK ZqRzavChAVQAhr9Z1DuWPakeXh+Qo3tOpc6iL3F3sl5RlIt+PK9tavUsysFgTAAoX9/1 mQRQ== 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=jcNoMnU9Z2QJodsOTAuXq0Zxidpwu/AVnrNbbbBi7hE=; b=fM+wMcvQewDXY8ac6OOqfEad6cS/sGVxVOUDNUbK1GIgMFfJoNm3gNgY5ZsmVZc4ek y7KPFA0aPkyVPywSSnXRAy3GP3AXO8OJk+q2wcNiGS3RnH52Hq7MEdTXLraadxvLbMzh 8tgKDqUaB6r+nA1YUu4vQEJNdPXQ3boRUZZEp04YmweLwaOethqFZ5wcQLnHdAeZQLis yhuRheoVPV06aJ4rK2335zsbbHRY51TYBvXS7XXUhlgMJOzHlCyugDE69Bwn/HbL9ZMr wjCZLacw9GbGJj/XPdHQo57tXRqdrDFJIo348nr1SBi+vxdhnXcfp2Y8V0xW7oap9zPu QpCw== 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 n4-20020a170902d2c400b001836e51050esi5559855plc.572.2022.11.18.14.53.27; Fri, 18 Nov 2022 14:53:39 -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 S234463AbiKRWxA (ORCPT + 99 others); Fri, 18 Nov 2022 17:53:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234444AbiKRWw1 (ORCPT ); Fri, 18 Nov 2022 17:52:27 -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 EBC65B73B9 for ; Fri, 18 Nov 2022 14:47:33 -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 1owA85-0000RM-Eo; Fri, 18 Nov 2022 23:46:37 +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 1owA80-0058Ge-LX; Fri, 18 Nov 2022 23:46:33 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7z-00Hb28-L4; Fri, 18 Nov 2022 23:46:31 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 112/606] iio: light: adjd_s311: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:26 +0100 Message-Id: <20221118224540.619276-113-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?1749876232279896740?= X-GMAIL-MSGID: =?utf-8?q?1749876232279896740?= 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/adjd_s311.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/adjd_s311.c b/drivers/iio/light/adjd_s311.c index 6b33975c8d73..210a90f44c53 100644 --- a/drivers/iio/light/adjd_s311.c +++ b/drivers/iio/light/adjd_s311.c @@ -233,8 +233,7 @@ static const struct iio_info adjd_s311_info = { .write_raw = adjd_s311_write_raw, }; -static int adjd_s311_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adjd_s311_probe(struct i2c_client *client) { struct adjd_s311_data *data; struct iio_dev *indio_dev; @@ -271,7 +270,7 @@ static struct i2c_driver adjd_s311_driver = { .driver = { .name = ADJD_S311_DRV_NAME, }, - .probe = adjd_s311_probe, + .probe_new = adjd_s311_probe, .id_table = adjd_s311_id, }; module_i2c_driver(adjd_s311_driver); From patchwork Fri Nov 18 22:37:27 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: 22883 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472283wrr; Fri, 18 Nov 2022 15:59:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf4I7Z7nhIUjtdXXyC8RLepbqIS08nRLaHTG1tNhmryoxWnFDy36NZMfAAmNQQAdfLBHTqu7 X-Received: by 2002:a17:906:f753:b0:7ad:b6d6:9188 with SMTP id jp19-20020a170906f75300b007adb6d69188mr7528741ejb.418.1668815996428; Fri, 18 Nov 2022 15:59:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815996; cv=none; d=google.com; s=arc-20160816; b=ej7rlEYCooffvHo+s3Q3rQXPWw9Zv93A50E5B46XJFDS7WcgecnRStmzAGk9Zr6cmu se5odAw5pPTNxVNSHGnm+aGuyf5T0jR64MzJjdOFfYG65iqvkaFAR+kwPKbFAWVSjwpS cynUI8OzAhUdKuhNwvn3Y9KT1XPsCmGCct2+xYwsq8YCaGScxD7Wj924l2IcebApnHLA sZU5tsJuPrdbMWJGTONLmBa6UylBVgvf4XkHyaMHyI9s67oQksvguOicYsidetC1tmom SvP3CjYo9hZcrzoMcqjo/NR4fu1ndy3kRXz2R3g7dv8nviTUTBjcbbZtjbPVFlbnFAF9 2Tgg== 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=KDS5LT+hvQvHYTAiPx9Bwgkl1uBETTMAygxUw9gmSYg=; b=PYGMRvHFBpF9sUWmGyvOVjXATIKmkweITIctPmQZEIWGFlF3oohK2Su+lhVHMNwf87 7NKRfCujwuRAXGxgvIbh1M/4JRrywlRpPKMf/nE5096m7ZbS5EV36fykJZ6Mv6VJpXfJ Rstj1N98/FwWPBEUtRtq9idcGyD6fqeWUecPkvtTHnU+FnGUUuMnWgLTiC2rzruftXn1 MkyWCGprKEwbgHFhoh0Mh4SIuE9TVz2+HM31T3egaQkdt2YEK88jYrpnZ0R5MC1TRMVA uHA0NLlj3IcfaNVF2Z5MUub3JWbsjynRwafT1lwWQBu3a2fuSlv+Gssbgzxn7nj0Y8TB km9g== 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 m9-20020a170906848900b007adf9d69424si3185181ejx.586.2022.11.18.15.59.30; Fri, 18 Nov 2022 15:59:56 -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 S233062AbiKRXxN (ORCPT + 99 others); Fri, 18 Nov 2022 18:53:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236959AbiKRXvr (ORCPT ); Fri, 18 Nov 2022 18:51:47 -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 A9D19BB9F0 for ; Fri, 18 Nov 2022 15:27:13 -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 1owA85-0000Og-2e; Fri, 18 Nov 2022 23:46:37 +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 1owA80-0058GV-4P; Fri, 18 Nov 2022 23:46:33 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7z-00Hb2B-SU; Fri, 18 Nov 2022 23:46:31 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 113/606] iio: light: adux1020: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:27 +0100 Message-Id: <20221118224540.619276-114-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?1749880402403856190?= X-GMAIL-MSGID: =?utf-8?q?1749880402403856190?= 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/adux1020.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/adux1020.c b/drivers/iio/light/adux1020.c index 9aa28695e6f1..606075350d01 100644 --- a/drivers/iio/light/adux1020.c +++ b/drivers/iio/light/adux1020.c @@ -774,8 +774,7 @@ static int adux1020_chip_init(struct adux1020_data *data) ADUX1020_MODE_INT_MASK, ADUX1020_MODE_INT_DISABLE); } -static int adux1020_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adux1020_probe(struct i2c_client *client) { struct adux1020_data *data; struct iio_dev *indio_dev; @@ -838,7 +837,7 @@ static struct i2c_driver adux1020_driver = { .name = ADUX1020_DRV_NAME, .of_match_table = adux1020_of_match, }, - .probe = adux1020_probe, + .probe_new = adux1020_probe, .id_table = adux1020_id, }; module_i2c_driver(adux1020_driver); From patchwork Fri Nov 18 22:37:28 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: 22680 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp461683wrr; Fri, 18 Nov 2022 15:27:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf5MdvNB7Zd/Q5QWZj/dRff+R6ugJItwHjKpSnbuXSOUyiPnf2lqjqxjlLjWURX2v6N/IZDt X-Received: by 2002:a17:907:98e3:b0:7af:883:ec72 with SMTP id ke3-20020a17090798e300b007af0883ec72mr7906709ejc.727.1668814071868; Fri, 18 Nov 2022 15:27:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814071; cv=none; d=google.com; s=arc-20160816; b=Ob5F6HgQDhQPiinsVVO5XyqvTLKL0n3zwR8ZacN/fzChAXlyg5inRR3OazOKZrqvYy oFiYX+SxQbsdVKsFsd7X3w0QnlKJb4AoqaBgM8jKqaMYtEKjZDFLVVRmLyqxNnXZZM/E SXr8A1V+LIGQE1pZWfXHJwUyO+zDIU9Tpihwhlta46Efg+eaFlqKvv52QSfSGdeWnlK4 qAo36lWc5SjRzas65UbXzjvnKpiGWoVS95LAPNamLzBrZwldO0iAvmLptX7y9RL/fgH9 jPIop4XzPOn2Fod6SMOAYkowxv+tozV/0LG4IgJ68IDRXehXyZDSG/dWKks6xuSCj/S4 HKkw== 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=vqi0UjCy1fSZh5/QIxNAKDsx1Q4DBUBZIdTJYVnYuwQ=; b=MFVB8YHD2hldWSc7VtGfcgeYQD5UGCESj6zbp3PFa8gaQZIn8pU8I9YPyCrrAcizGV OzXO1Oq3AqHOxut7IOpL1syu4cCML/4jg9Pwhx4kaZD7sJjlXwxTuqT0K1RpIDkhIcZq F5RQmellMJPRmcFwgsasyzK1XiodfDEmpiSV+f4owQW0nLfOUj6Y4lJkmK3fH5W/aDco ssqvx4fN9UpFvMbDHA7iA1rFdy1iQxYWt0ePnIPfra0MkMxDICkZ99iLXUk2SV9peUUS Fmvg5/kvfBg0aYp5yt6xVgLcNUCnHMMKnVwqlwPxeUakHWkQrPSHLm4MuJqfP8yHoKYb Z1Ww== 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 js19-20020a17090797d300b007ae545e330csi5038900ejc.218.2022.11.18.15.27.28; Fri, 18 Nov 2022 15:27:51 -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 S233820AbiKRX0a (ORCPT + 99 others); Fri, 18 Nov 2022 18:26:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235679AbiKRXZW (ORCPT ); Fri, 18 Nov 2022 18:25:22 -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 370C482218 for ; Fri, 18 Nov 2022 15:14:30 -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 1owA85-0000SO-LG; Fri, 18 Nov 2022 23:46:37 +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 1owA80-0058Gj-TI; Fri, 18 Nov 2022 23:46:33 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA80-00Hb2F-1u; Fri, 18 Nov 2022 23:46:32 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Paul Cercueil , David Heidelberg 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 114/606] iio: light: al3010: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:28 +0100 Message-Id: <20221118224540.619276-115-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?1749878384350214134?= X-GMAIL-MSGID: =?utf-8?q?1749878384350214134?= 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 Reviewed-by: David Heidelberg --- drivers/iio/light/al3010.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/al3010.c b/drivers/iio/light/al3010.c index ce5363845b22..69cc723e2ac4 100644 --- a/drivers/iio/light/al3010.c +++ b/drivers/iio/light/al3010.c @@ -164,8 +164,7 @@ static const struct iio_info al3010_info = { .attrs = &al3010_attribute_group, }; -static int al3010_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int al3010_probe(struct i2c_client *client) { struct al3010_data *data; struct iio_dev *indio_dev; @@ -230,7 +229,7 @@ static struct i2c_driver al3010_driver = { .of_match_table = al3010_of_match, .pm = pm_sleep_ptr(&al3010_pm_ops), }, - .probe = al3010_probe, + .probe_new = al3010_probe, .id_table = al3010_id, }; module_i2c_driver(al3010_driver); From patchwork Fri Nov 18 22:37: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: 22620 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449850wrr; Fri, 18 Nov 2022 14:56:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf5x3SXtU+kEUVwLBXPO2ERBbZOVkJpj50C0LldZiKgaZQF2Dg+rWRdGU5eDuIuRof5xihsJ X-Received: by 2002:a62:7944:0:b0:572:7833:57f0 with SMTP id u65-20020a627944000000b00572783357f0mr9770704pfc.86.1668812213866; Fri, 18 Nov 2022 14:56:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812213; cv=none; d=google.com; s=arc-20160816; b=vIWpOb/Or3oV0HC3LVw2Q11sxNMDM3jBmHJ2cXTsp4NFxP1Vm6cmIDIBSilwt/IV2s C93potNxVUEjEgPUFFkN+GpJOCWjJCK9OWc4kEvaTkjfwXThzT4n4Q+jHUbX5mzOLob0 4tcwq9cFznTt+so6AXgcZShzjaxfT8opbJYTeeh3Zd0+hBvvjfdln4QhnIVytNQbqMiT o2kaUtZG+v0cLJhlEXoXG4XaCUw7C1f7KoKEtCPRwv4cnMzQGlc93VOH6EL8s6pWYCl9 YIAKOr7oUm19F1EtMMdqoRSLFLxufNsLo0CVGZzeYaF5KdIkqzmnDvmyDzVmuFgoOt5y wC6Q== 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=lHMRMKniMGTOEQs7qY5+HlRr8UoGeFg5SUvIG6z0xRw=; b=VsZ4353H64ioZXfK1wWawBPYK12JHIfmeMk9OMpzkTUwc/xHwdq/slcw+GLGKUolWi vEM+X1smGE2Ocb8NrCkjRUItrIZcHmu2uwaCdULeNej1DTBunZlytkxwM0hqa6/D4YvX +UJ31yeD0zLh9ipttlY86zb6+cUdY2rQ8q2rifhDVdFf5QF+X8xz3RC11eMZg9hU46Ci sTqVHR+8o+UmdhfI/PkyyIh0IoMej6Ce9ChHbma4oIqYsSkcyeU6bw6cGQpcarIj1tk/ Pjwy/GcXE6uEGHK/XB1mpzOy/Ic0Kc2yaF/zNMJvTw5gYbMN3+dbZw6IDSxJyGMxDRvp 196A== 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 nu11-20020a17090b1b0b00b0020b2101908asi5326470pjb.16.2022.11.18.14.56.40; Fri, 18 Nov 2022 14:56:53 -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 S235104AbiKRW4G (ORCPT + 99 others); Fri, 18 Nov 2022 17:56:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235089AbiKRWzT (ORCPT ); Fri, 18 Nov 2022 17:55:19 -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 C743A108E for ; Fri, 18 Nov 2022 14:48:28 -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 1owA85-0000Pn-DX; Fri, 18 Nov 2022 23:46:37 +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 1owA80-0058GZ-BJ; Fri, 18 Nov 2022 23:46:33 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA80-00Hb2J-6u; Fri, 18 Nov 2022 23:46:32 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Paul Cercueil 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 115/606] iio: light: al3320a: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:29 +0100 Message-Id: <20221118224540.619276-116-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?1749876435960415563?= X-GMAIL-MSGID: =?utf-8?q?1749876435960415563?= 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/al3320a.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/al3320a.c b/drivers/iio/light/al3320a.c index bc99179728ed..9ff28bbf34bb 100644 --- a/drivers/iio/light/al3320a.c +++ b/drivers/iio/light/al3320a.c @@ -187,8 +187,7 @@ static const struct iio_info al3320a_info = { .attrs = &al3320a_attribute_group, }; -static int al3320a_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int al3320a_probe(struct i2c_client *client) { struct al3320a_data *data; struct iio_dev *indio_dev; @@ -254,7 +253,7 @@ static struct i2c_driver al3320a_driver = { .of_match_table = al3320a_of_match, .pm = pm_sleep_ptr(&al3320a_pm_ops), }, - .probe = al3320a_probe, + .probe_new = al3320a_probe, .id_table = al3320a_id, }; From patchwork Fri Nov 18 22:37:30 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: 22606 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449239wrr; Fri, 18 Nov 2022 14:54:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf4AyiZy83anfFttpHQOu7N9aZNNwvxnb8rqiroILWGSYuFNwORyvWosWM2MJE8AgGrA0ZuX X-Received: by 2002:a17:90a:d190:b0:20d:747a:c507 with SMTP id fu16-20020a17090ad19000b0020d747ac507mr9971233pjb.145.1668812080738; Fri, 18 Nov 2022 14:54:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812080; cv=none; d=google.com; s=arc-20160816; b=0AoTIRQi3OROwRGYQq3Jo86WkAUIZ5SUu/9dEnw+hB9IeFWOG0tqZvI5J/X9iyRmd4 oJcdUoi+gup7uC4b6IIAboaHX98IjntVr5fpJ8vKQ/17AeMAfnHxbLynhv9CLuk/aHeU SGnI2O2gOSSs99c9M+Gem+FAbBZgOQzkkLKXF3aGPGmvpRU1CvBpeaSnDHqWCvRV2FTh fvTUxL4zUU9J1XRGODNk4i4VjbY+Opw/y/Fnu15bPWJVRq7ccfQBcwG4CD/lRcZAzlUh +T198xRdES9oikMQMIp7RJLZ7ch/B0rfWqtDVoZlYWRvKVnpxwmeA3dc0C/79j/VGWls 4AsA== 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=c9Ejfl3VF9aR91iU+n1cIOivdfjncKpvTA7K4mox8xE=; b=GpDL52rdSut1vwZB4FwklG5fHmBGFI8Qb1ASnZkaWQYQiqVxkcrUxZF6vUSRHKCQXf 4shv+RzkveK3YukG9OcMgEFdUBUlT2pthCs3tiZHLapx5unWtPgDUU9eeY52pIn4Sc23 /4rVCdDSBzpzGRtqCyry4YIG6UK+Q+abnKdeTI7gCm3m5UiSiTWuq3+3zpgtPN39ieH5 L7Hx47ZnEQ84Abl3jVzWbmVW7z+dZo1ZydmqSWmJe6Vt4btKlPDdnBMoQpUUiJf52YHU I6rjg/6YdwdmLiGKLOCMcAw6oCj4+5g1GHGqd/VQD17JQjLONOiBJMZkJVTegnbNGHJ4 6Akg== 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 q14-20020a170902dace00b00176db49b734si5478730plx.283.2022.11.18.14.54.28; Fri, 18 Nov 2022 14:54:40 -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 S234669AbiKRWxy (ORCPT + 99 others); Fri, 18 Nov 2022 17:53:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234597AbiKRWxN (ORCPT ); Fri, 18 Nov 2022 17:53:13 -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 051A9B8F8C for ; Fri, 18 Nov 2022 14:47:50 -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-0000UX-7q; 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-0058H0-BU; 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 1owA80-00Hb2N-FB; Fri, 18 Nov 2022 23:46:32 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Crt Mori , Jean Delvare , Paul Cercueil 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 116/606] iio: light: apds9300: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:30 +0100 Message-Id: <20221118224540.619276-117-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?1749876296609212480?= X-GMAIL-MSGID: =?utf-8?q?1749876296609212480?= 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/apds9300.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/apds9300.c b/drivers/iio/light/apds9300.c index b70f2681bcb3..15dfb753734f 100644 --- a/drivers/iio/light/apds9300.c +++ b/drivers/iio/light/apds9300.c @@ -398,8 +398,7 @@ static irqreturn_t apds9300_interrupt_handler(int irq, void *private) return IRQ_HANDLED; } -static int apds9300_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int apds9300_probe(struct i2c_client *client) { struct apds9300_data *data; struct iio_dev *indio_dev; @@ -505,7 +504,7 @@ static struct i2c_driver apds9300_driver = { .name = APDS9300_DRV_NAME, .pm = pm_sleep_ptr(&apds9300_pm_ops), }, - .probe = apds9300_probe, + .probe_new = apds9300_probe, .remove = apds9300_remove, .id_table = apds9300_id, }; From patchwork Fri Nov 18 22:37:31 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: 22966 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476425wrr; Fri, 18 Nov 2022 16:09:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf42VT9Fb0rS4B5I5EP/USp5Lr2xE0Oimyfjr604lmnXMj1vbD3d7Ksi75RtViFKvTwdVm4E X-Received: by 2002:a17:906:1dc3:b0:7ad:bbcc:814 with SMTP id v3-20020a1709061dc300b007adbbcc0814mr7912664ejh.425.1668816541472; Fri, 18 Nov 2022 16:09:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816541; cv=none; d=google.com; s=arc-20160816; b=EqWz/TG+JOIPVQp92e5ibPV5OwZWvJNS1QRcMFNFj4UvZf8jV3N9xIXGHtt8G9BPHe slXLZEHxfAMlRLQWNyuKN73SgacLC2HWBQTrfGpC1N/u634Q7JX42kf9L20/VhfI6gTl W8MDPsM2Ids3QnnGiLYYaFyhH2m9JUtNJuzTnSsNrZDnoehkT+4HEJ+rA6HzewK1OWyk 9gZmlF3va0TQYWpf6KEfQNSphSUDqA4jkB6fbardtp07nbk58N6Pih4hfDeDlDL18NXA 9aFfcTIkv/XXZsLUyhE0c5kPFcdcTTKMKp9/kwT+ZPh2t7q9RjuEVeYKsV5tc218xqzp VxsQ== 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=g656bJeQNZcPBCUL66FBinLSguo4AplHBVOnGg/AHf4=; b=aCod4+lenpTBr5O7Tjeaqpb3Y+vrfmuTuAOBRfW/KGKhkjEeNmrA8eW6leyQVyX29z 5oI+5QmWI7225xXSYdyzFr13hyx0tW+MPVTc6ug2Zf12GiefzUbPIafCGI0uGuQTmKxJ U8aWNJ+8PEhy7M0qUmMquLVCfwVTJDMGVSiXimTVJmWHSY1esRHzukqCWjnPFh9KBEjB PsuWUHggKh5VDM+igrjmgY/2lQKHVrXyXcX4s2bA2SvZvRK1yNuyP1e3LvxwUFsfv/cP xAgdE+5XW1b849r/B7a5PDlnOyuZhSb4qb1QD9hkquMO609l95Tgc9HbDjuKoEe6Y9TI 2hnQ== 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 hq28-20020a1709073f1c00b0078d27c1b499si4353138ejc.500.2022.11.18.16.08.10; Fri, 18 Nov 2022 16:09:01 -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 S237267AbiKSAED (ORCPT + 99 others); Fri, 18 Nov 2022 19:04:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237519AbiKSACX (ORCPT ); Fri, 18 Nov 2022 19:02:23 -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 3776EE2B6C for ; Fri, 18 Nov 2022 15:30:11 -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-0000TB-Fv; 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-0058Gn-2s; 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 1owA80-00Hb2R-PJ; Fri, 18 Nov 2022 23:46:32 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Matt Ranostay , Jeremy Kerr , Hans Verkuil , =?utf-8?q?Alejandro_Concepci=C3=B3?= =?utf-8?q?n_Rodr=C3=ADguez?= , Miquel Raynal , Subhajit Ghosh 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 117/606] iio: light: apds9960: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:31 +0100 Message-Id: <20221118224540.619276-118-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?1749880973596113691?= X-GMAIL-MSGID: =?utf-8?q?1749880973596113691?= 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 Acked-by: Matt Ranostay --- drivers/iio/light/apds9960.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/apds9960.c b/drivers/iio/light/apds9960.c index a585ce0c122f..cc5974a95bd3 100644 --- a/drivers/iio/light/apds9960.c +++ b/drivers/iio/light/apds9960.c @@ -988,8 +988,7 @@ static int apds9960_chip_init(struct apds9960_data *data) return apds9960_set_powermode(data, 1); } -static int apds9960_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int apds9960_probe(struct i2c_client *client) { struct apds9960_data *data; struct iio_dev *indio_dev; @@ -1132,7 +1131,7 @@ static struct i2c_driver apds9960_driver = { .pm = &apds9960_pm_ops, .acpi_match_table = apds9960_acpi_match, }, - .probe = apds9960_probe, + .probe_new = apds9960_probe, .remove = apds9960_remove, .id_table = apds9960_id, }; From patchwork Fri Nov 18 22:37:32 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: 23121 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488191wrr; Fri, 18 Nov 2022 16:45:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf5zjZs7y03CVL+5s1QOf8PwbBGmeMv++OBF9LkrxY0pyQq6C3HFk5hE2beUF39vRig1j+G4 X-Received: by 2002:a17:906:c56:b0:78d:b8ab:9a5a with SMTP id t22-20020a1709060c5600b0078db8ab9a5amr7945991ejf.454.1668818719748; Fri, 18 Nov 2022 16:45:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818719; cv=none; d=google.com; s=arc-20160816; b=o9H7Ucy/rtY1jZkK9odMTqqFR1edxmMBHvDVS4xElzcj4VA1zybqo4sjgL/J/j218R GoMebMYiqoDc5ow/Jb7F+G5FU3DG+ZLfB4ZGaIs/dcFerJDVOgvORfTQRovr9j1NrqMu oZoXLgNPhBAv0WmPp6hQlvypEV+n6WpTsCG+fL1/miJUKgFCwyeBBuV+nsBLuj4cFyZY Ze3P/oJX8NGeW/mGi4RcVV/TtWPd0WX96FnZV+kkH177CZ+G5oGq4x304hPxEkELvRmG Z/BFyZhmGBKsag0jl+3lq5rtA42aePK4p2BYkfpv3tUUO7Cx3yUlw3nP53Y6oBjdg1ri 7ELQ== 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=2KK5Xkgr2GI13MvWQXxtMfRjbwNBe+MEL5lrYW34gEQ=; b=w9kWOtRruoAWZoNoFrWkD87tVtktHjEvb7rwqaxgibUAbfBVAmErKuea8/97FV6FM4 NnlvKEn9rz+dNDiBegLxcb/jN65RWXaLTJ8MOqNE/3+6p0ZRTsV//IGwp5MhxBwUP4Hs XSDW/k2M+9o1j0ZoFF0FOhejkPpr6Oa8DkFEeGwdDwurKjzJOi3t7Dk9HTBnFBNu8lMq T8AvWqErg8pbn7U7DMa5WYdXaAEjY7UifWPvuQngCfJpLQw3dFnf4yvDaguZLGim2fnF M9jXnvbL7CwO3gRBepg8k740oN7mF6uBgz6Oy7Cv0TxxzYj3c291aymTU6bBPUFYE5er BWhQ== 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 j13-20020a05640211cd00b00461bde34a12si4596989edw.627.2022.11.18.16.44.53; Fri, 18 Nov 2022 16:45:19 -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 S237179AbiKSAli (ORCPT + 99 others); Fri, 18 Nov 2022 19:41:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236541AbiKSAkG (ORCPT ); Fri, 18 Nov 2022 19:40:06 -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 3B4181DF02 for ; Fri, 18 Nov 2022 15:44:42 -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 1owA85-0000TI-PF; Fri, 18 Nov 2022 23:46:37 +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-0058Go-3o; 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-00Hb2U-0u; 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 , Tomasz Duszynski , 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 118/606] iio: light: bh1750: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:32 +0100 Message-Id: <20221118224540.619276-119-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?1749883257839524529?= X-GMAIL-MSGID: =?utf-8?q?1749883257839524529?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/light/bh1750.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/bh1750.c b/drivers/iio/light/bh1750.c index 3e92820bc820..390c5b3ad4f6 100644 --- a/drivers/iio/light/bh1750.c +++ b/drivers/iio/light/bh1750.c @@ -228,9 +228,9 @@ static const struct iio_chan_spec bh1750_channels[] = { } }; -static int bh1750_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bh1750_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); int ret, usec; struct bh1750_data *data; struct iio_dev *indio_dev; @@ -320,7 +320,7 @@ static struct i2c_driver bh1750_driver = { .of_match_table = bh1750_of_match, .pm = pm_sleep_ptr(&bh1750_pm_ops), }, - .probe = bh1750_probe, + .probe_new = bh1750_probe, .remove = bh1750_remove, .id_table = bh1750_id, From patchwork Fri Nov 18 22:37:33 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: 22936 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474675wrr; Fri, 18 Nov 2022 16:04:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf4eyvAC3lbS+GFiyfo4z7E+PE6/uth8yos7nHPbpTjmfe9G3QMGuaPNYzDGEnECDcQlgsaE X-Received: by 2002:a17:906:c24e:b0:778:d81d:b1f0 with SMTP id bl14-20020a170906c24e00b00778d81db1f0mr7845203ejb.731.1668816284473; Fri, 18 Nov 2022 16:04:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816284; cv=none; d=google.com; s=arc-20160816; b=zaX83JN5vO/XG6N2rd8Qam7JDtiKRRsuraGyGHOb6t+XeNePloI5FqmVybXS47qV6E xPTAFcPJ7BCd8yXvGQpMG/SsloZRJH+KzyFGqiV93WnsHuY3vUbWd0z8EJamcefp30Ua nF3VQ0bsFAGbTxXWDoEwOTozjZekU/h3vyQ96KhrV52lt41rELGF8WnouDfArLHGngDE rawNbJpxh9dXL7KSkR+72TeeDCBO8Uv4lEjD7twC1KqGzJoxsrZK0EOCX0rrcfW9JNrx XOjd/UZ24v1b+VJe9GDiildfEAjjqLwTJbF0TAEcS6ubxHWnvVE9uzRHuvB4yYKyLy/C UIsQ== 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=38njz5hbCo+el8jUg8sffG9uSdSNleaBvD+TLqUCPlw=; b=b0a/2RGp5O8x84aoljPHb1VemvzP4ry/QSacQb/Sn7n56SAY7k/GecqIkbh9+q8D0Q Lh8zj8NPHp4OJyTVquWRm+9F3ZJuqWpZkAgRyAViGzfegM47X6p+P9uD+iY8gCW1V4jE yGTTvjh/XMQzIKuH+B6bNunRAcJksE7qg/vpl5LxcSqheQXPgM7zwfUVCTzNxgMnXTjX +rSmD8V2KxlYJ7Ei0ohZkFyQkdaJL7G2nGojm3XsQhULh8x9rz5fzuPgRlXFwLp5IB5p 9VymLdvUQzMh2gi1K0I8iOGKhSXM6vjw1z3UI/IQuBU6YjACkyW2ORh/5BgNi2hSk5GX dwiw== 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 u1-20020a50eac1000000b0046911aa4967si2400960edp.555.2022.11.18.16.04.20; Fri, 18 Nov 2022 16:04:44 -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 S237229AbiKRX7z (ORCPT + 99 others); Fri, 18 Nov 2022 18:59:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237190AbiKRX5E (ORCPT ); Fri, 18 Nov 2022 18:57: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 25BCDA6A03 for ; Fri, 18 Nov 2022 15:28:51 -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-0000Uc-8C; 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-0058H1-CK; 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-00Hb2Z-8K; 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 , Jonathan Cameron , Linus Walleij , Jean Delvare , =?utf-8?q?Marek_Beh=C3=BAn?= 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 119/606] iio: light: bh1780: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:33 +0100 Message-Id: <20221118224540.619276-120-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?1749880704065209000?= X-GMAIL-MSGID: =?utf-8?q?1749880704065209000?= 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/bh1780.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/bh1780.c b/drivers/iio/light/bh1780.c index 90bca392b262..da9039e5a839 100644 --- a/drivers/iio/light/bh1780.c +++ b/drivers/iio/light/bh1780.c @@ -141,8 +141,7 @@ static const struct iio_chan_spec bh1780_channels[] = { } }; -static int bh1780_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bh1780_probe(struct i2c_client *client) { int ret; struct bh1780_data *bh1780; @@ -270,7 +269,7 @@ static const struct of_device_id of_bh1780_match[] = { MODULE_DEVICE_TABLE(of, of_bh1780_match); static struct i2c_driver bh1780_driver = { - .probe = bh1780_probe, + .probe_new = bh1780_probe, .remove = bh1780_remove, .id_table = bh1780_id, .driver = { From patchwork Fri Nov 18 22:37:34 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: 22950 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474906wrr; Fri, 18 Nov 2022 16:05:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf6gUdMEhoCFUZkZqLbheHF9Eq46Rq5oakZPPbNVAi0UkQzAoHndROcj/UT4oENVWhBhpkPR X-Received: by 2002:a17:907:c314:b0:78c:2b55:59be with SMTP id tl20-20020a170907c31400b0078c2b5559bemr7950125ejc.2.1668816314893; Fri, 18 Nov 2022 16:05:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816314; cv=none; d=google.com; s=arc-20160816; b=hMWSEqTqZGVKaA18B/bSEwNQNo1gctzp/chMJP+81Ak6Mj/NHd3ELJNlVxbt8j+wDT 6w8iZ9d0trrM3BAeXYHaozh3FKwsXecjnZH1M21z7xr1cw8EF5a0Q/CT29amU5cuIKYc 6Lxx9KTW/BTXZUH5rM/msKcw59LSnq52FkOuMrECB3BvJ4PKIhSyte0J4Bu3LR9DKABp LZGLSaKEgBNigaCUyCTBoPbKCN+gKpaG4GkDRim+FkGAGM9bVyvRU5ww1qAQIVFRtU0R LxkqrVLreTw5MhxIWK4pUO/VUzQ6WQ2b+Ov7quz0lH4zKL7wSfqvon6GrAnEycwAXNI6 ybcA== 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=NX5ytjqScHPycucGB05Z9pEnqLwJ5KsDv19Qm1yUz+8=; b=oLsDt2iw+jvJLHuWE2PJqMxQ2OP9TaSOH/XG6rssCbOCDabvNj/gvU0ULvRp1AYZOM t4yNotdFwQGro5WjuEjvvPyffffvbisMQcSDRYxPmiZcSrp+Jzoa1zkXbhMvsEALJhR2 W6cPw5/eJYP/o6Get9iBc5TRbShmKDOHgArzOQFI/9WbneeMFd7I4a72h3oR4TzkcFO1 7qGVBSxmbEmn3sNVednkBS1QUyIf2fzFv29CpAQPaEjLt2EdyeJfAr9xAUTP3XxUGNYg iXsHIO8s4RXl66UfX68V6cuEvJ0mRq4w7XtW/57pk47awoeRpsZmzQl3KHZd6Uk+yoYi 3/8w== 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 w19-20020a056402269300b00468f6721335si4149370edd.60.2022.11.18.16.04.45; Fri, 18 Nov 2022 16:05:14 -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 S237248AbiKSAAx (ORCPT + 99 others); Fri, 18 Nov 2022 19:00:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237226AbiKRX5J (ORCPT ); Fri, 18 Nov 2022 18:57:09 -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 AB325AF0A5 for ; Fri, 18 Nov 2022 15:28:54 -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 1owA85-0000Tu-TZ; Fri, 18 Nov 2022 23:46:37 +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-0058Gx-8R; 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-00Hb2d-FE; 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 120/606] iio: light: cm3232: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:34 +0100 Message-Id: <20221118224540.619276-121-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?1749880736600349003?= X-GMAIL-MSGID: =?utf-8?q?1749880736600349003?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/light/cm3232.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/cm3232.c b/drivers/iio/light/cm3232.c index 5214cd014cf8..43e492f5051d 100644 --- a/drivers/iio/light/cm3232.c +++ b/drivers/iio/light/cm3232.c @@ -325,9 +325,9 @@ static const struct iio_info cm3232_info = { .attrs = &cm3232_attribute_group, }; -static int cm3232_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int cm3232_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct cm3232_chip *chip; struct iio_dev *indio_dev; int ret; @@ -417,7 +417,7 @@ static struct i2c_driver cm3232_driver = { .pm = pm_sleep_ptr(&cm3232_pm_ops), }, .id_table = cm3232_id, - .probe = cm3232_probe, + .probe_new = cm3232_probe, .remove = cm3232_remove, }; 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, }; From patchwork Fri Nov 18 22:37:36 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: 22858 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472018wrr; Fri, 18 Nov 2022 15:59:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf5qjKdrvFQrLuSHXVUTrWBvOX915F8oQCcPnNZdfsd6xO1SFqbnQUGM6efFS03AVF5Gbdzf X-Received: by 2002:a17:906:d78e:b0:7ae:c0b:a25e with SMTP id pj14-20020a170906d78e00b007ae0c0ba25emr7409064ejb.603.1668815944137; Fri, 18 Nov 2022 15:59:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815944; cv=none; d=google.com; s=arc-20160816; b=MjMTy4nujZqbkBJa4PI9JE+MrdmdGV+50SXUbvP+mrIalfUE5AOtA6I2hzA7UFMzp6 l10vgOywOG4X8ZelWZ7JjDCQzcrxeTmcwSd83VeNBi/RnEP50+q0FN//vuLb2HZYCf49 JnbvX3u2rYGuZPfxtkPXJC+PLRnTQkqlpRA25K7e8bZaD2Avt5AZ3oEllJGAb5CPCFv9 1faLBYUMYl6ByKZRn91soTxLPtHHgwP/GWw6PcL/IDLvc64FYDFYxQdFWe5LmH2ZOUfb QAzF7SvXrbtkeXuTtsfY5PXZ+kJUCLqTEeqbYbLFaT8AKrdDOS9CrhjaL7Jq6cy7KHsA tAdg== 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=9Z6HT7NlMjYLQMb+iMFh6lrIyLx+PRnUr6YXih/Iqc4=; b=zYe11vzZCsaIKVDOvO2dXEK7PKNj+c5BJY6NZ8flBgyfJWb9sVbtghleYi1kXzpuVF 8xSQnmbESJbAWtW8H5KgSCM2Q8sP1FN7sYvnmYNEExmuhwLSx1BYIjxZ/iFohR3tnUCQ exwF2bLwdoKnTHdarfPPFns81i1ONoUgoFnWNsb2+V79WxS0pu6BsmKBLOL52YRt3iPC klubeqXeS1TE0mwUJtGD2F+lwaq0v/Jl+6AJnLLw7l5WH0P5qEi1H2NPfBhMHkDvAK+X SqS/itnBJizsTHI5dGxJfDq8glCWSBk7Q6MRIeFQvkQNISoYeskxoqjmfINQIdKRnbGN 78zQ== 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 z19-20020a05640240d300b00468cd0b1cafsi4507279edb.163.2022.11.18.15.58.40; Fri, 18 Nov 2022 15:59:04 -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 S233466AbiKRXuh (ORCPT + 99 others); Fri, 18 Nov 2022 18:50:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236840AbiKRXt3 (ORCPT ); Fri, 18 Nov 2022 18:49:29 -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 B88D0D08B4 for ; Fri, 18 Nov 2022 15:26: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 1owA87-0000aT-8i; Fri, 18 Nov 2022 23:46:39 +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 1owA82-0058HO-FU; Fri, 18 Nov 2022 23:46:35 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA81-00Hb2k-Sx; 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 122/606] iio: light: cm36651: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:36 +0100 Message-Id: <20221118224540.619276-123-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?1749880347059611708?= X-GMAIL-MSGID: =?utf-8?q?1749880347059611708?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/light/cm36651.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/cm36651.c b/drivers/iio/light/cm36651.c index 6615c98b601c..1707dbf2ce26 100644 --- a/drivers/iio/light/cm36651.c +++ b/drivers/iio/light/cm36651.c @@ -618,9 +618,9 @@ static const struct iio_info cm36651_info = { .attrs = &cm36651_attribute_group, }; -static int cm36651_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int cm36651_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct cm36651_data *cm36651; struct iio_dev *indio_dev; int ret; @@ -730,7 +730,7 @@ static struct i2c_driver cm36651_driver = { .name = "cm36651", .of_match_table = cm36651_of_match, }, - .probe = cm36651_probe, + .probe_new = cm36651_probe, .remove = cm36651_remove, .id_table = cm36651_id, }; From patchwork Fri Nov 18 22:37:37 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: 23062 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486791wrr; Fri, 18 Nov 2022 16:41:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf5/Zox3b8fnhZbZHWIpbyX3C6HZCb+eHHOAp8NI+crl4egAXyX8hSDn44yZlBUhI+AQRkGm X-Received: by 2002:a05:6402:28cb:b0:463:b0de:c210 with SMTP id ef11-20020a05640228cb00b00463b0dec210mr8305922edb.10.1668818472713; Fri, 18 Nov 2022 16:41:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818472; cv=none; d=google.com; s=arc-20160816; b=MVZwtS6JPpCbHY25xpXa6NcaqvhCQGZq158NZ5/ZEjZJ8/TaD1Xq9BncNWmhiE2kjF 2GE/vekyMRmwBkdrcxA0E6fw1YD53wmJ4umPJdhumyfTeSkYAITVAleNA77IBtQoFGHt Mh/8cSW12t76WR4wRrGry1Qq6+gD6DQjiqnJ3kCfkKVVPn+NQZ8VmYriGavWOxy9dl2s KHJEhjIUKnqOgWBd6GGtjz/J9lgI9+UPVNK+Q0LLWhv68VZZm9Y6YQ99rmQX2ylkqWQp ZLUEMTWNidtUWCX6eg2FvUNemZtnWlOAVc7X8/uTvOetv4C1Rbva3iKv7wZfmT7tA5/Z ZOng== 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=S+DoUvS683yJi9cbQ6fOpOUUupEz54vEsTWB8ndV6qk=; b=j3L/g/taCFymNTzk32xicu8YiY/8cmeta8+E5OTtX5Xo53L5kxp6hhZ9doUL8KDRHi GdN3XdvGVEwid4aWXuYJbXCyxAErCJt6hw/dUoiHLZXP7HaxFOoyIR+pQqgdRR0ie61E anpPbZtfVN+FkLEADWjhkVZKxBucZZMrsTsRQzr/6SiH3RKy/srw2IU581ndYhE0kN9C f2k/NKUWwcLspsI0yi47g7fYIerjy0qQ7fxG85wQbqT2/CKwQmtViCxkeebOhRv2qIHV TqN6qHKDGPcacvLNrSG7M25+3w0ZMmF+yyIOnG/dhukD0w+D/tm32DRnCLNGfzyyyioR yJmA== 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 gt32-20020a1709072da000b0078d6418dcb8si4627909ejc.456.2022.11.18.16.40.48; Fri, 18 Nov 2022 16:41: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 S234463AbiKSAdF (ORCPT + 99 others); Fri, 18 Nov 2022 19:33:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233521AbiKSAci (ORCPT ); Fri, 18 Nov 2022 19:32:38 -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 3FE39D234A for ; Fri, 18 Nov 2022 15:42:01 -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 1owA87-0000ZR-1R; Fri, 18 Nov 2022 23:46:39 +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 1owA82-0058HK-9e; Fri, 18 Nov 2022 23:46:35 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA82-00Hb2o-1s; Fri, 18 Nov 2022 23:46:34 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Linus Walleij , 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 123/606] iio: light: gp2ap002: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:37 +0100 Message-Id: <20221118224540.619276-124-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?1749882998897797948?= X-GMAIL-MSGID: =?utf-8?q?1749882998897797948?= 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/gp2ap002.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/gp2ap002.c b/drivers/iio/light/gp2ap002.c index 8000fa347344..c0430db0038a 100644 --- a/drivers/iio/light/gp2ap002.c +++ b/drivers/iio/light/gp2ap002.c @@ -425,8 +425,7 @@ static struct regmap_bus gp2ap002_regmap_bus = { .reg_write = gp2ap002_regmap_i2c_write, }; -static int gp2ap002_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int gp2ap002_probe(struct i2c_client *client) { struct gp2ap002 *gp2ap002; struct iio_dev *indio_dev; @@ -711,7 +710,7 @@ static struct i2c_driver gp2ap002_driver = { .of_match_table = gp2ap002_of_match, .pm = pm_ptr(&gp2ap002_dev_pm_ops), }, - .probe = gp2ap002_probe, + .probe_new = gp2ap002_probe, .remove = gp2ap002_remove, .id_table = gp2ap002_id_table, }; From patchwork Fri Nov 18 22:37:38 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: 22614 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449509wrr; Fri, 18 Nov 2022 14:55:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Or4ciHuNCJrG2E5cuSZF6OlrMou1mO6qJVuvxVC47cbsQSRqeo+26lWdzZWWl40rnQEK3 X-Received: by 2002:a63:4861:0:b0:477:4451:d49 with SMTP id x33-20020a634861000000b0047744510d49mr1491473pgk.575.1668812134918; Fri, 18 Nov 2022 14:55:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812134; cv=none; d=google.com; s=arc-20160816; b=awvWzxhLp8hs65lZvvQ8PKbbGipePcvZxumhifpbbuJQRW9vsXbvR7mWaoGC4mItxf JDC8rVxSj/Ha3yLeqMVq/WSVN9ghhKOXU2LDJIxH9so+Pp4RwwK0/KfVA7ZajNjG0o2c DWussEYUORzq4IoYf9/Caa1yFBGJvRPmbKdkglD0y1Aw7tInbZQDz8yqdHrTpPvt7ZYR PbjJKrRmLymMEAVW6RtfYiUbyXssQne2N8goCmaDaYaUGmSbDXR33755ZsYBRd1yQbHz /c95kDvFeAJuEMaIKKkOnlqldls+YnzkXqnqYi9xgXk2bzJXcsQDjlBz0BGLYGE+i1jT hPcg== 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=srKVW/MPiqvfGiNa5KUgCvkmbCwWmi4qD5+DleJuN/c=; b=IE/e2Zk+DGYLTsZLV7HaWwuAo8Hc/3fKkRw6aEE8te1bakWZGZn9DmMjxCtfMMx9LO olfaYShmVdUVQBSALjgmmbOemzki7UTQywaFI3e5vB0tgH3JqWBxHYmXpHs+Km4kw/bo 3996hcJLSbZxhnVsvvQXzrCia/TjOxYZfmm2fCcTa2r6AsczoAu3E2COO6h6NGsbwwhs o/oCruF8G5BZ7GZeZbLedeQD/EugUu+7tNpKw8Z9o2Igo1hjKGTH/faxMdwgqZc/APcT /0bXE36fahjWZoXqkKsZoU2uW8ha6G9bAV4gY8Sm8ZUqOhWd+yQ8K8iyYn9Grbzf4VgI YxlQ== 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 136-20020a63008e000000b0042b4defce13si5087592pga.344.2022.11.18.14.55.22; Fri, 18 Nov 2022 14:55: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 S234443AbiKRWzB (ORCPT + 99 others); Fri, 18 Nov 2022 17:55:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234828AbiKRWyK (ORCPT ); Fri, 18 Nov 2022 17:54:10 -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 77FE5BEB60 for ; Fri, 18 Nov 2022 14:48:05 -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 1owA87-0000al-E9; Fri, 18 Nov 2022 23:46:39 +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 1owA82-0058HQ-HD; Fri, 18 Nov 2022 23:46:35 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA82-00Hb2u-9q; Fri, 18 Nov 2022 23:46:34 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Luca Ceresoli , Srinivas Pandruvada , Javier Martinez Canillas 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 124/606] iio: light: gp2ap020a00f: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:38 +0100 Message-Id: <20221118224540.619276-125-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?1749876352704834431?= X-GMAIL-MSGID: =?utf-8?q?1749876352704834431?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/light/gp2ap020a00f.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/gp2ap020a00f.c b/drivers/iio/light/gp2ap020a00f.c index 826439299e8b..a5bf9da0d2f3 100644 --- a/drivers/iio/light/gp2ap020a00f.c +++ b/drivers/iio/light/gp2ap020a00f.c @@ -1467,9 +1467,9 @@ static const struct iio_buffer_setup_ops gp2ap020a00f_buffer_setup_ops = { .predisable = &gp2ap020a00f_buffer_predisable, }; -static int gp2ap020a00f_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int gp2ap020a00f_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct gp2ap020a00f_data *data; struct iio_dev *indio_dev; struct regmap *regmap; @@ -1609,7 +1609,7 @@ static struct i2c_driver gp2ap020a00f_driver = { .name = GP2A_I2C_NAME, .of_match_table = gp2ap020a00f_of_match, }, - .probe = gp2ap020a00f_probe, + .probe_new = gp2ap020a00f_probe, .remove = gp2ap020a00f_remove, .id_table = gp2ap020a00f_id, }; From patchwork Fri Nov 18 22:37:39 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: 22668 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp461168wrr; Fri, 18 Nov 2022 15:26:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf71RfCYX2Wqca9v/ZjeGtxte1lX4qvM8FWXeslvA9gSYDmuQT1FW9jJ7EKYfbaU31j1n73h X-Received: by 2002:a17:906:5055:b0:78d:cdce:bc52 with SMTP id e21-20020a170906505500b0078dcdcebc52mr8034089ejk.469.1668813985261; Fri, 18 Nov 2022 15:26:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813985; cv=none; d=google.com; s=arc-20160816; b=Zp6kjwX6gPef7UNlMRKwZT77L+oUSLLW5ZvIatm+2a6CnmbsNVulvVOS7JD70EyMZ1 7YAd2kfjqvzqyBOlNA2zMQymV69MTAUowa4IhFMyVMEcZX/6Y94hPOG2VoN/g1+WAlzv rZjQfwUeOv7o2/K3hiwJpI4HWQZdtzRcBL19xCk+lKEksbXSvLIA1Hu9hHP8HQ5hDhxe bYtjd0tUQsM/kLXwtclh5wYfrIvpy548boDc14SesxmghZPG/YmJCOrTARs509Mixvbr jTb+79imUknx0Tw/6Z25Jxw4Mdj9Lw5/Nh3IOKvzUCDsq/FTh4OBgxdp8PBLkkm5laxL DjpA== 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=GUILv6K22W8QLRnTbI2tSLNkgRkhZDzH7jHJQzqRpH8=; b=ij6fcv2mzbMcbZsdfG+xUR/EGo3RunYLE/Vhi+0dFioqTzsWV1REEnnw5XLbCqUqqw 4VVxWKiF2peZ83QUSC/S9d/dLwdXsXyyWr2ErSiKAXo7QEExdV92Q7P5HAdDJ/uEYDJQ qwzF8/hC+uBn0vCgQFxvAMAp1D9aU0EcRAB0WEEJDV/kIHMROp+uHmo3wX0745zZBv9g cG0dyaY1nxn3hDivtvYYf8nvnzQsnyncW6mNheNE8SvH418KTqv/ODbnMFZ88P2TVFfX hYprnhfk/3fWwjih7e8Ye/mnXG41aooI91o/Mot6AQwg3iYPeHlpcdDkpoIJhS77OVjb cz+Q== 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 hv11-20020a17090760cb00b0078de51e658esi3829560ejc.208.2022.11.18.15.26.01; Fri, 18 Nov 2022 15:26:25 -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 S235658AbiKRXZF (ORCPT + 99 others); Fri, 18 Nov 2022 18:25:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235601AbiKRXWM (ORCPT ); Fri, 18 Nov 2022 18:22:12 -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 AE65B9B7C2 for ; Fri, 18 Nov 2022 15:13:13 -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 1owA88-0000dt-6P; Fri, 18 Nov 2022 23:46:40 +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 1owA83-0058Hi-FY; Fri, 18 Nov 2022 23:46:36 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA82-00Hb2z-FV; Fri, 18 Nov 2022 23:46:34 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Paul Cercueil 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 125/606] iio: light: isl29018: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:39 +0100 Message-Id: <20221118224540.619276-126-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?1749878293053143752?= X-GMAIL-MSGID: =?utf-8?q?1749878293053143752?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/light/isl29018.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/isl29018.c b/drivers/iio/light/isl29018.c index b36f8b7ca68e..141845fb47f9 100644 --- a/drivers/iio/light/isl29018.c +++ b/drivers/iio/light/isl29018.c @@ -711,9 +711,9 @@ static void isl29018_disable_regulator_action(void *_data) pr_err("failed to disable isl29018's VCC regulator!\n"); } -static int isl29018_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int isl29018_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct isl29018_chip *chip; struct iio_dev *indio_dev; int err; @@ -865,7 +865,7 @@ static struct i2c_driver isl29018_driver = { .pm = pm_sleep_ptr(&isl29018_pm_ops), .of_match_table = isl29018_of_match, }, - .probe = isl29018_probe, + .probe_new = isl29018_probe, .id_table = isl29018_id, }; module_i2c_driver(isl29018_driver); From patchwork Fri Nov 18 22:37:40 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: 22616 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449582wrr; Fri, 18 Nov 2022 14:55:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ROfEwoZ1SMsraboU26GJIYgaVWXv6tJiCNPLerJuJUX+GOXSGFiCWhKgpV5ozJDsHXizO X-Received: by 2002:a62:542:0:b0:56c:45db:4481 with SMTP id 63-20020a620542000000b0056c45db4481mr9718633pff.86.1668812153852; Fri, 18 Nov 2022 14:55:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812153; cv=none; d=google.com; s=arc-20160816; b=y9aH2IFP0MhS8PQACLzlleab35h1zB4MGgzx5IuHDDANJqEOvJUR8Ed23neR8C6djV WTHz/XqhVQoN8eZA6TQjFVj+n+bJv/NpaObUwMWTrnQPWK6D3yV7D40XoCmQtmV+fBlZ Q3tpm8/Z/k/Z0qiab8ZgK1d7dxH89wFqO9YRAR6H1ip0hj4ir32q/gXrJPgHpOP2jVM1 5t7+HGTSrtEE0ertzUBKAjsU2Zj+nftoR17yeseIHuIH2txBKJnzzhKtOndGNk89oiCH WmJB/nmSpawYgtNHz+3LVDEldbzACts9lXMs3xDuRQ9JS7gct9NdwJ7ABt4WhOoTJdYj qSzg== 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=lA8hQ61VXcEoqWxl41Xve/CXdpaQ1/+yFSQHMOWGZL0=; b=gOilO6RI4cVFldYdf89+nfTkR9ecw4t/lnOH9E2L3l9BRNT5QEwVCOMlAqjCsuwddM vWT6j5F3FY0vey9QHy4UTnUrboERDVjn4kWsEwYHSFJnLtFT0SqKOjjJlu0Q/iQPs1jh RlWnZ6QcTkrKQbU/ahkF2w3cfl2eJSFX0m5SVarTKnWDYHxI9QDcWSIAWUoGGAOHy5dM cvfwhSodO28U3My6B7jfIKgMo6/qGZhLMONONhVpVhVFG9Y4QSa6ihxjlTu9m8h8n8Y+ yfFdokauQq7whUdbZANvDunKVug05SOI5px3+dFjQXGtoExE+dK0tM1mRvwXvylmzfXR ymoQ== 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 v3-20020a17090a778300b00213a3a2a09csi7859366pjk.159.2022.11.18.14.55.41; Fri, 18 Nov 2022 14:55:53 -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 S235125AbiKRWz0 (ORCPT + 99 others); Fri, 18 Nov 2022 17:55:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234697AbiKRWyw (ORCPT ); Fri, 18 Nov 2022 17:54:52 -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 0D4F7C0522 for ; Fri, 18 Nov 2022 14:48:16 -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 1owA87-0000bP-Fz; Fri, 18 Nov 2022 23:46:39 +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 1owA82-0058HV-LX; Fri, 18 Nov 2022 23:46:35 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA82-00Hb32-Ku; Fri, 18 Nov 2022 23:46:34 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Maximilian Luz , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Adrien Grassein , Zheyu Ma 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 126/606] iio: light: isl29028: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:40 +0100 Message-Id: <20221118224540.619276-127-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?1749876372652991241?= X-GMAIL-MSGID: =?utf-8?q?1749876372652991241?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/light/isl29028.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/isl29028.c b/drivers/iio/light/isl29028.c index 32d58e18f26d..bcf3a556e41a 100644 --- a/drivers/iio/light/isl29028.c +++ b/drivers/iio/light/isl29028.c @@ -565,9 +565,9 @@ static const struct regmap_config isl29028_regmap_config = { .cache_type = REGCACHE_RBTREE, }; -static int isl29028_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int isl29028_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct isl29028_chip *chip; struct iio_dev *indio_dev; int ret; @@ -698,7 +698,7 @@ static struct i2c_driver isl29028_driver = { .pm = pm_ptr(&isl29028_pm_ops), .of_match_table = isl29028_of_match, }, - .probe = isl29028_probe, + .probe_new = isl29028_probe, .remove = isl29028_remove, .id_table = isl29028_id, }; From patchwork Fri Nov 18 22:37:41 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: 22681 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp461948wrr; Fri, 18 Nov 2022 15:28:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf7NjyXk/1PHnqaF0TGMg//6slDuJSObRoQYJvtVMR4lNYfhlGhrwsbP3mlxB+xuWqI9u+dM X-Received: by 2002:a17:906:1355:b0:7ae:f439:320c with SMTP id x21-20020a170906135500b007aef439320cmr7663740ejb.452.1668814118197; Fri, 18 Nov 2022 15:28:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814118; cv=none; d=google.com; s=arc-20160816; b=eB44dCY/UMkPGD38xzwi56pUYK0shRq0MAG0Bfz0Ja3HbytiidnwTDCJLfVLNge+MR 0Hn8Wb1glFUyvYt4vsMwz+Txkcs4JgElGsJCCtzt1lRKlx7yZsQxQ1igZPjh/ev9mydh M530983EbK3JUrpVXZmzd3/YXjMNn7EFK/sCnnrrwNBU0SvCj/SNUoXhbN/vfCvM5wZj PzI7Ki0Hlv4ISGo8APIcGVWFtjFUIuzeneQ+z+aOU02BvBDWBETEVQNrhdpdMLkP1B7o PcQUH8WxilBeWfklc4KmlkflQGIeWZguTw5mzs7GD0QDsoXo2k+ikRG/jBs+XmXSP+GB jVKQ== 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=Do7H15FN4o1z8eCQoHXp/A8DToheYvwWfdmchRdnmw4=; b=a3yQZ4JFRF8OPH/2zt5XW8jdQPTMUCw/f0vF8ymIOes88UyA4xOWFrK94icwBThyvd F02FcxzB5mQ4JyvmYSmgkI+IoSqYzeuJwUyzGthq++cM4CRjOcaojfV2A1qyr8FG8NRA b1LtTAAI3t+8/SqmcqhOI6UUvTNBOopi5HnAVHzfJSXqUpsfpIYIDsQ2gSgwtBlyuNHx 4b8cP5Oh+vv6bWAwdGr7HQxEGukZSEDAUb4ogUqkU+xK1dVAWpCPZhC5r2haVgoasn46 C4NbLuw1BaNO96QI9REWblF9VamHb+IG82yhdg5b5yuzymW+ldh/Hz3gI5BWYgZ31CVN +k5g== 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 z2-20020a1709063ac200b0078b2fed72b9si3120341ejd.111.2022.11.18.15.28.14; Fri, 18 Nov 2022 15:28:38 -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 S233548AbiKRX0p (ORCPT + 99 others); Fri, 18 Nov 2022 18:26:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235710AbiKRX0C (ORCPT ); Fri, 18 Nov 2022 18:26:02 -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 B299191528 for ; Fri, 18 Nov 2022 15:14:38 -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 1owA88-0000dq-4i; Fri, 18 Nov 2022 23:46:40 +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 1owA83-0058Hg-Db; Fri, 18 Nov 2022 23:46:36 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA82-00Hb35-QU; Fri, 18 Nov 2022 23:46:34 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Greg Kroah-Hartman , Hans Verkuil , Dmitry Torokhov 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 127/606] iio: light: isl29125: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:41 +0100 Message-Id: <20221118224540.619276-128-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?1749878432496534088?= X-GMAIL-MSGID: =?utf-8?q?1749878432496534088?= 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/isl29125.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/isl29125.c b/drivers/iio/light/isl29125.c index c199e63cce82..b4bd656ca169 100644 --- a/drivers/iio/light/isl29125.c +++ b/drivers/iio/light/isl29125.c @@ -241,8 +241,7 @@ static const struct iio_buffer_setup_ops isl29125_buffer_setup_ops = { .predisable = isl29125_buffer_predisable, }; -static int isl29125_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int isl29125_probe(struct i2c_client *client) { struct isl29125_data *data; struct iio_dev *indio_dev; @@ -338,7 +337,7 @@ static struct i2c_driver isl29125_driver = { .name = ISL29125_DRV_NAME, .pm = pm_sleep_ptr(&isl29125_pm_ops), }, - .probe = isl29125_probe, + .probe_new = isl29125_probe, .remove = isl29125_remove, .id_table = isl29125_id, }; From patchwork Fri Nov 18 22:37:42 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: 22707 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462956wrr; Fri, 18 Nov 2022 15:31:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf6flGuF8wjjMJdXosKyPKzkPefLZp4jOGCfR91sFQrLz7USChkhvd5oVuQbKV+B2Lm/payQ X-Received: by 2002:aa7:c046:0:b0:461:54f0:f7dc with SMTP id k6-20020aa7c046000000b0046154f0f7dcmr8056893edo.117.1668814282775; Fri, 18 Nov 2022 15:31:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814282; cv=none; d=google.com; s=arc-20160816; b=yXAq2UQgOdt33sRBJNT2MxNqvM/CRuh5WAI6ncWoMqJcp2VfTxOquh05AQaR+p4cxv gBMYIyyL1gx8hgLWeq655jZNQfdGBH70KtdHu5VqJddRYWZQS4XM05o6QjTxYVN3cpgd JfpNVOOfHrzb2QHcevOpMwD3t5gB1MQSDfQxWVYKM7x7jpwMzjApLDtbzVhswrew66En RCJ2s0KABFYCsBWigQ+m1ikLHxsPPtx8oLWNpHT2WsZ8CUYdmKUTmB93q+aKYV2Vn8YH LrxlxNr0BZz6YwY6vXIK/+mxHJ88TNnwhGqapbMjJmsEpYQisxnkDvAxgNkwejWlH19J OPNg== 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=+33Z7J6C3YIHRM933qJCuHR/mWxvSN+vch5GkHssq2k=; b=SfNyB4r/QVxG6eCSzGd87TpSv2HSVct4BIy1oxZcDcXDT8nDzfHMFwtrMsD7arWsym xWO4g9wvHBvOo/wnXMxYk/LcveQLRK1G7u6p7+XGGCbBVhDM9H/AeuTbGxBae5YTV779 T0c/rxTkXR0/J9Xz3FFBRiOmjxLqvULuELYvrdYmrd5KU1WI7u4uFW0NOhUwH6FbkCvo X8nxhGOu8MuZkjNSeveiy0KsQUXfEs725muQsKFCPCg2lIic2EZLYokr90AR92crnwmc m9jdPBUVfk5N5sTIR2/jqZLVpdjsC8BnGE7qRBrUbqKg9JzvCxAOQLOJM95ZFOVZXVU2 1RkQ== 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 i21-20020a170906251500b0078d2a99972fsi3181638ejb.316.2022.11.18.15.30.58; Fri, 18 Nov 2022 15:31:22 -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 S235834AbiKRXaW (ORCPT + 99 others); Fri, 18 Nov 2022 18:30:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235741AbiKRX3N (ORCPT ); Fri, 18 Nov 2022 18:29:13 -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 BD32D881A7 for ; Fri, 18 Nov 2022 15:17:15 -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 1owA87-0000cX-Nz; Fri, 18 Nov 2022 23:46:39 +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 1owA83-0058Ha-1c; Fri, 18 Nov 2022 23:46:35 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA83-00Hb39-0u; Fri, 18 Nov 2022 23:46:35 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Ajay Gupta , Paul Cercueil , Luca Ceresoli 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 128/606] iio: light: jsa1212: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:42 +0100 Message-Id: <20221118224540.619276-129-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?1749878605624015465?= X-GMAIL-MSGID: =?utf-8?q?1749878605624015465?= 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/jsa1212.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/jsa1212.c b/drivers/iio/light/jsa1212.c index 57ce6d75966c..d3834d0a0635 100644 --- a/drivers/iio/light/jsa1212.c +++ b/drivers/iio/light/jsa1212.c @@ -308,8 +308,7 @@ static const struct regmap_config jsa1212_regmap_config = { .volatile_reg = jsa1212_is_volatile_reg, }; -static int jsa1212_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int jsa1212_probe(struct i2c_client *client) { struct jsa1212_data *data; struct iio_dev *indio_dev; @@ -441,7 +440,7 @@ static struct i2c_driver jsa1212_driver = { .pm = pm_sleep_ptr(&jsa1212_pm_ops), .acpi_match_table = ACPI_PTR(jsa1212_acpi_match), }, - .probe = jsa1212_probe, + .probe_new = jsa1212_probe, .remove = jsa1212_remove, .id_table = jsa1212_id, }; From patchwork Fri Nov 18 22:37: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: 23095 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487620wrr; Fri, 18 Nov 2022 16:43:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ByMDLAmuoLByRzN/TDTW5eGoWzvZwTnOeaQZJ0fBX1PCGtO/kwVm+a/Cns6evzqjTKlmZ X-Received: by 2002:a17:906:a257:b0:7ae:3f79:4d0a with SMTP id bi23-20020a170906a25700b007ae3f794d0amr8004171ejb.120.1668818614674; 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=BBUXsb05/RPfDymkDAdDVESRI3T5yt5JH2DHI9Q+Vh7hgHdpckGevMbqyeMg55FxrC 2tZwE3UHkCwkjM1EqsbztIKS5BxCGr8i9gdbMC5rBi2Io5PdhH1ZCtUq8E9cr7KPDnnd l8KEXXl9bHyxJxRQPBgY960Pj5qxTj13SHwP6dkygiiXuelsZyjg+14KtTf0qGQuhljp ODQwiZDocKE2GspRB60MpdXrSJkq+WHhFeZMt6/aUGlJrQ1t5i2TM2ApPNqaqQVOlkMK wnI3pMbvzY3IaAvD/x2nhl+m5wnxG0gJkKOHXwO2DjIx90uyBERvZGbGu1fAg1Scqqe0 Nkyw== 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=gJ/V6jHLXJl5wjSKv4o1f/2aKvpqJ60nzblM9Qa2i6A=; b=CJ+6eZ+5eWIoWEqwNZ9uAW3Wsy33D5ujIdcX0xvbV2VTiIQrqKqx6OQj5dPksl83E7 LQPVqWE8POT3qAMJq5Sjp205odJguIjc5xWSsLeNM8H5uJPuQixJk96Dm7ewWEjiIk1v uXUKbvxEgfqKJZlFKgVXdbwuhBUdf5lbKpyaCyGQm7mqOIZ7CfAjd0Ouu9iERaLkrG6G m7AUvV4KBJLiPc0e5nLC8fu4GeTWjUIYoKx77pXtOdH9r6l0JQ354KY4KUMIlu+DG1Dl +imlTQjoDg+UxartfAJE2LckzGXCI5BkFPV0XwkwH54nHLi2RWMcMid+VhkNTYF378SU KDqA== 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 f25-20020a50fe19000000b0045d050f0fa3si3983876edt.565.2022.11.18.16.43.04; 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 S231202AbiKSAdq (ORCPT + 99 others); Fri, 18 Nov 2022 19:33:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235761AbiKSAdP (ORCPT ); Fri, 18 Nov 2022 19:33:15 -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 057E1C6BD5 for ; Fri, 18 Nov 2022 15:42:23 -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 1owA88-0000ek-Vw; Fri, 18 Nov 2022 23:46:41 +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 1owA83-0058Hr-Oy; Fri, 18 Nov 2022 23:46:36 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA83-00Hb3C-9h; Fri, 18 Nov 2022 23:46:35 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Nikita Travkin , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Matti Vaittinen 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 129/606] iio: light: ltr501: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:43 +0100 Message-Id: <20221118224540.619276-130-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?1749883147687805247?= X-GMAIL-MSGID: =?utf-8?q?1749883147687805247?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/light/ltr501.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/ltr501.c b/drivers/iio/light/ltr501.c index 453b845ef265..bdbd918213e4 100644 --- a/drivers/iio/light/ltr501.c +++ b/drivers/iio/light/ltr501.c @@ -1432,9 +1432,9 @@ static const char *ltr501_match_acpi_device(struct device *dev, int *chip_idx) return dev_name(dev); } -static int ltr501_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ltr501_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); static const char * const regulator_names[] = { "vdd", "vddio" }; struct ltr501_data *data; struct iio_dev *indio_dev; @@ -1641,7 +1641,7 @@ static struct i2c_driver ltr501_driver = { .pm = pm_sleep_ptr(<r501_pm_ops), .acpi_match_table = ACPI_PTR(ltr_acpi_match), }, - .probe = ltr501_probe, + .probe_new = ltr501_probe, .remove = ltr501_remove, .id_table = ltr501_id, }; From patchwork Fri Nov 18 22:37:44 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: 22603 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449045wrr; Fri, 18 Nov 2022 14:54:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf6UC//Ar41lgbsydi7nUIprqy+iacm6tQp6Fisu7s80rqylUbXE9YBeNEgCXSMQtYd31jU/ X-Received: by 2002:a63:5042:0:b0:46f:e658:a8ff with SMTP id q2-20020a635042000000b0046fe658a8ffmr8450529pgl.493.1668812047549; Fri, 18 Nov 2022 14:54:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812047; cv=none; d=google.com; s=arc-20160816; b=j/1yogiFKRVf/s9jq3JyazFqSg7D44I2PMKD0c+tKvOlCswYL1nCE+/9M2bZM/fsYA rHQKa+Hfh2pQLqmOimT5z98dCuWUib/00uaO2XoLWDRsr9AjcM+CNPWstNfMsx2DpuSt CwK8IPS00oqEIfQOKqbP5n7M4UqGkk+zMlcQdwk0iOSloTyS45NcjfJT19HxAlt2z1la /9muAHVCSFaeHtqwM+2zhYnk6hK2jggZj6RIQSQLC5xK0xpsG5Cdm3M0SlHpkISWZBwk Ttf8PxG409OpPoXsj+Zx9n+tuSlz3jPFel8WZoHkADMQGm03jUHAd8i2a9hMny8G9Nd4 fVBg== 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=Y09NV7sw6cWimmP/V/ESJFXrbJxix6YqIANHwEH+1NE=; b=rj43GiLZ/MTjn0qXAa6NQ9Mt3P4tX46SeN3hEe1PBG2Q+8o27XTL0LW3WbiF4PteNK Jaq7SkUkUFv+jMc05T9T80x9PoRmmJyNw04rB/hMFw4yl6zS9Bxfwle5H3+5ASe5OgFC gsYBtUOKy3O+FDkGw3ryq5QEMBujixcAESCKT+Wco+Mm7if9R9uZqMGh7HZYwMuUaU66 1OoT6D6YJrafGVsojvlNDTNQ9C4tMl8m1UTfj/weL3SNgSAKRWGchoVU+Su4oRcWQRll fu0/C1g3cwyk0t+QReHkrV/VXxq3VC/8bvFaabiIKlQSepyT82ZdaMDHv5fVMs9hH/TQ 21SA== 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 c14-20020a63ef4e000000b0046fabcb7bacsi4692388pgk.823.2022.11.18.14.53.54; Fri, 18 Nov 2022 14:54:07 -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 S234266AbiKRWx1 (ORCPT + 99 others); Fri, 18 Nov 2022 17:53:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234215AbiKRWwx (ORCPT ); Fri, 18 Nov 2022 17:52:53 -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 D51B7BCDF1 for ; Fri, 18 Nov 2022 14:47:42 -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 1owA88-0000eB-8O; Fri, 18 Nov 2022 23:46:40 +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 1owA83-0058Hm-IW; Fri, 18 Nov 2022 23:46:36 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA83-00Hb3G-FT; Fri, 18 Nov 2022 23:46:35 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 130/606] iio: light: lv0104cs: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:44 +0100 Message-Id: <20221118224540.619276-131-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?1749876261706010331?= X-GMAIL-MSGID: =?utf-8?q?1749876261706010331?= 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/lv0104cs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/lv0104cs.c b/drivers/iio/light/lv0104cs.c index c2aef88f4e63..c041fa0faa5d 100644 --- a/drivers/iio/light/lv0104cs.c +++ b/drivers/iio/light/lv0104cs.c @@ -474,8 +474,7 @@ static const struct iio_chan_spec lv0104cs_channels[] = { }, }; -static int lv0104cs_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lv0104cs_probe(struct i2c_client *client) { struct iio_dev *indio_dev; struct lv0104cs_private *lv0104cs; @@ -521,7 +520,7 @@ static struct i2c_driver lv0104cs_i2c_driver = { .name = "lv0104cs", }, .id_table = lv0104cs_id, - .probe = lv0104cs_probe, + .probe_new = lv0104cs_probe, }; module_i2c_driver(lv0104cs_i2c_driver); From patchwork Fri Nov 18 22:37:45 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: 22923 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp473240wrr; Fri, 18 Nov 2022 16:01:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf7f7OFoWZYrrCH8GvaZahVPjSxijUV14kc1kozjOHeef7+IUpOjXDjC2aj/q4QGvM9IUH5G X-Received: by 2002:a17:902:848d:b0:17f:8097:83c1 with SMTP id c13-20020a170902848d00b0017f809783c1mr1814286plo.10.1668816101420; Fri, 18 Nov 2022 16:01:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816101; cv=none; d=google.com; s=arc-20160816; b=vajw8WhMBrKLWMPNSYJWbYbiatcri/Vy7oNU5duJGzUdW1vWjC96i+kHS8qnk3P3tj gv5jqfZCZkvljUZIb/WgNOek2+iNeN3oBJ5WfxTOneL8P7Jzad8r6p5q4bUfIUxm+Sxm RWGcRmNiR8+7+kQdSOKJJE/vQTrZOOubXiEjvRpVUlRc/CSXzg8fjSpCabv7YHTV3Mtm YzoY/xww2aHVSQRJZmIhql6f31JsHUp84OzCZJsAYfAsnjGVbMRejD39aQNx4qEtqSVK E1GZZhPz/41hreWia1wwLPF+tLlMK0ec3yo+Jk6fXcM6REUcqa6ihWXt03W/C7Cipo9j QbNw== 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=iZOH0zHFhgYUu/Czbwc7F/JCR8YxxGe4hTiiGIn4E+8=; b=LzVXhkpkLNqt5RjiaNJrn/dIO2s79OLl4WLZInoUvxOEeo0nsezSD+OBcYHYlD7Zo3 DB2Sp9rIHrve4rfABhuAhHriE945DlcvwIpmiVHl0sx71WO382lVgn2Jc+zCZwPSjs4Z BloowI+LQ/VuTOBeo1jZ8STJgwyMFLGRGBThoSz9custwdAFwMcTugV9pIkoFtp8wdmP Reg67H2TUua7eUcc1Js7ObUpu7L1FSreHfjgYOyrZkISQ7N1b8R5YpOwZKVceHuIveL5 gU4DGfe3Frb3Uk6MGwXeonOiczRkp77Hfl/DktTR8ZgGyiQ52sdqCN1tPaOBDtOdkdxP uoXQ== 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 y10-20020a170903010a00b00179c921918esi4457225plc.17.2022.11.18.16.01.28; Fri, 18 Nov 2022 16:01:41 -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 S234014AbiKRX6h (ORCPT + 99 others); Fri, 18 Nov 2022 18:58:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229802AbiKRXzm (ORCPT ); Fri, 18 Nov 2022 18:55:42 -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 816B8BE84C for ; Fri, 18 Nov 2022 15:28:15 -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 1owA89-0000gQ-0M; Fri, 18 Nov 2022 23:46:41 +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 1owA84-0058I6-9d; Fri, 18 Nov 2022 23:46:37 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA83-00Hb3L-Kn; Fri, 18 Nov 2022 23:46:35 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 131/606] iio: light: max44000: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:45 +0100 Message-Id: <20221118224540.619276-132-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?1749880512480255080?= X-GMAIL-MSGID: =?utf-8?q?1749880512480255080?= 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/max44000.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/max44000.c b/drivers/iio/light/max44000.c index 85689dffbcbf..5dcabc43a30e 100644 --- a/drivers/iio/light/max44000.c +++ b/drivers/iio/light/max44000.c @@ -523,8 +523,7 @@ static irqreturn_t max44000_trigger_handler(int irq, void *p) return IRQ_HANDLED; } -static int max44000_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max44000_probe(struct i2c_client *client) { struct max44000_data *data; struct iio_dev *indio_dev; @@ -617,7 +616,7 @@ static struct i2c_driver max44000_driver = { .name = MAX44000_DRV_NAME, .acpi_match_table = ACPI_PTR(max44000_acpi_match), }, - .probe = max44000_probe, + .probe_new = max44000_probe, .id_table = max44000_id, }; From patchwork Fri Nov 18 22:37:46 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: 22710 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp463123wrr; Fri, 18 Nov 2022 15:31:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf7l6BpmemdDtYeIKJWZG0BVBx2iH8KXQl8cnOlQRMISO9G+oLp0bmN0vQR6smW7xogQdaV6 X-Received: by 2002:a17:906:547:b0:7ad:9028:4b17 with SMTP id k7-20020a170906054700b007ad90284b17mr7807081eja.366.1668814301295; Fri, 18 Nov 2022 15:31:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814301; cv=none; d=google.com; s=arc-20160816; b=HXNIqCsprlQP4kZbTVonL75lwxZG+W5tuEI5tgrt3Eumb4+gADC3t1voEr3mpJ6MPy +7RcmLV8BECs1yf5gk34SuJ64OncnY9Pgwya9kjbAFzGd2wielIFS22WnXwH7QTcVxmx tHHDWYYuPEewtSmeFIyGlALIaRfpk64KeqCHfyCN5vM4oE/ZiD6q21o3v18rUWACMLEj uwk/u9iy1gucfu44wDfI9jo911V7gj4uPar472wPJNLyF5QQj/zpo0s2NBcomfUmKMxS hiGcSLfgJGeqAewCh/paHyKLleEGZW85ghw0bzvRLyQoSNGuBaD7eJ38tlqEw3voWB2A egDA== 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=qCILBtbmYH88MDa0qcBvm0Li3CIxJ9NAYa9p10n15t8=; b=jKsQSqZwi8+a6ksjp9tMVyOzsLTL7cyeot1Iw6cQsFGSfVHqWoQp+9F3dPl/HnCx54 JIl04TcPTgXr1dJBwpC3L3Zi+TbdZDxE4nptg2Pam/tvjbsPybHn7j1qapwNErRLoFDC oa1kp7r6Q0+YUYgY3KhwPaksxUcB870BTlDVJp7HWREJ0zKvNh5bNA5OQCuDEAotcyoQ WDDkOIbAAVz4BmrBVifp/GfawBCS2yMRzVmhzfm+17foKKRkXn24k/tkiCxns97PZOfM fvI8TayhJFE3LwEGnsku9iSFxo5NA+rtImC+OH/WRyjkjHc4ESjQWPudNyUi0DZhaB3F BtcA== 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 ey7-20020a0564022a0700b0045d4015cdcesi4087761edb.51.2022.11.18.15.31.17; Fri, 18 Nov 2022 15:31:41 -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 S235887AbiKRXae (ORCPT + 99 others); Fri, 18 Nov 2022 18:30:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235627AbiKRX3P (ORCPT ); Fri, 18 Nov 2022 18:29:15 -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 ADB8DC053E for ; Fri, 18 Nov 2022 15:17:23 -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 1owA88-0000fC-Kg; Fri, 18 Nov 2022 23:46:40 +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 1owA83-0058Hy-VL; Fri, 18 Nov 2022 23:46:36 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA83-00Hb3P-Ra; Fri, 18 Nov 2022 23:46:35 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 132/606] iio: light: max44009: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:46 +0100 Message-Id: <20221118224540.619276-133-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?1749878624860160745?= X-GMAIL-MSGID: =?utf-8?q?1749878624860160745?= 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/max44009.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/max44009.c b/drivers/iio/light/max44009.c index 801e5a0ad496..3dadace09fe2 100644 --- a/drivers/iio/light/max44009.c +++ b/drivers/iio/light/max44009.c @@ -487,8 +487,7 @@ static irqreturn_t max44009_threaded_irq_handler(int irq, void *p) return IRQ_NONE; } -static int max44009_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max44009_probe(struct i2c_client *client) { struct max44009_data *data; struct iio_dev *indio_dev; @@ -538,7 +537,7 @@ static struct i2c_driver max44009_driver = { .driver = { .name = MAX44009_DRV_NAME, }, - .probe = max44009_probe, + .probe_new = max44009_probe, .id_table = max44009_id, }; module_i2c_driver(max44009_driver); From patchwork Fri Nov 18 22:37:47 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: 22840 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471565wrr; Fri, 18 Nov 2022 15:57:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf4HayNVYDIdWcxgt/Nn49Y8kapHKMP17ELS4ohXpkPPsT0U1frSJ3T6U4EyydstO2clyAXV X-Received: by 2002:a17:906:a8a:b0:7ae:6cdd:9bc9 with SMTP id y10-20020a1709060a8a00b007ae6cdd9bc9mr7579943ejf.619.1668815834447; Fri, 18 Nov 2022 15:57:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815834; cv=none; d=google.com; s=arc-20160816; b=VSDhIxXnoliGz7eHWFw3BqqsUnoW/NQEqIX7FkhYWvQJXYyLmUyeVZ9YsyCP6n3wS+ h5KWhLR4v7OEOT+AVGoeQJWfndc0nehO5tTjxUYb+wN0+6Uwb7ce5Iqe11dorYTfOMqd RY09aTKbs5Rs4/Am4frANA5vGMalgY9jnuJP5K0yvg3IITQVyjGuQ5iGvy1VGBG1jA2w BMHhUdsVe8ehDHnowRQ4CAlColl6aU2yDLIZpH5ZW/WqkAT9AvDb7RYP8rSTmHINFXYl XM4BqhZq19xWu9t7iuJR2SGPCs8yA7hZyvLBIBq0TAq5xwz2HmHTFIsMHZ01nP+STgDD 8LoA== 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=753L/U3a6Ig4+KmwMX6gtkQTsCq248rsugBtdZD08MM=; b=PePG+38KjMbhCMqM5p3XHPlFXCDJ8e+BZ9mUI919WdYqJTPyv4AD5ByXnGtmBgtl+G FhEXHoQGGKLjpw91nXd1kpYtguJsRKNT717UHnalBPxVON74xnPdKdEvpH4lm9LbwtLT w3Z6cIL+IXjX5hJXXMK7Qyy8gjMePJHVcPRMwk817BLKqcDVIx36NwFz+UthgxTj3465 pMxwILYrlTAv18ss5ewNOxfiZwgM34wSit73nkNdnR9gVUPkxJ0cQRQVDQtOT/ayiIji lCAVoF2I48nv9MezpO1KlsCQZiVtHm4xZ0LB4vcIWl9mYg7ehLAoeZibJkcbkg4+9bZ0 SX/w== 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 eb11-20020a0564020d0b00b0043d00293d23si4338641edb.391.2022.11.18.15.56.49; Fri, 18 Nov 2022 15:57:14 -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 S236853AbiKRXsx (ORCPT + 99 others); Fri, 18 Nov 2022 18:48:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237291AbiKRXrw (ORCPT ); Fri, 18 Nov 2022 18:47:52 -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 79A34E674E for ; Fri, 18 Nov 2022 15:26:10 -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 1owA88-0000fg-RI; Fri, 18 Nov 2022 23:46:40 +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 1owA84-0058I1-2s; Fri, 18 Nov 2022 23:46:37 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA84-00Hb3S-0h; Fri, 18 Nov 2022 23:46:36 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Matti Vaittinen , =?utf-8?q?Nuno_S=C3=A1?= 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 133/606] iio: light: noa1305: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:47 +0100 Message-Id: <20221118224540.619276-134-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?1749880232108854565?= X-GMAIL-MSGID: =?utf-8?q?1749880232108854565?= 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/noa1305.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/noa1305.c b/drivers/iio/light/noa1305.c index be3536b390fc..eaf548d4649e 100644 --- a/drivers/iio/light/noa1305.c +++ b/drivers/iio/light/noa1305.c @@ -186,8 +186,7 @@ static const struct regmap_config noa1305_regmap_config = { .writeable_reg = noa1305_writable_reg, }; -static int noa1305_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int noa1305_probe(struct i2c_client *client) { struct noa1305_priv *priv; struct iio_dev *indio_dev; @@ -279,7 +278,7 @@ static struct i2c_driver noa1305_driver = { .name = NOA1305_DRIVER_NAME, .of_match_table = noa1305_of_match, }, - .probe = noa1305_probe, + .probe_new = noa1305_probe, .id_table = noa1305_ids, }; From patchwork Fri Nov 18 22:37:48 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: 22666 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp461102wrr; Fri, 18 Nov 2022 15:26:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf7qdASMZ9eENhhcxR7FUlm3m92xIlUXI21b4hKhXqkHonnVNMLLIG6Bl1pDOcwHCKNxiPSS X-Received: by 2002:a17:906:3fce:b0:7ad:bb54:75d3 with SMTP id k14-20020a1709063fce00b007adbb5475d3mr7679042ejj.484.1668813975620; Fri, 18 Nov 2022 15:26:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813975; cv=none; d=google.com; s=arc-20160816; b=IJRPNG9GzqFEn3HYAMttt2Sm4OSLi+B1J7QYriFSGVpLZJCHtW6J/2fLcTqA959xlr TXf+0Vz8hQjn7mi73N0pTE6ziG0+fOXIAuznmdEFIDHNOqyU7oedfsUUIvdVmQKh4q4I yn8/KA/NLV2d8nV/9k8eDv3DDZO4IUva1uw1C9Kzruv+K8HdLa96iJioNvTpdzRV3Flw Na1xdQ6W5VlH7SCeYoA0Kur6eUR+kKsssYYccoe3ha9pKgLJNO4mLfatL0A1Ibwzo0vz LXr/FStViH0EpV7rB2wK088fa/xSFAdBvIhUDtd+tlG6Yz4PgA5snKY80MIgHjgJNUie qtOQ== 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=HvKNk5zJMIF7JGCIL+7zesBpQwdVWfaiNUXUQK9pzDE=; b=lI8bv8/JLzhYl0ZqGTkIN9jG18om+jwLa10P6wLCa/aiNh/h+RCO6RCSrwSYcVuLqG 6ax44xWMuupfbjphTeSUxD9FU3oQarllt7AJzXF249z9UiSyfiGKpg4JvFWkSlLLwPJt PCG97uuuMXuqU2UxtqFefrR39HRWwrQCl7Mf9cfQ7SEK9mYyklJpKvzKHvs5Bz9IuF4N RnbAWr0CFcsWTpyTCcRiQPkU3e/3X8Jo3wYVuUgHGe5Or43i5OM8Ycxm5fnhYxBORiZ4 cwobeljbGlqLs/0cHzU97IwATmdALeiss6hOc1LgvT5Ds/KPelVlytsqGMaeGeXwi28f mcbQ== 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 c12-20020a056402120c00b0045938ab7129si3819580edw.330.2022.11.18.15.25.52; Fri, 18 Nov 2022 15:26:15 -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 S235438AbiKRXYv (ORCPT + 99 others); Fri, 18 Nov 2022 18:24:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235595AbiKRXWM (ORCPT ); Fri, 18 Nov 2022 18:22:12 -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 07B70950EE for ; Fri, 18 Nov 2022 15:13:12 -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 1owA8B-0000p7-6J; Fri, 18 Nov 2022 23:46:43 +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 1owA86-0058Iq-Ke; Fri, 18 Nov 2022 23:46:39 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA84-00Hb3W-8b; Fri, 18 Nov 2022 23:46:36 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Dmitry Torokhov , Greg Kroah-Hartman , =?utf-8?q?Marek_Beh=C3=BAn?= 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 134/606] iio: light: opt3001: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:48 +0100 Message-Id: <20221118224540.619276-135-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?1749878283563217434?= X-GMAIL-MSGID: =?utf-8?q?1749878283563217434?= 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/opt3001.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/opt3001.c b/drivers/iio/light/opt3001.c index a26d1c3f9543..ec4f5c2369c4 100644 --- a/drivers/iio/light/opt3001.c +++ b/drivers/iio/light/opt3001.c @@ -735,8 +735,7 @@ static irqreturn_t opt3001_irq(int irq, void *_iio) return IRQ_HANDLED; } -static int opt3001_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int opt3001_probe(struct i2c_client *client) { struct device *dev = &client->dev; @@ -835,7 +834,7 @@ static const struct of_device_id opt3001_of_match[] = { MODULE_DEVICE_TABLE(of, opt3001_of_match); static struct i2c_driver opt3001_driver = { - .probe = opt3001_probe, + .probe_new = opt3001_probe, .remove = opt3001_remove, .id_table = opt3001_id, From patchwork Fri Nov 18 22:37:49 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: 22695 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462603wrr; Fri, 18 Nov 2022 15:30:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf4xcDpnEA3OGfD0k8a//D2Yep6RKSj6JCuwF5KlPd9QPeALQoEomo0rAbjlbCF/w7MhkIuc X-Received: by 2002:a17:907:76f0:b0:7ae:72ae:1f85 with SMTP id kg16-20020a17090776f000b007ae72ae1f85mr7503301ejc.133.1668814233274; Fri, 18 Nov 2022 15:30:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814233; cv=none; d=google.com; s=arc-20160816; b=Jjnw/JRYcN51BjV8nHvh7Mw61S6tzZ9YLdcp6XvvRo0aS2KRKFbCS8NWKaqr5Xrx6s m4Gky8muyvoJza0DFrvpOEZ5I2Dlg4s84APiH+YCgvzugk48KN2ZQaxPzCpF8YDHO360 UppsEwB+rooOOC/2S1rdLt/1/M0kmT9dwz34NttkYRoNUr7QNg4Jd0Y7lAr4oxbiSBR1 RZMrtuD2h6yCigA/yNIF1Xt5LQvjH5qL8Ph2aqaIitFs/wDV4SEpKHlJhlyKCTxjbiHd svPYaHB5/NQxoX0oxO1iX3fI2yjBuPCuf+m0wlZUqHIWbIbN9onjYqItzmex9kW3+z9Q 1t/g== 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=hEdlJWgvcCkCrVK8/vOeDd2a3LyYLyqxPHEH5CgLKmo=; b=E70WZUc1b1G9mr1U/IKE3HdxbpoXLWxeU/A9MnQNlbbHWUueT3XfNJVcTr4gSlfFsB lCKXhlT2rRe7SlOFKkH1vVXyugpRTwz89l+pqvYsodm8lF4XEwvWLBfZkAfEbxuNX71H dw6yb1QFUi/1eULw2QjLjsD7O+0tYwSKqeF3qCccFu3qKuRMuR2vZG3g76QRVkDXFulD 6KwBAHP6aiZ/hvdLPppEmh06UkFRxsc7stgOEvnJCvrAirOKuBT0HiZ7uYX6qbzOWOh6 PH/svx2OgSU9z5yikXRRRy/m59nObUTJk/T20YpFLIpeTh1I2NUbXGBW5UcGEn4Wl0Ws MFQA== 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 i2-20020a508702000000b004691125c420si2089583edb.264.2022.11.18.15.30.09; Fri, 18 Nov 2022 15:30: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 S235750AbiKRX3j (ORCPT + 99 others); Fri, 18 Nov 2022 18:29:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232651AbiKRX2o (ORCPT ); Fri, 18 Nov 2022 18:28:44 -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 B2F84AA44F for ; Fri, 18 Nov 2022 15:16: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 1owA8B-0000po-Co; Fri, 18 Nov 2022 23:46:43 +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 1owA86-0058Iy-QU; Fri, 18 Nov 2022 23:46:39 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA84-00Hb3a-F3; Fri, 18 Nov 2022 23:46:36 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Benjamin Mugnier , Miguel Ojeda , Peter Rosin 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 135/606] iio: light: pa12203001: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:49 +0100 Message-Id: <20221118224540.619276-136-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?1749878553528688776?= X-GMAIL-MSGID: =?utf-8?q?1749878553528688776?= 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/pa12203001.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/pa12203001.c b/drivers/iio/light/pa12203001.c index 3cb2de51f4aa..15a666f15c27 100644 --- a/drivers/iio/light/pa12203001.c +++ b/drivers/iio/light/pa12203001.c @@ -338,8 +338,7 @@ static int pa12203001_power_chip(struct iio_dev *indio_dev, u8 state) return ret; } -static int pa12203001_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int pa12203001_probe(struct i2c_client *client) { struct pa12203001_data *data; struct iio_dev *indio_dev; @@ -475,7 +474,7 @@ static struct i2c_driver pa12203001_driver = { .pm = &pa12203001_pm_ops, .acpi_match_table = ACPI_PTR(pa12203001_acpi_match), }, - .probe = pa12203001_probe, + .probe_new = pa12203001_probe, .remove = pa12203001_remove, .id_table = pa12203001_id, From patchwork Fri Nov 18 22:37:50 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: 22621 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp450647wrr; Fri, 18 Nov 2022 14:59:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf408FFU7p/Qnix1U6ve8Jsrqrp9p5mzNi1e+JuoWx9nBWsYI3M5Rgo2hpwsDXKEk0RD7sAP X-Received: by 2002:a17:902:ee89:b0:187:1a3f:d54b with SMTP id a9-20020a170902ee8900b001871a3fd54bmr1761629pld.9.1668812346392; Fri, 18 Nov 2022 14:59:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812346; cv=none; d=google.com; s=arc-20160816; b=hzyAxfqPVO3MEDFwosCHui0pZPJo19xoutDtfQjhz7tvHOtFn24xWtLMEUzQ5lL4o1 zw27ay/PkLFJLanJwYTojQAikBRZMOJ0dxSiDj8ExDjD8R6alVQl/WlSDopaYgouRTyw 30v0Xk9scrXLooaKGvg6Nc59pFJhiCJLaIuCnRCDfMhslOT44Ig4QkqmgSJxUj7rg+X9 mDza56NbAtJGM4TPw/A7zl8lo60k5xPfgv6UhrB10V6Pby8aGDZx5R6DpirkgcL+SHp2 xvSTfIS49EicPjIuMRQ90eO1cl0rO+vuDmZGILlH9obwSLq6eLbYcAsOXv8IjgmudO2p jvKg== 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=1ZeNRcnHHrf6jebvtpP3bhycMslIkpucyk0v9Hfd9aU=; b=v0cL7I6PT0ZNxggj1+yxzx/WS173Pr7DzJHXx3dm14TH/QyzSJ3OJU0AsOmVuNPkaa wI8K30I6hJSsEOXeWPS4pjCI9a7WlLE9XBWVyWghqB/IQJCMCb+BZGukuH4XoCFKreM0 An3iHu4Yl6FsoYwD4H448wTPK9E5x19qEk8BlEd5PCLLKZkHCaN7nOFUSxH8ILDED8/z uKBel+V1cHSPsuJqwnFuFAgDnwoW4aGp2Ve6O1YripECBUg3in35CUmWeo+PEEd+1jVS 2qpr1ftvP99ne8yBdq1NV9Y+PUiquzAVMPXxLhlStTRFuPMYdI4rRs8rC/S6HIMLMkw8 e0rA== 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 f14-20020a170902ce8e00b001853ad3944dsi5695617plg.480.2022.11.18.14.58.53; Fri, 18 Nov 2022 14:59:06 -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 S234850AbiKRWzf (ORCPT + 99 others); Fri, 18 Nov 2022 17:55:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234485AbiKRWzF (ORCPT ); Fri, 18 Nov 2022 17:55: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 AD7D7C050B for ; Fri, 18 Nov 2022 14:48:21 -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 1owA89-0000hU-AV; Fri, 18 Nov 2022 23:46:41 +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 1owA84-0058IA-HS; Fri, 18 Nov 2022 23:46:37 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA84-00Hb3f-Kg; Fri, 18 Nov 2022 23:46:36 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Greg Kroah-Hartman , Miguel Ojeda , Dmitry Torokhov 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 136/606] iio: light: rpr0521: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:50 +0100 Message-Id: <20221118224540.619276-137-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?1749876575441838170?= X-GMAIL-MSGID: =?utf-8?q?1749876575441838170?= 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/rpr0521.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/rpr0521.c b/drivers/iio/light/rpr0521.c index d1c16dd76058..668e444f6049 100644 --- a/drivers/iio/light/rpr0521.c +++ b/drivers/iio/light/rpr0521.c @@ -927,8 +927,7 @@ static const struct regmap_config rpr0521_regmap_config = { .volatile_reg = rpr0521_is_volatile_reg, }; -static int rpr0521_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int rpr0521_probe(struct i2c_client *client) { struct rpr0521_data *data; struct iio_dev *indio_dev; @@ -1122,7 +1121,7 @@ static struct i2c_driver rpr0521_driver = { .pm = pm_ptr(&rpr0521_pm_ops), .acpi_match_table = ACPI_PTR(rpr0521_acpi_match), }, - .probe = rpr0521_probe, + .probe_new = rpr0521_probe, .remove = rpr0521_remove, .id_table = rpr0521_id, }; From patchwork Fri Nov 18 22:37:51 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: 22619 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449827wrr; Fri, 18 Nov 2022 14:56:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf45K4YDf7KonVzeYEAm2avz/Vkl/+x73g54yojvXyvZ95Tz5ZwBEsIkn/ztszhPJ2EKIoXu X-Received: by 2002:a17:903:328e:b0:187:29fe:bdc0 with SMTP id jh14-20020a170903328e00b0018729febdc0mr1566663plb.108.1668812208622; Fri, 18 Nov 2022 14:56:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812208; cv=none; d=google.com; s=arc-20160816; b=PoDAUfN1zT4ZuQ6+mlZB5fSSJ+t4NutQQ0mTVm36HsRyr2qxZmSRdAd+rih0jvzplm SGahNqTUg/dfJgfH9SBvim85+HuzRRkhFdVXHNAq71DJlfq5kErOVG9DMx/TmzgUh1Qy 8gAW/y/s+FunOABBW9xpQiKwT8qHBqTE3eu+hjShu+iFZCWlWCj2AsdG3+JMH/N0rPun /Y/3g3AyIyA7ATupYRcFVW5yUSeeZQtzu3sAwBIT5ghTm6v5CKhnir9aTA5vgGcvZR4w hQxZ7JCVswbY1FPSMwy7ih48HjjFw5Fbe1LZm6WgI5U2NHw93/XJhFQa88/aa+eIslSM 7qNg== 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=ZbaWkZ2R8/RCCcvIKsWCnb9z7brqByIYMJmfL6fD8mI=; b=CsOW7jGhA3rqMSiP64Xp5W+WiZ8h6jw/wV6abbjYuZo9FYujs9fLRiDzw30tpdY3yq ZyjLWxtFll05fVPhIKNWpH1ojBt7dNS1UMGDOPr9Voev7BNA78L127miFcP9IfM6njB7 m87c9d8S0iPFodcXQ0NfTC7oPYQBwkFFq2S36GDydJUXE6H/LoMe60jqhMX3Fr4jC6O3 lm6vTkMQnvQhtRcZTG1Ox/L+aU5KT9trylB15kNkCHjoirVq0dFn7R3SKoBys7w8IyKj 38yJl6P79YHd1ZrCFAS5hFBuN53AoadStIBEoax1V8BHo4wPByWLdK4TZJ4cg3V0Fixb GulQ== 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 13-20020a170902ee4d00b00188f6c3af1bsi4004772plo.413.2022.11.18.14.56.36; Fri, 18 Nov 2022 14:56:48 -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 S235230AbiKRW4B (ORCPT + 99 others); Fri, 18 Nov 2022 17:56:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234604AbiKRWzT (ORCPT ); Fri, 18 Nov 2022 17:55:19 -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 C6DF4103D for ; Fri, 18 Nov 2022 14:48:28 -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 1owA89-0000iV-ED; Fri, 18 Nov 2022 23:46:41 +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 1owA84-0058IG-QH; Fri, 18 Nov 2022 23:46:37 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA84-00Hb3j-QB; Fri, 18 Nov 2022 23:46:36 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 137/606] iio: light: si1133: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:51 +0100 Message-Id: <20221118224540.619276-138-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?1749876430145078917?= X-GMAIL-MSGID: =?utf-8?q?1749876430145078917?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/light/si1133.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/si1133.c b/drivers/iio/light/si1133.c index f8c9b2cc322e..a08fbc8f5adb 100644 --- a/drivers/iio/light/si1133.c +++ b/drivers/iio/light/si1133.c @@ -990,9 +990,9 @@ static int si1133_validate_ids(struct iio_dev *iio_dev) return 0; } -static int si1133_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int si1133_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct si1133_data *data; struct iio_dev *iio_dev; int err; @@ -1064,7 +1064,7 @@ static struct i2c_driver si1133_driver = { .driver = { .name = "si1133", }, - .probe = si1133_probe, + .probe_new = si1133_probe, .id_table = si1133_ids, }; From patchwork Fri Nov 18 22:37:52 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: 23057 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486731wrr; Fri, 18 Nov 2022 16:41:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf4RJX5ataT5sS53HJr8VSkM5Vq6VWE7QeU/S44Dw9Bmy+ZPcS+dW6zWjCd5f5/XPhCaacnH X-Received: by 2002:a17:906:35c8:b0:78d:3a04:e41d with SMTP id p8-20020a17090635c800b0078d3a04e41dmr8152000ejb.39.1668818461767; Fri, 18 Nov 2022 16:41:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818461; cv=none; d=google.com; s=arc-20160816; b=t7bVnz0FVDZ+wDrA/GsKl/QaKRRIMG1QSZrpjLpY/OuZNjVNrmyPI5RVoRdrgZzWi2 CVeZOy4bnXPziMtsTTv2P7QKE0NXQlHcGskLTnqx0o3wtQc1fF4QshjsFgs2PSsj+9y9 OFGzSK6bC1LfnqxUcAQpKowxK4heWLNZiqVCALPl55I3Fh1Okop9bcS89Tma1PdSjx9m HcekGJXNltWkHcminFDDyoFrwOrkDtPzg3aj9GL7qOyulRdBxyBP8Dh6FSAuzuSjYxM4 HzVkFVVWOMVN7qV4k4hkJRQRosJ/PeCz4m21f1++pqTg7s75rZ6jObg/dpXnhT5+jDia 1BGQ== 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=7FN8kweTirHDpscg3TDjQYRYYU3wgjVhfoJ2rp6FQZ8=; b=p3xLRppjYAs+0KIXRvioOIcIzJ1vVuMbMpD+GEHGQdUN95Uk+USVOQDseCg8D8K7ib MW/ohP2M+2eEuzYv/SL4NQriFnhCFGiyLnSU/79uqmi0JqLMa9xujPquo/Z0tyiRz5/A qoz1Frgq4kooT6anL8btCY6dsmJs5GQCDaBSUXxUZ86nRpVIapGp69UuxU+w+zcFZDLy DKny6jQGjJgSXJ+L63TYTOaep/GTv/kR3xC7OCrD2J6nL2Kk6tRAIMSQJFtQ3Y77gZLR fAvJxkiDmmpdXNmBtmABDTagvGYiwlQAn9gBzz6/BCCkNotdtHisGnxhzIZeZvRblGc4 TBEw== 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 v12-20020a056402348c00b0045c2e7e5532si4652342edc.585.2022.11.18.16.40.38; Fri, 18 Nov 2022 16:41:01 -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 S232142AbiKSA3r (ORCPT + 99 others); Fri, 18 Nov 2022 19:29:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234617AbiKSA3O (ORCPT ); Fri, 18 Nov 2022 19:29:14 -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 A4123110294 for ; Fri, 18 Nov 2022 15:40:29 -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 1owA8A-0000kN-0K; Fri, 18 Nov 2022 23:46:42 +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 1owA85-0058IP-AQ; Fri, 18 Nov 2022 23:46:38 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA84-00Hb3n-Vs; Fri, 18 Nov 2022 23:46:36 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 138/606] iio: light: si1145: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:52 +0100 Message-Id: <20221118224540.619276-139-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?1749882987776036774?= X-GMAIL-MSGID: =?utf-8?q?1749882987776036774?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/light/si1145.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/si1145.c b/drivers/iio/light/si1145.c index e8f6cdf26f22..f7126235f94c 100644 --- a/drivers/iio/light/si1145.c +++ b/drivers/iio/light/si1145.c @@ -1269,9 +1269,9 @@ static int si1145_probe_trigger(struct iio_dev *indio_dev) return 0; } -static int si1145_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int si1145_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct si1145_data *data; struct iio_dev *indio_dev; u8 part_id, rev_id, seq_id; @@ -1352,7 +1352,7 @@ static struct i2c_driver si1145_driver = { .driver = { .name = "si1145", }, - .probe = si1145_probe, + .probe_new = si1145_probe, .id_table = si1145_ids, }; From patchwork Fri Nov 18 22:37:53 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: 22651 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460689wrr; Fri, 18 Nov 2022 15:25:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf5PRA3xvIGDGlH/tF10nREM/q8DGvHW63oLKXC5fObc1ykqLN+Nah0Ar0Yao+8eJPER7mxW X-Received: by 2002:aa7:d74c:0:b0:461:b952:8932 with SMTP id a12-20020aa7d74c000000b00461b9528932mr8177913eds.104.1668813902566; Fri, 18 Nov 2022 15:25:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813902; cv=none; d=google.com; s=arc-20160816; b=faxldvtIuW8VdvwFph1RsjDFZy7RegTxeYd439tVlvi+5Fd8JvuqTor2/TEeJBflnR A5IX27aQMUMD7YLXHCxb4Cb7RlhdFrW+Xbqq6ErKOfcE/frKepygWR9/AkH6l0wHydBk +Z0HgWqLTA5y5BbVcut3nNkgOemVAJt2owr0YF2+rOrcvROaPQ4cEhGDvcmUyrO2awmN FkJw2tWL3j39Tj2QaBx5PaPVqT6+3RDcalJWIMjuyqc4ymb0i0+JvF0KzQ9QISybZzJn FcNbhNID6VV3ANPqC1RQy/Bixd4t6d2++7QTY4CXCWfW4TZObPERsbGcRs/cJM0tEv6p amEA== 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=aBSM0PRTINR407kFo18F46Dr4ojZxa0GUWdIpNNP6A4=; b=z3++h+jh24Q0xBXYjYT35u3+k4fZ4j5NImaQugb/Xwqr9lVfeFDpoCVHMT9BKZCRR8 K3LWEui3rhMSOVopxpXsDU3ipsGGMAOs4fbCM+AbgD2kHuP4Fi81TXyZf8fgI/tGdYcT 2wC/GigDp19e2vXBDc/PrIjwepJkZnm4zcOiPKzmdrbrv2TbWl9lhbOalZlWIlcGgH28 ifAwKI1pI30Z5UileoCLYBmBFpz+F2BgcoN1CL9ocIZ8yrsbD8M8djEA/xgx7XimPSe/ N7uXXSknPwdwn7z/KdRoEM45JZ9+vOcXv9caVZYkVGEcC522WNQzmL/rumK/WJTQaWtC QYBA== 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 dc20-20020a170906c7d400b00741a0c28f07si3400503ejb.943.2022.11.18.15.24.34; Fri, 18 Nov 2022 15:25:02 -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 S235494AbiKRXXe (ORCPT + 99 others); Fri, 18 Nov 2022 18:23:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235464AbiKRXVb (ORCPT ); Fri, 18 Nov 2022 18:21:31 -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 14A756D954 for ; Fri, 18 Nov 2022 15:12:57 -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 1owA8A-0000lB-8P; Fri, 18 Nov 2022 23:46:42 +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 1owA85-0058IV-Gw; Fri, 18 Nov 2022 23:46:38 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA85-00Hb3r-CY; Fri, 18 Nov 2022 23:46:37 +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 139/606] iio: light: st_uvis25_i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:53 +0100 Message-Id: <20221118224540.619276-140-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?1749878206904112211?= X-GMAIL-MSGID: =?utf-8?q?1749878206904112211?= 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/st_uvis25_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/st_uvis25_i2c.c b/drivers/iio/light/st_uvis25_i2c.c index c982b0b255cf..2160e87bb498 100644 --- a/drivers/iio/light/st_uvis25_i2c.c +++ b/drivers/iio/light/st_uvis25_i2c.c @@ -25,8 +25,7 @@ static const struct regmap_config st_uvis25_i2c_regmap_config = { .read_flag_mask = UVIS25_I2C_AUTO_INCREMENT, }; -static int st_uvis25_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int st_uvis25_i2c_probe(struct i2c_client *client) { struct regmap *regmap; @@ -58,7 +57,7 @@ static struct i2c_driver st_uvis25_driver = { .pm = pm_sleep_ptr(&st_uvis25_pm_ops), .of_match_table = st_uvis25_i2c_of_match, }, - .probe = st_uvis25_i2c_probe, + .probe_new = st_uvis25_i2c_probe, .id_table = st_uvis25_i2c_id_table, }; module_i2c_driver(st_uvis25_driver); From patchwork Fri Nov 18 22:37:54 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: 22771 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465888wrr; Fri, 18 Nov 2022 15:38:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf7/sfTSvpaBYk5CCyz088M3g9D/qr/FOYjQZ671jh/FB68cLn8hGZmet9PQPFg8Gab0xMxX X-Received: by 2002:a05:6402:1156:b0:467:374e:5f9b with SMTP id g22-20020a056402115600b00467374e5f9bmr8047714edw.283.1668814722517; Fri, 18 Nov 2022 15:38:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814722; cv=none; d=google.com; s=arc-20160816; b=B0qQvw09Us+ek7SBZKZgwE7ctbxlC334plL6xSJY7uaO9QMW0S4GhjjcrIB2Jo92cd r0biL9/L3sM6VEY/sjcSDbisDZJNXhSgEuJRwMgiKZAGZx0W/zZvuLPP/Y70DXtGPzgQ Xipjkzo8TGGErAZRS0NaX1ldeGX/wSe01c9+BwVzWVOPn3uHhJIfAepE+w95ywMid+Y4 ij2vFNUGlVWD/2NW9gTmDYGIzHEvM5aW2uUGM7u3qYpUBOSsmgUwOnEtkqNeuocirRAV gnzKjkIU0CTniI7lNeoGntKkeB+K4J5VfhSoKNMQYyUZu0jIK4DZHJnksvKU9mAyTjRQ GANA== 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=SPH23HPh5KoyLEV3rXKgYP0WCgAMntMfWNmyqlz6+AU=; b=x9d/uyVhYeQxZXlCX9pk+Yom6CXzUldWmXOCYIDsoNY02E3pmetaTvpI0MuNC+VI9V ZD6e7YMeRZSBQL7L9ms0ZdvWPF5FP6oRCrZJ7My/WM78H9qkgslftSMq5qLqvZE28oYo hH/vJPP7pxXhVdX5yB5xz0hMAGZYEcjjWNLOnbMarC3UMLM4/6bKKW23SldEJ4/mGyX7 52XkC/tbKBBTnDtphU6DLpoHV48GwoRQCdgXrnWu7/+wFDnPHCwV1yqJdf3XxLQhhlwe R72IN0FA3XPqrKqg/cp0AjYHT0ddyHldFJEDfVN05oaGvom7rIXhtJ+S+Wnt9VA48ZvJ 3w0Q== 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 w4-20020a05640234c400b0045cd68a2bc5si4500514edc.17.2022.11.18.15.38.18; Fri, 18 Nov 2022 15:38:42 -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 S236470AbiKRXg7 (ORCPT + 99 others); Fri, 18 Nov 2022 18:36:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236441AbiKRXdA (ORCPT ); Fri, 18 Nov 2022 18:33:00 -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 52D839039E for ; Fri, 18 Nov 2022 15:20:57 -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 1owA8A-0000m9-Fd; Fri, 18 Nov 2022 23:46:42 +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 1owA85-0058Ib-Og; Fri, 18 Nov 2022 23:46:38 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA85-00Hb3w-Id; Fri, 18 Nov 2022 23:46:37 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Adrien Grassein , Benjamin Mugnier , Maximilian Luz , Arnaud Ferraris 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 140/606] iio: light: stk3310: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:54 +0100 Message-Id: <20221118224540.619276-141-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?1749879066221765278?= X-GMAIL-MSGID: =?utf-8?q?1749879066221765278?= 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/stk3310.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/stk3310.c b/drivers/iio/light/stk3310.c index 7b8e0da6aabc..48ae6ff0015e 100644 --- a/drivers/iio/light/stk3310.c +++ b/drivers/iio/light/stk3310.c @@ -586,8 +586,7 @@ static irqreturn_t stk3310_irq_event_handler(int irq, void *private) return IRQ_HANDLED; } -static int stk3310_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int stk3310_probe(struct i2c_client *client) { int ret; struct iio_dev *indio_dev; @@ -715,7 +714,7 @@ static struct i2c_driver stk3310_driver = { .pm = pm_sleep_ptr(&stk3310_pm_ops), .acpi_match_table = ACPI_PTR(stk3310_acpi_id), }, - .probe = stk3310_probe, + .probe_new = stk3310_probe, .remove = stk3310_remove, .id_table = stk3310_i2c_id, }; From patchwork Fri Nov 18 22:37:55 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: 23008 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477927wrr; Fri, 18 Nov 2022 16:12:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Gu48m8/lmTaivoLrqoOykMdkihSVVuj3WIWd4oodOYorJXxLCoUC+YmN1f2Pdy1DQzWce X-Received: by 2002:a17:902:cf03:b0:186:5d7e:7ca8 with SMTP id i3-20020a170902cf0300b001865d7e7ca8mr1824601plg.74.1668816768338; Fri, 18 Nov 2022 16:12:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816768; cv=none; d=google.com; s=arc-20160816; b=STUTMqrfuWoc12Bz9hvC9QgB5FpEwov5+PgKbBoeIJL1RFa4InLmz9IwQbPlcs1WIC YEQQMPs5DMnprgKrAq9onOk6WiOzxlfYgCuFUXTJ0vLka89wsiyjkkSuYTePTCEg1brM 2lMmKULR1rsM2ctKLCuzJ3b9529JDGH/GOGnYYZ7NSZ2whWeZFZRpnwqP7TRKaJnpah7 SzP0FbUu7Jqqf0qflKnrl7x8/WEipaNl44Iy2bpescs9gHpufFLx3iqpjptP7kIEUr40 umrkpfIzS/jojioNHI15touMUzI9C3/aJJWQWrIicYHguU7WeASyd1yE2IJM0IKLHh2j DDfg== 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=ufnox1f1WOArLXCprACpsquY8tytZKM3EPTRKeKp9OM=; b=KmorxFetxm0rqI0pTO804Dv2uVWORaIld2v1vgmjFwRanyKACSdTKucG2+cZ3onE0y 9FJ3EsgE2dAu1J9lx58e36dX6EVfDkszaTqzWlqPkC139uc38skcDyISMeRQHblXXu4p +IsDE/8iogAn4xAccd+Z/hA7dlRTQ25CPktnLeSQPDRhFKC1bbZHCzjzP6N5y4OYb48H 6keinSxznLpRhc43ojC/IhlRD5I5nRfoqK8xt2Nd58k8SYFhpFVuzxSs73GhURlRejoW /VqaqUHGPzOQRHpjmpY/aY6It0A8W8gEtWPwe4DPquuZAVMFs6v7gfe+REgeZfA1fJ5E HVwQ== 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 i6-20020a170902eb4600b00188f87ebceasi3715242pli.516.2022.11.18.16.12.36; Fri, 18 Nov 2022 16:12:48 -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 S237731AbiKSAL3 (ORCPT + 99 others); Fri, 18 Nov 2022 19:11:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237561AbiKSAKD (ORCPT ); Fri, 18 Nov 2022 19:10:03 -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 9BCF72658 for ; Fri, 18 Nov 2022 15:33:23 -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 1owA8B-0000on-6d; Fri, 18 Nov 2022 23:46:43 +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 1owA86-0058In-H4; Fri, 18 Nov 2022 23:46:39 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA85-00Hb3z-On; Fri, 18 Nov 2022 23:46:37 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Paul Cercueil 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 141/606] iio: light: tcs3414: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:55 +0100 Message-Id: <20221118224540.619276-142-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?1749881211510207826?= X-GMAIL-MSGID: =?utf-8?q?1749881211510207826?= 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/tcs3414.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/tcs3414.c b/drivers/iio/light/tcs3414.c index 3951536022b3..5100732fbaf0 100644 --- a/drivers/iio/light/tcs3414.c +++ b/drivers/iio/light/tcs3414.c @@ -279,8 +279,7 @@ static void tcs3414_powerdown_cleanup(void *data) tcs3414_powerdown(data); } -static int tcs3414_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tcs3414_probe(struct i2c_client *client) { struct tcs3414_data *data; struct iio_dev *indio_dev; @@ -374,7 +373,7 @@ static struct i2c_driver tcs3414_driver = { .name = TCS3414_DRV_NAME, .pm = pm_sleep_ptr(&tcs3414_pm_ops), }, - .probe = tcs3414_probe, + .probe_new = tcs3414_probe, .id_table = tcs3414_id, }; module_i2c_driver(tcs3414_driver); From patchwork Fri Nov 18 22:37:56 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: 22994 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477288wrr; Fri, 18 Nov 2022 16:11:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Sy6Yp0A9zG2jk0KqagGVlJu0eTBCgNDhCWW0Pu89iKJxQl7DiNYDqx6RHox4Trj9HeK5x X-Received: by 2002:aa7:83c1:0:b0:563:b60:b097 with SMTP id j1-20020aa783c1000000b005630b60b097mr10116595pfn.36.1668816668504; Fri, 18 Nov 2022 16:11:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816668; cv=none; d=google.com; s=arc-20160816; b=Eg03hC6MImkP16LR9FmadprEizxgqGwMWA7107N7mRm5qrz+xEuJElm4rs+OVGxtlY 7900EQzlHPTS5s6ZoW+cDABTwl6u4ueF9kTK2PmNHBklDAE6vltKZYkZwbSWZ24BHGgy g8DEXAvpQ7aZRKpEXluRpwB47vGXzLwS4cc0TpLq8sacL3m96jjDzZHiH3on9gzjpq5V zjtW9kVggU83Hy+MEqiN8zA8GMzI5gIPR9kHPHtXtXwl8BVCWMxsCSsHTRZXhJAF4Kbh kWb5SPUC5DtCV6lFpvb0NP81gtgIuPkRJZUuUTRxcvq/mTQRhe2MIG+AntZo4w2PQK9d zwGA== 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=QajNaOYxp0RDGzye75JTIs1RlcbJ0XTkSxSuKZbgwxc=; b=EeqAqn9VTaE674vzi3FxZHPQ8C74GIdbyIkUvHJ86Nx+2qxdJw1O4HQhta6oJfSDhY 7kJmCRysEGYepspLOpV77PuKaghTxsppfMp/XbUrfLO1lLSc6eIHZQP0kLG+W5Xo4zFq aKNYVmBwU7QzgM2P3wOX5LLIZOuK1qiNfNw1k8oy/yTLvmkUiF+xgkT3QDnIB7chkZWT UNf6qqQhQugDxdW/UpoQdXafQD8TLzxp4snMcwYSUhkCpJviDr6GTndyauI9YIBuHL0l Zenn8yBKLExuzqlrr5r9thLHjYNOuYN9Sarnmks3VHpD1pq+i+1mQ+IOkXbH5cJIjwGV Hftg== 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 r134-20020a632b8c000000b0047063e59929si4992849pgr.836.2022.11.18.16.10.53; Fri, 18 Nov 2022 16:11:08 -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 S237603AbiKSAKQ (ORCPT + 99 others); Fri, 18 Nov 2022 19:10:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237263AbiKSAJl (ORCPT ); Fri, 18 Nov 2022 19:09:41 -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 F08E5A3166 for ; Fri, 18 Nov 2022 15:32:59 -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 1owA8B-0000ql-LE; Fri, 18 Nov 2022 23:46:43 +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 1owA87-0058J6-2W; Fri, 18 Nov 2022 23:46:40 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA85-00Hb43-Uy; Fri, 18 Nov 2022 23:46:37 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Jean Delvare , =?utf-8?q?Marek_Beh=C3=BAn?= , Maximilian Luz 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 142/606] iio: light: tcs3472: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:56 +0100 Message-Id: <20221118224540.619276-143-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?1749881106650795056?= X-GMAIL-MSGID: =?utf-8?q?1749881106650795056?= 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/tcs3472.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/tcs3472.c b/drivers/iio/light/tcs3472.c index db17fec634be..6187c5487916 100644 --- a/drivers/iio/light/tcs3472.c +++ b/drivers/iio/light/tcs3472.c @@ -442,8 +442,7 @@ static const struct iio_info tcs3472_info = { .attrs = &tcs3472_attribute_group, }; -static int tcs3472_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tcs3472_probe(struct i2c_client *client) { struct tcs3472_data *data; struct iio_dev *indio_dev; @@ -610,7 +609,7 @@ static struct i2c_driver tcs3472_driver = { .name = TCS3472_DRV_NAME, .pm = pm_sleep_ptr(&tcs3472_pm_ops), }, - .probe = tcs3472_probe, + .probe_new = tcs3472_probe, .remove = tcs3472_remove, .id_table = tcs3472_id, }; From patchwork Fri Nov 18 22:37:57 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: 22611 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449400wrr; Fri, 18 Nov 2022 14:55:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf6oEP6xdERAgKqIKdxdaFqYRjb2XM1YcgsOX4cylwzLOaHVe7n6gS994nggnPAx4VfaC3t8 X-Received: by 2002:a17:90a:70c5:b0:218:985d:25a0 with SMTP id a5-20020a17090a70c500b00218985d25a0mr603848pjm.168.1668812115476; Fri, 18 Nov 2022 14:55:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812115; cv=none; d=google.com; s=arc-20160816; b=LXV1GMR7wVmytHnMnkVfDk4hziyo5RjIy6YSV9M+jtnpfO+neof3Xto7esxORKwlle ncg5BPt509oBVuzTwsvwTPze9PDZXjYxSjiUoMBBCybH1rIgXC4S8t21OFV7owAJI4VJ VfF//IPivUAg/HfzWCQSymFtBypDz7GfEgyMXs3GeMydheIF8ncKqgaXpVNjOZJlEGnn HxyJ6paGfVBylOZUTYcoHkTredk3M9EO2vgWHSz4s91e7MpWHJvdy9sYnrGxPDFuYGuL h4+1EfhZcr+G8O1/dPxty6ucpEzq9eCuMjRejDLArHli0cphHzmxlgrf6a+xQpIcHGOB w97A== 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=Ly+YE9zzpuB7YZ+vYuwIiPlMBh9ZWm8ui+0NV8Zm5pg=; b=090GWnmneGMlpaS2UNX2Amo6IL4zMtVvo4vnNlO5ahyvwlx6DcKlm5Q5aF33vPxKYG vF4oMHfagT9hmKfM46VG8qXD5RzzCY4xv6INlbk5QzlodUQ1+8n5CYGwhDTsokjhdo3O +koyy/7xNlUXzyfQ4QeXfgiIyQ+QfBYJJxw0V5C4SLoCt5i7RVtn+rYYMfs7wTnL8MwX e858e/tNtrolW1UwSHN2U2G9Fz64UafXOYaGjw81NXtOhLH+ehxi7PvWqe4cHITG2NSX Q/ZXQTlTwqZh8/jOy3+UxvdzKKYCwW8dDULDdF4Z5Qk8lkKM/PemrCg2Ka9hrC7RiPrw 4JEw== 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 j9-20020a632309000000b00476f4361438si4776867pgj.382.2022.11.18.14.55.01; Fri, 18 Nov 2022 14:55:15 -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 S234931AbiKRWy2 (ORCPT + 99 others); Fri, 18 Nov 2022 17:54:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232351AbiKRWxo (ORCPT ); Fri, 18 Nov 2022 17:53:44 -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 E57E7BE86F for ; Fri, 18 Nov 2022 14:47:59 -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 1owA8C-0000nE-7S; Fri, 18 Nov 2022 23:46:44 +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 1owA86-0058Ig-53; Fri, 18 Nov 2022 23:46:39 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA86-00Hb46-49; Fri, 18 Nov 2022 23:46:38 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Tetsuo Handa , Peter Senna Tschudin , Vladimir Oltean 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 143/606] iio: light: tsl2563: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:57 +0100 Message-Id: <20221118224540.619276-144-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?1749876333312092896?= X-GMAIL-MSGID: =?utf-8?q?1749876333312092896?= 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/tsl2563.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/tsl2563.c b/drivers/iio/light/tsl2563.c index 951f35ef3f41..d0e42b73203a 100644 --- a/drivers/iio/light/tsl2563.c +++ b/drivers/iio/light/tsl2563.c @@ -699,8 +699,7 @@ static const struct iio_info tsl2563_info = { .write_event_config = &tsl2563_write_interrupt_config, }; -static int tsl2563_probe(struct i2c_client *client, - const struct i2c_device_id *device_id) +static int tsl2563_probe(struct i2c_client *client) { struct iio_dev *indio_dev; struct tsl2563_chip *chip; @@ -880,7 +879,7 @@ static struct i2c_driver tsl2563_i2c_driver = { .of_match_table = tsl2563_of_match, .pm = pm_sleep_ptr(&tsl2563_pm_ops), }, - .probe = tsl2563_probe, + .probe_new = tsl2563_probe, .remove = tsl2563_remove, .id_table = tsl2563_id, }; From patchwork Fri Nov 18 22:37:58 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: 22692 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462535wrr; Fri, 18 Nov 2022 15:30:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf6qwezCnUJYmlKMVKFZOw9Fn9PXvo3dWPPsGV7Bv+9ycBkWqtcFjEh54C4jMYy6qLcBwMNq X-Received: by 2002:a17:907:766c:b0:7af:6ab:1d8d with SMTP id kk12-20020a170907766c00b007af06ab1d8dmr7570012ejc.211.1668814224174; Fri, 18 Nov 2022 15:30:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814224; cv=none; d=google.com; s=arc-20160816; b=fNiS5Ab+JVJ6bZhV1IszbuHx52TJaEFLEdYtaIhk0nri+Nj9dvhlhBvFCcyfrDUg05 /kVf6VH/lVDBVF4BRI/F78+4cs9SrewH2nU6tYrFmldimJJJoEz4SwIzgkhh0LP4OAJM ci0+0Cv2tn1e0YnCKGSDDPBgsEobbqEPdGXvuzWBrHR/8F7pAGQJOL1nb7n+waO1L8Mj PkJ1xgx6wVKUBZ6ghQcOnjop4XK6AX6sfHaO7Zo/hr8k/z8JR/CRQGumKy4D6/pxTDxZ TJJftFs1QkhKwGqV53qDHAX0WlhyJz4AENO6L3KtWcBainBgZhEHAcxcYHAfLHIIcQHY 0uWw== 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=KYATSzajhx8HYgcse7vxUlpJitJ6Brji+eO+5imnTdk=; b=vMYCgqTPhOBkwFQRI0C4xtxpsC6P+Yyc+v1WNLYTp52zVVFVM+h7n4Qf93DN0+//0o VFrZAG0G5nmnvIs/YMCdfQCPmDed50IZqo3yE5qsP3aCgup5vIguOl3Pxvb8hqWlgME4 8BEoZnV1pcZyvLASsXZdW2kFSS6WB9WjIBiIibLZ2Vm1vAOI/lCBNJZlfcXM9/wJhUzE kO+jJsKKDzQ057G4Hv+iiWPXS50WXUxamuz6PhZo5xUyih+IaU5t8X0yVSX4Lh9eWjvF 1pkGEe1VEKWoSNUPjOXh0DT+lzRepJ9XtZl8lWd68xuBMmy7tbTzO/mvr/0Aw7dXzHic zSrw== 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 n11-20020a05640205cb00b00468fd5712a3si3637221edx.351.2022.11.18.15.29.59; Fri, 18 Nov 2022 15:30:24 -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 S235790AbiKRX32 (ORCPT + 99 others); Fri, 18 Nov 2022 18:29:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235692AbiKRX2l (ORCPT ); Fri, 18 Nov 2022 18:28:41 -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 5E6FC78B17 for ; Fri, 18 Nov 2022 15:16:34 -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 1owA8B-0000qc-Gz; Fri, 18 Nov 2022 23:46:43 +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 1owA87-0058J5-1L; Fri, 18 Nov 2022 23:46:39 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA86-00Hb4A-CK; Fri, 18 Nov 2022 23:46:38 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Peter Senna Tschudin , =?utf-8?q?Marek_Beh=C3=BAn?= , Petr Machata , Shreeya Patel 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 144/606] iio: light: tsl2583: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:58 +0100 Message-Id: <20221118224540.619276-145-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?1749878543779417576?= X-GMAIL-MSGID: =?utf-8?q?1749878543779417576?= 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/tsl2583.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/tsl2583.c b/drivers/iio/light/tsl2583.c index 7bcb5c718922..a05f1c0453d1 100644 --- a/drivers/iio/light/tsl2583.c +++ b/drivers/iio/light/tsl2583.c @@ -809,8 +809,7 @@ static const struct iio_info tsl2583_info = { .write_raw = tsl2583_write_raw, }; -static int tsl2583_probe(struct i2c_client *clientp, - const struct i2c_device_id *idp) +static int tsl2583_probe(struct i2c_client *clientp) { int ret; struct tsl2583_chip *chip; @@ -943,7 +942,7 @@ static struct i2c_driver tsl2583_driver = { .of_match_table = tsl2583_of_match, }, .id_table = tsl2583_idtable, - .probe = tsl2583_probe, + .probe_new = tsl2583_probe, .remove = tsl2583_remove, }; module_i2c_driver(tsl2583_driver); From patchwork Fri Nov 18 22:37:59 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: 22630 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp458636wrr; Fri, 18 Nov 2022 15:18:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf6D3NXMLCU4FO7yRR2MMC/R4XUm6rgHhFkC/OzdbvUUGtQ53v1lr62JFl0amawzPpG71eKm X-Received: by 2002:a05:6a00:1d83:b0:56d:c342:ea5e with SMTP id z3-20020a056a001d8300b0056dc342ea5emr9906296pfw.71.1668813524255; Fri, 18 Nov 2022 15:18:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813524; cv=none; d=google.com; s=arc-20160816; b=iAd8EdXY8X+QSb3wgDZeBa+U+DQEicvRzQiLvehbNLsL9H2QOEIXv3Zf9Siv5qpbNA LVfBkOOpUNcg/4SXefWqqrrzBIUdoufTg5L1y1mHImeJRhig7ZSyuqplLAItKtTSJZiM WMDCpkByQuoIxJmhkgdkuIpstpYvx8B7tU7F6N02T/bTTiYgJt8ASoOFy8gOCiqVGP7B 9lVYhELmBnnNClG/FG9RzUZ1oKqEMxk3vp6r74xCH4Ugo6BK3Hz8f6Ctu4Z9e6Uw0Jq/ QgaXdJGDC7g057UE4Xxtas4V8zA8Hqo7ovcI1/gYTtF+AnD9wApJHTkbS2sFFHHCuPzM SJtQ== 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=MdLRMTtTKZ8KE7Ja1bBSbhbxtUgfW5oGiv2ZHYyPvTE=; b=x7yGXSb0MrXhOQTef2CX/vhmeXiU/azZH4LsYL253R8stdnk9YEKR3n6LAzMBABVS5 Vj9u2BmXqul6YFAzSq6Mc0z4rVjVBbzS3GQKkDH/CUwBgYXh4Kb8SfR6Lx3zriOx2p0w cMMIwLkBrwQY5o8UuyrdprLg5V08x7f/gBEMLYDc0oImtP1ir0s8hpoTFyxqfK/rKAmK 67BhVAT7KaCuHD7vIXf6ueTjDe490lIu56Qv3Hrff7l4CD42paFN6z5PLdsS+09Uc7CS MWa4b5COr2/SCbun94QXPR0WobLWnyQCR2VvIz9meX74upWx9UAySAkkeqj1CMpERiif KSaA== 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 k21-20020aa788d5000000b0056aafb43783si4938890pff.155.2022.11.18.15.18.31; Fri, 18 Nov 2022 15:18:44 -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 S235338AbiKRW7M (ORCPT + 99 others); Fri, 18 Nov 2022 17:59:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235507AbiKRW53 (ORCPT ); Fri, 18 Nov 2022 17:57:29 -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 7A053B961F for ; Fri, 18 Nov 2022 14:49:04 -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 1owA8B-0000pO-CL; Fri, 18 Nov 2022 23:46:43 +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 1owA86-0058Iv-Nn; Fri, 18 Nov 2022 23:46:39 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA86-00Hb4E-Ir; Fri, 18 Nov 2022 23:46:38 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Gwendal Grignou , 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 145/606] iio: light: tsl2772: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:59 +0100 Message-Id: <20221118224540.619276-146-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?1749877810191567828?= X-GMAIL-MSGID: =?utf-8?q?1749877810191567828?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/light/tsl2772.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/tsl2772.c b/drivers/iio/light/tsl2772.c index dd9051f1cc1a..ad50baa0202c 100644 --- a/drivers/iio/light/tsl2772.c +++ b/drivers/iio/light/tsl2772.c @@ -1750,9 +1750,9 @@ static const struct tsl2772_chip_info tsl2772_chip_info_tbl[] = { }, }; -static int tsl2772_probe(struct i2c_client *clientp, - const struct i2c_device_id *id) +static int tsl2772_probe(struct i2c_client *clientp) { + const struct i2c_device_id *id = i2c_client_get_device_id(clientp); struct iio_dev *indio_dev; struct tsl2772_chip *chip; int ret; @@ -1931,7 +1931,7 @@ static struct i2c_driver tsl2772_driver = { .pm = &tsl2772_pm_ops, }, .id_table = tsl2772_idtable, - .probe = tsl2772_probe, + .probe_new = tsl2772_probe, }; module_i2c_driver(tsl2772_driver); From patchwork Fri Nov 18 22:38:00 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: 22609 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449355wrr; Fri, 18 Nov 2022 14:55:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf5RrvISsm4PXqQqfKXBjkGyzPOPSRuxZBywAdpe7bO5zQtEo+VaNsewu1QAwQ6PmE0XL2EQ X-Received: by 2002:a17:90a:9bcb:b0:206:f02a:cb4b with SMTP id b11-20020a17090a9bcb00b00206f02acb4bmr9881730pjw.159.1668812104415; Fri, 18 Nov 2022 14:55:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812104; cv=none; d=google.com; s=arc-20160816; b=qVOhHw5aDbajfLTcKWug7Pcc2f6CXtTJthKyZnf5XpwuGmNOYA2hLJz0qqDLXeINeC 9jis9K4/RehM9fwNAoL1OmZ+XaJLqZlU2S+n80hemVKZDMJgjutB6pIE7phNdB/7xEPM 51kKgft2X4xSdxQPOafQ2kljhnDBp7AMr5lEOHT0pOj7JpP8EVsnuI5MPFNV1wpwTZ4c XF9mZ91gYnXGAyf01s7STlZcBuNkkEDZ7e5Fu/auLXbM8QdfP9NM6499s1AB3kUZLoe+ mUpyQwb3UbXqtnIb2pRW5s8U+zvYCrEPcvC2XAQY+ZtlB7UHbOvV3+/mcgIPtQSzGHpR raqg== 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=/Y0xudj9Y2ozz2sByYCsNwD9dMytWAZsS6efIhQROAY=; b=HUc5rYtij8qRMlp38niAksrDuyYLfM+P9yjNX+sjx690WNmj3+E0+Kdoq9/iy0lBB/ NVXcvBLOno1HUZcjaymT1AEz00TgItS4+X0ftGNH9B37+g0d2hD+7EeDE62alEL6GWf0 FFwl82KUpblkXrsyR2wElWbnmsslIvptZnvQS1td3q09440W1w1huG5HCQUDuDqsj5vd gnFWUMuHgWuieVXOWXb0TIEEdNPOUgc/G+rDX0t2MAKLQa5N4NRmY0qW7tFNfkcS47vC H6gGnDBLAXExrQZK9oeXWb9Q3msIiGfLPG2tKHBFmC/ctd9sCAot07nGASfLUUU5sVyd TjJw== 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 cq17-20020a056a00331100b005712b7c5b2fsi4172580pfb.78.2022.11.18.14.54.51; Fri, 18 Nov 2022 14:55:04 -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 S234895AbiKRWyU (ORCPT + 99 others); Fri, 18 Nov 2022 17:54:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234504AbiKRWxn (ORCPT ); Fri, 18 Nov 2022 17:53:43 -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 82A7EBE85D for ; Fri, 18 Nov 2022 14:47:57 -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 1owA8C-0000tU-CA; Fri, 18 Nov 2022 23:46:44 +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 1owA87-0058JQ-QB; Fri, 18 Nov 2022 23:46:40 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA86-00Hb4H-OA; Fri, 18 Nov 2022 23:46:38 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Hans Verkuil , Dmitry Torokhov , =?utf-8?q?Krzysztof_Ha=C5=82as?= =?utf-8?q?a?= 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 146/606] iio: light: tsl4531: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:00 +0100 Message-Id: <20221118224540.619276-147-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?1749876321432338396?= X-GMAIL-MSGID: =?utf-8?q?1749876321432338396?= 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/tsl4531.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/tsl4531.c b/drivers/iio/light/tsl4531.c index 090038fed889..d95397eb1526 100644 --- a/drivers/iio/light/tsl4531.c +++ b/drivers/iio/light/tsl4531.c @@ -160,8 +160,7 @@ static int tsl4531_check_id(struct i2c_client *client) } } -static int tsl4531_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tsl4531_probe(struct i2c_client *client) { struct tsl4531_data *data; struct iio_dev *indio_dev; @@ -238,7 +237,7 @@ static struct i2c_driver tsl4531_driver = { .name = TSL4531_DRV_NAME, .pm = pm_sleep_ptr(&tsl4531_pm_ops), }, - .probe = tsl4531_probe, + .probe_new = tsl4531_probe, .remove = tsl4531_remove, .id_table = tsl4531_id, }; From patchwork Fri Nov 18 22:38:01 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: 22661 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460918wrr; Fri, 18 Nov 2022 15:25:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf7KPiHQIL0e6ZG4V2kuakmP1OaBPhqHIHAsniZ4BbBU7Vff/qOpwYuiFhCub/Kc8rHyDw8A X-Received: by 2002:a17:906:c24e:b0:778:d81d:b1f0 with SMTP id bl14-20020a170906c24e00b00778d81db1f0mr7759266ejb.731.1668813944974; Fri, 18 Nov 2022 15:25:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813944; cv=none; d=google.com; s=arc-20160816; b=NTfXM1EEIXQs8tnKsAoFCpKwk5N2Nr2hl6pw817SgnoTkvaGNkHM4Gv8mb4eQOKPGE /xcU1v76ovUYC/HF2KtRQGPEGJV1e8FTERpZZ5oZ7HenOI1IN6Fui6sBf3sa4zpsJD6K crsX0PJCZQeGPpJC/H4srzhFFmFj5bZhYbqfo00/SdR0PErf6h6dWKHLpQk2o6fsCdJz yvPOZ1gyHmG3Q+yK9IcaSGJnqWyHJzDOhx2x0z+VJZ4ibUsx4R5QWu1ALeQMpsNaEUrH n4mPI7jGL/F/zcmxnUzEbBzx1Zi1XHNzGDeeES0reUXvuvx6iEOHtVhJdOlzxdObpjnc oZwA== 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=TdzfEq40VzVsm8zmKu2LwoHSemmp3irq1TdFo34R+kc=; b=oWsEsumjNuxHfTB6EPBIYpj5+yFA5ovSp6er6i6//Fe7Ta3K/bZ1kIytra2PShWk/6 khdwg7bHi7xJNPRn9qpOQWBR9oPVHymN4jnBNHGu3viqMqjPDU56THNWdVDecxTvqw9D NDfCA+HCYGCenB5DtME8GteHkBPZU0qkmM6hz1G3AZZWwHD9lYCNOvbDi6ECLbA/iBHu 2YA7Xo6xeWRq8HJGT8/gk//tyafUP4kVZqInyueL6MDcCf0puzcypiHakciop5ZwRw4o frDr95cV7buO2rP3RpHrTgRpxZWgTG4rMU52hxucLaX1axMQSUOhCWMSPZWY4Lao0s2K IIIQ== 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 z3-20020a05640240c300b0045d0c00ead2si4666756edb.157.2022.11.18.15.25.21; Fri, 18 Nov 2022 15:25:44 -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 S235567AbiKRXYd (ORCPT + 99 others); Fri, 18 Nov 2022 18:24:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235593AbiKRXWM (ORCPT ); Fri, 18 Nov 2022 18:22:12 -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 AB7E7A6A16 for ; Fri, 18 Nov 2022 15:13:10 -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 1owA8B-0000s7-S2; Fri, 18 Nov 2022 23:46:43 +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 1owA87-0058JH-CJ; Fri, 18 Nov 2022 23:46:40 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA86-00Hb4L-Tf; Fri, 18 Nov 2022 23:46:38 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Peter Rosin , Petr Machata 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 147/606] iio: light: us5182d: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:01 +0100 Message-Id: <20221118224540.619276-148-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?1749878251180054672?= X-GMAIL-MSGID: =?utf-8?q?1749878251180054672?= 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/us5182d.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/us5182d.c b/drivers/iio/light/us5182d.c index 3e652d7f3b0e..8b2a0c99c8e6 100644 --- a/drivers/iio/light/us5182d.c +++ b/drivers/iio/light/us5182d.c @@ -832,8 +832,7 @@ static irqreturn_t us5182d_irq_thread_handler(int irq, void *private) return IRQ_HANDLED; } -static int us5182d_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int us5182d_probe(struct i2c_client *client) { struct us5182d_data *data; struct iio_dev *indio_dev; @@ -975,7 +974,7 @@ static struct i2c_driver us5182d_driver = { .of_match_table = us5182d_of_match, .acpi_match_table = ACPI_PTR(us5182d_acpi_match), }, - .probe = us5182d_probe, + .probe_new = us5182d_probe, .remove = us5182d_remove, .id_table = us5182d_id, From patchwork Fri Nov 18 22:38:02 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: 22658 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460833wrr; Fri, 18 Nov 2022 15:25:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf6mmJ/hDeUPyvHIx6pI4Vr1bWCMF2CspBE3p+M09a7MCsOVSQxxDMuE8viaFb5A+3BJGXip X-Received: by 2002:a17:906:9518:b0:7ad:b152:6bd1 with SMTP id u24-20020a170906951800b007adb1526bd1mr7840176ejx.30.1668813928096; Fri, 18 Nov 2022 15:25:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813928; cv=none; d=google.com; s=arc-20160816; b=0v94Gq0FrGqnrpHXoN3E4HcVC6GCsFvTs1MwtxfRl8cO1Y8eOtyLlkIE+KBGVlVyW6 fWEgua00cEYA/aotn8L85r8JjPFzUdJMRSZDswu5DLTmp64ESUDWolNNit/g17aoQuN2 K8o9KJ0ALTftbQs96YTix9p3ovKeAt82g6vf1kCUIu54ILe6DkJSPUrFmhwRZ8sn50HZ GGt6HpDpx7mNRAdd67+ZJ4b6k0d+JkFKYNXZ0Ecp21JAW4cyPSM4+NwY9WbvqwZ+DBTn OeJHNQ3lEYvlsk54RqgOXxh4Mzkx7iRUC2SuOCmXf5uXmSIE6fSS6iyE5u01UKCzGsnf OFzQ== 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=Bo0mfPolC/eu6GYR7gaaNMLegdMnYKh7iD/dtqlZWvU=; b=Td9ZI0iSfRl5cdtNFghLCRVu4980B452kXNrTNWrVUdAf9nu4bPWyjounyT7HzLEBa T1Gpf93zWnf5V032Fzl77HyFPmAzd1G+hw7Qj108AvOQXdCajvgI88hj7fG93eAFhL95 tixH8eZzBVJTFAEmgyqkS697vT9dnUlIH1sp0zPLUMOCs4x1XfhJiez12MqtVH4vCJjw uRzOzXmQvHqXATw61f0TrD7rwJrNW5E1IVHpJUtl+W81lBh47WFGUQF4tBgCbxd5AxkD tBZcIgudOJFo7B0GoA8KUte43LIOnnbbIF/8oD0eEkrlfqx04DdHRO9cLPh9r3AUGy/C SPUg== 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 l20-20020a056402255400b004617bf36c3csi4342682edb.308.2022.11.18.15.25.03; Fri, 18 Nov 2022 15:25:28 -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 S235528AbiKRXYD (ORCPT + 99 others); Fri, 18 Nov 2022 18:24:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235538AbiKRXWE (ORCPT ); Fri, 18 Nov 2022 18:22: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 09FCA8E280 for ; Fri, 18 Nov 2022 15:13:04 -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 1owA8D-0000wo-K2; Fri, 18 Nov 2022 23:46:45 +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 1owA88-0058Ju-Ll; Fri, 18 Nov 2022 23:46:41 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA87-00Hb4O-3j; Fri, 18 Nov 2022 23:46:39 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , =?utf-8?q?M=C3=A5rten_Lindahl?= , Crt Mori , Maximilian Luz 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 148/606] iio: light: vcnl4000: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:02 +0100 Message-Id: <20221118224540.619276-149-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?1749878233778180736?= X-GMAIL-MSGID: =?utf-8?q?1749878233778180736?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/light/vcnl4000.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/vcnl4000.c b/drivers/iio/light/vcnl4000.c index fdb3922ae4ac..cc1a2062e76d 100644 --- a/drivers/iio/light/vcnl4000.c +++ b/drivers/iio/light/vcnl4000.c @@ -1180,9 +1180,9 @@ static int vcnl4010_probe_trigger(struct iio_dev *indio_dev) return devm_iio_trigger_register(&client->dev, trigger); } -static int vcnl4000_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int vcnl4000_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct vcnl4000_data *data; struct iio_dev *indio_dev; int ret; @@ -1326,7 +1326,7 @@ static struct i2c_driver vcnl4000_driver = { .pm = pm_ptr(&vcnl4000_pm_ops), .of_match_table = vcnl_4000_of_match, }, - .probe = vcnl4000_probe, + .probe_new = vcnl4000_probe, .id_table = vcnl4000_id, .remove = vcnl4000_remove, }; From patchwork Fri Nov 18 22:38:03 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: 22906 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472768wrr; Fri, 18 Nov 2022 16:00:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf5+NW8MAOkyewfTBCKTSyHapOS4VfuGQGqWkAbJldNLuneUNn3LunXoHfIfYi1/P8XYFBn3 X-Received: by 2002:a17:902:f391:b0:186:ac81:2aa9 with SMTP id f17-20020a170902f39100b00186ac812aa9mr1722808ple.95.1668816053971; Fri, 18 Nov 2022 16:00:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816053; cv=none; d=google.com; s=arc-20160816; b=IUYPX8kuGuT49eIzIQCsxuMHPLXrGESEpvyuErQYRHmHTqaL4kRPT6jhGrn/Gs6Vep 3KLij5qOw5zhdN196lUvdzvAozXWBcgfkCZnEWLn74tuOvk+BIjCLxMQFTw7+2iUHw19 5xfinyKelwNMBDA6V2uJH74bAObe1cXN2GL5ZhW7iAgWfuy8EnNstvIeKkrJnuNr87gR OGTP5w4TfAJmAj/c2Jf15hpHWzFV/Ol/0vVJFWzzbeXIxgqLhvaHShBad2yDVen90Hpt PRaMaxIsF0KxUF+m8teb+YMcNKoktlN4gmiWCRtuPVsBN2+EhZhKgzoZaFxZsg7fY0ar hYdQ== 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=HniNBtY91JXf045M/z8bAD4VDmbB4jTNen4YhLRq48E=; b=Vy4JURpeIlY3e3w6Avy0KqcP4TKmyZy4thn0ezNX/CUh9TNJZZZKILN/v773I4+s3k 8IGvXzYh0NlPQRRbqoRTybFJ0GIO2lM/TtpIMV2xL0q5iyDDFW51u//auz5VFHecyyiF TZJuifSm8ZfBhu6awL0+XI3BP8MBXbN6VwNzvaDlETkDTVIiwMhoQN4sB0qA6un3NPZe cYYEsymPO6XrsJxRX9re1iY6GpL7Ol4ufGLaMMoBiHzoSL0iB4OSjI0Qnt665lhr8C3V Y5sVchP84X20OQkkDU3zyr7llP1EjwE7Jtv5QAgiUhC/SKZ2znS6UfPqGPJrQVPOjIxt Dtkg== 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 c21-20020a056a00249500b00565de49c24esi5249117pfv.107.2022.11.18.16.00.40; Fri, 18 Nov 2022 16:00:53 -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 S231942AbiKRXzl (ORCPT + 99 others); Fri, 18 Nov 2022 18:55:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236970AbiKRXyO (ORCPT ); Fri, 18 Nov 2022 18:54:14 -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 4B0E7D2DDA for ; Fri, 18 Nov 2022 15:27:51 -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 1owA8B-0000rD-MW; Fri, 18 Nov 2022 23:46:43 +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 1owA87-0058JB-5V; Fri, 18 Nov 2022 23:46:40 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA87-00Hb4S-9Z; Fri, 18 Nov 2022 23:46:39 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Crt Mori , Petr Machata , =?utf-8?q?Mare?= =?utf-8?q?k_Beh=C3=BAn?= 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 149/606] iio: light: vcnl4035: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:03 +0100 Message-Id: <20221118224540.619276-150-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?1749880462408194035?= X-GMAIL-MSGID: =?utf-8?q?1749880462408194035?= 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/vcnl4035.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/vcnl4035.c b/drivers/iio/light/vcnl4035.c index 3ed37f6057fb..84148b944000 100644 --- a/drivers/iio/light/vcnl4035.c +++ b/drivers/iio/light/vcnl4035.c @@ -539,8 +539,7 @@ static int vcnl4035_probe_trigger(struct iio_dev *indio_dev) return ret; } -static int vcnl4035_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int vcnl4035_probe(struct i2c_client *client) { struct vcnl4035_data *data; struct iio_dev *indio_dev; @@ -668,7 +667,7 @@ static struct i2c_driver vcnl4035_driver = { .pm = pm_ptr(&vcnl4035_pm_ops), .of_match_table = vcnl4035_of_match, }, - .probe = vcnl4035_probe, + .probe_new = vcnl4035_probe, .remove = vcnl4035_remove, .id_table = vcnl4035_id, }; From patchwork Fri Nov 18 22:38: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: 22641 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460351wrr; Fri, 18 Nov 2022 15:23:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf44zTLPaJzykXDTNHBaCIMVCaVvlktbDBRa4PlbAib5d4FbsvkukbPY6ZJjOP6fQKHKZwEk X-Received: by 2002:aa7:d8ca:0:b0:463:4dd8:d6ea with SMTP id k10-20020aa7d8ca000000b004634dd8d6eamr8165688eds.426.1668813837312; Fri, 18 Nov 2022 15:23:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813837; cv=none; d=google.com; s=arc-20160816; b=Hus6ZhOadR2YuG/0g7Oio4t7y/dviqIqr83TnZzn5OuK/K8ZYBRyehglKkjVAWLTZa 9xScypNnJOFD4tlMiNoCo9t/K7PTxbATQfNOqZOmzcCgv36KYnmGcYA3Ye5YxhBAkYNm RDQYAolZEZQIV9vLESWH72R3JJSvjHoHB6PJA8CSCBkjYWtqLZUb/z2wduRV11+OVXTh 47WGwouqLKeuihhVgbHEK+fhwHyE8ZVJuaifdRd2zXB1/grj+ikr2e/YApWPbt2tmrjl IkYhfQDSFbM5WEdv++nbYKgCUJpRhkBWqiXuxC8qjilMsBdugkmjEWwb1g7yTLHXilCa VP1g== 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=ak+yRZIVsvZATPo+F4FVpTwEaRtky9ljX9ivzQQITt8=; b=Ot+QhNri4Tu6Gd1NXpdw/GVTYj0PAT9PmImtQOBc7BQA7LP4m2S1XFuFOTLqqL26hp bEGJxoQE3gButU2PhfECXPqEEY9g1dTmj7CASlzZAnJPd2osKICkGu2b9u1KXEWXk832 24BRlZmgTJocUTToG9+rcEka+ojyNPkqQxUYQHyOK5+nOcZbzV5hTFdM47RJW3m4Fq0r swBNiWZ3aoiHU7S5ZQH25jx+o4PhyOOTP9tN91owQvqy0Q6sbI63MsoefG+tROFCTOQA CU5KaPl7vPACjuOzSJLCVix6ibO2JNA3UvbkTObiFT4vls2YEG9PVkF1lawZGs6OVV2B OMEQ== 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 sh44-20020a1709076eac00b007ae26c753edsi4373495ejc.52.2022.11.18.15.23.30; Fri, 18 Nov 2022 15:23:57 -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 S232812AbiKRXW5 (ORCPT + 99 others); Fri, 18 Nov 2022 18:22:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230247AbiKRXVJ (ORCPT ); Fri, 18 Nov 2022 18:21:09 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DF0352151 for ; Fri, 18 Nov 2022 15:12:18 -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 1owA8C-0000uC-Fb; Fri, 18 Nov 2022 23:46:44 +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 1owA88-0058JW-2o; Fri, 18 Nov 2022 23:46:41 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA87-00Hb4V-Fq; Fri, 18 Nov 2022 23:46:39 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Paul Cercueil , Rishi Gupta 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 150/606] iio: light: veml6030: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:04 +0100 Message-Id: <20221118224540.619276-151-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?1749878137880199693?= X-GMAIL-MSGID: =?utf-8?q?1749878137880199693?= 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/veml6030.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/veml6030.c b/drivers/iio/light/veml6030.c index 9a7800cdfee2..e7d2d5d177d4 100644 --- a/drivers/iio/light/veml6030.c +++ b/drivers/iio/light/veml6030.c @@ -786,8 +786,7 @@ static int veml6030_hw_init(struct iio_dev *indio_dev) return ret; } -static int veml6030_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int veml6030_probe(struct i2c_client *client) { int ret; struct veml6030_data *data; @@ -893,7 +892,7 @@ static struct i2c_driver veml6030_driver = { .of_match_table = veml6030_of_match, .pm = pm_ptr(&veml6030_pm_ops), }, - .probe = veml6030_probe, + .probe_new = veml6030_probe, .id_table = veml6030_id, }; module_i2c_driver(veml6030_driver); From patchwork Fri Nov 18 22:38:05 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: 22669 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp461195wrr; Fri, 18 Nov 2022 15:26:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf7KFGKPfI27V5yJlQy+EkPQa1538hg+wnwWaJUopyWgisWSJ3pLLFSSuTaB36VK7DyQ4QQx X-Received: by 2002:a63:ce43:0:b0:476:fdde:9ac8 with SMTP id r3-20020a63ce43000000b00476fdde9ac8mr8430809pgi.164.1668813988862; Fri, 18 Nov 2022 15:26:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813988; cv=none; d=google.com; s=arc-20160816; b=r2vmuYLG9sLvHNsi3uVzgcsEQD8qTusUAg5O9CSf0HbcKVoBBqtjXW2ZEXxUqu3rHd K7wRiyzt9bw7UPQ8tH2EbFK68xAbaGoQxTZwpTXUsQsRuzGZQv/+jWnJr73GlZUF5BJl tqswu73muOhrxZfj83u+B0YGeW/jeHqWYNeT7yEWbo+RXPUM9kni/QVxNH7RUv8qimj7 pZkUKqCq4rg//aoHgnWq/o4Kbx8YTWOjmkXs4rm1TmFNzzF/aH86AyoQMyI8dd3FMXaK 1fpUQADgQE62G6RHT7ynW73Cgs1lnx8OewJQeGmbFqMK08bauxvRiLIKjeNRXqKjYH1S Qv9Q== 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=GHnfMrybsjrikk1j++U3S81bbbwJvJejHw9LdPNDHwg=; b=rfz15hKnDC1xoJBzrbclLUyhxzTzIUeVwz30cb8DNfBc7v4ordF+jDkLOkYemmj7IO kxTSKOcCSTl27l97LzN55dizXT+IjmbFlsSQ6/pEoNX60jgF5F4ugSD3CMf8uB6oNiFZ Ad3wg2NFyZLsoy8UK+c5F3cCoUPzuWqIJe0KNnON1kq/A9tl6OfjOvMN7OAFCcfNpmzK rtYqU8vGvaV2bS/FTnLyHdBZthQuMBYV9VCBlGPgG9Gi1pwUtKwr2LlOK9RwHqlyIKFQ K40rh12bfnsXM5uYpZvncf+HRyCkJf5OEoad06WuXN7d3dGC2AFANa6bopPMQHIXsvIi Fi/w== 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 q15-20020a170902eb8f00b001786f5de8f2si4830912plg.95.2022.11.18.15.26.15; Fri, 18 Nov 2022 15:26:28 -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 S235508AbiKRXYO (ORCPT + 99 others); Fri, 18 Nov 2022 18:24:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235549AbiKRXWG (ORCPT ); Fri, 18 Nov 2022 18:22:06 -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 521259709C for ; Fri, 18 Nov 2022 15:13:07 -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 1owA8C-0000tC-A7; Fri, 18 Nov 2022 23:46:44 +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 1owA87-0058JM-LW; Fri, 18 Nov 2022 23:46:40 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA87-00Hb4a-MJ; Fri, 18 Nov 2022 23:46:39 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Greg Kroah-Hartman , Vladimir Oltean , Maximilian Luz , Crt Mori 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 151/606] iio: light: veml6070: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:05 +0100 Message-Id: <20221118224540.619276-152-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?1749878296731485439?= X-GMAIL-MSGID: =?utf-8?q?1749878296731485439?= 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/veml6070.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/veml6070.c b/drivers/iio/light/veml6070.c index cfa4e9e7c803..ee76a68deb24 100644 --- a/drivers/iio/light/veml6070.c +++ b/drivers/iio/light/veml6070.c @@ -135,8 +135,7 @@ static const struct iio_info veml6070_info = { .read_raw = veml6070_read_raw, }; -static int veml6070_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int veml6070_probe(struct i2c_client *client) { struct veml6070_data *data; struct iio_dev *indio_dev; @@ -199,7 +198,7 @@ static struct i2c_driver veml6070_driver = { .driver = { .name = VEML6070_DRV_NAME, }, - .probe = veml6070_probe, + .probe_new = veml6070_probe, .remove = veml6070_remove, .id_table = veml6070_id, }; From patchwork Fri Nov 18 22:38:06 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: 22903 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472610wrr; Fri, 18 Nov 2022 16:00:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Atg5odxJnYZvQ3gbtkRORzGx043/d1mRTz4ivjWcub9C5QarydTWK/p4iM+LeAlOesrMm X-Received: by 2002:a17:902:ccca:b0:186:6c10:7260 with SMTP id z10-20020a170902ccca00b001866c107260mr1844620ple.26.1668816034212; Fri, 18 Nov 2022 16:00:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816034; cv=none; d=google.com; s=arc-20160816; b=Zf+mdc9yS4C+PnquFgaQwvDNXNw2C1XAuSAkwh/DV1gkb1rjq4A0d+cq84OJIK/6vd jG15qbdl5AtwKZS+1adnY5OW7GMRJ7EDj+eZSHRfhVSpLCbdgkNXrqRDB0dMgqy3Po5C vddTThPiVRGReBpwuj/BSUnr4y0RM2kRR98ZLwHvzOG4gDk8ukWq+Fi0rteRzmDmxlVu njlGftoBgrAFNS1uZ6NzcGRKyI++IFLkQ946IkNi84vFJriCPSz5qI8l/i++OX8U0lfF 1MIQ9ufpPUiOtOlQ18m8tIUlBJM3X1icNE4Us55DvuHBZkJgmmhIyUlDlocCwqL3COED J0kw== 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=mgbfQXYxTPtMGEhdAut1nxNO8OZVGd9eRhvzki1HLJo=; b=ZJDH25wnQNG7jIfSLr9jKx4xYsYtJwgtQh7gkZj1KukmX3JoK/b4feFOPd02bc5tty PK2HhTa4rv2vb7xAr0ow+/1GoA8WmyBlRipNhpovSAPZCLrUOiGRqvA0gQNlRdz7Mn1A zCEiSVT+z9Q51wz9h8iQptxQrxACVjV8uC7dcX5BbvCbRSCesw8hdrUk5NUG/hJR7Mow WJrPPo01DQHwL7jN6BLHtpuL9VDDytGzetF5M8G0M/DgEheIYjPVy3ZrJNl3tG5+rE6h C4GrLNZe9GC4RSxclMh8pSWqoe1usP5kWOJn8J3iw0QK2P0Q/4X0pLdbZPU0ipXDuYFT eMTA== 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 h3-20020a170902748300b001890edb98bfsi181045pll.1.2022.11.18.16.00.19; Fri, 18 Nov 2022 16:00: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 S234343AbiKRXzJ (ORCPT + 99 others); Fri, 18 Nov 2022 18:55:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237076AbiKRXxd (ORCPT ); Fri, 18 Nov 2022 18:53:33 -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 E050191C35 for ; Fri, 18 Nov 2022 15:27:44 -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 1owA8C-0000v5-Me; Fri, 18 Nov 2022 23:46:44 +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 1owA88-0058Jh-8W; Fri, 18 Nov 2022 23:46:41 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA87-00Hb4f-So; Fri, 18 Nov 2022 23:46:39 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 152/606] iio: light: zopt2201: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:06 +0100 Message-Id: <20221118224540.619276-153-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?1749880441521611810?= X-GMAIL-MSGID: =?utf-8?q?1749880441521611810?= 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/zopt2201.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/zopt2201.c b/drivers/iio/light/zopt2201.c index e0bc9df9c88b..e3bac8b56380 100644 --- a/drivers/iio/light/zopt2201.c +++ b/drivers/iio/light/zopt2201.c @@ -501,8 +501,7 @@ static const struct iio_info zopt2201_info = { .attrs = &zopt2201_attribute_group, }; -static int zopt2201_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int zopt2201_probe(struct i2c_client *client) { struct zopt2201_data *data; struct iio_dev *indio_dev; @@ -555,7 +554,7 @@ static struct i2c_driver zopt2201_driver = { .driver = { .name = ZOPT2201_DRV_NAME, }, - .probe = zopt2201_probe, + .probe_new = zopt2201_probe, .id_table = zopt2201_id, }; From patchwork Fri Nov 18 22:38:07 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: 23063 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486866wrr; Fri, 18 Nov 2022 16:41:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Rr2z/6BEJG8Jg+EuxwE8mq9gK7bPoHs9DpPbfYEdTeZbmUJI+eDtuV20vzQe80LKadH3i X-Received: by 2002:a17:906:3b48:b0:78d:b65a:aabe with SMTP id h8-20020a1709063b4800b0078db65aaabemr8097654ejf.5.1668818484166; Fri, 18 Nov 2022 16:41:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818484; cv=none; d=google.com; s=arc-20160816; b=jzaDYTf9mwzuYRUgpE1rbEEaVVTNwW3opRC7h0rQ9UFFq6wf/EMiiW+oGObH7U3O0A cg618Q6Ize1s+NL4hfqWI/P77kvgvzn/0NiqCDykV8JDpsOfI8S/nHr5hGQ4iGdhNRRd o3Nq7RVD3EAwyA0C+tx3ucArcWHF9efjLB0M1jTa2MIx2f69sbMi88iv3UmHuVspzLS/ FGlYIcTB6hu10zCBfASpEBL21xCUF0HnWXxUc3Mu4W+mR8I6lrdcTwt/jK5vJsKNnw/u 9v6ZfS54zXP1WQVXn7c5sMRQ7PyKUvtc0AWp1HTsH1Th8IwIpsxoht1zu8Xvm2106UCb WZEw== 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=mC5AZICA5QW3BnNJRy4sPv9OItTzv+ygI6Eudm2bitw=; b=uals+UIcc1PMApw7yuNKOCjWveM/RW5mIeapgyMCfvKq96bqRni2xEk3RxBPlZuo7D YYmecni9u2KcN3THH+j36u86cuUdok8Lnt7wLXG4yGf0lfCZWHn72S7KHaZdtW4hfP8u xrmB8tbC1UessZ5sS7MaXBJS2V6K218DYLouhnbUXYmxTlSZ9Uq0Sk40XczhS7uROhd7 CthJiTpKQ4ZN1EhleMMxW4323jnnTRt2GwGIhdGTpXgidPTQcSV0Zm0NHu/wCdgML61e 1CXtIBzZBLdhaIMRbKn4xBe4/0gA5DMmwj8HZpWe/wgSIq2+AapTPYaO2B4YnA4fL2cb OZ5g== 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 sc13-20020a1709078a0d00b007ae6f13645dsi4566124ejc.498.2022.11.18.16.41.00; Fri, 18 Nov 2022 16:41:24 -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 S234554AbiKSAfJ (ORCPT + 99 others); Fri, 18 Nov 2022 19:35:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235162AbiKSAeZ (ORCPT ); Fri, 18 Nov 2022 19:34:25 -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 92C7D1150ED for ; Fri, 18 Nov 2022 15:42:51 -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 1owA8C-0000ua-M9; Fri, 18 Nov 2022 23:46:44 +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 1owA88-0058Ja-53; Fri, 18 Nov 2022 23:46:41 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA88-00Hb4k-3T; Fri, 18 Nov 2022 23:46:40 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Linus Walleij , 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 153/606] iio: magnetometer: ak8974: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:07 +0100 Message-Id: <20221118224540.619276-154-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?1749883010575855532?= X-GMAIL-MSGID: =?utf-8?q?1749883010575855532?= 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/magnetometer/ak8974.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/magnetometer/ak8974.c b/drivers/iio/magnetometer/ak8974.c index 7ec9ab3beb45..45abdcce6bc0 100644 --- a/drivers/iio/magnetometer/ak8974.c +++ b/drivers/iio/magnetometer/ak8974.c @@ -814,8 +814,7 @@ static const struct regmap_config ak8974_regmap_config = { .precious_reg = ak8974_precious_reg, }; -static int ak8974_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int ak8974_probe(struct i2c_client *i2c) { struct iio_dev *indio_dev; struct ak8974 *ak8974; @@ -1047,7 +1046,7 @@ static struct i2c_driver ak8974_driver = { .pm = pm_ptr(&ak8974_dev_pm_ops), .of_match_table = ak8974_of_match, }, - .probe = ak8974_probe, + .probe_new = ak8974_probe, .remove = ak8974_remove, .id_table = ak8974_id, }; From patchwork Fri Nov 18 22:38:08 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: 22662 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460946wrr; Fri, 18 Nov 2022 15:25:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf60rdgCaJBxuQtx03Sy8155mr7PRYwMslzrU/ln57yUW5WWnRfNLNlZ/8o5bbRKnRJL3R+f X-Received: by 2002:a17:907:2144:b0:7a1:e52e:bddb with SMTP id rk4-20020a170907214400b007a1e52ebddbmr7505593ejb.685.1668813949587; Fri, 18 Nov 2022 15:25:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813949; cv=none; d=google.com; s=arc-20160816; b=TFk3LEc3wghkaTO8sZLPPgzSOihB3ZkYuoZqp4elRN1DnFK+ksm4et06U97C32wzme NIve5SBP1AHYrDrdTCaVTf2FhtEeHWNz48JSChZoOAIfO3uikAzox39iGMI51O+bl1HL M/SLZds+tNz1GRsdr1w2gODQZgKMPFT3bIdS/5rD0t6MuTDVRarBbbp6hvmTCNuGWCRd 9XptKpIfRLKDWxU5/3KyzP/wA7AuaMPBFq5SnFF0GbsvaT3FLwSprTfWXE0gYGu/1+ZG wXXWNVCjHloDASuyWV7heSQqa3gIrdgBDgO3DEq6y4qTcGUZh7VaFCQ+hQMeEr+KSsvn m8Dg== 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=KdbDfOVAQJUjNVaNsFRBX8cRq8xn0PDmwO68vnSdU8c=; b=0yqH4xwgJy/CHJYTwEearEJScLLETfBkPAd6mN/lhxguTDvhRlrYD0aLLGzfaNF0qG eNRoxbofk30JYb4dXa4VWDfHESaOmLmJzB9TYK3XzXXsTJaplr07eU/SyywdmN+kC95l UVFxPedlGzaAALKbcogBSGshJKTObF4QDykKg+kMeXJyNp4l69MjXJYyQ3eONffOGlsr xJMpl5TkVuS+ynKUHdxzTC7f4BJ72GzxzbkBxR5PmrCCrW/vOx5VTrhdzTGc9AJCZEQF 7hFWubNEL8Uc++Fr6RzfOrjNKaeVy7Xm86siqnlMH1zSVxcTY7C61OKQMo7571GKEoQR lMJg== 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 s8-20020a056402520800b0045d25cf222csi4722660edd.362.2022.11.18.15.25.25; Fri, 18 Nov 2022 15:25:49 -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 S235635AbiKRXYj (ORCPT + 99 others); Fri, 18 Nov 2022 18:24:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235590AbiKRXWM (ORCPT ); Fri, 18 Nov 2022 18:22:12 -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 35422A6A05 for ; Fri, 18 Nov 2022 15:13:10 -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 1owA8C-0000vU-T2; Fri, 18 Nov 2022 23:46:44 +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 1owA88-0058Jk-AE; Fri, 18 Nov 2022 23:46:41 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA88-00Hb4o-Ab; Fri, 18 Nov 2022 23:46:40 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Nathan Chancellor , Vladimir Oltean , Benjamin Mugnier , Zheyu Ma 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 154/606] iio: magnetometer: ak8975: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:08 +0100 Message-Id: <20221118224540.619276-155-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?1749878256279099066?= X-GMAIL-MSGID: =?utf-8?q?1749878256279099066?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/magnetometer/ak8975.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/magnetometer/ak8975.c b/drivers/iio/magnetometer/ak8975.c index caf03a2a98a5..924b481a3034 100644 --- a/drivers/iio/magnetometer/ak8975.c +++ b/drivers/iio/magnetometer/ak8975.c @@ -876,9 +876,9 @@ static irqreturn_t ak8975_handle_trigger(int irq, void *p) return IRQ_HANDLED; } -static int ak8975_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ak8975_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct ak8975_data *data; struct iio_dev *indio_dev; struct gpio_desc *eoc_gpiod; @@ -1110,7 +1110,7 @@ static struct i2c_driver ak8975_driver = { .of_match_table = ak8975_of_match, .acpi_match_table = ak_acpi_match, }, - .probe = ak8975_probe, + .probe_new = ak8975_probe, .remove = ak8975_remove, .id_table = ak8975_id, }; From patchwork Fri Nov 18 22:38:09 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: 22617 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449682wrr; Fri, 18 Nov 2022 14:56:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf6As6ZLdLwhcyR4G1bCbK6BO/ErNQUC9H9gJhotNKSPYD84JUvm7YWVMnqqZIDuW9D9ujY6 X-Received: by 2002:a17:902:bd94:b0:180:9675:3ec8 with SMTP id q20-20020a170902bd9400b0018096753ec8mr1562839pls.108.1668812174328; Fri, 18 Nov 2022 14:56:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812174; cv=none; d=google.com; s=arc-20160816; b=akqylfyK+y35GYJu7QmXSxgH++QBQ175Jsi41j2kh85cV/iM6Ratsck+DYWsEj5mbF HAK8J2FEr+NxZKDjlqECD9A/N1yJ0NMYFO1NTeI+cte5nycmuJ8n5UAjXFn+Dq22Q2K9 pbrQ4YYQF1UgjV26fq+Iu9U4pSytoS9ukx2IlqkYngKIIeJMFfqXh8fvLK437mj12KHN 7caWyhRumECIaS4BSVRruggorHUIHG4oga7KplNjeLLnpd2vtG4V0APVqSQycPkfo+Cr YAsirjgya++o6SK2GZCDKor16MDFjrceb41rzbeLbwCetrzsQZQvtfIAjhDtNbNgGk2a 9yDw== 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=5KuzlSLlIVqxXESjXBo/EyPWu/V+Qh3LS8QhBj/R8Sc=; b=yFRQrt0wTaENnV8UBGRInAHNfWeh+37DrjyefSH4fr0I2PTJ5UNR3l+iGPFGnVIMMz wfq/HYgoGx5T3LqTj29xCRPPqVb8gaXjJ5ViiVuTg5RJc38aLyWn3ZQSt1v83Q+6BTAz WzoxkkrZxy3yWkAoqffhyzbsuBG6KOaqBZpydiyl06oMY2FATUEN/WVZVXaR8l8JapHt EhvBgK1ibUQXmq7rutWI3y9Hn2E4B6ak1Ngt2lc9XHPcRP4nhJ6QfkizKsCTnsWJ0ODZ GWMCDQzIVRlQdUb68m/kTXShvyYiyr344u1eugVH00DmN9vVz1LUg2YlZm/NHc0Z809J J4Nw== 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 g14-20020a63200e000000b0043caa6f1189si5088910pgg.786.2022.11.18.14.56.01; Fri, 18 Nov 2022 14:56:14 -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 S234401AbiKRWza (ORCPT + 99 others); Fri, 18 Nov 2022 17:55:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234711AbiKRWy7 (ORCPT ); Fri, 18 Nov 2022 17:54:59 -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 5C14DC0514 for ; Fri, 18 Nov 2022 14:48:18 -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 1owA8C-0000us-QO; Fri, 18 Nov 2022 23:46:44 +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 1owA88-0058Jf-7e; Fri, 18 Nov 2022 23:46:41 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA88-00Hb4s-II; Fri, 18 Nov 2022 23:46:40 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , Dmitry Torokhov , Petr Machata 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 155/606] iio: magnetometer: bmc150_magn_i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:09 +0100 Message-Id: <20221118224540.619276-156-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?1749876394089409038?= X-GMAIL-MSGID: =?utf-8?q?1749876394089409038?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/magnetometer/bmc150_magn_i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/magnetometer/bmc150_magn_i2c.c b/drivers/iio/magnetometer/bmc150_magn_i2c.c index 570deaa87836..44b8960eea17 100644 --- a/drivers/iio/magnetometer/bmc150_magn_i2c.c +++ b/drivers/iio/magnetometer/bmc150_magn_i2c.c @@ -16,9 +16,9 @@ #include "bmc150_magn.h" -static int bmc150_magn_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bmc150_magn_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct regmap *regmap; const char *name = NULL; @@ -71,7 +71,7 @@ static struct i2c_driver bmc150_magn_driver = { .acpi_match_table = ACPI_PTR(bmc150_magn_acpi_match), .pm = &bmc150_magn_pm_ops, }, - .probe = bmc150_magn_i2c_probe, + .probe_new = bmc150_magn_i2c_probe, .remove = bmc150_magn_i2c_remove, .id_table = bmc150_magn_i2c_id, }; From patchwork Fri Nov 18 22:38:10 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: 22728 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464315wrr; Fri, 18 Nov 2022 15:34:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf6AoBHWLSbcX6C1ile3W1Ew7I4eOUzI6WSj9kozqb8vguDypuXqyIoMSdopNEdDwV+BOYGj X-Received: by 2002:a05:6402:388e:b0:468:fb0d:2d8b with SMTP id fd14-20020a056402388e00b00468fb0d2d8bmr6178644edb.124.1668814475398; Fri, 18 Nov 2022 15:34:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814475; cv=none; d=google.com; s=arc-20160816; b=uKDxjMmef6L0MF9khwgzWuitAwFfftRe+iAl4GDwl/BbRS4NR1lctzYMVVGTbPF00n 1phKr+0sf1nc9vWK2rbgWmxWtWXQ4UzEHIv9sZtiVmXSWX0ZIkFQd5mkQIFMKf5nUm/3 DPMswj++GWffNKaWM+hjCAHv4LEpleLMA5+Url9Dnr82Jz4EdioRowsnVX1qcI3Pc36z CAOZJQj4bNFk4EPVi+EY8sMvo/Jtm/5S1FEAmWcscuGAEwFPf7VQOKGGbC1xjTQVU5gH KOB2ZtNmdF7EPKztTSRLRz19aJzDMke/yeHn0Wm6j632yo/3T4T1oEHeajlB5EMbqzjo XCXg== 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=4/RwfPtd+MCDAQx+PR/mnpgmPHuKpAmXK3zr4/sy17c=; b=0fN7EDoHlsBNboHzT6DKCfsGRfpmPpntYbLR6gEW3ah9R+8eWSsLx8K8zVO/qvrGEe S4NNnJXIooq3krMLlpWxLhdrHKoXjIT/EjzYsfYPUlXefHrcAOvXampr6elMFBf3DcCO SFoSwen9XWWOiGzpL8hf7SpCMbSYBU2K3SV215TGrRrbl1m75NUR0YQ8bcH8+qx7Xe5y pI27/ULFsVMlDjAeEPUCMvPwIoL1B3kL3Q2ozrxPZ2XuuxR3O3xIbESelGVm5BrnzIua zwwywPSHnNbjxYsuNBT9KT4fmqCQ+k8srjgBt73N3C5UIfUdk817GgIFcYqS9AW91OjH cnvQ== 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 h3-20020a1709060f4300b00781bbff1cc1si3557183ejj.455.2022.11.18.15.34.10; Fri, 18 Nov 2022 15:34: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 S236067AbiKRXda (ORCPT + 99 others); Fri, 18 Nov 2022 18:33:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235977AbiKRXa3 (ORCPT ); Fri, 18 Nov 2022 18:30:29 -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 A343FBC0 for ; Fri, 18 Nov 2022 15:18:26 -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 1owA8D-0000wj-7e; Fri, 18 Nov 2022 23:46:45 +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 1owA88-0058Js-Kk; Fri, 18 Nov 2022 23:46:41 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA88-00Hb4x-RO; Fri, 18 Nov 2022 23:46:40 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , Benjamin Mugnier , Luca Ceresoli 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 156/606] iio: magnetometer: hmc5843: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:10 +0100 Message-Id: <20221118224540.619276-157-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?1749878807693166600?= X-GMAIL-MSGID: =?utf-8?q?1749878807693166600?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/magnetometer/hmc5843_i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/magnetometer/hmc5843_i2c.c b/drivers/iio/magnetometer/hmc5843_i2c.c index 18a13dd51296..7ef2b1d56289 100644 --- a/drivers/iio/magnetometer/hmc5843_i2c.c +++ b/drivers/iio/magnetometer/hmc5843_i2c.c @@ -52,9 +52,9 @@ static const struct regmap_config hmc5843_i2c_regmap_config = { .cache_type = REGCACHE_RBTREE, }; -static int hmc5843_i2c_probe(struct i2c_client *cli, - const struct i2c_device_id *id) +static int hmc5843_i2c_probe(struct i2c_client *cli) { + const struct i2c_device_id *id = i2c_client_get_device_id(cli); struct regmap *regmap = devm_regmap_init_i2c(cli, &hmc5843_i2c_regmap_config); if (IS_ERR(regmap)) @@ -95,7 +95,7 @@ static struct i2c_driver hmc5843_driver = { .of_match_table = hmc5843_of_match, }, .id_table = hmc5843_id, - .probe = hmc5843_i2c_probe, + .probe_new = hmc5843_i2c_probe, .remove = hmc5843_i2c_remove, }; module_i2c_driver(hmc5843_driver); From patchwork Fri Nov 18 22:38:11 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: 22654 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460750wrr; Fri, 18 Nov 2022 15:25:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf5GpWMtVB6H9JwK93Uq9HtZkCOHOy3neSAndMkAan0HqM5jR9PWTj6eNqBvBBY79mzZZCDB X-Received: by 2002:a17:907:1a53:b0:7b2:b15e:86e6 with SMTP id mf19-20020a1709071a5300b007b2b15e86e6mr4212522ejc.410.1668813912538; Fri, 18 Nov 2022 15:25:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813912; cv=none; d=google.com; s=arc-20160816; b=EoJUQe433AaVizVJrigoHubxvaAT7fhD4TQyyca3YDJsy8fMsdWDgr1KzLc5l8tOU5 AX+q4k1zd1x/BMlwciaXi675VnzbMxO3vu7gcXZ3aCqI3I4BLg9cq/Zo6sczV6iBm6cv GzoNdKpSBUgtcaRRXdhM42Wa/vfQVWv2IlwamTIJtKcf7SZPUNcgtwmqhFRVudcPeI7B AYVx+j2QT4G3AYPlYQgQlJnBtoJpfMILrnZhb+QouPHUL5D+0mlgpjHhG49ju0WaP0a4 /nZgU+htD8mi/spj26xYmt+IXSvq+RhPs0ts2+pRMWvj9dr4Tr1HXyfzVmC1UfTBveXO yHNQ== 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=ePWI/pxrpaT8C2o/BX+DKlcSd/yaK6vJ//V/knigrKc=; b=mC9SIz1nzS8GHQ4zCWIbieESkrKI/4JJ5Zw5inS3AkpVckV+qtF77HD1EJLtqcWLel FXaQaCbZau7o+0a+7XqetXlhKqG0UROjFlvOXJGmTiyB7pe7vUJlT41qFwqrj4hQmqVp UKa0uefhRP6YDQp+b7BEEXX1gFVwoo6EhFgT42J7CQ5/0AyFUyqgn+W9QxSfeLrwNXCG 0wjDvlSAiIPRRFZ6/1W4diI7KxhCdhqzuIvf+ExQzOB4xhjNAp7zRhJEhQx+oCPAzoe0 mwRhjPP2lEBMDVFTag6tBEU/QSZLEOYQ7PawQiVgbonAcZN9LZ4Vcb7LQGCsxIZ5L6rh ZKUA== 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 x10-20020a056402414a00b004687eebac58si4220358eda.458.2022.11.18.15.24.46; Fri, 18 Nov 2022 15:25: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 S235531AbiKRXXq (ORCPT + 99 others); Fri, 18 Nov 2022 18:23:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235480AbiKRXVk (ORCPT ); Fri, 18 Nov 2022 18:21:40 -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 A1C6E6D961 for ; Fri, 18 Nov 2022 15:12:58 -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 1owA8D-0000yZ-ND; Fri, 18 Nov 2022 23:46:45 +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 1owA89-0058K3-5x; Fri, 18 Nov 2022 23:46:42 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA89-00Hb50-27; Fri, 18 Nov 2022 23:46:41 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Greg Kroah-Hartman , Petr Machata , Javier Martinez Canillas 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 157/606] iio: magnetometer: mag3110: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:11 +0100 Message-Id: <20221118224540.619276-158-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?1749878217009086750?= X-GMAIL-MSGID: =?utf-8?q?1749878217009086750?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/magnetometer/mag3110.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/magnetometer/mag3110.c b/drivers/iio/magnetometer/mag3110.c index b870ad803862..661176a885ad 100644 --- a/drivers/iio/magnetometer/mag3110.c +++ b/drivers/iio/magnetometer/mag3110.c @@ -469,9 +469,9 @@ static const struct iio_info mag3110_info = { static const unsigned long mag3110_scan_masks[] = {0x7, 0xf, 0}; -static int mag3110_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mag3110_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct mag3110_data *data; struct iio_dev *indio_dev; int ret; @@ -641,7 +641,7 @@ static struct i2c_driver mag3110_driver = { .of_match_table = mag3110_of_match, .pm = pm_sleep_ptr(&mag3110_pm_ops), }, - .probe = mag3110_probe, + .probe_new = mag3110_probe, .remove = mag3110_remove, .id_table = mag3110_id, }; From patchwork Fri Nov 18 22:38:12 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: 22667 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp461114wrr; Fri, 18 Nov 2022 15:26:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf55oIxRNXh16Cp8AyIMx0gH3YIMRf0qdwiZbTVdlnNZSJ2t1wzRuJhEcJmvdAfUE1jXrjko X-Received: by 2002:aa7:d418:0:b0:468:89dd:ae39 with SMTP id z24-20020aa7d418000000b0046889ddae39mr7975636edq.165.1668813978154; Fri, 18 Nov 2022 15:26:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813978; cv=none; d=google.com; s=arc-20160816; b=lTfQV8uXsca2Lt8m9MNLu/xVfnuyEM+4OQh9nMqxdhh0FY7xQq8/2wHg3CxyrJ3fmp /FnjfIDJaYTMhGp1DdCFr7q6/y40PJYGe5L3mjK2efK52M1ngHC3RrSaPxzOG2mwPoke MGcne4yOgEVJMYks5/4UPuqJWabIjgXLJ1yx7hGY3qflkRBw/+YL2MTivIOziXUH/X+h xBM8zCM0KJ7EzvMpJlOqhgaLsUN/75lDSl3K8D+we0QwU5VrS0Ebr9xF/MUZlJkSbSBZ 4waoYfyN6Z20mZ6m3TsgX2OhvpeWDnMBuldROugh4aTYqlf8nK26ShIqwgMe3f7fFdXA s/bA== 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=7d1gXruN7W9DXHZEH+aXIDdc9FNu55iT27g3E22ijWk=; b=osglVU7LfaH4WUTNp4c61//oTi41HH0r7w4I9dA6kqJhh4co+jVyFlXSse7DnLNcYQ ttfqCut8a1+KeW6t6Yy4pWwuTEybEZFa+ZzbVmXdLl+rKixDUo5nEYALbctteX00pR+G seF2gEELgMZXS+UJUsOGpgOSGm7K5/Bgp1zAYBGqK+3jZUDCOdiYcJAQQ1zmisad2gHd pqQdvB6wPA5BGCy/yYQLx51ZeMz9SAxyG7XoXr4HDJKE/2sUna49qmX2QhKRbhT15k2x TY0nT0uPJtD0SzgyCzm6Vm9ZnrwobLupRQoDPKORbJ210yt9n+JwbuQJ93MkHFe7+xYC YklQ== 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 sc28-20020a1709078a1c00b007ae6e306017si4401238ejc.318.2022.11.18.15.25.54; Fri, 18 Nov 2022 15:26:18 -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 S235652AbiKRXY5 (ORCPT + 99 others); Fri, 18 Nov 2022 18:24:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235602AbiKRXWM (ORCPT ); Fri, 18 Nov 2022 18:22:12 -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 9276F950FC for ; Fri, 18 Nov 2022 15:13:12 -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 1owA8D-0000yQ-JF; Fri, 18 Nov 2022 23:46:45 +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 1owA89-0058K0-4C; Fri, 18 Nov 2022 23:46:42 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA89-00Hb57-9x; Fri, 18 Nov 2022 23:46:41 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Paul Cercueil 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 158/606] iio: magnetometer: mmc35240: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:12 +0100 Message-Id: <20221118224540.619276-159-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?1749878286059713952?= X-GMAIL-MSGID: =?utf-8?q?1749878286059713952?= 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/magnetometer/mmc35240.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c index 186edfcda0b7..756dadbad106 100644 --- a/drivers/iio/magnetometer/mmc35240.c +++ b/drivers/iio/magnetometer/mmc35240.c @@ -481,8 +481,7 @@ static const struct regmap_config mmc35240_regmap_config = { .num_reg_defaults = ARRAY_SIZE(mmc35240_reg_defaults), }; -static int mmc35240_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mmc35240_probe(struct i2c_client *client) { struct mmc35240_data *data; struct iio_dev *indio_dev; @@ -576,7 +575,7 @@ static struct i2c_driver mmc35240_driver = { .pm = pm_sleep_ptr(&mmc35240_pm_ops), .acpi_match_table = ACPI_PTR(mmc35240_acpi_match), }, - .probe = mmc35240_probe, + .probe_new = mmc35240_probe, .id_table = mmc35240_id, }; From patchwork Fri Nov 18 22:38:13 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: 22627 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp451129wrr; Fri, 18 Nov 2022 15:00:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf7oB0Jf7aN6Xa3w+UI2uVDzwcsLChFQ+8awDJl+ijWQa0HcEWXk4hdlNHVro4qd5/neo1Ey X-Received: by 2002:a17:906:414c:b0:7a9:ecc1:2bd2 with SMTP id l12-20020a170906414c00b007a9ecc12bd2mr7753743ejk.545.1668812431679; Fri, 18 Nov 2022 15:00:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812431; cv=none; d=google.com; s=arc-20160816; b=oLOdHQqp5qQmmncFsKhLR3SE1rdoqv9P/wksEPcFSFGpk4Xbam0EvQa2Nd7V5puKSs NdcktOmO3Ryufz7hu9+kwDUtQdAeEBippLaJL6i/8hKe/b9+PSRrsyDwNMcQpWzPZMBo LZccNccUHUe7gkH4imlWwPsvqq4WByRpi8PhacRqTx7rEwvAE37RBSY1vBiDq5xksfP8 Cic99frRDqZ7GFUI0FNefJgLXj9plk31oLVPLdUXq0unTVoQFpPi2viAEEiYE8r+bBX2 s2DKUUmRvRhCS/7cD1nYXIMRd2Kni2ArmHDoe4rwbyvIBF48SkO8IJlIRD9eLH4NZFIB SR7w== 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=+xj1guINgybDeuhFWVxfh1OGf2HkE8gsinDuJEUzt8U=; b=uHlKJZWN3xRb5OrcJBNgg8t8LnxKubmbtpQgB8ZxXZ005fstv/hKPHTknsdyc2/dte qdNE1uJDhyExi4YiVaIpsV/AXKxTD+AWNYGi29Qe2UywjknrHDo/fLrev2Y5MoUh3ed7 f9oqK7BO9t0RKnMLX9d8s5J36Tc3SOCPy0XHnatBWONdGgvGai9+6sAtBUdaROsWRaKc 1JiXZaOTKxUsn3zYQhG2/VYKWV1tzpI/9GIdYzyFGaOyMg9fctrdXrRJXRz1Z2bw5YPI J+y66uB/ncs6/P7nbT5rQQ0Q19T38ngc6TOAdqRb8SqzVM6J0/Gp2N4R4JM9+8pKq6zy wb9Q== 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 tz14-20020a170907c78e00b00791910ecd0fsi3566231ejc.540.2022.11.18.15.00.07; Fri, 18 Nov 2022 15:00:31 -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 S235127AbiKRW4O (ORCPT + 99 others); Fri, 18 Nov 2022 17:56:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235099AbiKRWzZ (ORCPT ); Fri, 18 Nov 2022 17:55:25 -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 2EEC110C7 for ; Fri, 18 Nov 2022 14:48:29 -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 1owA8E-0000zN-BP; Fri, 18 Nov 2022 23:46:46 +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 1owA89-0058K8-EQ; Fri, 18 Nov 2022 23:46:42 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA89-00Hb5B-HK; Fri, 18 Nov 2022 23:46:41 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Linus Walleij , Andy Shevchenko , Jakob Hauser 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 159/606] iio: magnetometer: yamaha-yas530: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:13 +0100 Message-Id: <20221118224540.619276-160-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?1749876664403699146?= X-GMAIL-MSGID: =?utf-8?q?1749876664403699146?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/magnetometer/yamaha-yas530.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/magnetometer/yamaha-yas530.c b/drivers/iio/magnetometer/yamaha-yas530.c index 801c760feb4d..753717158b07 100644 --- a/drivers/iio/magnetometer/yamaha-yas530.c +++ b/drivers/iio/magnetometer/yamaha-yas530.c @@ -1384,9 +1384,9 @@ static const struct yas5xx_chip_info yas5xx_chip_info_tbl[] = { }, }; -static int yas5xx_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int yas5xx_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct iio_dev *indio_dev; struct device *dev = &i2c->dev; struct yas5xx *yas5xx; @@ -1605,7 +1605,7 @@ static struct i2c_driver yas5xx_driver = { .of_match_table = yas5xx_of_match, .pm = pm_ptr(&yas5xx_dev_pm_ops), }, - .probe = yas5xx_probe, + .probe_new = yas5xx_probe, .remove = yas5xx_remove, .id_table = yas5xx_id, }; From patchwork Fri Nov 18 22:38:14 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: 23097 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487625wrr; Fri, 18 Nov 2022 16:43:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Srsp5gyxxVlun6XUe8vu81DCh44iFNAQI5BUagR7qkT5jbx1xIF22nFBFvHAXLpUombNl X-Received: by 2002:a17:906:402:b0:7a6:fc0f:6fe6 with SMTP id d2-20020a170906040200b007a6fc0f6fe6mr7549529eja.694.1668818615540; Fri, 18 Nov 2022 16:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818615; cv=none; d=google.com; s=arc-20160816; b=UI2rfyphAV4kCbi42Gw+mmmYRfgZHVXp8tdMy5oORJ/YxdHUFvyZVmoSjrqEyiASkJ mrhjo6SBd5og85LIZN93Ir4tKQYP6IMSTM9jWPTN5vVbgEXFxxBKTC1V0VU93Wx4JpSd JYB2zRhInWLRTmG3gkB4DEs+2zvp5kSd7Vz0IYxERAc0zovxwr4CZZxs8bBe4lt0viTX 9eHQiDm3JTtgDV5dgfjn9D4UalEMWgp4CAndUE/8sgSjTxolK4abtPOiR6Ag7h/NN0tF AEm/p7/huG3W46yN6jCk1wued7qQLxBXwajNuG7/zlZjlYd8uGbzCjD5IGKkRGL5P4Sl wO4w== 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=gGTVJLZaY96P8gK34tX93FZ2sUUqobIO3r+SILIVbh0=; b=KZIz/+CfLFr16bJnvVF8pUcCMwfh6Nm+nZKRq95ejtEHdiu1WDO09nhYMXbuMzESWe 2L7qPI91LLzPmPjtvQgOXDEaVDz7JDCW0rS0rvOfIiqMHzNPNf0smdptZtq8NUaoLjN1 fUx+Kj/ap9if753FCGaXWlZEifi2TenunoMWpMXYr4g60UlTowj3zYtF2RNGp6DDccUG QWn7x1+xwT8XTrQjfRG54gY6T1F3caH78XJFou2xVbRKeMWlxNYVVa7BaXFQRbmdpYbP j3f+xBOlSpY3TaLEbkO4GakNL/a4b0uDhntI/mk2EDZhGJAKHMndYDgSwopTvAefKGwo QMmA== 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 l22-20020a056402029600b004614e263f51si3993993edv.118.2022.11.18.16.43.04; Fri, 18 Nov 2022 16:43: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 S235424AbiKSAa2 (ORCPT + 99 others); Fri, 18 Nov 2022 19:30:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232643AbiKSAaA (ORCPT ); Fri, 18 Nov 2022 19:30:00 -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 F14201121EF for ; Fri, 18 Nov 2022 15:40:50 -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 1owA8E-00010g-9m; Fri, 18 Nov 2022 23:46:46 +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 1owA89-0058KF-QA; Fri, 18 Nov 2022 23:46:42 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA89-00Hb5G-OK; Fri, 18 Nov 2022 23:46:41 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 160/606] iio: potentiometer: ad5272: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:14 +0100 Message-Id: <20221118224540.619276-161-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?1749883148655323138?= X-GMAIL-MSGID: =?utf-8?q?1749883148655323138?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/potentiometer/ad5272.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/potentiometer/ad5272.c b/drivers/iio/potentiometer/ad5272.c index ed5fc0b50fe9..aa140d632101 100644 --- a/drivers/iio/potentiometer/ad5272.c +++ b/drivers/iio/potentiometer/ad5272.c @@ -158,9 +158,9 @@ static int ad5272_reset(struct ad5272_data *data) return 0; } -static int ad5272_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ad5272_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; struct iio_dev *indio_dev; struct ad5272_data *data; @@ -218,7 +218,7 @@ static struct i2c_driver ad5272_driver = { .name = "ad5272", .of_match_table = ad5272_dt_ids, }, - .probe = ad5272_probe, + .probe_new = ad5272_probe, .id_table = ad5272_id, }; From patchwork Fri Nov 18 22:38:15 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: 22665 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp461010wrr; Fri, 18 Nov 2022 15:26:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf4HJRdV4i6HAI0EIqNEWsuSdfXn6z0xNIv8nliGlE/PNZ7RUvOQWINGzhrnIjQm0fV7d+aK X-Received: by 2002:a05:6a00:1c8d:b0:56c:f87e:c662 with SMTP id y13-20020a056a001c8d00b0056cf87ec662mr10116392pfw.65.1668813960471; Fri, 18 Nov 2022 15:26:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813960; cv=none; d=google.com; s=arc-20160816; b=CpQYbSqZjzqzEEeHDGUYXh6NeLi+OvTDTcyzXrwmAxBrWRuqnzOJtdFbxdIPaIG3iV EA/eP4B5ZI9gEpjdlPg3LscNMFiqCNRpdgyIP3SQTwfUYOn4JXDWKLcmWBApdqmiqUnL 9Ck8QgFvCuSYekVBLphpjQQATn8AwIkg5tMS19h0FA347jPRoap+vEx+uxSUKiC+WTpF Y/1HNEH7+uaLMKUb3YEg8eerE4bX3TluJ4+fwGTjv9Hmw+MDimhF0Mqw77LH9T68/H6L KZkMIwnK7Sbpo5fvdcvIL2HezJNrnpsaWl7rw03La9VPsMPjwaMb0MPxJXBiy6CUnROh tKIQ== 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=GDIKSBjFpSZJeN13iljom1gPZVIblWQFNSu6Swv6uEM=; b=yF60bxSo8ymwpxjstZGlGF0fzlnoxuakr3NDTTvmhAVaRY2OsLZxYhwj8hslv1hX5X eTZoIYyhx4XVTyGhTLdYV6NTpvt1TNqPQQC02NnNUxda7OgU9FuXPHiqfDCDvEZfouw5 JyIVkDLPYBWXycA/jOLytmIapGq2vuJ50gSeQYgSrznH4kd9FhJtHB6C3kVkFEVcpWDk 3dyzGDG3P7luKOzd5dN5SE/jVoTMR0Ant4rdGKGApsI4nP43Y2mJq7cAodDXGGsjUOj5 05x4iqL8lOboJQTpolXYSekNUAJJflaie7m4FNp1VHfmHFRDDvD+OBAL1XL1KowlS80K QTNg== 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 iw4-20020a170903044400b00186c5eb0d48si4392729plb.425.2022.11.18.15.25.47; Fri, 18 Nov 2022 15:26:00 -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 S235522AbiKRXXn (ORCPT + 99 others); Fri, 18 Nov 2022 18:23:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235465AbiKRXVb (ORCPT ); Fri, 18 Nov 2022 18:21:31 -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 0720B6D940 for ; Fri, 18 Nov 2022 15:12:57 -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 1owA8E-00012E-NE; Fri, 18 Nov 2022 23:46:46 +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-0058KM-7B; 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 1owA89-00Hb5J-VC; Fri, 18 Nov 2022 23:46:41 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Jagath Jog J , 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 161/606] iio: potentiometer: ds1803: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:15 +0100 Message-Id: <20221118224540.619276-162-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?1749878267344229602?= X-GMAIL-MSGID: =?utf-8?q?1749878267344229602?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/potentiometer/ds1803.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/iio/potentiometer/ds1803.c b/drivers/iio/potentiometer/ds1803.c index 5c212ed7a931..0b5e475807cb 100644 --- a/drivers/iio/potentiometer/ds1803.c +++ b/drivers/iio/potentiometer/ds1803.c @@ -202,8 +202,9 @@ static const struct iio_info ds1803_info = { .read_avail = ds1803_read_avail, }; -static int ds1803_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int ds1803_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; struct ds1803_data *data; struct iio_dev *indio_dev; @@ -251,7 +252,7 @@ static struct i2c_driver ds1803_driver = { .name = "ds1803", .of_match_table = ds1803_dt_ids, }, - .probe = ds1803_probe, + .probe_new = ds1803_probe, .id_table = ds1803_id, }; From patchwork Fri Nov 18 22:38:16 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: 22607 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449272wrr; Fri, 18 Nov 2022 14:54:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf4JoxB40tADVfhzj9T5FSO5OodKzrAAKJ9pnwI6lb2It2OTab94Zf/dgMM7fUmGhn1WOdxP X-Received: by 2002:a63:5409:0:b0:476:e3bb:2340 with SMTP id i9-20020a635409000000b00476e3bb2340mr8315007pgb.530.1668812087924; Fri, 18 Nov 2022 14:54:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812087; cv=none; d=google.com; s=arc-20160816; b=cZh1F1IpcKFki7rwxhfXHvzrLgd9Fz0u60YZKbXOb6bmZWmJWiSYpXjm60WitbH6hu fZd/4cD6UIKs/l37CfFuQLI+38gDbLEgJXnWprWB1IWLTC6UJbBD3JsKkhs/eL+tmE/2 ycRnIpnGtDQ1ZgleF+DcR/MVwdejEvehAIrXp+RYBt1BzXHlNUGt5uhff6AO6i5tv21K 1knOedObHcL+j7a6k1q/Mb9/KZeDO2ApJpWcM5Pvyvi8hxTOQ04p/L2NdceBBZoUuyFq vv+UbMP2PWaaIO1yEjl46puJ6zOFhqRBnwBivwRTQdGQdRnug9rUXj4UP7/NePE+cjWs u3FQ== 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=qNkseD9UDQ+k9JsB3RjKby8HkPilNomuZ6wjxsVhfx0=; b=czGLVSsOaycprGY/U3jxAmgeB0lMR+buM0pbR6RIBl1HwJ8fhEuvxd0JyfEhnY1hED d/l1PfTx4eJAPB59D0Xard3kJvhG1RTd6o4rlYAPD9fagQi9ysOaqTM/oCK7+g7kDdMt tNi5JD2U+cB8AXWhC7SSK07jNhy6b3kUkqOWGLFS8tLzghR27onw0D6uPOQ4sRqTRfGF gd3X8BfXx5Wj6jjEiHj7D8mubLCoa7owXyADiBLDJsW8LyEUA1hy75Hxkgf7FMmzSPkR JZxVW2E2sDntEiU6WUdtyCjRCZS0f5NTzRFNGbic10kHVKR4YIvVHL2Wg/I88JDqIncg zbcA== 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 k38-20020a63ff26000000b00439dcdd3cfdsi4522331pgi.825.2022.11.18.14.54.35; Fri, 18 Nov 2022 14:54:47 -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 S234851AbiKRWyO (ORCPT + 99 others); Fri, 18 Nov 2022 17:54:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233665AbiKRWxl (ORCPT ); Fri, 18 Nov 2022 17:53:41 -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 D37B1BE859 for ; Fri, 18 Nov 2022 14:47:56 -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 1owA8E-00011J-E4; Fri, 18 Nov 2022 23:46:46 +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 1owA89-0058KI-Va; Fri, 18 Nov 2022 23:46:42 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8A-00Hb5N-5b; 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 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 162/606] iio: potentiometer: max5432: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:16 +0100 Message-Id: <20221118224540.619276-163-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?1749876304033510617?= X-GMAIL-MSGID: =?utf-8?q?1749876304033510617?= 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/potentiometer/max5432.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/potentiometer/max5432.c b/drivers/iio/potentiometer/max5432.c index aed3b6ab82a2..94ef27ef3fb5 100644 --- a/drivers/iio/potentiometer/max5432.c +++ b/drivers/iio/potentiometer/max5432.c @@ -85,8 +85,7 @@ static const struct iio_info max5432_info = { .write_raw = max5432_write_raw, }; -static int max5432_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max5432_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct iio_dev *indio_dev; @@ -124,7 +123,7 @@ static struct i2c_driver max5432_driver = { .name = "max5432", .of_match_table = max5432_dt_ids, }, - .probe = max5432_probe, + .probe_new = max5432_probe, }; module_i2c_driver(max5432_driver); From patchwork Fri Nov 18 22:38:17 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: 22657 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460776wrr; Fri, 18 Nov 2022 15:25:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf7HaWacB5uzltdcj6fUa5PD32izS9D8fZJS8EgRTFKil1jgHlqQU/k21n7BofYUbaT4og+E X-Received: by 2002:a17:906:e289:b0:7ae:c460:c65f with SMTP id gg9-20020a170906e28900b007aec460c65fmr7737548ejb.226.1668813918508; Fri, 18 Nov 2022 15:25:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813918; cv=none; d=google.com; s=arc-20160816; b=YlyjaMASpGEt5r9GCfhr7aR9EkUtV3AW+U+rOXYr1IkN22ogP61rW+uSt14ONSKarK fQCeriWTwY3U2+CbtDplT5jnqDkb/6L5akBrflEMDeBaok92O2bYgtjnLEburZkBeu0i 7K32k1kmnpjr0QrIa9SLtFKCM//7JTXJbTiTjjU8gLoIpfZIhBn2pnMk/6x+B560QrxW /LrAPyDR3p1Evj1dEwQF6DyDEqoPBK+bm2EA6MYdLKLdoA9azd76MPiBvVoLOXINWsK3 ypSfyRBSu6A87rbEs9PJsReiPJQs87fbl1bRpJXVvaPS34VnX4kFz/on2r6hitMhw8ms Kbgg== 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=ooRJdajHXcrSXeixZ3dp11Rrg5vn2kj/GPOhbijStgY=; b=DUpBvwmzpCe5dDV2ggHh6JAUx19N9LhHhOa+kzs1mFAoBePjiOhC1dXcClE8GliQ9j pW/VcEV8nirTXdz8S8UdKnxvxWPNalSkANMhH9s3y7aPjS0V3kqVlls/Cxhl1E28bLEI k6vyp4BigI9JSXfAEXfJIxbGa6iYWkvTHgTVU0YQBEwbpGylsIyWqA6wkfMD/KLsc9RV PY4vwp5/5mR/SrjFE/rHYPqMyR/reSbF6dLLI3bpo0vc3cj64Q56TOWzftYvQDRkvq4q FSmNidnldwWl6Cbfsn4XEDJM+z97DnfsQY8BJUfD43M6othedQ4TShCzUp6IXxoZUq7a pyrw== 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 w10-20020a056402070a00b00468d5a9cb45si124801edx.271.2022.11.18.15.24.53; Fri, 18 Nov 2022 15:25:18 -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 S235539AbiKRXXu (ORCPT + 99 others); Fri, 18 Nov 2022 18:23:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234130AbiKRXVt (ORCPT ); Fri, 18 Nov 2022 18:21:49 -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 2AE7A6D963 for ; Fri, 18 Nov 2022 15:12:59 -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-00013a-3f; 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-0058KW-ND; 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-00Hb5S-Eh; 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 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 163/606] iio: potentiometer: tpl0102: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:17 +0100 Message-Id: <20221118224540.619276-164-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?1749878223594302468?= X-GMAIL-MSGID: =?utf-8?q?1749878223594302468?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/potentiometer/tpl0102.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/potentiometer/tpl0102.c b/drivers/iio/potentiometer/tpl0102.c index d996dc367fb7..a3465b413b0c 100644 --- a/drivers/iio/potentiometer/tpl0102.c +++ b/drivers/iio/potentiometer/tpl0102.c @@ -120,9 +120,9 @@ static const struct iio_info tpl0102_info = { .write_raw = tpl0102_write_raw, }; -static int tpl0102_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tpl0102_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; struct tpl0102_data *data; struct iio_dev *indio_dev; @@ -161,7 +161,7 @@ static struct i2c_driver tpl0102_driver = { .driver = { .name = "tpl0102", }, - .probe = tpl0102_probe, + .probe_new = tpl0102_probe, .id_table = tpl0102_id, }; 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, }; From patchwork Fri Nov 18 22:38:19 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: 22663 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460963wrr; Fri, 18 Nov 2022 15:25:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf5XjTxWz3lIlUzAqonRde1oy89ypaN+1sQRxsyzVGN39ti4nfk3ttWMzIuqYsDKuGLPMZn0 X-Received: by 2002:a17:906:fca4:b0:7ae:acea:fca6 with SMTP id qw4-20020a170906fca400b007aeaceafca6mr7930428ejb.150.1668813953222; Fri, 18 Nov 2022 15:25:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813953; cv=none; d=google.com; s=arc-20160816; b=VCuxYpxrkSz1jE9+edZm9pll+AH/++1XdwOA/VFkNIzJ9h9gyjMRmLiyKf4WlD0AHc OLToLE47DlGHga0Li1+m0RwpF/trTk/zZcTQOSVC42bz4FWz3Cyom+lFTlm47sDjtQlB KIocSatREFxMxs8if2izi85LzYPjiYRhWas54vo1lI5pZGG5+BfkcRbW0lL7yh3A6onc YYVxLGz4i/I/hPdIx98Y3RmauGXqMz9Qi1983ZXm6um56sfPPeM1Sq6nUQcEyYkp6dRb lY0O5gdqYEJX9nxzE7rCSw/R6StWDy3gWpo5jutC4i+SIrz1ziv9hYOlMhQIHFJt4a7g yxvg== 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=M/OHseNN/oGHx473nwW93FKCxb6B3F/NkZ7e+bR0pBc=; b=cDiqY7o9HH/0MCe03NtjMAL4BbJ5QIlOm+Q1E50n1N9x8Q0JMPEuYptMDk/uZ1/HVS GE3GuaH+anygP5p0Op5UzC98QHANBTwu/josjfCrX2GNVxny5nBe0fk5sDdJz4USXsJV vY3cY66PM/rBBhtjV/66QUgQt12AeesA20vZ0JU5rwPeGnyLr3TTlQwpwcdWW0gBwWaR oMrWiDGpN378KyAynTfniaqSM0LTnq7o1DtLpi42/s9mdY/2Pn4/1OXurPbgsEI2S64+ 5zz8icz7ZQCYN+rpMX55Jjl8t9UjniT8qhF37hm2vWGyaLp9qDLHH6sUP2Ds8cAG8pgG wjmA== 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 xc1-20020a170907074100b007ae0e8f697fsi4487104ejb.652.2022.11.18.15.25.29; Fri, 18 Nov 2022 15:25:53 -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 S235368AbiKRXYo (ORCPT + 99 others); Fri, 18 Nov 2022 18:24:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235585AbiKRXWL (ORCPT ); Fri, 18 Nov 2022 18:22:11 -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 35ACB950E4 for ; Fri, 18 Nov 2022 15:13:10 -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-00013r-8E; 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-0058Kf-Rh; 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-00Hb5Z-U4; 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 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 165/606] iio: pressure: abp060mg: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:19 +0100 Message-Id: <20221118224540.619276-166-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?1749878260118287692?= X-GMAIL-MSGID: =?utf-8?q?1749878260118287692?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/pressure/abp060mg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/pressure/abp060mg.c b/drivers/iio/pressure/abp060mg.c index e1c3bdb371ee..c0140779366a 100644 --- a/drivers/iio/pressure/abp060mg.c +++ b/drivers/iio/pressure/abp060mg.c @@ -174,9 +174,9 @@ static void abp060mg_init_device(struct iio_dev *indio_dev, unsigned long id) state->offset -= ABP060MG_NUM_COUNTS >> 1; } -static int abp060mg_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int abp060mg_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct iio_dev *indio_dev; struct abp_state *state; unsigned long cfg_id = id->driver_data; @@ -255,7 +255,7 @@ static struct i2c_driver abp060mg_driver = { .driver = { .name = "abp060mg", }, - .probe = abp060mg_probe, + .probe_new = abp060mg_probe, .id_table = abp060mg_id_table, }; module_i2c_driver(abp060mg_driver); From patchwork Fri Nov 18 22:38:20 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: 22956 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp475130wrr; Fri, 18 Nov 2022 16:05:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf5L5XnWPgH4hpQYFmKuz9IiGK+Q0HUSAClStjhN6uy3AowogPmMtbA3kiC+ZXb8gGDQ7ibE X-Received: by 2002:a17:906:5e49:b0:7ae:38fd:45e9 with SMTP id b9-20020a1709065e4900b007ae38fd45e9mr7518954eju.496.1668816341926; Fri, 18 Nov 2022 16:05:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816341; cv=none; d=google.com; s=arc-20160816; b=WLxxt29OlO4bF2mGl5aCaxdNS966bFcUf4oybEZuAn0RXsZn8WZzgO1bqgE/pkEw30 HhJH0PjA3LJejM7T8NAXk0vKBfa8BEJuTc+EEzr8R01EXyeMh1h2kllo7Y79wxUBPxJN POrw05mgf/uEOlgXmImYjlyQ7hKw0X2w0cjQVfT6HBcz2UXAw2V4z0pI3VJNdXD0MhcW rQo3b23HbZ9rTCq3yxpFt7HbuKTZ+LGT+TovETu/nPNPmHFVk/Q1C8v+ZsntbN5Fs78w C5F96JaYTm19tlzdGhAF8hALBbf5Iwf0X//AfTQL0p/BlqA8xz8Im8tExDF9oxusuuSZ sasQ== 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=6a/ABkTPe6upUlsCQOPt0v0vBva+DGmNsCkFY5V0ZIU=; b=e56zJxk9d6+vvf0e2KUWxIZFOxVgR2zLwvMbTLNZHhJ+JOyYBanm+VGhaIhmaXhgsV 1WO2WW7sSKxJJlXYHfNLw3rDIqJj/SeYtyC3ZbR7giV4E6WEEo67YFm3uJJa2NRayCFq 5UXGb78VkFNsN3hkm5xZh5+kWXsLc3D/9e7uh9jK1k/676u5IUB7UuP4mXUv+pGgwylO lfmH/gyHHLcYwD2RcGUHqaVyNUe8l5/XhDYH6o170IpE2YKYKl6rBFTOZzqI+5h4mF8U A3QprtKn7/HHX48aTYplZrzj1a905OOQaW30XKZs504Gcs0PJom3DOJXQ98nDfQ4gytB diLw== 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 m9-20020a170906848900b007adf9d69424si3185181ejx.586.2022.11.18.16.05.12; Fri, 18 Nov 2022 16:05:41 -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 S237347AbiKSABG (ORCPT + 99 others); Fri, 18 Nov 2022 19:01:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237557AbiKRX6X (ORCPT ); Fri, 18 Nov 2022 18:58:23 -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 3279F711B2 for ; Fri, 18 Nov 2022 15:29:20 -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-000147-Co; 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-0058Ki-VH; 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 1owA8B-00Hb5d-4P; Fri, 18 Nov 2022 23:46:43 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , "Rafael J. Wysocki" , Paul Cercueil 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 166/606] iio: pressure: bmp280-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:20 +0100 Message-Id: <20221118224540.619276-167-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?1749880764110716073?= X-GMAIL-MSGID: =?utf-8?q?1749880764110716073?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/pressure/bmp280-i2c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/pressure/bmp280-i2c.c b/drivers/iio/pressure/bmp280-i2c.c index 14eab086d24a..4da014b158c8 100644 --- a/drivers/iio/pressure/bmp280-i2c.c +++ b/drivers/iio/pressure/bmp280-i2c.c @@ -7,6 +7,7 @@ static int bmp280_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct regmap *regmap; const struct regmap_config *regmap_config; const struct i2c_device_id *id = i2c_client_get_device_id(client); From patchwork Fri Nov 18 22:38:21 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: 22895 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472465wrr; Fri, 18 Nov 2022 16:00:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf7y0tm0+C94yIIRHVHG4CAyfYScAn0jWlq5VIvp3C4WEeeHwrnci1T769l54w8cFA8GDR9q X-Received: by 2002:a17:906:d782:b0:78d:422b:8156 with SMTP id pj2-20020a170906d78200b0078d422b8156mr7792246ejb.589.1668816015369; Fri, 18 Nov 2022 16:00:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816015; cv=none; d=google.com; s=arc-20160816; b=nOeXZq0bRkI0RhpC1x7rDLE2mFZsUdB1ckFVluK4vF9QRMTjIk5fID6wQGi3R1J8ds GKYn3z20FxAl4x+w6R7VXdQxWYL5X2jmfQmUKdGl9dqFHhbUDOxkI2CxLKcrvSLPVJJ/ bhTBXOxs5AtSGrAgKuU/BBUZriCu24XaWj07ipnI5+pGRI2rtEaIVzFiLKM5jHoSWvcR 6hyGaDta85hSAEfehDyOYxTbCN0G4ZjzN3Aox0JaZ/FdwHT4kgmb7X8h9DZFA1apXAXy YS6VqUex4bOtgcrbGBHcxnOwU6TWYooWm3luQRg/9h06GjxhzPze9C+rN1cKcNsBLWHW 1SLA== 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=jzWnDmsiTe7cP4SKcxADUpM32F3Y72T+6rkt3YtXq2U=; b=PNhOHYbKO2nj2BluD4WzeBCdO6iTGVThqR998QVfQ8epQi3rfimlmCGdCsJ7MDBYOH K/B8HCHIV09LnG9eS0SzC7vSX1JLeKF/24ccXqEcxtqC25IqeciyVy0sKXSG1TrdWETZ OQdXvO9G09g/tAY6WlLgKekJOp+VJWXFFJgSsfnMiKzwSEztabeVv9fiDlRGwnAvDPF1 GyyrOLZRminVDX91XM672kKSCYoMndMcDxous/zRWsYb1F4FRQ+ITnnT6QNXaAeki8hG J7NyFra3jyEyhQwfCuccf1tsrzBp1s2FXpTmJHDmw+AtIGKsQ1T60L4isdSgoSGZa3fc wcYw== 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 z18-20020a05640240d200b00463a4ca44e0si4756505edb.138.2022.11.18.15.59.45; Fri, 18 Nov 2022 16:00:15 -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 S236198AbiKRXsT (ORCPT + 99 others); Fri, 18 Nov 2022 18:48:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236973AbiKRXrM (ORCPT ); Fri, 18 Nov 2022 18:47:12 -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 5B64FDEACD for ; Fri, 18 Nov 2022 15:25:44 -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-00014y-KK; 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 1owA8B-0058Ko-7b; Fri, 18 Nov 2022 23:46:44 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8B-00Hb5h-E3; Fri, 18 Nov 2022 23:46:43 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , =?utf-8?q?Nuno_S=C3=A1?= 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 167/606] iio: pressure: dlhl60d: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:21 +0100 Message-Id: <20221118224540.619276-168-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?1749880422193377531?= X-GMAIL-MSGID: =?utf-8?q?1749880422193377531?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/pressure/dlhl60d.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/pressure/dlhl60d.c b/drivers/iio/pressure/dlhl60d.c index f0b0d198c6d4..43650b048d62 100644 --- a/drivers/iio/pressure/dlhl60d.c +++ b/drivers/iio/pressure/dlhl60d.c @@ -282,9 +282,9 @@ static irqreturn_t dlh_interrupt(int irq, void *private) return IRQ_HANDLED; }; -static int dlh_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int dlh_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct dlh_state *st; struct iio_dev *indio_dev; int ret; @@ -362,7 +362,7 @@ static struct i2c_driver dlh_driver = { .name = "dlhl60d", .of_match_table = dlh_of_match, }, - .probe = dlh_probe, + .probe_new = dlh_probe, .id_table = dlh_id, }; module_i2c_driver(dlh_driver); From patchwork Fri Nov 18 22:38:22 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: 22618 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449737wrr; Fri, 18 Nov 2022 14:56:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf4JiKdKJiaODR82rQ6CWX0m0h43Zvy3BJAjZZ/c+O+mn6x3cM6SbiuNKLG97OyhD0Y2cdpg X-Received: by 2002:a17:90a:d190:b0:20d:747a:c507 with SMTP id fu16-20020a17090ad19000b0020d747ac507mr9976494pjb.145.1668812186761; Fri, 18 Nov 2022 14:56:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812186; cv=none; d=google.com; s=arc-20160816; b=g+b8j2dmpOymeh1kobshtxYDv9AJq50kH/xVPahxpnQTEr/dChkfJIUZMUQDsdOWEW Nmb7x3kok3+e7fFklWl6VuOBfMs9Wv5fs/JeNzBgY8YCr9Y8qmp9i6dSYciXLRTUOMHd w2njfhlXRzojGA5e7lrFBxB5e1JklC3D5akJRsb+nplO8mAqiVHKOWuEeRK3F/NLCVZw 3WypVWzjvoOfgH0mJTPW69Yco5lGMuGl2KRgFvZRyQME+7L7MI3Zi+mW6ItxCXLGsSs2 QZdIEq4MI9nu1yX5XijWzIhud07Yd0l6PEMFt+3oFpnpNjETQE1xYV+qfPCPOjHPeS5W WKkA== 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=Y1R/wkrVAr/CjfJn95w57FCwppW0YxACdILiXXTeqPQ=; b=xXYJEB/YUgirBjdHt0WdD7q2m74C/QqxBbNVLxodYyK8PxCbhpRwcqigcKftRFFiGN WQ26L5ecVy2t+1w33jvvqBPq3RL1YumUGr2HbjO+R/k+kMZnL7HA3oi/yjfQwo5Rw4dD bFc29mrQxZ4MlBbjfTRBjahYOqk40JYkWJBK6W6/ti8GOCvrB5mtvyfHVAJN1PUl6eQH mkK6bo4x45AGAyQ3UrD4vFNMQ1e9jln2rs0ycZV41AayJpJ6purG4W4LjQ21KuQTMqvg rS2xOm6RnAKtJQJ4xoLdQ6m6b3o5feldI0III2UYTV8zEUsxnTrOFqewpALPM05t4T1l s2cQ== 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 s16-20020a170902a51000b00176b7e66c9asi4262992plq.155.2022.11.18.14.56.14; Fri, 18 Nov 2022 14:56:26 -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 S235186AbiKRWzj (ORCPT + 99 others); Fri, 18 Nov 2022 17:55:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235043AbiKRWzF (ORCPT ); Fri, 18 Nov 2022 17:55: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 01162C0532 for ; Fri, 18 Nov 2022 14:48:22 -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-00015K-Ns; 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 1owA8B-0058Kr-AX; Fri, 18 Nov 2022 23:46:44 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8B-00Hb5k-Lm; Fri, 18 Nov 2022 23:46:43 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Eddie James , 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 168/606] iio: pressure: dps310: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:22 +0100 Message-Id: <20221118224540.619276-169-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?1749876407697917269?= X-GMAIL-MSGID: =?utf-8?q?1749876407697917269?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/pressure/dps310.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/pressure/dps310.c b/drivers/iio/pressure/dps310.c index 984a3f511a1a..2af275a24ff9 100644 --- a/drivers/iio/pressure/dps310.c +++ b/drivers/iio/pressure/dps310.c @@ -827,9 +827,9 @@ static const struct iio_info dps310_info = { .write_raw = dps310_write_raw, }; -static int dps310_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int dps310_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct dps310_data *data; struct iio_dev *iio; int rc; @@ -887,7 +887,7 @@ static struct i2c_driver dps310_driver = { .name = DPS310_DEV_NAME, .acpi_match_table = dps310_acpi_match, }, - .probe = dps310_probe, + .probe_new = dps310_probe, .id_table = dps310_id, }; module_i2c_driver(dps310_driver); From patchwork Fri Nov 18 22:38:23 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: 22632 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp459999wrr; Fri, 18 Nov 2022 15:23:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf69Or3w408ESqDS+ERI4sRrkFJud+zzoe0ggK+vTaqKlmm1vpRa6gGC1F3nGKxqJpPJaFRJ X-Received: by 2002:a63:131a:0:b0:476:f92f:885a with SMTP id i26-20020a63131a000000b00476f92f885amr8601286pgl.478.1668813779846; Fri, 18 Nov 2022 15:22:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813779; cv=none; d=google.com; s=arc-20160816; b=J6glaPssHH01yv/XKLaGJOr9+/Rrq0yRHGwazs9RnyAeGoTs7+92PBkxQ06bIUZxu1 +DoozPe4msA7PgK9HVviFl6XFfTacXXbnDo2/XO0LatcBJHZjJLY8FVLvRA/8oB7JwFA V7k9o6cTwp+mQqRsiCmKvC7HNYWNuwB3ZM7qH7aHsYG/Gj6SymQ1c/S8pU1fSwKd0Et3 V5MhcX555ojWdIg6CDPpBoDAxZWTc5GDhVbUEK2W4CfKem/SFrovh1iDlSJLCuHbsfnI syv6qveqdKKfm4BLnKJ3fFlogvOpJS9aS3t67NU6pEQeaydBs2OOH1s90a3EmWtlU/uT s3lw== 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=4hExexf5h0XqcCYLnQmLe6VdtwXl/wHeSl/ct93Hv2s=; b=ZrjA5zIEzdHxfR8akkio+ty9M0njDe5I729oHxK1YyN/vyctfGK3WpAZm4m2Lv1YRA I/7fybHEZvuUKSixNVwPgGmxite59MijO9c55Vqg/mf9xKLtB+ls+suqtSGGOlZe9T5/ VeNq7vEQIMVHP+O+54kXCx8aKDsJn/gNODgnRpbeJlZiWAgPaLKQMWAy9ouzOyF2CwSo zuU6E6aRjIt36nKNvWDvYNea2anM8ndpbUmYkH06QZTiQPAQxmmoHQeJyfnUOi2h93Gd 4AOvW+f4KHO5iUTIii7qnzpUs46UNdpOrBaa30vcTMMX42KwAnc2WOkCnfXhMDo1n5VH Xm4Q== 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 p1-20020a056a000a0100b0056dde9895e1si5186957pfh.46.2022.11.18.15.22.45; Fri, 18 Nov 2022 15:22:59 -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 S233299AbiKRXV3 (ORCPT + 99 others); Fri, 18 Nov 2022 18:21:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232024AbiKRXU6 (ORCPT ); Fri, 18 Nov 2022 18:20:58 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5B8A31FB5 for ; Fri, 18 Nov 2022 15:11:32 -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 1owA8G-000194-7A; Fri, 18 Nov 2022 23:46:48 +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 1owA8C-0058L8-51; Fri, 18 Nov 2022 23:46:45 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8B-00Hb5q-T9; Fri, 18 Nov 2022 23:46:43 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 169/606] iio: pressure: hp03: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:23 +0100 Message-Id: <20221118224540.619276-170-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?1749878078098665814?= X-GMAIL-MSGID: =?utf-8?q?1749878078098665814?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/pressure/hp03.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/pressure/hp03.c b/drivers/iio/pressure/hp03.c index 9538118c9648..bd1f71a99cfa 100644 --- a/drivers/iio/pressure/hp03.c +++ b/drivers/iio/pressure/hp03.c @@ -208,9 +208,9 @@ static const struct iio_info hp03_info = { .read_raw = &hp03_read_raw, }; -static int hp03_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int hp03_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; struct iio_dev *indio_dev; struct hp03_priv *priv; @@ -282,7 +282,7 @@ static struct i2c_driver hp03_driver = { .name = "hp03", .of_match_table = hp03_of_match, }, - .probe = hp03_probe, + .probe_new = hp03_probe, .id_table = hp03_id, }; module_i2c_driver(hp03_driver); From patchwork Fri Nov 18 22:38:24 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: 22615 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449543wrr; Fri, 18 Nov 2022 14:55:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf7YXP5KLq983La0qyROxMqZNsnm4U/jhsI4l5qmYrp08jC9PmosyPbIx1/H9L2aqUBg9TiC X-Received: by 2002:a17:903:40c1:b0:187:1380:4398 with SMTP id t1-20020a17090340c100b0018713804398mr1511949pld.134.1668812144957; Fri, 18 Nov 2022 14:55:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812144; cv=none; d=google.com; s=arc-20160816; b=Jvsb/WSfeb6CG0LSPiHIUQxMf5dqrQrjrvl74jFtCKpsrNwjxkRBnYDi4wUMLsCYdJ Buj4X9F5ttnmVb7vcYae3HLVlUjV00lHpdqa2X0SM1jntLPO/W89lNSAy55WfJpfm05b mzcw5VNN97NxbeMMRkfBMayF6tH1ByUhtueAUZnXGFqajA51rUGFwPGjsD2oijjf0Xy2 5ka0mN3co17oKcht7/DT/hYLxt+pNYfECn66jMZ/gXI7fOU/8yfsc/Yd0GNFZrlHLof6 EMni9a60BxXYGsCOzlFRPwBziTl10FaqIzCnJlMQ8bkq87/T1ctpIA6XOfXoghe2dnk3 2E6w== 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=AXV8N62v03A38DXVL260X+sPrGb3OC+qStw1hgHvD2o=; b=R14QCncaEsPkptg4LiN4pc3y3iollUfxB+9/Dls2dcLvTXGHJ9sl5bdRN0Cei/9hq1 Nw642WJ5DM03nz2OcUhvF9KKGKQ/WLfMiDhTJ9AKcCECPRfHOnYS56VMB83DZXv7h3BO TVPy9o6q6gSIypPxEbW6kiRXHf6BAIQNVnMfWu03HvRSE61lw7849/5RYvSMtg2Uw2LK uU5MUGUX6sUD6KUXMFd4anr5CuAy/ZK3hXs27IlMrCIcqpaAiN5r56TY87/l+KIpsEiX EwYGHzaHbVkN8O7+wvIxCGROEJmvbsx28ccLYjuuWxL2GnXU+Xc8XXo+sP2IC/kFCuL1 zOnQ== 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 j9-20020aa78dc9000000b0056cd93aac47si4287314pfr.358.2022.11.18.14.55.32; Fri, 18 Nov 2022 14:55:44 -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 S234589AbiKRWzR (ORCPT + 99 others); Fri, 18 Nov 2022 17:55:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234504AbiKRWyV (ORCPT ); Fri, 18 Nov 2022 17:54:21 -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 245CEBFF4A for ; Fri, 18 Nov 2022 14:48:10 -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 1owA8G-00018M-BD; Fri, 18 Nov 2022 23:46:48 +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 1owA8C-0058L3-1g; Fri, 18 Nov 2022 23:46:44 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8C-00Hb5u-58; Fri, 18 Nov 2022 23:46:44 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 170/606] iio: pressure: hp206c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:24 +0100 Message-Id: <20221118224540.619276-171-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?1749876363575339747?= X-GMAIL-MSGID: =?utf-8?q?1749876363575339747?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/pressure/hp206c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/pressure/hp206c.c b/drivers/iio/pressure/hp206c.c index 986b7a59712e..b6d2ff464341 100644 --- a/drivers/iio/pressure/hp206c.c +++ b/drivers/iio/pressure/hp206c.c @@ -352,9 +352,9 @@ static const struct iio_info hp206c_info = { .write_raw = hp206c_write_raw, }; -static int hp206c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int hp206c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct iio_dev *indio_dev; struct hp206c_data *data; int ret; @@ -409,7 +409,7 @@ MODULE_DEVICE_TABLE(acpi, hp206c_acpi_match); #endif static struct i2c_driver hp206c_driver = { - .probe = hp206c_probe, + .probe_new = hp206c_probe, .id_table = hp206c_id, .driver = { .name = "hp206c", From patchwork Fri Nov 18 22:38:25 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: 22811 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp469596wrr; Fri, 18 Nov 2022 15:50:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf7rHlns9gjlgS0EA7bQwwl53Kn0KWeNTp0/3Kj3U1gDraY/ujiD79g8BpYODlq5j5b2W2hM X-Received: by 2002:a17:906:bcc1:b0:73d:715c:5730 with SMTP id lw1-20020a170906bcc100b0073d715c5730mr7684798ejb.293.1668815438895; Fri, 18 Nov 2022 15:50:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815438; cv=none; d=google.com; s=arc-20160816; b=Rd5nFO77jRrQchCRmiAZEkPL1SOHEmA6DJny7iVASi5bvIVE03cHAkXy5moavQwV2y UkkUB4aZFxVvkAw4fInt03O/Q3XVX0pcNet/9bRYtIFXqkhIcPk7S6p4kl/Uu2aC3Iv7 pML5j/treQ0pGhhPdQvSGmo2nEDV6zaBfvxL8NcaJcCKgNJXCSLw3CgssYrSNBnzqa6Y mxL4sYUD8XEbCtTq+BulCTFxZTLCBQtUdeigLHXKafpFVr8sVyW+U8IMTgzqWLe2yXZR WbCLucgGT1Bsp3jTtFA4Ttj8nVbdm25V0ZcoOH0IoPJ2/OjYGv0TwtFjncnqQJa2DkGf BB8g== 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=zIHWpwhZLFxCCOnYo2Dbel9zjxYRDwWcegj5gCr4V2o=; b=0V0ohs/wY6KIX+d88UyBdaEKVPEdhBFVm0xuIb/j6kJqe97h23y55+Q23hR6SbQ+dB lARYNsm+qPXPocE6CM7hf0EEKZ937D39ngKFKHwtg3S318G6ouXcRBchrX3UYUm1UMU8 JwGEmFrK0SuW+gVDkm88rP9c9nLCdTY9iIEzHCwxKlzZ6iOAbBRO5911u5GGgTJ7Oj7O Bv1jl1L4nytHui9fFlR5NGiR3jK85TuGjB9JeKXgtunvicEbnOzuVCymPYiLtcDd7jiS YwAadRefopW4Pam1Qc6QtBWWYxr6w8KRvBDmmwRLDt+OxmB4Y0vA3ZwMiZ/fo4srrfwc aw0w== 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 et19-20020a170907295300b007824b741e7asi3162597ejc.236.2022.11.18.15.50.15; Fri, 18 Nov 2022 15:50:38 -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 S236757AbiKRXkx (ORCPT + 99 others); Fri, 18 Nov 2022 18:40:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236864AbiKRXiC (ORCPT ); Fri, 18 Nov 2022 18:38:02 -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 B91FDC4C31 for ; Fri, 18 Nov 2022 15:22:52 -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 1owA8G-0001A8-H4; Fri, 18 Nov 2022 23:46:48 +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 1owA8C-0058LB-BD; Fri, 18 Nov 2022 23:46:45 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8C-00Hb5z-GZ; Fri, 18 Nov 2022 23:46:44 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Jean-Baptiste Maneyrol 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 171/606] iio: pressure: icp10100: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:25 +0100 Message-Id: <20221118224540.619276-172-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?1749879817822942523?= X-GMAIL-MSGID: =?utf-8?q?1749879817822942523?= 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 Acked-by: Jean-Baptiste Maneyrol Signed-off-by: Uwe Kleine-König --- drivers/iio/pressure/icp10100.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/pressure/icp10100.c b/drivers/iio/pressure/icp10100.c index b62f28585db5..407cf25ea0e3 100644 --- a/drivers/iio/pressure/icp10100.c +++ b/drivers/iio/pressure/icp10100.c @@ -530,8 +530,7 @@ static void icp10100_pm_disable(void *data) pm_runtime_disable(dev); } -static int icp10100_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int icp10100_probe(struct i2c_client *client) { struct iio_dev *indio_dev; struct icp10100_state *st; @@ -649,7 +648,7 @@ static struct i2c_driver icp10100_driver = { .pm = pm_ptr(&icp10100_pm), .of_match_table = icp10100_of_match, }, - .probe = icp10100_probe, + .probe_new = icp10100_probe, .id_table = icp10100_id, }; module_i2c_driver(icp10100_driver); From patchwork Fri Nov 18 22:38:26 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: 22841 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471968wrr; Fri, 18 Nov 2022 15:58:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf442moLAjrkPZMxeiAepW5QNyHa5mHSoiAO5PXNneslkyzztfr+HD7x/qMcH8JtvYqoN5Mj X-Received: by 2002:a17:906:6bda:b0:7ae:4a7f:3281 with SMTP id t26-20020a1709066bda00b007ae4a7f3281mr7521415ejs.50.1668815936573; Fri, 18 Nov 2022 15:58:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815936; cv=none; d=google.com; s=arc-20160816; b=CpxNCFjjHtyHibxkAD2K5DYZ31PlyrQ4BkEoxjK6a8PoR6gw9F+72/sYcbnJLkliCo r2YwbvsTrqCvU5w1nsSSnq5W9PT7CTkjth+znMcOOvxTlCLNSb2VNBrYOXqMvlPhjZRX W696k7AomqIIr1pf+HqARNL8Wtlq64wR4f1jybmH0QAjXFi4gssU6ibkTNoRCAifTWhA SLVapkX44egMA8aijApOaR0Sh9u+sm70zYXXQ87DHS+w+hwonVb1lbDai68AcvXAfksL 0uKLwjSsHLWIPyz6xd9HrcZ8QhHhfcJNMI9UIXrI3qeAdAC5ilmDCOGJe5y/4Vc8rYgd h9yQ== 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=O4wSBdRnBvvlAg4r/GNEkTHk7FdqTTe3mV0bro1nslw=; b=caS+LlhyDFIlALFy3nvDewRZdEgZ74MlKfSFPHrI1lBGwgrT6Vc0oDBmMSvht0PY8C PB9+GnSjw1NfFFXdOv+EejAGq/whrImNfWMPsTV7N6l4yN18zqh1X+eZ3J0cr2t+8zha 3A+gSwBOY+8VzBv0ZO+ye6afmPuvZsGTFyNDmFEzVipn0fTUjRZ0VMnTxRJVyPGYVmh8 5M9bE4UPYh63HHc24Yazj/qiOf+G+dmf5omUerFsvYA7kfZ8qnUsj7kWhe41Q+NlrN7O Oi0BV8UBr1OejtZoFxewY/BmDiOujC3nxvGr4ijJXfX6Afy3uToj8zDxEWxgNdd9VJ2t juPw== 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 sc4-20020a1709078a0400b0078d9b5792a0si4324301ejc.319.2022.11.18.15.58.32; Fri, 18 Nov 2022 15:58:56 -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 S235623AbiKRXuO (ORCPT + 99 others); Fri, 18 Nov 2022 18:50:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234992AbiKRXtY (ORCPT ); Fri, 18 Nov 2022 18:49:24 -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 B9A15EC0AA for ; Fri, 18 Nov 2022 15:26:32 -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 1owA8G-0001Al-OC; Fri, 18 Nov 2022 23:46:48 +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 1owA8C-0058LG-Ga; Fri, 18 Nov 2022 23:46:45 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8C-00Hb62-QE; Fri, 18 Nov 2022 23:46:44 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , Rajat Khandelwal 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 172/606] iio: pressure: mpl115_i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:26 +0100 Message-Id: <20221118224540.619276-173-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?1749880339778563669?= X-GMAIL-MSGID: =?utf-8?q?1749880339778563669?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/pressure/mpl115_i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/pressure/mpl115_i2c.c b/drivers/iio/pressure/mpl115_i2c.c index 555bda1146fb..ade4dd854ddf 100644 --- a/drivers/iio/pressure/mpl115_i2c.c +++ b/drivers/iio/pressure/mpl115_i2c.c @@ -35,9 +35,9 @@ static const struct mpl115_ops mpl115_i2c_ops = { .write = mpl115_i2c_write, }; -static int mpl115_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mpl115_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_WORD_DATA)) return -EOPNOTSUPP; @@ -55,7 +55,7 @@ static struct i2c_driver mpl115_i2c_driver = { .name = "mpl115", .pm = pm_ptr(&mpl115_dev_pm_ops), }, - .probe = mpl115_i2c_probe, + .probe_new = mpl115_i2c_probe, .id_table = mpl115_i2c_id, }; module_i2c_driver(mpl115_i2c_driver); From patchwork Fri Nov 18 22:38:27 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: 22795 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466738wrr; Fri, 18 Nov 2022 15:40:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf6nZNr0ecJc2gUsVGqXIDrubkVoLasV8t2POfl2PapeEL350BHVBo+P2yras9ljYxnTGXpe X-Received: by 2002:a05:6402:345:b0:458:fc30:f1ff with SMTP id r5-20020a056402034500b00458fc30f1ffmr8075704edw.132.1668814851510; Fri, 18 Nov 2022 15:40:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814851; cv=none; d=google.com; s=arc-20160816; b=uylJa/bRfMy5eYAxADgnCjuGXV8u1X7CbhjLbzCJms/F+dWPNizpN0K7QY7+PLqHZv +N+xfqTdAH9pCgYy5HT6c1AM6xSjbDE9XcijOwYj3kYQ6qr5HZrmpO6rXb54nj9VDVM8 46MCWOORrcs81Laxc9vu0ANNskG7Ea2ePLJc8g9kbbP8U+HCN1l5WAfuq3oUQdo9bf4i 7+g5ayOt50EsYAGjdDXTqsV2o76zYrO1L63GHoPn89yOyxIALifx37+T0TYkS2/NN2uG 7pXnlKXF5OlQ2HEi1i09qmDxp7oc2TZA/rGPFkzc/kSWKphHM2AwDPXIJL4wSnd5zEz3 /8lw== 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=gYOI//MozPjSze0QOKyNkTYvrWPz8ztDDVBRIAaJ5Ck=; b=xgmLDcbnFUNS0/495bilXJdGoeL7TqZNS9Dhxm63R8fKUanlZa1yHxqKfi9A1d109k Hd200kxR0ZmjosOMPggTVR635H0ZsIiT5b/BtFBfFj+Nw6eN8ul4sY6Wdq+ItmTQS1N+ A38BZPYWLWW1Ur+UfZ+LLNAuauSQ29LCet79YDlLe16HOG7vafGVKwLbt0FlSyF6zc0j decDmM5Yj36akOfbIkLAvH/3d4ob8YHjQBfbYm3DMWf8fxIYdicB79hRuLFvvZnIdUkL zZ2Hs3shKoD+oPFKVDNW81w7LkKV5gOhmEv5amGulEoCawV7BAtn1UjrTpaRKH46VV7x PZkw== 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 wt7-20020a170906ee8700b0078c39937f73si4584685ejb.798.2022.11.18.15.40.27; Fri, 18 Nov 2022 15:40:51 -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 S236553AbiKRXjZ (ORCPT + 99 others); Fri, 18 Nov 2022 18:39:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236620AbiKRXhX (ORCPT ); Fri, 18 Nov 2022 18:37:23 -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 B25BC52179 for ; Fri, 18 Nov 2022 15:22:09 -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 1owA8H-0001Cd-0j; Fri, 18 Nov 2022 23:46:49 +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 1owA8C-0058LN-Tp; Fri, 18 Nov 2022 23:46:45 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8D-00Hb66-3P; Fri, 18 Nov 2022 23:46:45 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Peter Rosin , 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 173/606] iio: pressure: mpl3115: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:27 +0100 Message-Id: <20221118224540.619276-174-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?1749879201791071166?= X-GMAIL-MSGID: =?utf-8?q?1749879201791071166?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/pressure/mpl3115.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/pressure/mpl3115.c b/drivers/iio/pressure/mpl3115.c index 2f22aba61e4d..72e811a5c96e 100644 --- a/drivers/iio/pressure/mpl3115.c +++ b/drivers/iio/pressure/mpl3115.c @@ -230,9 +230,9 @@ static const struct iio_info mpl3115_info = { .read_raw = &mpl3115_read_raw, }; -static int mpl3115_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mpl3115_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct mpl3115_data *data; struct iio_dev *indio_dev; int ret; @@ -335,7 +335,7 @@ static struct i2c_driver mpl3115_driver = { .of_match_table = mpl3115_of_match, .pm = pm_sleep_ptr(&mpl3115_pm_ops), }, - .probe = mpl3115_probe, + .probe_new = mpl3115_probe, .remove = mpl3115_remove, .id_table = mpl3115_id, }; From patchwork Fri Nov 18 22:38:28 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: 22873 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472184wrr; Fri, 18 Nov 2022 15:59:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf5xMkpTscK7fYAUJEpM8OEmjU29ypSUzXwHazbS9U+LllXjrPq9PzowjF+rXkwyMKyMveqk X-Received: by 2002:a50:fe8d:0:b0:461:9183:834b with SMTP id d13-20020a50fe8d000000b004619183834bmr8062242edt.196.1668815977415; Fri, 18 Nov 2022 15:59:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815977; cv=none; d=google.com; s=arc-20160816; b=p6+Dq+4o/S8EF5Prp8j/0MNrwVA3q/02wmKgkyoCLazi8YRXv42MMElLtcz/Pk7vEw zDATCqDTtsMFrfFKqcKz5M7FtTSaMt+ihe/p6r2eEihJZTYAaJBAMW613mIE4Y469/hz +HrfCVUu766fsGKRw+m4xrpBhLmcgkAUoZh7eDWHGUUh+9qpxXwoqASnh9VR1iTaXer7 6lH6QB192RjDk9fbFw/QDPrrxvwXzhqVRELFy356sxj0G1SAmX3i0jJy+UTNeCWvC1Wm FYX1gwwiVC3vKef7gRwJerMfLUIBW0EbX78Zw51pr9oUNRC+zHAXyQkEl6efxVZIptAx 6Nnw== 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=PCFzRBY1hok4CovbBsjHYiO5uoO4PFji5GCM6xX6XRI=; b=CRBEid3CeJ3roOyuPTc0hlpNdVZ9Uf6D0zjm7jfRsZ6C9aei3uuSA7aZwXmDN8OxEK NaxuMzamjdoQnYeNgY7lC+3tRUmow4FYn3NiZfu8/Y1/Za8ZYWAFQhIwgmV07ckgfQv+ ZfKHFgT8goFStdhPOORlZr6p6ZqN2REGUZ+iD+uMW/eeBjZRwEgjZqTViyiGTUlFa6Op 8+i5xrvjecVtO7OvdeF/Em/LUnQpCPKnKEX5ju85vbBS8GTeyICfXyCpb98SM3mUQ0JI +ESRtze7qr9AAaC8Gl74s4KP7K+OHCC7mFm8hAtvRkL58dcSKYJiPQLz0WGrNbku+umq w1tg== 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 h15-20020a056402280f00b00461d8ee1316si4929363ede.21.2022.11.18.15.59.13; Fri, 18 Nov 2022 15:59:37 -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 S235546AbiKRXwk (ORCPT + 99 others); Fri, 18 Nov 2022 18:52:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236804AbiKRXv0 (ORCPT ); Fri, 18 Nov 2022 18:51:26 -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 61823B73B1 for ; Fri, 18 Nov 2022 15:26:59 -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 1owA8H-0001DG-5f; Fri, 18 Nov 2022 23:46:49 +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 1owA8D-0058LR-2g; Fri, 18 Nov 2022 23:46:46 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8D-00Hb6A-Cu; Fri, 18 Nov 2022 23:46:45 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , Adrien Grassein , Dmitry Torokhov 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 174/606] iio: pressure: ms5611_i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:28 +0100 Message-Id: <20221118224540.619276-175-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?1749880382186968102?= X-GMAIL-MSGID: =?utf-8?q?1749880382186968102?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/pressure/ms5611_i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/pressure/ms5611_i2c.c b/drivers/iio/pressure/ms5611_i2c.c index b681a4183909..caf882497656 100644 --- a/drivers/iio/pressure/ms5611_i2c.c +++ b/drivers/iio/pressure/ms5611_i2c.c @@ -79,9 +79,9 @@ static int ms5611_i2c_read_adc_temp_and_pressure(struct ms5611_state *st, return ms5611_i2c_read_adc(st, pressure); } -static int ms5611_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ms5611_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct ms5611_state *st; struct iio_dev *indio_dev; @@ -130,7 +130,7 @@ static struct i2c_driver ms5611_driver = { .of_match_table = ms5611_i2c_matches, }, .id_table = ms5611_id, - .probe = ms5611_i2c_probe, + .probe_new = ms5611_i2c_probe, .remove = ms5611_i2c_remove, }; module_i2c_driver(ms5611_driver); From patchwork Fri Nov 18 22:38: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: 22653 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460703wrr; Fri, 18 Nov 2022 15:25:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf57jnW+l8M9VgkGXBwlrrRYe7nTwu72zXCYQhKDfGonxRnQ4fCqauJWmDR5bPUb7bRF8GJM X-Received: by 2002:a17:907:378:b0:7ad:db82:d071 with SMTP id rs24-20020a170907037800b007addb82d071mr8094526ejb.200.1668813906463; Fri, 18 Nov 2022 15:25:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813906; cv=none; d=google.com; s=arc-20160816; b=PhC5YJGX0kIDPcDbDrSe2ZOOU/odZLXUnJVXTMLiFgr3hUsI9jcvxTosJsxUOTndxV Ma2mlka6GzBJsZd/gt72TYE1SgioRJgb3tuoZVThDbYzQC2Ys7SThjFEK6zslQl8i3Ex o0274ucvqz4zVwdHHiy5vC4SzlaCKfnenR/HyFk88NeVVpRtVgkjffrMZEI6ORdBWLAZ fax9bYZuHysdoN055Otqt3fit9VmGplpKwKNh+Nrbh6zsz26Z4GIqpJEm1dA4wY5YHNv Dz69wxZGsYdUptdhECxyGweZx1IzSUvxgirwVAARNpQYOAp9zJhVIKRsUqn0rjJAadFs JIdA== 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=Chg3rQWbPfzx8z4+AE/DMMATCG5xi7D5srYPnsDEv5U=; b=F+7vzA6VXNiKh6JXRERjnYPazfXi570HaCQ5SAUYLS9tQ5l1wkb+U7SXwUzK5han45 vk73qb64wSL1ktPkIbvxMDUqL+54ZESm4Cg9jyFjCWMv69EHTX2vJXhdPmcXNF97a6qt En1UiB1f7iA+LDivHqhLwJfH0YVKTU6QNbL73x2V1mCkVt0LKOSzeXRUK5DLaNu8xy37 rcc460mTpWPISdgxCLtqlUHzCe5zdkEOx7Yrffkh/O/Bse4x7Ps1lFps6ylUBcD4zRFV 6YcZhiOy8XUyG7gDDiw49HBytqQuN3tJZPnADqy0fyEwnRQAAihSjX8tlliT3yuelDvy il4g== 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 g14-20020a056402090e00b0045d4b7ad0e4si4579300edz.400.2022.11.18.15.24.37; Fri, 18 Nov 2022 15:25:06 -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 S235310AbiKRXV0 (ORCPT + 99 others); Fri, 18 Nov 2022 18:21:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231398AbiKRXU6 (ORCPT ); Fri, 18 Nov 2022 18:20:58 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F429326F6 for ; Fri, 18 Nov 2022 15:11:35 -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 1owA8H-0001F7-Mx; Fri, 18 Nov 2022 23:46:49 +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 1owA8D-0058LZ-KU; Fri, 18 Nov 2022 23:46:46 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8D-00Hb6F-MN; Fri, 18 Nov 2022 23:46:45 +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 175/606] iio: pressure: ms5637: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:29 +0100 Message-Id: <20221118224540.619276-176-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?1749878210761522070?= X-GMAIL-MSGID: =?utf-8?q?1749878210761522070?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/pressure/ms5637.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/pressure/ms5637.c b/drivers/iio/pressure/ms5637.c index 70c70019142a..c4981b29dccb 100644 --- a/drivers/iio/pressure/ms5637.c +++ b/drivers/iio/pressure/ms5637.c @@ -142,9 +142,9 @@ static const struct iio_info ms5637_info = { .attrs = &ms5637_attribute_group, }; -static int ms5637_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ms5637_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); const struct ms_tp_data *data; struct ms_tp_dev *dev_data; struct iio_dev *indio_dev; @@ -238,7 +238,7 @@ static const struct of_device_id ms5637_of_match[] = { MODULE_DEVICE_TABLE(of, ms5637_of_match); static struct i2c_driver ms5637_driver = { - .probe = ms5637_probe, + .probe_new = ms5637_probe, .id_table = ms5637_id, .driver = { .name = "ms5637", From patchwork Fri Nov 18 22:38:30 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: 22649 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460571wrr; Fri, 18 Nov 2022 15:24:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf5GE8drUGTRHlz4nc3hW7KgiI2zJz24tXkKb5xgIgHB36CvB6gsmscv7yQaiZ54pXK3sjf9 X-Received: by 2002:a05:6402:5299:b0:461:7291:79c1 with SMTP id en25-20020a056402529900b00461729179c1mr8195404edb.68.1668813881324; Fri, 18 Nov 2022 15:24:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813881; cv=none; d=google.com; s=arc-20160816; b=hMKb2vu4A46ioJKht6YhXJUtlQfz75nKRkUjeoMR9xJzQ1MacpD2V6dvWBW5QXjcuo OYXtzN10RyBFpYDs79EATo+pjUrEuLYM4+yL/72AxtmqTq4ggUZjxnGUkPV4X54aOo2Q tib6xy/Zzqe9TSBnta4XylrXLbcR6eUODKaoivgVsS1F1H3TpnmQ5uu3tdK8xQdWercx zloG1zT8Pjo8JjdwZwMHrB6hVPPMIq4hCuW7acIA/soRisV6C/tSo/dl9uY0xWONWbtN 2slZFNaaMGsUq7NOh3WaRC4phC5NonU6Pq3oue1p7twcy33qK2/42IeH80jU3hIjw/ca 6/Hw== 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=uNag0u5hPAUZ2tcLhQwiR4fDC0t16GdxwwdNrwf6Wf4=; b=FxJk7FZsS/0Wb/iH/2e/X149/wgU5Nmdzye50+fInkCRPsIKcXxujQM2DBO/ElI3mn +IKY54+Zu8UUMvDllPOc9NMAXmSS3Er0YHTHCF1/GV6pjNxWJNFU2xtTXu+GIGZugX6c xnx6O4vXcgkIFl7hwBp5KWWXtYz9jnnb0eJGrjAErYGQGm5RDb5ewRzR47nY47+DNWGW 5tQzzYVLuD9jSleQBMgg54eId8YFQTqwE29xaxuS+JiafbMESmHV3mtX1EZENRwaeRfg 5UhiFy06ScuU0xlxxLGgYeM0Gb3Efguj23FNmjM4wKFf/tWrjPmc8IClANpjNqmBGq2+ v+/g== 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 y10-20020a056402440a00b004637e92aa81si4838250eda.355.2022.11.18.15.24.14; Fri, 18 Nov 2022 15:24:41 -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 S235278AbiKRXXQ (ORCPT + 99 others); Fri, 18 Nov 2022 18:23:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235311AbiKRXVN (ORCPT ); Fri, 18 Nov 2022 18:21:13 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F321E5215D for ; Fri, 18 Nov 2022 15:12:29 -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 1owA8H-0001FU-PM; Fri, 18 Nov 2022 23:46:49 +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 1owA8D-0058Lc-QR; Fri, 18 Nov 2022 23:46:46 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8D-00Hb6J-V2; Fri, 18 Nov 2022 23:46:45 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Martyn Welch 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 176/606] iio: pressure: st_pressure_i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:30 +0100 Message-Id: <20221118224540.619276-177-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?1749878184239699999?= X-GMAIL-MSGID: =?utf-8?q?1749878184239699999?= 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/pressure/st_pressure_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/pressure/st_pressure_i2c.c b/drivers/iio/pressure/st_pressure_i2c.c index 58fede861891..f2c3bb568d16 100644 --- a/drivers/iio/pressure/st_pressure_i2c.c +++ b/drivers/iio/pressure/st_pressure_i2c.c @@ -76,8 +76,7 @@ static const struct i2c_device_id st_press_id_table[] = { }; MODULE_DEVICE_TABLE(i2c, st_press_id_table); -static int st_press_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int st_press_i2c_probe(struct i2c_client *client) { const struct st_sensor_settings *settings; struct st_sensor_data *press_data; @@ -117,7 +116,7 @@ static struct i2c_driver st_press_driver = { .of_match_table = st_press_of_match, .acpi_match_table = ACPI_PTR(st_press_acpi_match), }, - .probe = st_press_i2c_probe, + .probe_new = st_press_i2c_probe, .id_table = st_press_id_table, }; module_i2c_driver(st_press_driver); From patchwork Fri Nov 18 22:38:31 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: 22624 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp450672wrr; Fri, 18 Nov 2022 14:59:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf6mRMehoQYIOf962oPXm3QQIv4HvW1/BHgmUPlHXOa+3lGfmuLNF4yYcUouYnGxh5tsgqoS X-Received: by 2002:a63:2117:0:b0:474:f7bd:9462 with SMTP id h23-20020a632117000000b00474f7bd9462mr8269695pgh.189.1668812351615; Fri, 18 Nov 2022 14:59:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812351; cv=none; d=google.com; s=arc-20160816; b=dyWpnCtamYUkGZp6NR9WV2mByoQ7gpKPoWUKBW12GKGDCNgGR0ZHfU0vJ163fDfh0q QWQo8+SuDHLTNDCbJc7S2Jch58za94TYAj988MtSVHNHh33CHxB5IttYFWJBgQwZG7bF 9Zza7t5WMyvYGjkGF75lcG/uoOTUQXb3G/eZGPuTEssHVV7uhylvKFd31lXS/LVmCEYZ AmyvncwMUoVDWJwxYiSDfQ1/8vKg7yZVtmg13EUvxXOTfIQbNOu4K7nikoyJ0/5p01uO m3XbzcIHNwELlEmIFgxZNWDcvGPnjWHX+aDPUYN8C07jnsZ+Zq3GB62WvCH5UqUqVHKb d8JQ== 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=kaSr2dNHp6T7PPWVv8UiB8CWwk5mNlaX0MJKzDhSKgs=; b=N3vBnMqOJ1plMCaA0bDHIYxaP2Njox7bNX/ra7gkmfgdQ8jTA7K5K+nvVklPSZcZqN sTyVRG9GcjVxK0hYp9+4N+GTOwDWYgk2FmtWIlMKUAqht10gC6fuRj0l5iIM9BMhtGcg G3B50Qe+SBKokTvprYPGobwaIB27fQIDwS7wCmeIIdMviBCc9+mibQVLznFPZL0KTaj3 jTrgC6NYiSg/PnF9heUcVzNpcysju7q6OLKLR/9xqyaEakSlIxkDQywZrz2vfChtJ4S0 IDXaeJZ8IDzE4gSTufMhfSeTRA3modePzC7Yv3uUHoMes4HMPKlnP/WTtmG2bpQ3che9 4ebA== 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 1-20020a630701000000b0046265702353si4556442pgh.203.2022.11.18.14.58.58; Fri, 18 Nov 2022 14:59:11 -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 S235291AbiKRW4e (ORCPT + 99 others); Fri, 18 Nov 2022 17:56:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235149AbiKRWza (ORCPT ); Fri, 18 Nov 2022 17:55:30 -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 335D8267C for ; Fri, 18 Nov 2022 14:48:32 -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 1owA8H-0001Fy-U6; Fri, 18 Nov 2022 23:46:49 +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 1owA8D-0058Lh-Va; Fri, 18 Nov 2022 23:46:46 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8E-00Hb6N-8x; Fri, 18 Nov 2022 23:46:46 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 177/606] iio: pressure: t5403: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:31 +0100 Message-Id: <20221118224540.619276-178-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?1749876580516545282?= X-GMAIL-MSGID: =?utf-8?q?1749876580516545282?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/pressure/t5403.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/pressure/t5403.c b/drivers/iio/pressure/t5403.c index 685fcf65334f..2fbf14aff033 100644 --- a/drivers/iio/pressure/t5403.c +++ b/drivers/iio/pressure/t5403.c @@ -208,9 +208,9 @@ static const struct iio_info t5403_info = { .attrs = &t5403_attribute_group, }; -static int t5403_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int t5403_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct t5403_data *data; struct iio_dev *indio_dev; int ret; @@ -260,7 +260,7 @@ static struct i2c_driver t5403_driver = { .driver = { .name = "t5403", }, - .probe = t5403_probe, + .probe_new = t5403_probe, .id_table = t5403_id, }; module_i2c_driver(t5403_driver); From patchwork Fri Nov 18 22:38:32 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: 22887 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472320wrr; Fri, 18 Nov 2022 16:00:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Do8qSkt8sI47SiNAz/Qo3K0wF7R03bVQ2fqH3EEGl1c8/Aa2z9kZAzxgwSDCu8CwC9rTl X-Received: by 2002:aa7:d998:0:b0:463:a4a7:d3f1 with SMTP id u24-20020aa7d998000000b00463a4a7d3f1mr8199008eds.299.1668816001882; Fri, 18 Nov 2022 16:00:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816001; cv=none; d=google.com; s=arc-20160816; b=kSPhxPWtU5asDC5kXJXeaaR8e70U5Zn1pJNQ3DMnWxQy3OsF7tpcvPH9Lvh1vOBAAO M33DElseAy7qT9MjgZIrmnqkSO0raRGawO3ftu5yTLo4sp1R27UHoe0cku0xREFSNUee A1H4UibyVLjO+DHc0Fs9mFM7xUp6vbMjQWiHXb5aMoz1CVS3jVUUVhAOj6JuWuU307Bu WSzGvSeHayyfOIATSupK87HUpn2JtCXKUV8/7UbZIFUY8+zSdMoqGvHPqlpUtWdF33q+ oZKKKnAt+w3ehGUFYJxuEYqQKJFOU4chEd+fqNCROYZfwUp3I4dMMtlEZ5ilsmsKOtBe R+5w== 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=wcIcpcl6PY2XNrjWls+47tfpwk0auJGZHyVFLpPHErA=; b=qvYkHqS6s3zaNR6aI5zVdlAjeXf2JL6F+1xtDcBTh4+Myi7Qo0bwBYVex2Mtrfi28X BrvUIxeMUKy4N7W2v6o9I/DkxXaEvWdQPJ9ZqjSxJben6ca81fwHXJwxxed3+Ht60/4P y5jjc+slJD8pZLqbyPbT44fkpVb+7LU/8aZa4afRmhz9BEq2dfTUHIMjsObiHIrtPSVh bKiqiqpsbNqoDhaDqij/f3ZYxFj34rjcgwLLUWhL8Hyjpkb3DgKMxGYk1tDE+zuW2WM+ b/ZdnTbgWXbvPEgDVlMnLj2yz/EwNWvM2SCKQKjx1I+LjW3zgmTGHdtqP5NGPFaDoCuk u9IA== 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 wz13-20020a170906fe4d00b0072a477a55e0si3850767ejb.369.2022.11.18.15.59.35; Fri, 18 Nov 2022 16:00:01 -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 S237072AbiKRXx3 (ORCPT + 99 others); Fri, 18 Nov 2022 18:53:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236980AbiKRXv7 (ORCPT ); Fri, 18 Nov 2022 18:51:59 -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 1B6A9C7589 for ; Fri, 18 Nov 2022 15:27:17 -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 1owA8I-0001HR-7A; Fri, 18 Nov 2022 23:46:50 +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 1owA8E-0058Lm-9s; Fri, 18 Nov 2022 23:46:47 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8E-00Hb6Q-JQ; Fri, 18 Nov 2022 23:46:46 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , =?utf-8?q?Marek_Beh?= =?utf-8?q?=C3=BAn?= , Jeremy Kerr 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 178/606] iio: pressure: zpa2326_i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:32 +0100 Message-Id: <20221118224540.619276-179-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?1749880407953901006?= X-GMAIL-MSGID: =?utf-8?q?1749880407953901006?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/pressure/zpa2326_i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/pressure/zpa2326_i2c.c b/drivers/iio/pressure/zpa2326_i2c.c index f26dd8cbb387..ade465014be1 100644 --- a/drivers/iio/pressure/zpa2326_i2c.c +++ b/drivers/iio/pressure/zpa2326_i2c.c @@ -38,9 +38,9 @@ static unsigned int zpa2326_i2c_hwid(const struct i2c_client *client) (ZPA2326_SA0(client->addr) << ZPA2326_DEVICE_ID_SA0_SHIFT)); } -static int zpa2326_probe_i2c(struct i2c_client *client, - const struct i2c_device_id *i2c_id) +static int zpa2326_probe_i2c(struct i2c_client *client) { + const struct i2c_device_id *i2c_id = i2c_client_get_device_id(client); struct regmap *regmap; regmap = devm_regmap_init_i2c(client, &zpa2326_regmap_i2c_config); @@ -76,7 +76,7 @@ static struct i2c_driver zpa2326_i2c_driver = { .of_match_table = zpa2326_i2c_matches, .pm = ZPA2326_PM_OPS, }, - .probe = zpa2326_probe_i2c, + .probe_new = zpa2326_probe_i2c, .remove = zpa2326_remove_i2c, .id_table = zpa2326_i2c_ids, }; From patchwork Fri Nov 18 22:38:33 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: 22670 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp461206wrr; Fri, 18 Nov 2022 15:26:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf6mDtYuT67OvKZSH5SVsdq3IwKKK3fJi+XxkVNFrP7J4gkX7NDxWOVCZr+yYmcTBx28Lcw4 X-Received: by 2002:aa7:d056:0:b0:464:4aa1:289 with SMTP id n22-20020aa7d056000000b004644aa10289mr8094432edo.423.1668813990428; Fri, 18 Nov 2022 15:26:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813990; cv=none; d=google.com; s=arc-20160816; b=tYk5fcUODvMESlH0GuKr6bIsO7dI9W2cgL/eEOcETIbTr1RFfQ8w5BVqJN8eIhk/hl GHuTHh4JecRTIky5W5XlsP/5NEQlULBcDfyyMleScSeiPR0Zn6ZfvasJEvjBClioWr04 07g3S/z8sqplDcxNEJr10M0hcwrYpIQ+1uOn1y4rZ8l3xf0GSRHCofNc7lXWfVDx1V0b wnWyqM17O0nptKkwrsKsikBeby8quBUixElmL0FcwA5dIsjR0FhWAlEkFe54mz/u0xxZ gZOCqhw33sGGLoPpqLW4mpiEXF0xJScZqxlw8E9j4rba+tifzAiZVLGeLcQYJtAMyNQX 1gyA== 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=28o8oLV/NBY+E4B8Ejba452c1OvkDp4YzJZFHoeWPLg=; b=XZpieOUos2NpTEOlQDEq7MSVLqrVTTKd55B9LhXrFtnGWUSuT0UVtZ7LqirXugJ5uY zENwxjavqq8HKAq1dNQ+QneE5jKywCARIatcTMPjOPqbCxYOvADQHFdqXRNl0cIJj7aL AjKJieTNK68hpile3byrlquRGt+YIFBQhdUpV13XTAgr4st9RUlmuKYnLEIboPdvNgGW u5hp+9KUPCk/gC4uYz65YtL50gm7L0jJGRpR/7yA66v4/hUi5qES7CvlzIC+Niy/EFPq jf6v/vseTJGUh7PC56VWdG2Tu1uUmTE57k/gC3Sbg/VPMoNIL6kSee2/n3muFNhiqVrR 2uug== 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 q2-20020aa7cc02000000b004627741e339si3928585edt.113.2022.11.18.15.26.06; Fri, 18 Nov 2022 15:26:30 -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 S235666AbiKRXZK (ORCPT + 99 others); Fri, 18 Nov 2022 18:25:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235654AbiKRXWY (ORCPT ); Fri, 18 Nov 2022 18:22:24 -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 79086A6A1A for ; Fri, 18 Nov 2022 15:13:19 -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 1owA8I-0001Ld-Um; Fri, 18 Nov 2022 23:46:50 +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 1owA8F-0058M0-7l; Fri, 18 Nov 2022 23:46:48 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8E-00Hb6V-Va; Fri, 18 Nov 2022 23:46:46 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , 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 179/606] iio: proximity: isl29501: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:33 +0100 Message-Id: <20221118224540.619276-180-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?1749878299096430110?= X-GMAIL-MSGID: =?utf-8?q?1749878299096430110?= 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/proximity/isl29501.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/proximity/isl29501.c b/drivers/iio/proximity/isl29501.c index 5b6ea783795d..7b8f40b7ccf3 100644 --- a/drivers/iio/proximity/isl29501.c +++ b/drivers/iio/proximity/isl29501.c @@ -949,8 +949,7 @@ static irqreturn_t isl29501_trigger_handler(int irq, void *p) return IRQ_HANDLED; } -static int isl29501_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int isl29501_probe(struct i2c_client *client) { struct iio_dev *indio_dev; struct isl29501_private *isl29501; @@ -1009,7 +1008,7 @@ static struct i2c_driver isl29501_driver = { .name = "isl29501", }, .id_table = isl29501_id, - .probe = isl29501_probe, + .probe_new = isl29501_probe, }; module_i2c_driver(isl29501_driver); From patchwork Fri Nov 18 22:38:34 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: 22886 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472306wrr; Fri, 18 Nov 2022 16:00:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf4F/zOi0U8U/iZ0Kuzua7pEPJsJY+FMhuFMlOzAsCWKnPIhOJzCSaP+F5vl3cZpWC5QB0Kf X-Received: by 2002:a63:444b:0:b0:46f:eb81:c997 with SMTP id t11-20020a63444b000000b0046feb81c997mr8644406pgk.379.1668816000627; Fri, 18 Nov 2022 16:00:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816000; cv=none; d=google.com; s=arc-20160816; b=Oj6F20g24v1UF4rZcPpZZ6xEJcDb3StZiYtX1ur5Ft17BeO2tWGAbLAElwnqsmuU3O 9GObjZAzYE3/SkjMVW+5spKPJwPtud3YiL7gulYLRr9mPqb1EZtcZivEF3lDBXTX2E8S /rvn/QKL+APq+TAtq8yrVCrVHIlGt79CqYjzYSvpFKhMjPS0Xmjf9ia998zjvMNSzasP dYBgOyAWxA+4AZdMwZI2e/KNji1ZCumcYLTdyyYjC1ANBVWX5QjMR7YgOP1NowZGsfct dNdNohGQVZ6QI2F41ivBHpXZ4N0ue398xmv6L3j1mEhVshphHU+qw/DaG4TOanrgrfls a/wg== 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=qJI2te22s4o7EIzj2uyOYKFQS5ZgfwzP2YLg/VhaavA=; b=lvFivdxA8bJEShZCN1cgEnCrD1zfX97frZKl1otON0qd+Tw9y5KvF4UrLkmZIu5zv0 7HtohQd7Kfd9vlfTO3aYhznAZ7r3WFzfeJK+iZHQsPoF09Hro/Y7WYE+U7n5j8kZWfO2 Ty+rlDfnrTTMWm3vbwU4zkzBIGN7nCM9hhjoDXjl9ZlvKBmdrhn4D0AvLkDkPj13CbvI wRBPBbbR9xh7H2Uui7UoCJpTAsXTgHpglf4tjDcoWKiwGv5eqRDgqIxDecBjidPOsEoC zBtAqBIpkrd8NZplYJXuY6NAcroMEVfeiy2QIZyPo37Hbta4UVjEkhOo2MdHKfhAdNik /ndA== 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 e6-20020a056a001a8600b0056ce934bea2si5336685pfv.353.2022.11.18.15.59.45; Fri, 18 Nov 2022 16:00:00 -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 S231954AbiKRXx5 (ORCPT + 99 others); Fri, 18 Nov 2022 18:53:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236896AbiKRXvo (ORCPT ); Fri, 18 Nov 2022 18:51:44 -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 10BB0DDFBB for ; Fri, 18 Nov 2022 15:27:10 -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 1owA8I-0001Ku-Q5; Fri, 18 Nov 2022 23:46:50 +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 1owA8F-0058Lw-2C; Fri, 18 Nov 2022 23:46:48 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8F-00Hb6Z-9U; Fri, 18 Nov 2022 23:46:47 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andreas Klinger , 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 180/606] iio: proximity: mb1232: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:34 +0100 Message-Id: <20221118224540.619276-181-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?1749880406581055990?= X-GMAIL-MSGID: =?utf-8?q?1749880406581055990?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/proximity/mb1232.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/proximity/mb1232.c b/drivers/iio/proximity/mb1232.c index 0bca5f74de68..e70cac8240af 100644 --- a/drivers/iio/proximity/mb1232.c +++ b/drivers/iio/proximity/mb1232.c @@ -180,9 +180,9 @@ static const struct iio_info mb1232_info = { .read_raw = mb1232_read_raw, }; -static int mb1232_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mb1232_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct iio_dev *indio_dev; struct mb1232_data *data; int ret; @@ -264,7 +264,7 @@ static struct i2c_driver mb1232_driver = { .name = "maxbotix-mb1232", .of_match_table = of_mb1232_match, }, - .probe = mb1232_probe, + .probe_new = mb1232_probe, .id_table = mb1232_id, }; module_i2c_driver(mb1232_driver); From patchwork Fri Nov 18 22:38: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: 22622 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp450649wrr; Fri, 18 Nov 2022 14:59:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf4kyWVEG1J9fYTIKBI+pewenhhjwhCF31Ksyv6SF/DBva88YxDszS3ylPutdtLnj9GXUDEU X-Received: by 2002:a63:2160:0:b0:46f:f26e:e8ba with SMTP id s32-20020a632160000000b0046ff26ee8bamr8679696pgm.250.1668812346939; Fri, 18 Nov 2022 14:59:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812346; cv=none; d=google.com; s=arc-20160816; b=zrR0zFuHjIj6BzeBq1nz/e8rE3VtGCGvJrdwkuLeifFP4Y7wEybJ9exD4oOqonyFzj Yq94kydaj1srE1/UXMrxt7b6O3Fpx244UUI/oSkteVSH2Jgx7GjctbbtnhRLadBbOjvt 7mOxM8mMvhhkleEdTlla9oW6fPFlmU0dpFju2k2e7ARV9gH/4Qy/rfLW2msq4BX6fFaN 2kzeivafC6DObYeOuhgG3yBbcq5UCl6saiZkKQn8QaTBoXcv9dam+Dh5RYGRqr6Q3SaE hn+v5a/VuTHshlYiluf2mrd6EfW9yfFvREZQBxC2FBBB9cRzZ3eWoAcesjTjdak7VODB sWHQ== 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=VAD9jn1ufsOCtX6RZTM697odxoJP0rbhIB2E8BujHqU=; b=GXwd/+tWDR91ux/aYxUhGIq1nnre6ejTAFhBFyKcL7PKKrrnoQW2PIPD+6Rp8HeuNG Thw1ufa7lmlMq8pgDBCb1c27hhjxzEUH47IsMtjG/oaM1JpbyeTe7SYktcLkFN8+Ow/Z DnpUQpDSN0DyhcYSv7NsFLeULIBd5d/jhptg7omssVFwCDpjReG0IZj/3YHce7hYC0bT T+OybCfs5FpWnFyXn7dTr83o490lolLT0msD09hAhjFFcZlRs914QUc5VT36SQp3ye7d 6Fkd3QT3qw/CT27VHpMJBnHxUSu7Y22saMNd7R8pkTXUNf4rA8/Gj/q2drDsCpDPCsKk uF5A== 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 196-20020a6302cd000000b0046b208f6affsi5004400pgc.621.2022.11.18.14.58.52; Fri, 18 Nov 2022 14:59:06 -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 S234209AbiKRW4K (ORCPT + 99 others); Fri, 18 Nov 2022 17:56:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235102AbiKRWzZ (ORCPT ); Fri, 18 Nov 2022 17:55:25 -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 2ED42109D for ; Fri, 18 Nov 2022 14:48:28 -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 1owA8J-0001Mi-Ge; Fri, 18 Nov 2022 23:46:51 +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 1owA8F-0058M5-GI; Fri, 18 Nov 2022 23:46:48 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8F-00Hb6d-HC; Fri, 18 Nov 2022 23:46:47 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , =?utf-8?q?Marek_Beh=C3=BAn?= , Ajay Gupta , Paul Cercueil 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 181/606] iio: proximity: pulsedlight-lidar-lite-v2: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:35 +0100 Message-Id: <20221118224540.619276-182-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?1749876575456914746?= X-GMAIL-MSGID: =?utf-8?q?1749876575456914746?= 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/proximity/pulsedlight-lidar-lite-v2.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/proximity/pulsedlight-lidar-lite-v2.c b/drivers/iio/proximity/pulsedlight-lidar-lite-v2.c index 791a33d5286c..c9eead01a031 100644 --- a/drivers/iio/proximity/pulsedlight-lidar-lite-v2.c +++ b/drivers/iio/proximity/pulsedlight-lidar-lite-v2.c @@ -253,8 +253,7 @@ static const struct iio_info lidar_info = { .read_raw = lidar_read_raw, }; -static int lidar_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lidar_probe(struct i2c_client *client) { struct lidar_data *data; struct iio_dev *indio_dev; @@ -366,7 +365,7 @@ static struct i2c_driver lidar_driver = { .of_match_table = lidar_dt_ids, .pm = pm_ptr(&lidar_pm_ops), }, - .probe = lidar_probe, + .probe_new = lidar_probe, .remove = lidar_remove, .id_table = lidar_id, }; From patchwork Fri Nov 18 22:38:36 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: 23114 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488044wrr; Fri, 18 Nov 2022 16:44:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf43Bv+yi9zQwCh49XGwkVXDWband5rK/QnyWr4iYhcRdvxhal+/gIOgGY8Kiqb0vhrD33lm X-Received: by 2002:a17:906:a107:b0:77f:9082:73c7 with SMTP id t7-20020a170906a10700b0077f908273c7mr7680734ejy.517.1668818691471; Fri, 18 Nov 2022 16:44:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818691; cv=none; d=google.com; s=arc-20160816; b=m013FFSZ76zA7xN3dcPPFDq5aV071WPxph769D8D2ZQxTKmvLAX5ANRziKcT6YvNo4 kg2KMfWllQbwoJzcet+W0iLyPNAqup7Gt+f3vq6tXAGtlW2mVNxJTJMeJYlGQLmNIMUs L88Z0m6J9gK+1YAl9WhqfUCIcb0wdCqCfXqX+qJKag/78J6rIyJH82Q5TPiJMQ/QAseX Luu1c9Ke4c2OWun5aISKEcgiOrl5I58nlz/cWIZMgliN9AFe1GWGTCWvLlNwnyZ0pPXe 77gG3Eohig103cFH0k2wNBwZrEjq3+407XZ75KRU01isxD791bq1ibaJUslRb++QHZSm DlSA== 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=M9NQsEdyagCWxFcLq2eYBdcjOyuwyxZc9tniJm5q/Kk=; b=B0wHZ0RaLFvfm7mh68AaShbAVoIII9Ro3TVd1Ja0efsPm/6/stsUyubb3kE6ilqxnV ssKCg2WOAHUeTzADJw6MLE95Hl4QL8P6p6nY7AeXfZnW2oTHDWpQEMV6lvoHlrPX49P+ ya10HmGngkVbQjHABLolWUushqfLhS+x3X726nLL9X8NXwLXLIcTA3HziVPmSr/g0rNl bo+A2QUP3Kri+6XD7sRkFE8kNO+v6n1wEfS1KVb/0l8uB5tCXL+vTwk0LpaahjZktX7A nEhLA5uh1I+72ZJqZgB61txg5FaQtrK/nO2xq4zbseucnoYneY2CRrTaOYDH9IrSaoyV Xgbw== 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 sd42-20020a1709076e2a00b0078a30f54c57si4887265ejc.32.2022.11.18.16.44.27; Fri, 18 Nov 2022 16:44:51 -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 S237023AbiKSAlU (ORCPT + 99 others); Fri, 18 Nov 2022 19:41:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235998AbiKSAj5 (ORCPT ); Fri, 18 Nov 2022 19:39: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 87DBBC80CD for ; Fri, 18 Nov 2022 15:44:36 -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 1owA8J-0001NW-Mu; Fri, 18 Nov 2022 23:46:51 +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 1owA8F-0058MB-N7; Fri, 18 Nov 2022 23:46:48 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8F-00Hb6g-OF; Fri, 18 Nov 2022 23:46:47 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Gwendal Grignou , Paul Cercueil 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 182/606] iio: proximity: rfd77402: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:36 +0100 Message-Id: <20221118224540.619276-183-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?1749883228152676444?= X-GMAIL-MSGID: =?utf-8?q?1749883228152676444?= 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/proximity/rfd77402.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/proximity/rfd77402.c b/drivers/iio/proximity/rfd77402.c index cb80b3c9d073..44f72b78bd50 100644 --- a/drivers/iio/proximity/rfd77402.c +++ b/drivers/iio/proximity/rfd77402.c @@ -257,8 +257,7 @@ static void rfd77402_disable(void *client) rfd77402_powerdown(client); } -static int rfd77402_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int rfd77402_probe(struct i2c_client *client) { struct rfd77402_data *data; struct iio_dev *indio_dev; @@ -319,7 +318,7 @@ static struct i2c_driver rfd77402_driver = { .name = RFD77402_DRV_NAME, .pm = pm_sleep_ptr(&rfd77402_pm_ops), }, - .probe = rfd77402_probe, + .probe_new = rfd77402_probe, .id_table = rfd77402_id, }; From patchwork Fri Nov 18 22:38:37 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: 22946 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474812wrr; Fri, 18 Nov 2022 16:05:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf7HSX9u6KSpv33NvhPRtu/y0kLUGCqAO3XGyDCBhJXNUfexrEWwJ8GXy3tan4oXOCRAUuaU X-Received: by 2002:a17:906:c0c:b0:78d:77b1:a433 with SMTP id s12-20020a1709060c0c00b0078d77b1a433mr7887823ejf.486.1668816302671; Fri, 18 Nov 2022 16:05:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816302; cv=none; d=google.com; s=arc-20160816; b=mM4d8yliaBhl0472WxxA1Wg5Q33U+NjjEPwj+EMhdAdi/Lq0cODc0SwwJKWMcTUlVt IWhZXlpGR6E5sC1jPUw28yZA/v/1XH1ARhgJUW+QvXM09U05p/oJcY/MMlVEa+1NgqSy ZIhl6Upqgu2AK8/eHkWo1naYDKaSR8SAo7k8Kd7z2RJ/mTCnDNOtpwHvBffd24EInZe+ QoeaedoU0E4JbeoL4nYIRHxW9Ij1XLZpgMEQ5ubD/EoXTsrMLo57nK8zfNEwIsVADs14 MCIFPbDjMstpFGzBmFg5D5FBwFC55aNlLc4Q7KqHaV4ZHtFSGWDwtjMLlCki/X+ocm9S BLYg== 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=u4C2uz/NZiWwmrm/Ird9RfMUJ4mcVQU5hFaa8DZ2qnE=; b=W7lPEnTH31Zn/SVi29PA0+b9Gi/v/aHe3H1RpFqpdRLfP4Hpgj3Ww3ck+N79L8XAAI bRFX38/KQKp4lum1phoCjftfQimzqgYUNWfJGz3T47fgsji0MgHumL1LAYlr2ve0bFqs VqXJ8D/Qabk8CQg2V4yTkGtaSKQ4JYdCPUTyprfjJ0DFECt4Hw3W+NFQUp7ox+BUy9po 3f/X0FqM2JEXeEHVifNz4xyAPN91NJH35eaUPQKqk1rrNwiSqbb7D19bj7FzMrw0+Ejn 7WMIcSGldnR4Gh1AeYq0jZJdbmOHzib4Ky030vgHQ5l6XOsEkThganNEVUwLe7cgBmTp MTWQ== 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 q12-20020a056402248c00b00459b0141076si3988985eda.465.2022.11.18.16.04.35; Fri, 18 Nov 2022 16:05:02 -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 S237118AbiKRX6x (ORCPT + 99 others); Fri, 18 Nov 2022 18:58:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235022AbiKRXzo (ORCPT ); Fri, 18 Nov 2022 18:55:44 -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 6A86EBEB47 for ; Fri, 18 Nov 2022 15:28:17 -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 1owA8J-0001PP-Uw; Fri, 18 Nov 2022 23:46:51 +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 1owA8G-0058MM-87; Fri, 18 Nov 2022 23:46:49 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8G-00Hb6j-1y; Fri, 18 Nov 2022 23:46:48 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andreas Klinger , 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 183/606] iio: proximity: srf08: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:37 +0100 Message-Id: <20221118224540.619276-184-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?1749880723534205853?= X-GMAIL-MSGID: =?utf-8?q?1749880723534205853?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/proximity/srf08.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/proximity/srf08.c b/drivers/iio/proximity/srf08.c index 7ed11339c31e..61866d0440f7 100644 --- a/drivers/iio/proximity/srf08.c +++ b/drivers/iio/proximity/srf08.c @@ -443,9 +443,9 @@ static const struct iio_info srf02_info = { .read_raw = srf08_read_raw, }; -static int srf08_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int srf08_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct iio_dev *indio_dev; struct srf08_data *data; int ret; @@ -549,7 +549,7 @@ static struct i2c_driver srf08_driver = { .name = "srf08", .of_match_table = of_srf08_match, }, - .probe = srf08_probe, + .probe_new = srf08_probe, .id_table = srf08_id, }; module_i2c_driver(srf08_driver); From patchwork Fri Nov 18 22:38:38 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: 22954 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474996wrr; Fri, 18 Nov 2022 16:05:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf7P8YEgrPDkrdIucFKNjOY94RbhICt+Z1aE2ZBsSe0k5iGu+J9UdfQ7UqZFON3tKCUlkTS7 X-Received: by 2002:a63:5a48:0:b0:45f:88b2:1766 with SMTP id k8-20020a635a48000000b0045f88b21766mr8726348pgm.357.1668816327191; Fri, 18 Nov 2022 16:05:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816327; cv=none; d=google.com; s=arc-20160816; b=MTx/KFir/TiIaKKO4UDIjAczIDCX3UK78iX9aOFgWcl4jET6fAcrlGYUgkwUkd7rF7 zMByHu5Umn4qUoiuRG3sWxWYUcxaYDF0bt7hyTuvHFgTZar7fiB88IW+Dd+hCM8nxpjL +/3Ub33uBUdN0RqyeQZAFI4iTZ2g0kdFCYzJyzqPFRrZThT1DAKR9dcsPsR8fmEjw4ig Ub46kfJA9imP6jDkKyphzZ/bTEH8qp41SHYzLRN/7s6FGtBquqYQi1Zz3g+0wdo9THcx tQNCNgRXP+ftOqqvnDA9yO/cl5tpYTwuhzUJ5PtIs+DiIn24zg73kX3FRSjLnw1VXDk1 yoxA== 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=dnjldJlr/fhp2JKow7XkCOlmcRNes9zRXksi9xSyRNQ=; b=dC4tDxe4V7fdv1KhhEupZX3MOtj+YQpDioqUPlb3UXUTCAPOK/SS8JckIi6/pJbRNO 4KdZ75MmtsadzupPYk42kn/IEa6QzE/97eECED+iaNR3bDIFdCN1P9sqh7Eh8Eq6Myvn puyWpBkkNlPLPFw+pCT+VlJas2wMxfSn3I7E7xJMX3V0Te9g41UKm4UoJlWBcKAtmtey nG2hxIdt8OJX+vRL1PBAUlsDh3KxM2xulpI2PR6YwBYerkGbDBL7XRb+k6BzdToYcz7n KlD4BVlN3DyhxegEkKdoGlk0IsYyF7rd58Tbu1JTixuS9oHuqjvDTTQ+8yI66T4xtq7H +KaQ== 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 d15-20020a170902cecf00b001729cfb3cb5si5308333plg.610.2022.11.18.16.05.11; Fri, 18 Nov 2022 16:05:27 -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 S237339AbiKSABD (ORCPT + 99 others); Fri, 18 Nov 2022 19:01:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237539AbiKRX6V (ORCPT ); Fri, 18 Nov 2022 18:58:21 -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 0CC13CEBA3 for ; Fri, 18 Nov 2022 15:29:19 -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 1owA8K-0001OW-28; Fri, 18 Nov 2022 23:46:52 +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 1owA8G-0058MG-1C; Fri, 18 Nov 2022 23:46:48 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8G-00Hb6o-9l; Fri, 18 Nov 2022 23:46:48 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Petr Machata , Miguel Ojeda , Gwendal Grignou 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 184/606] iio: proximity: sx9500: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:38 +0100 Message-Id: <20221118224540.619276-185-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?1749880749218293745?= X-GMAIL-MSGID: =?utf-8?q?1749880749218293745?= 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/proximity/sx9500.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/proximity/sx9500.c b/drivers/iio/proximity/sx9500.c index d4670864ddc7..8794e75e5bf9 100644 --- a/drivers/iio/proximity/sx9500.c +++ b/drivers/iio/proximity/sx9500.c @@ -901,8 +901,7 @@ static void sx9500_gpio_probe(struct i2c_client *client, } } -static int sx9500_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sx9500_probe(struct i2c_client *client) { int ret; struct iio_dev *indio_dev; @@ -1056,7 +1055,7 @@ static struct i2c_driver sx9500_driver = { .of_match_table = of_match_ptr(sx9500_of_match), .pm = pm_sleep_ptr(&sx9500_pm_ops), }, - .probe = sx9500_probe, + .probe_new = sx9500_probe, .remove = sx9500_remove, .id_table = sx9500_id, }; From patchwork Fri Nov 18 22:38:39 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: 22825 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471298wrr; Fri, 18 Nov 2022 15:56:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf7u4QthbP8dghwr4PIoiKXuzcfmX+HKPZl3DauscSqZ9bwo9OoohR0xngK5aGpsTUqhlqDh X-Received: by 2002:a17:906:3792:b0:7aa:97c7:2bfe with SMTP id n18-20020a170906379200b007aa97c72bfemr7738628ejc.196.1668815784440; Fri, 18 Nov 2022 15:56:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815784; cv=none; d=google.com; s=arc-20160816; b=fsJFfC4NGQFVc1VhR5kkfzq2Hv7FDJI9AuRKt19ABkFTi3hNScpB+V5KvBoQNxQH7z Ss+oO+dYY2bgb1mllsec2Fl/behHdJWUGp96bajqI0xo4AhgTiFWXA0j481ATmwCCtv9 aOWk84bwg9ymolP+maoqdtKxpuh35UMR9zOhkJ+NXS4EXiF+LT16JTy0u3x/RNS6+MmL vxHwSZM06s185M3nQngLw+X42IH4BV3kPH1XHq/53N11MoRHE7rQ8UUT2Vb8KVjL1DZN YoQT06DaGY2saWfU7RELxxgDNI6aCRGAq3ZLW/bmUJIVAdeb1j775f7Cf+O5uod/03VS VKtA== 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=XU82hKg/vDFQEnfnCUesc2PvJQkuFL28fM3PbLgqAQE=; b=uTFsfPO3I8Jhk0cGeqGrsZanUM0mkUBT5vretbNu6FCkP5LJHp/vt7sKOo2rk9XbUP x3Nc2UeGc2eS0LA/ZXgK853BpVF+FFRCEoOeNHWBEHODmnp4jN/77YkqHa2rsYzz5CFv NYXmFmzRDDbl4LsmW9dEuA0sNWKj4QWQVhWA9laVXrj2kHmHvNUVqCAZmaOsPuM2JpLu wKXbrvFjJKXzjwPr2D9G970lSsD19122b5yMarOCCfT3rSJX3F3FKldN3Xg7TZWM0ifG JILiqcSIhYGp7EozMFrLz7JRxWgRoHPui9XlOG2mz/47Mx/QFRMxdVSLenSSZYAVMBH3 XErQ== 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 be1-20020a1709070a4100b0078def5c29e3si4620459ejc.596.2022.11.18.15.56.01; Fri, 18 Nov 2022 15:56:24 -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 S236700AbiKRXoL (ORCPT + 99 others); Fri, 18 Nov 2022 18:44:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236809AbiKRXnu (ORCPT ); Fri, 18 Nov 2022 18:43:50 -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 3267DC72FA for ; Fri, 18 Nov 2022 15:24:12 -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 1owA8J-0001PN-Rc; Fri, 18 Nov 2022 23:46:51 +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 1owA8G-0058ML-7f; Fri, 18 Nov 2022 23:46:49 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8G-00Hb6r-Fk; Fri, 18 Nov 2022 23:46:48 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Crt Mori , 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 185/606] iio: temperature: mlx90614: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:39 +0100 Message-Id: <20221118224540.619276-186-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?1749878025136684843?= X-GMAIL-MSGID: =?utf-8?q?1749880179876881415?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/temperature/mlx90614.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/temperature/mlx90614.c b/drivers/iio/temperature/mlx90614.c index 8eb0f962ed25..909fadb62349 100644 --- a/drivers/iio/temperature/mlx90614.c +++ b/drivers/iio/temperature/mlx90614.c @@ -537,9 +537,9 @@ static int mlx90614_probe_num_ir_sensors(struct i2c_client *client) return (ret & MLX90614_CONFIG_DUAL_MASK) ? 1 : 0; } -static int mlx90614_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mlx90614_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct iio_dev *indio_dev; struct mlx90614_data *data; int ret; @@ -675,7 +675,7 @@ static struct i2c_driver mlx90614_driver = { .of_match_table = mlx90614_of_match, .pm = pm_ptr(&mlx90614_pm_ops), }, - .probe = mlx90614_probe, + .probe_new = mlx90614_probe, .remove = mlx90614_remove, .id_table = mlx90614_id, }; From patchwork Fri Nov 18 22:38:40 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: 22724 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464049wrr; Fri, 18 Nov 2022 15:33:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf7YwGTpcUcjJYGiciLdhy3K0P3/EFPB/MBxYHIek3KNEbdG+2T4lBJX6AnKWOgmQ0MuIY0u X-Received: by 2002:a17:906:eb54:b0:7ae:415:3fb5 with SMTP id mc20-20020a170906eb5400b007ae04153fb5mr7336671ejb.255.1668814436067; Fri, 18 Nov 2022 15:33:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814436; cv=none; d=google.com; s=arc-20160816; b=BGVJWgD9gtD+uN4Mh5tH7FaMTPb4aTkoASRTHUKrGWrvjNkX/JjtwBG/kqgBMh7xv2 P3tQLpYmddQ6oe8C1/GHyPTZcMK6PTjuICO6eDaDizZJiQuSeIemfuX/bE+giroLGao1 UYUILeQfWV36+C/pMQ7aqE9yVgPOyM+U+n6FayeTbp4wBDWhqsSMGYIkQpEfM+wAf1X8 HV++JkSpp396DKQ09sWVwEaH6Jcn3MVD3Tc5rnokOraAndrQgAmg82gyQ8fsq7Vlq4KV br5bD35bT5i3J/w4NBx4t+S46TEzwUaxyyf/Kj8IV5dG9REsX7U+GSSvDfSecVVipFYu c6fQ== 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=pcFU4R9nwaaKzGeK4otUl83NIPIBgOJ7QyvpwbJ0zAI=; b=nNoTi170/shPCXPeccPKNFNwX3CFnxI/9pz6a0NPd+BctbjjCY2wEsq/i9h2OuUMz+ XWW2hnuiLdvaUL8XTISxSgMS0UISV7jIw0Id3cRZqQ+5J3ea6Ibof080QEpoC/sJ6fTD Rf1LRjYWNsDlMw7DFv0bxzgEC1cNFSFcB/jD04K1kac+88UwstVkypjCvfqKFC/NaElU ZH+rtzQfwEn/BNTZgzG7pEghG0vnqAffpqEfCiUZ2949CKZEURZ4GlIZx93e6iAYulbT 5vV98D9p4MLh69JiqxP46ExL/sfw0FkSUWjuw5qyqKcM4RKdNnTiTudEbnKdleGu7l+M eJbw== 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 hv20-20020a17090760d400b007ad8218a472si4106092ejc.242.2022.11.18.15.33.32; Fri, 18 Nov 2022 15:33:56 -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 S235577AbiKRXbp (ORCPT + 99 others); Fri, 18 Nov 2022 18:31:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235963AbiKRXaX (ORCPT ); Fri, 18 Nov 2022 18:30:23 -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 2A8B575D9A for ; Fri, 18 Nov 2022 15:18:14 -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-0001S8-4i; 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-0058MX-0X; Fri, 18 Nov 2022 23:46:49 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8G-00Hb6w-Oi; Fri, 18 Nov 2022 23:46:48 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Crt Mori , 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 186/606] iio: temperature: mlx90632: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:40 +0100 Message-Id: <20221118224540.619276-187-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?1749878095915217732?= X-GMAIL-MSGID: =?utf-8?q?1749878766378991336?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/temperature/mlx90632.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/iio/temperature/mlx90632.c b/drivers/iio/temperature/mlx90632.c index f1f5ebc145b1..19e30cfca8a7 100644 --- a/drivers/iio/temperature/mlx90632.c +++ b/drivers/iio/temperature/mlx90632.c @@ -1168,9 +1168,9 @@ static int mlx90632_enable_regulator(struct mlx90632_data *data) return ret; } -static int mlx90632_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mlx90632_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct mlx90632_data *mlx90632; struct iio_dev *indio_dev; struct regmap *regmap; @@ -1337,7 +1337,15 @@ static struct i2c_driver mlx90632_driver = { .of_match_table = mlx90632_of_match, .pm = pm_ptr(&mlx90632_pm_ops), }, +<<<<<<< ours .probe = mlx90632_probe, +||||||| base + .probe = mlx90632_probe, + .remove = mlx90632_remove, +======= + .probe_new = mlx90632_probe, + .remove = mlx90632_remove, +>>>>>>> theirs .id_table = mlx90632_id, }; module_i2c_driver(mlx90632_driver); From patchwork Fri Nov 18 22:38:41 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: 23144 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488607wrr; Fri, 18 Nov 2022 16:46:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf78qIIbj3W+m9k+1BXrGG6WoI8ThLUhwOPsHzwDbtgz3F7Fd9YAtUoSlaBcftLCGFV2V1EH X-Received: by 2002:a17:90a:1a12:b0:20a:6ffc:f0c6 with SMTP id 18-20020a17090a1a1200b0020a6ffcf0c6mr16455838pjk.49.1668818785440; Fri, 18 Nov 2022 16:46:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818785; cv=none; d=google.com; s=arc-20160816; b=X0cW628wxagMvKPMMXa2BVEpQm0wt/SgaB6Xf6jGEOgnFpe15R3YhSyZ9NZJREoaST t+LUXnb+JpKsFlUDIiolauFEam+4HJH+yVZYoaEY96IbkhDk9cTEkV0VvvrUXZ1C9O4u kZ6dxmrXMnmhPpBNusLCnQaJT9Orp1XMw1zD2+fThMutQ1mQf5ogEPBt4iIjMuOP6fkm 1lS6HyFDL+t8pqlD5DkaR+EGPZPBGldNMqRIjFGg2FIzjDTqUxatCMnxGBUXSslniMvi RnBZTJcO7EoSv7VWBHC2AFGcFF+LMw0UTFI3mbGlfxTEfISw76k1Q2Nzd361koZX2dt/ DA2w== 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=mH2OTxXcWS8Sp38skC6MOCM5txSjKQoobvky5V0XEtI=; b=oeQVuyfk9E1RDdrNKTx2uFHFscA0smYW+ekzLd0BJ6s6D1ACdH6m+k/hZa6XG2zTDV W7kOS20rzPWSBftxusocj+g+UOKXZE2t/dW7QIk5aNFe47hPsszQjKXw+RX+s/ez4zmR gzhghAYR1hYaRmMAfNQusIOXp548rskyptFtGAYgSOCCd+Ii1Gg0IK41pe9e3JsWjx2e rECEnOV2YVrs7gCckO8Vq1xXFFK/R6JTwYG1Q0W/mocOeCRBmaF6YiteDKpL2j/NDAkn 4LEVpvWBuQ4/9ZYCeYncTZaOth4rAy7C27USYrDXjhcktWuA5qHs9RK3zGvfm8NzWLdD 0lOQ== 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 d75-20020a621d4e000000b0056bf15d0cbfsi4551012pfd.308.2022.11.18.16.46.06; Fri, 18 Nov 2022 16:46:25 -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 S235885AbiKSAoZ (ORCPT + 99 others); Fri, 18 Nov 2022 19:44:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238040AbiKSAmK (ORCPT ); Fri, 18 Nov 2022 19:42:10 -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 70436CB95A for ; Fri, 18 Nov 2022 15:45:10 -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-0001SF-2a; 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-0058MY-1X; Fri, 18 Nov 2022 23:46:49 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8G-00Hb6z-Vo; Fri, 18 Nov 2022 23:46:48 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Paul Cercueil 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 187/606] iio: temperature: tmp006: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:41 +0100 Message-Id: <20221118224540.619276-188-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?1749883326851059591?= X-GMAIL-MSGID: =?utf-8?q?1749883326851059591?= 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/tmp006.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/temperature/tmp006.c b/drivers/iio/temperature/tmp006.c index 706a760f30b4..cdf08477e63f 100644 --- a/drivers/iio/temperature/tmp006.c +++ b/drivers/iio/temperature/tmp006.c @@ -212,8 +212,7 @@ static void tmp006_powerdown_cleanup(void *dev) tmp006_power(dev, false); } -static int tmp006_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tmp006_probe(struct i2c_client *client) { struct iio_dev *indio_dev; struct tmp006_data *data; @@ -284,7 +283,7 @@ static struct i2c_driver tmp006_driver = { .name = "tmp006", .pm = pm_sleep_ptr(&tmp006_pm_ops), }, - .probe = tmp006_probe, + .probe_new = tmp006_probe, .id_table = tmp006_id, }; module_i2c_driver(tmp006_driver); From patchwork Fri Nov 18 22:38:42 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: 22823 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471264wrr; Fri, 18 Nov 2022 15:56:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf4PZ1SAswM8ZnfaSqmwzEII0sMHHXoMtv37y6nWuAFdu/PULYqJn0odg7p0/BFUqOU6gYvX X-Received: by 2002:a17:906:d8ad:b0:7ae:9187:eb70 with SMTP id qc13-20020a170906d8ad00b007ae9187eb70mr7334722ejb.533.1668815778439; Fri, 18 Nov 2022 15:56:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815778; cv=none; d=google.com; s=arc-20160816; b=tatBshlP+dO23DpC5cPTXZOl7W99i0L92hCy/atl8yfMsu1w69gS2ve6G4UMv7PXq6 qXNYpiMV79GAcC1LqpjfBX7kxIJb66sM+ONZIaY9Uf/S51qfQCFDw8lCpFGYzmm7TWow oNuZFgzDA6zSKNrsMrMSk+gF20+fO7S9Ho3S+aOZrpn2IUclHFugf+6z6GziK/5ax9Jc 8C643Ww2vqZ8kBe8NSDDcuQdf9jCDpWLFUkggsUnJRxpefftRpUSWThlBeIi594DuwRg 110SKGIWxRG4vXtPLB5S5M0c4AjOGWnWAIWdqXOzy7wQbrX+su6ytbPCUGijHA+o4n1P WJ8g== 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=3a4ypwsoJU0OiT2uFRSovjopr41Y7mX9dgADFmmIYgc=; b=wd0priVd9ELg5uwQEmLAdKFbqf7gOk0k6HYxGiL9KFDnviebgWPFeWwvN3VFxfex37 5S072zOUY9l/zK54S2hasz3jfo0AFfO3rq7YoFxchewwDcb0RSvcmAz6Q19rpCeT90I0 MqNd3pFtrsxyvu4b8KhvszKp6TRU4aiqvWh8xRNzYarlSXjwXJu9AUbPpAx5Ft6wcnAi olkVPuWKKwIh4O4uOVBLntjECz//iUH6B8VGYwzoYbDqaiLB9mPW+1vMUDTKM1/q9dg6 my/HV5btFeOf7RNYwedxO7KMorZmYbBmzAP5eIrS0zfdjKO/kQSqrnA0cceYZxb5OiBu DkXg== 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 cw7-20020a170906478700b007ae8b1704b9si4730576ejc.406.2022.11.18.15.55.54; Fri, 18 Nov 2022 15:56:18 -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 S236763AbiKRXnZ (ORCPT + 99 others); Fri, 18 Nov 2022 18:43:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236853AbiKRXmA (ORCPT ); Fri, 18 Nov 2022 18:42:00 -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 16197C68BB for ; Fri, 18 Nov 2022 15:23:15 -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-0001U0-CS; 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-0058Mh-Gc; 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-00Hb73-98; 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 , Paul Cercueil , Manivannan Sadhasivam 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 188/606] iio: temperature: tmp007: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:42 +0100 Message-Id: <20221118224540.619276-189-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?1749880173920473266?= X-GMAIL-MSGID: =?utf-8?q?1749880173920473266?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/temperature/tmp007.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/temperature/tmp007.c b/drivers/iio/temperature/tmp007.c index f3420d8a0e35..8d27aa3bdd6d 100644 --- a/drivers/iio/temperature/tmp007.c +++ b/drivers/iio/temperature/tmp007.c @@ -446,9 +446,9 @@ static void tmp007_powerdown_action_cb(void *priv) tmp007_powerdown(data); } -static int tmp007_probe(struct i2c_client *client, - const struct i2c_device_id *tmp007_id) +static int tmp007_probe(struct i2c_client *client) { + const struct i2c_device_id *tmp007_id = i2c_client_get_device_id(client); struct tmp007_data *data; struct iio_dev *indio_dev; int ret; @@ -574,7 +574,7 @@ static struct i2c_driver tmp007_driver = { .of_match_table = tmp007_of_match, .pm = pm_sleep_ptr(&tmp007_pm_ops), }, - .probe = tmp007_probe, + .probe_new = tmp007_probe, .id_table = tmp007_id, }; module_i2c_driver(tmp007_driver); 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", From patchwork Fri Nov 18 22:38:44 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: 23142 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488527wrr; Fri, 18 Nov 2022 16:46:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf55R63ocg/HhRXX4VzwM/bGWjVeXzmgpJWakmqK4UAi7+0cwlM/U3X7qvgwavQH3Asd/MAb X-Received: by 2002:a17:906:1985:b0:7ad:d1ab:2431 with SMTP id g5-20020a170906198500b007add1ab2431mr7602516ejd.213.1668818772486; Fri, 18 Nov 2022 16:46:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818772; cv=none; d=google.com; s=arc-20160816; b=MYYue1GuAL8qAiiBJ251OQr/Iszcm11NrlWRKe8P+90TGgKWZzzhiBGDfRzABtndxR cHBfBtEgQFaaFsrAEcrTe4WgoCLx4nZr3MBCRcbXL8mM2nf3ChMSc01qiwjdZA4dJsuz /H+RDYZHhD+UNZVZWw6eL3716tSXlC7ouh2Uoipn/TzZ/60SoJaZoaZ7T/3rahUVTbWC PV5PY2tKs21nTtLNDx0/zEmnWy/yfn66YiUnDbygDu/kzC+mNy+GUSfKB4CzTD+8frb0 gb4MZAbP0Hip0tBQ4LcTXtLcyeKI1pzHlBRbL7U76VU1Oh8A2ByOcVCoKCNLmHTu8BhT H+zw== 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=8rOEMpdQX4Vo87izRuEFDeAtgVCfS9Qr1RovU1NRLv4=; b=EQiOwCo/8kZ1ISO4+lSoohYkKxMBv0A8DmOcZ3i8+80GguYnxrP/ayonOMGNV6mgJC wPJlXGjlqG7botZ7W7TMxF6qie5olNThkRfj4JUQbPLxZhUOL1xxAuYN/WtHauFGoT+G O+En2/9Jhbmmddaky3tDWq8beED7HZpMBhOX2WZk/rLUaFdiGzFmVgC9HyGry0fE60Q/ mRH3KeLzMpu764l1x5IDRRvz5gHJPzA5xYVW1ybiLySyVipMHJi4aNqm44x04K76TsD0 2/5bVM1dn+VmbhPPYfKwgCY0rmB20WyBzH3PySmp/SFhogRiWyV+UhD9kaimDMEZM9vM GUUg== 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 by25-20020a0564021b1900b00458ff6921e6si3908765edb.79.2022.11.18.16.45.46; Fri, 18 Nov 2022 16:46: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 S237757AbiKSAoG (ORCPT + 99 others); Fri, 18 Nov 2022 19:44:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237812AbiKSAmB (ORCPT ); Fri, 18 Nov 2022 19:42:01 -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 23A0793709 for ; Fri, 18 Nov 2022 15:45:03 -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-0001VC-DN; 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-0058Mo-Pv; 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-00Hb7B-Pt; 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 190/606] iio: temperature: tsys02d: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:44 +0100 Message-Id: <20221118224540.619276-191-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?1749883312723034722?= X-GMAIL-MSGID: =?utf-8?q?1749883312723034722?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/temperature/tsys02d.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/temperature/tsys02d.c b/drivers/iio/temperature/tsys02d.c index 49c275e4f510..cdefe046ab17 100644 --- a/drivers/iio/temperature/tsys02d.c +++ b/drivers/iio/temperature/tsys02d.c @@ -121,9 +121,9 @@ static const struct iio_info tsys02d_info = { .attrs = &tsys02d_attribute_group, }; -static int tsys02d_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tsys02d_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct ms_ht_dev *dev_data; struct iio_dev *indio_dev; int ret; @@ -174,7 +174,7 @@ static const struct i2c_device_id tsys02d_id[] = { MODULE_DEVICE_TABLE(i2c, tsys02d_id); static struct i2c_driver tsys02d_driver = { - .probe = tsys02d_probe, + .probe_new = tsys02d_probe, .id_table = tsys02d_id, .driver = { .name = "tsys02d", From patchwork Fri Nov 18 22:38:45 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: 22929 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474522wrr; Fri, 18 Nov 2022 16:04:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf4B1FH7CzAGzdqcUa85SOIziBrD2/rtWHATwij2gbrTVsxw22oylZ6lEmsiWLnrtGEu4iJn X-Received: by 2002:a17:906:b0d7:b0:78d:39e8:89eb with SMTP id bk23-20020a170906b0d700b0078d39e889ebmr7910430ejb.639.1668816265469; Fri, 18 Nov 2022 16:04:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816265; cv=none; d=google.com; s=arc-20160816; b=CV7/ROuuP93kX4dAsVhr0h1dWHL+gfdf9xIlYIuuqCwH0rkQa25ucEkrRON1/lghgf Jg8NCsIQ7y50/EQgLllxYqlq0KD3kU04BhjHdC73rMtmIyZtqMyVz1J3KSySle0iUmbs 8s2W3p1wHeFPf6K78IVXt/asYyfveQsjbLBz+cGyO6o3aPRGpxbEZZeZ3SiyHaSvZ9oZ DPJWME5ahe+c1RqnUyoge4Q4pSHUvnJbjwSt37920FtXjIuAFrCkHJpPCq31cLf37uPJ SosH2OCChUkahcJzkQR753qxZgEdDdKSyDIDpnXJFt+1CPfDjY79TIR5faKWySXp6KeM V8zg== 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=+mUWYBsdtPyPolwc4iivCkk3eqhGKs+lF/cQgmrgjyU=; b=xz/dG6/JpGiqxIArr2QlGU7tBOxvEuGJYs85K4WwO6lPr9sYoiUU5DM1oQ0vr2/KPA IDxAcgAgsqO1wFAr11Mc+EGiRRewGKaaYErXd2dtCHwLW8J82ouBSYhMKKhkrA9cENU0 HvIe/wkFEhEKejgNPebPlHfQiGtq2W2LNCe2RQpJ7qHAAFphFjQqW9zHZTROw794JsPD mLNMPDEwkkjqITeN9ci+cOHV3h0uJbQlB4Fq10BhEerNZfvVjHBrpfyQfBmr7vn9PNEP u+RSMRBkTrLJfmsi0w7Kke9Sh2rlkHdl0/9c9v2ECiRXpkCl+ZTe475OGWpAas7wVTWr K8kw== 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 le9-20020a170907170900b007813b1924ccsi3546927ejc.934.2022.11.18.16.03.59; Fri, 18 Nov 2022 16:04:25 -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 S236911AbiKRX7C (ORCPT + 99 others); Fri, 18 Nov 2022 18:59:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236992AbiKRX4W (ORCPT ); Fri, 18 Nov 2022 18:56:22 -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 C1404D2DFD for ; Fri, 18 Nov 2022 15:28:23 -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-0001We-NB; 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 1owA8I-0058My-6z; Fri, 18 Nov 2022 23:46:51 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8I-00Hb7E-3J; Fri, 18 Nov 2022 23:46:50 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Andy Shevchenko , Hans Verkuil , Crt Mori , Heikki Krogerus Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 191/606] Input: as5011 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:45 +0100 Message-Id: <20221118224540.619276-192-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?1749880684377477232?= X-GMAIL-MSGID: =?utf-8?q?1749880684377477232?= 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/input/joystick/as5011.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/joystick/as5011.c b/drivers/input/joystick/as5011.c index 2beda29021a3..3b88f0b49e01 100644 --- a/drivers/input/joystick/as5011.c +++ b/drivers/input/joystick/as5011.c @@ -212,8 +212,7 @@ static int as5011_configure_chip(struct as5011_device *as5011, return 0; } -static int as5011_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int as5011_probe(struct i2c_client *client) { const struct as5011_platform_data *plat_data; struct as5011_device *as5011; @@ -349,7 +348,7 @@ static struct i2c_driver as5011_driver = { .driver = { .name = "as5011", }, - .probe = as5011_probe, + .probe_new = as5011_probe, .remove = as5011_remove, .id_table = as5011_id, }; From patchwork Fri Nov 18 22:38:46 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: 22821 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471013wrr; Fri, 18 Nov 2022 15:55:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf6mBNnox6CkjEO6A4PYGse2bXsFsIxNrfNWZ6huE4gl0VL5lzr5v/ifDrrS4nOdTogOMgs8 X-Received: by 2002:a17:906:b794:b0:7ae:6450:c620 with SMTP id dt20-20020a170906b79400b007ae6450c620mr7824135ejb.270.1668815733926; 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=KP66pI4y/OVPxPmnzkwdfCZVia3eYZ9wP5GyYKXy6XtrWT4CQXbflr7w9mtLA9qVu+ lQClLUb1DK1A/2xMe3K000fmGpt3KIejAnVCW2o2X16LAbcYcyr7S+bw+CRuzi579OS8 Mkl0RLrP4xl/hF+kRQ4b12SPPetha0iS7aik8BPOaClnKGBXtfwUAIAbadWfJP9TXhWn inaJHi/qQNosvCOVVw5QMW2uKPMWUPqGNYbO+IVaCJjlSmODipUJrDQa/5PO7qgJNy4u jjtOeUF+Y0Vc9SvHEKVweyJyO21ocMKHWfkj1Xugyizt2odaqpGnWRSnFRhallhDRBr+ nWUA== 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=O2m7ykvHEL7xl7raos8dGa5AB0gdpzfY8if92e/3DQ0=; b=u7uti0+yDcGzbToy9LDjRAiC3fgwhEIVd+V0KpBGo9TheBEx0mn80Nwvv9hiu+AjfF w2lsQAyiWbDFHL2lc3t60F1zbly1GwRDD6FgTlH+Jj+sVsqyef/FI/+HK1qiKMZYgJlj F8BX+QO85okRGyxdDjczkS03fpok6stL8QFg7L1k9yDdEFMQsp4Dhic0btBO3EStZHVn 0vyqMRC1vyDjLm1B+EwimYE9ZssW/sOVTxfWpUAaGtEgjA6R1WuKuWqLzPJbZfzyXKli yS92tb7Tq4Q49hRcxCP5SMVxzgNoTmKN6G5tsFYzSesO+sdqjTmAx8mJBeQAtTvftX4P YYGg== 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 e6-20020aa7d7c6000000b0046198ab2c0bsi3918692eds.283.2022.11.18.15.55.09; 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 S236623AbiKRXlV (ORCPT + 99 others); Fri, 18 Nov 2022 18:41:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236619AbiKRXji (ORCPT ); Fri, 18 Nov 2022 18:39:38 -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 8FD34C5B61 for ; Fri, 18 Nov 2022 15:23:03 -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-0001Vn-O0; 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 1owA8I-0058Mt-0O; 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 1owA8I-00Hb7J-Ak; Fri, 18 Nov 2022 23:46:50 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Michael Hennerich , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 192/606] Input: adp5588-keys - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:46 +0100 Message-Id: <20221118224540.619276-193-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?1749880126925589895?= X-GMAIL-MSGID: =?utf-8?q?1749880126925589895?= 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 Acked-by: Michael Hennerich --- drivers/input/keyboard/adp5588-keys.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/adp5588-keys.c b/drivers/input/keyboard/adp5588-keys.c index 7cd83c8e7110..72ae5ce72956 100644 --- a/drivers/input/keyboard/adp5588-keys.c +++ b/drivers/input/keyboard/adp5588-keys.c @@ -718,8 +718,7 @@ static void adp5588_disable_regulator(void *reg) regulator_disable(reg); } -static int adp5588_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adp5588_probe(struct i2c_client *client) { struct adp5588_kpad *kpad; struct input_dev *input; @@ -867,7 +866,7 @@ static struct i2c_driver adp5588_driver = { .of_match_table = adp5588_of_match, .pm = pm_sleep_ptr(&adp5588_dev_pm_ops), }, - .probe = adp5588_probe, + .probe_new = adp5588_probe, .remove = adp5588_remove, .id_table = adp5588_id, }; From patchwork Fri Nov 18 22:38:47 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: 22697 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462701wrr; Fri, 18 Nov 2022 15:30:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf67bwpwm5U1PIELWazSCmCW0fwJ2Fhxu5sIiQtDoKuB51lK6VHjQyB7zj0pke0/WpfOums5 X-Received: by 2002:a17:907:2b15:b0:78d:51c0:d4d1 with SMTP id gc21-20020a1709072b1500b0078d51c0d4d1mr7674451ejc.161.1668814247971; Fri, 18 Nov 2022 15:30:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814247; cv=none; d=google.com; s=arc-20160816; b=LgJL+hNevRIZ5d868FaEsQ/0/PIr47b7IYefDO6ViY5YPiRSWUEu8pQIUKcatpFo/k ms/u2gZSIbrUTVIWiANlTTrzQJssFw9xJ/tdNrx2QOtYO5m46zSEWqMCJraHfP29avPt Rx0qHr+seKxASNLcA9/ViqkktNxkd3C9yDIRoBqC263xfOn8k5izSpRzQ7tnJMRHnY9C v49C1+bmZqRFA9ppl8m8yssHzyu2X/chHsOyzwjuVJOeqfhpWOMl5LeZtoyKav619/0Y NmyDhcNFrZCjPgntfQ7jwI51zejrSa2Bl/V4/Z5Joa5mTYnMF7651WHpUnDpo4x0fULg 3s9g== 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=V/lLdpKRyET+668wmlkLyNFlmG770sB6CuFZC9I2Rmg=; b=wTUJmV19supfMhuiVUxS7PGxV+2WURR10Y4qqhIyJRIgfQxeKvFShsjsl2t60i60v3 jRWEGScbv0OlLPjWdI1z54HYsZ5wcHxqZTSyolzEQNjTNCnFORvchAEoqyg+GU0VvzT4 NwNppq37jrxNPp2EGgh6yq07hIy2Unz0FBD18oqoMFo+LXsEXYUAgUG5Wwp4SA2nZsPX 7LQ3h733VP+MTTRsEFK33xNVMLjXiPTgl7DFwVap6YmjW/PSuDFPQkKZwDYT7zGhFnbf lAy+fe2d/XC3S4wDAFrpwiwpsArYKgWJwPv8VcrChOi0NpLK9SgM0y1tdtvhkr6ytmvV W5AA== 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 ft31-20020a170907801f00b007b299051a9fsi3206586ejc.192.2022.11.18.15.30.24; Fri, 18 Nov 2022 15:30:47 -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 S234295AbiKRX3s (ORCPT + 99 others); Fri, 18 Nov 2022 18:29:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235729AbiKRX2q (ORCPT ); Fri, 18 Nov 2022 18:28:46 -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 C637BB949D for ; Fri, 18 Nov 2022 15:16:52 -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-0001XB-Ry; 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 1owA8I-0058N1-AW; Fri, 18 Nov 2022 23:46:51 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8I-00Hb7N-Hq; Fri, 18 Nov 2022 23:46:50 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 193/606] Input: adp5589-keys - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:47 +0100 Message-Id: <20221118224540.619276-194-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?1749878568929197257?= X-GMAIL-MSGID: =?utf-8?q?1749878568929197257?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/input/keyboard/adp5589-keys.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/adp5589-keys.c b/drivers/input/keyboard/adp5589-keys.c index bdd264459a97..25c9f6344bf2 100644 --- a/drivers/input/keyboard/adp5589-keys.c +++ b/drivers/input/keyboard/adp5589-keys.c @@ -942,9 +942,9 @@ static void adp5589_clear_config(void *data) adp5589_write(client, kpad->var->reg(ADP5589_GENERAL_CFG), 0); } -static int adp5589_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adp5589_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct adp5589_kpad *kpad; const struct adp5589_kpad_platform_data *pdata = dev_get_platdata(&client->dev); @@ -1054,7 +1054,7 @@ static struct i2c_driver adp5589_driver = { .name = KBUILD_MODNAME, .pm = &adp5589_dev_pm_ops, }, - .probe = adp5589_probe, + .probe_new = adp5589_probe, .id_table = adp5589_id, }; From patchwork Fri Nov 18 22:38:48 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: 23045 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486593wrr; Fri, 18 Nov 2022 16:40:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf44w2Aq/hAXqYgwc9irzVOY7IC69wnPOcLuOGNDV70p5g+BSP3HOZw2vrP4KxMm7ZhhR4Jx X-Received: by 2002:a17:907:2bc2:b0:7ae:bfdb:7706 with SMTP id gv2-20020a1709072bc200b007aebfdb7706mr8279796ejc.207.1668818436744; Fri, 18 Nov 2022 16:40:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818436; cv=none; d=google.com; s=arc-20160816; b=dV2X2oeo7323c59yDTSD41C1YU+YpXYR+26ttLdf66GAIKqv9Xxtx1SO3jVqvkD69P D2dzSKBOQ0glv8H0XMExBxapjILLD+P3IlC6Od4xC2emJ82w2Ds9BMLw0x/QZBONAWgw cRyHIAgV9Ckktg5idtjMNepIoqcGc5W3rFB6nFjbq9GxSK+hPYS5HvBpnS28l8vby1J2 GuYuSljt693Q7Att7bYqvlp+03vxo4qi0j0JkfSIrrpuTnWwKcshm7z2iWF5FMXl3/7S YxH/hjjUm4r7INzKxD4p7LxsFe6VtA2JN6Yg6/GpOjY0ff1I9RPku19dMQ8AmmLLwMHS vYcw== 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=fYN3c0PhXFwvhIScZw73RH3wLFNmTna6UbG15UBi1M0=; b=wwqp73a767LhZXAEy5SiuSgC7QW62m/+Dg161JnibtMOWWcdnqB0VQj9XOSACsyjh6 Iv47uJOdeeeT2jd+aO0qcqCr8PLlzNeSCWiD/OIAlCiAVAtFfyO5646s5BYDCHhx+Hqq NbRHe/5lA1qybna7FmjUNqYAcVzKiT+EBGrPZDl0ocnI5VA90RmZ9Xay1qNo9ReYcFkd wAn9hmebFYiw26ahxqYr6fy6VrvHflkqMbvKozTzhVKk1HobNee57w+UORnI1gxGpEjo TWxK9MBCagHnUrkp8+bRfeo6V9N6K6VC09ilUcA/W7iv/on7o/Wol2o6EoCvmo2f8LFt Sdbg== 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 m19-20020a056402431300b00459060fce1bsi4720051edc.574.2022.11.18.16.40.13; Fri, 18 Nov 2022 16:40:36 -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 S237879AbiKSAVW (ORCPT + 99 others); Fri, 18 Nov 2022 19:21:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237899AbiKSAUz (ORCPT ); Fri, 18 Nov 2022 19:20: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 26B57100B39 for ; Fri, 18 Nov 2022 15:36:54 -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-0001YG-SF; 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 1owA8I-0058N5-HK; Fri, 18 Nov 2022 23:46:51 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8I-00Hb7R-P9; Fri, 18 Nov 2022 23:46:50 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 194/606] Input: cap11xx - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:48 +0100 Message-Id: <20221118224540.619276-195-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?1749882961389137529?= X-GMAIL-MSGID: =?utf-8?q?1749882961389137529?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/input/keyboard/cap11xx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/cap11xx.c b/drivers/input/keyboard/cap11xx.c index 7c85343cd32f..79afd0386e3f 100644 --- a/drivers/input/keyboard/cap11xx.c +++ b/drivers/input/keyboard/cap11xx.c @@ -321,9 +321,9 @@ static int cap11xx_init_leds(struct device *dev, } #endif -static int cap11xx_i2c_probe(struct i2c_client *i2c_client, - const struct i2c_device_id *id) +static int cap11xx_i2c_probe(struct i2c_client *i2c_client) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c_client); struct device *dev = &i2c_client->dev; struct cap11xx_priv *priv; struct device_node *node; @@ -503,7 +503,7 @@ static struct i2c_driver cap11xx_i2c_driver = { .of_match_table = cap11xx_dt_ids, }, .id_table = cap11xx_i2c_ids, - .probe = cap11xx_i2c_probe, + .probe_new = cap11xx_i2c_probe, }; module_i2c_driver(cap11xx_i2c_driver); From patchwork Fri Nov 18 22:38:49 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: 22781 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466279wrr; Fri, 18 Nov 2022 15:39:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ISZA6zV4H/yeXtM4Mq1bY/riR480LBQBzateKmb0scNf5YDafAiZLBL3/2C9/yMiTOrDE X-Received: by 2002:a17:906:4556:b0:7ae:eaf1:c9e3 with SMTP id s22-20020a170906455600b007aeeaf1c9e3mr7784304ejq.551.1668814776757; Fri, 18 Nov 2022 15:39:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814776; cv=none; d=google.com; s=arc-20160816; b=UJ+3hkl5sFdiRQ8Ef0XZMaHOcmgJ4aaDNH10q0OPipR71RpA0TiuJLCCW388YWy2JX kWF7Uy0gq4i8pckAPnRvp2yPwkA2GQCNIkrsYNYDmUWTOoz8Ot3uYNYZmLtq5nelJEzG vkfgQ9DpQgcoY2Kx+0wVZEpN5e6gq/fmoiVXQhlY+OoFDPafZzMZ2IyYBdZ7mVGrHRFV M5N0V1J8gI3MFg2rR8i0lHgsRsLjimytB42hQa0Wvpfyy88wdyHGZcwHMu2pvrFe1qtn k/jT1IVEaIZv12IJG/jP1ZnyFqHIa4/hzbSSqdWeprdJM10Prv6RB+LnKjWuhtHLP+cZ R5NA== 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=rQGBqWwK22/vLacygwD4SOdFZgj0GZjCH/HFC5ffWnM=; b=xaSRGNgH7NRSOOyCyEUzUeDCshlgzXswzef7hlrGeiH6dneFhg0rtSJda1Xaz5UDdA fPVMK4sZqDl5XYWA1d/NJbu0ROm915dDpKLmgO2DJVXETG+rZ76wCcbtcUwUX6LrEUVX mtusqXXTVrLGgmNV3HG+TEZRUwdgJK8GcfI/O/+oNtVaKhC0b+pl6OBwwfEUY7UKKeln YX5Il+5GUwRbhXW/EsHUXIu9uBuCV0kZY/majKWWUjanzeZQOZ4MF8qYUT4LeI3vTFBk JmXnOTXUTtlrD9vjYXknS9voqSwYUSTw4rUEcnDV6XV7CJ833oZrHc0ZhY3ZLNVot/Qh F0Mg== 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 nb11-20020a1709071c8b00b007add62d9f38si4311536ejc.330.2022.11.18.15.39.11; Fri, 18 Nov 2022 15:39:36 -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 S236243AbiKRXiT (ORCPT + 99 others); Fri, 18 Nov 2022 18:38:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236487AbiKRXdF (ORCPT ); Fri, 18 Nov 2022 18:33: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 5623C10E4 for ; Fri, 18 Nov 2022 15:21:13 -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 1owA8M-0001ZL-Ea; Fri, 18 Nov 2022 23:46:54 +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 1owA8I-0058NA-RI; Fri, 18 Nov 2022 23:46:51 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8J-00Hb7V-3M; Fri, 18 Nov 2022 23:46:51 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Linus Walleij , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 195/606] Input: dlink-dir685-touchkeys - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:49 +0100 Message-Id: <20221118224540.619276-196-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?1749879122983863040?= X-GMAIL-MSGID: =?utf-8?q?1749879122983863040?= 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/input/keyboard/dlink-dir685-touchkeys.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/dlink-dir685-touchkeys.c b/drivers/input/keyboard/dlink-dir685-touchkeys.c index 3b674001cd15..ddba2bc861da 100644 --- a/drivers/input/keyboard/dlink-dir685-touchkeys.c +++ b/drivers/input/keyboard/dlink-dir685-touchkeys.c @@ -59,8 +59,7 @@ static irqreturn_t dir685_tk_irq_thread(int irq, void *data) return IRQ_HANDLED; } -static int dir685_tk_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int dir685_tk_probe(struct i2c_client *client) { static const u8 bl_data[] = { 0xa7, 0x40 }; struct device *dev = &client->dev; @@ -146,7 +145,7 @@ static struct i2c_driver dir685_tk_i2c_driver = { .name = "dlink-dir685-touchkeys", .of_match_table = of_match_ptr(dir685_tk_of_match), }, - .probe = dir685_tk_probe, + .probe_new = dir685_tk_probe, .id_table = dir685_tk_id, }; module_i2c_driver(dir685_tk_i2c_driver); From patchwork Fri Nov 18 22:38:50 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: 23020 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp478564wrr; Fri, 18 Nov 2022 16:14:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf4R2tpvxgm15ONIvl1SNQwcdKZY0tI9Q120VR7Lm0zcd6X1s7rF8Z/rxPkHwmQHqzl6BJbP X-Received: by 2002:a17:902:aa0c:b0:180:4030:1c7d with SMTP id be12-20020a170902aa0c00b0018040301c7dmr1751058plb.99.1668816879417; Fri, 18 Nov 2022 16:14:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816879; cv=none; d=google.com; s=arc-20160816; b=UIVt/0+bzAWfKnO8mon7mkuGxQEfrEvRLUZeGFsEoT87fJiQCNBNolO135Cy1UN6lC NFLJnNQZaytGDzbWg+iLjsNUzYk5m9Ro9YxMLM5Em5d1k7/1NCd+r5OaxcxChl+s/nP+ 9b/EO7+71sU/jRNUtumEB4GexvPsqWpBoBwWHefuszq/c3OqOY2wZ/jARBWkoEH4GXm+ rQ7I9HxeqvFgwqbC3Vl14xoZxFs94LTgUWzKGpVE4Xd7I3RpPlbONy8KWvTF3/68TNTL kbLOOR8gWdCa2um2LCS/Mr2FUDhFmqe8dSuauuJ2eoWZ8Giu3iaoVrezGOMu7gD+0rjE HxAg== 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=IrqjYTPLMEMNKeaiyJ+8AG0q8/RFNcCnUVd1NEdqHK8=; b=DngxkCPUFU3DdCshUSuDBNQOWcrSs/wlgk7lxMuT1MZSZVYqBvA621vvQRWghYR0PW JGR8aJUM8WghXLfMiSNH3oWMduoEqFQABIIvTusn0GrxQ2KQw2GaUwbQbh94a7zF+NO6 owkQOjKzjmlJmrHDejzng5n75tspftWoMn84ugWe+5EYvGI4dsG9F4mhK50IIEiM6BAR ZdNjmfinTF1jsOjB3hbuSNwqH7NQcMK3n2LRyfRLSTf+kN+TVWHH6JJiD2NTFwhXtOEh YRAeV93rNkNIE9pigY6/fttH++zuOq02D8eI/WooQpLqpnw2MbTlFAYuu9XXBx5eg6cQ kQgg== 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 u2-20020a634542000000b00460c55062f0si4976116pgk.434.2022.11.18.16.14.24; Fri, 18 Nov 2022 16:14:39 -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 S237771AbiKSANZ (ORCPT + 99 others); Fri, 18 Nov 2022 19:13:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237807AbiKSAMz (ORCPT ); Fri, 18 Nov 2022 19:12: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 90796F243C for ; Fri, 18 Nov 2022 15:34:18 -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 1owA8M-0001a8-JE; Fri, 18 Nov 2022 23:46:54 +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 1owA8J-0058NG-36; Fri, 18 Nov 2022 23:46:52 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8J-00Hb7b-CE; Fri, 18 Nov 2022 23:46:51 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Greg Kroah-Hartman , Vladimir Oltean , Peter Rosin Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 196/606] Input: lm8323 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:50 +0100 Message-Id: <20221118224540.619276-197-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?1749881328178206095?= X-GMAIL-MSGID: =?utf-8?q?1749881328178206095?= 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/input/keyboard/lm8323.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/lm8323.c b/drivers/input/keyboard/lm8323.c index 407dd2ad6302..4846eccb0a93 100644 --- a/drivers/input/keyboard/lm8323.c +++ b/drivers/input/keyboard/lm8323.c @@ -615,8 +615,7 @@ static ssize_t lm8323_set_disable(struct device *dev, } static DEVICE_ATTR(disable_kp, 0644, lm8323_show_disable, lm8323_set_disable); -static int lm8323_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lm8323_probe(struct i2c_client *client) { struct lm8323_platform_data *pdata = dev_get_platdata(&client->dev); struct input_dev *idev; @@ -829,7 +828,7 @@ static struct i2c_driver lm8323_i2c_driver = { .name = "lm8323", .pm = &lm8323_pm_ops, }, - .probe = lm8323_probe, + .probe_new = lm8323_probe, .remove = lm8323_remove, .id_table = lm8323_id, }; From patchwork Fri Nov 18 22:38:51 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: 23105 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487791wrr; Fri, 18 Nov 2022 16:44:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf7awiHzqkA99SofZpT7IXaDyCkjIWyuzeSS+cZ6ATBP1K57PB2aJLfSqOziUgHmR733ev1V X-Received: by 2002:a05:6402:657:b0:461:bcf0:86dc with SMTP id u23-20020a056402065700b00461bcf086dcmr8318587edx.368.1668818644773; Fri, 18 Nov 2022 16:44:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818644; cv=none; d=google.com; s=arc-20160816; b=xRGCuwG1DZnjl3PqEiO10FxFIttFwfSfyJuEh1yKjcLhipINmfT/3kePAUPVhGTDwS waV2QM6TNRvDF5uy/Ds5p49AOFfgOH0ltpVMntYefUBZAz5QyJSUv/WK1P8o9Ns7oj4o atCyTmB9CxLhDRN7uLywIZpMZUiuRJiU34raW/nbVVkrwgwHTwtyz3xf75f0JmSFmBOj ihpH+Srz4J8p12svA/bKhUi03GoCuYAl+nGPagyqJYKS2HlslwUhGiSs2uFYmU4wVq2+ 8ps52Frk5sGFCp3A2oO0vMk17l6K1fA6lN4l6zHZobwyDJyD0m/zbJP5aXLyS7OQj8It vdFA== 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=HSGdg1rLC2lqLRfY1D7e8O2C013F1Enet6UuTpQl6mA=; b=CtyLQcOQO9xTC4d6xt+JhZIeSIWzh49fZjUf2xYbGUvOTyE4n68LLmlBL1giiBqW2O DnCFuaIZWUke82014Em2kzn+vG0xQkIYRTJ30DfGQY/OuQRcZhP43UTnPRIwhmnGOP8u sW2zpFOd3MfM0V2/Tdq5HC4nCSfr+5vC0vuBJKsENyNrKztXq9tmN98aHThAaHZmSawV GVjHVIpZckl37UqEbmb+zbJfFy2QrdhB6/o6ViTpSsTPhyjDRkWjH5kbGPJOEaye05yD 7hFy+4Iu1R44HUKjnXRcRPMKFlHBi0tJT/wrqx3YUT74bSNPCk1gbqGDeRaTxzsf1HXb wO+A== 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 be1-20020a1709070a4100b007ae0ca417e4si4440859ejc.690.2022.11.18.16.43.34; Fri, 18 Nov 2022 16:44:04 -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 S236478AbiKSAkz (ORCPT + 99 others); Fri, 18 Nov 2022 19:40:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235931AbiKSAjX (ORCPT ); Fri, 18 Nov 2022 19:39:23 -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 69B93C80C2 for ; Fri, 18 Nov 2022 15:44:28 -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 1owA8N-0001cD-CJ; Fri, 18 Nov 2022 23:46:55 +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 1owA8J-0058NN-NJ; Fri, 18 Nov 2022 23:46:52 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8J-00Hb7f-LH; Fri, 18 Nov 2022 23:46:51 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Andy Shevchenko , Peter Rosin , Jonathan Cameron Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 197/606] Input: lm8333 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:51 +0100 Message-Id: <20221118224540.619276-198-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?1749883179487754030?= X-GMAIL-MSGID: =?utf-8?q?1749883179487754030?= 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/input/keyboard/lm8333.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/lm8333.c b/drivers/input/keyboard/lm8333.c index 3052cd6dedac..7457c3220f90 100644 --- a/drivers/input/keyboard/lm8333.c +++ b/drivers/input/keyboard/lm8333.c @@ -125,8 +125,7 @@ static irqreturn_t lm8333_irq_thread(int irq, void *data) return IRQ_HANDLED; } -static int lm8333_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lm8333_probe(struct i2c_client *client) { const struct lm8333_platform_data *pdata = dev_get_platdata(&client->dev); @@ -219,7 +218,7 @@ static struct i2c_driver lm8333_driver = { .driver = { .name = "lm8333", }, - .probe = lm8333_probe, + .probe_new = lm8333_probe, .remove = lm8333_remove, .id_table = lm8333_id, }; From patchwork Fri Nov 18 22:38:52 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: 22625 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp450686wrr; Fri, 18 Nov 2022 14:59:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf7jWeQamzg071tq5kdwblOd35ZfuNXRZQZv2KwcZUR0whfeLQy3iKEJbJDPtqevDPFXH7ch X-Received: by 2002:a63:ec45:0:b0:470:4320:ef39 with SMTP id r5-20020a63ec45000000b004704320ef39mr8180733pgj.381.1668812353906; Fri, 18 Nov 2022 14:59:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812353; cv=none; d=google.com; s=arc-20160816; b=ViKqFDgj2Q95M7vFCRhQvWChSX5ndI1gJe8K30yVUPW8Ga5MVLLMvYPl3ATWISwyPn Vj17e9qkl6MCGfTCOxgOis/gODzuTzZ4Ifch0iD3Vp1WhK80RuKuEgjkEEQw/JY7kRyH HtYdF3mCUd8TSeGmZyJ30jaOxrd36Yne+NuNFL6tX/pyGk0SfRuoH+AnL8iauZKcj0lY TEGotnzTCKFTDfGpFh4muoIzFvH5LupZflf6QmjOaXb7kPGTElBxgracT/zb9DPozJy4 YqUliytjKGbQ+UJ2VQy9og5wi4qQm4xW5XEGzvNGffpozuhXxojNAS3qBa5wwoHjGBuB 5GJw== 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=yr0mA6fcSSWvr0ur/ygL7mD1LNb9b3lKbWscoNPJsKM=; b=jzJVngrA7Kgrl9Etu0Gbvgbb0kOVef0vj4OQzjWDR0QgV+9K3bq9BQff/p0XDCgvhI X/a0EC2QJnsAPgiceU6sgWI1sVgD6ym4gsmnEOkmGab55quQx2rUeIOInPUx/NdeVi8y RMoTdS9HCJLSNb9C/rFJveQlHBjGcG/obALxfyN3NQSpRrQxv/glo4nLIIL5asxf+9Gr ATFNkdXvNRCg7h+5S5nh2cR8c1B5dcUOxKzgnNSH5rSDTknSBbAoYuedeuKCX5oZ7O5b mK5WuPdhEp/pGOHu6MpbzEK21fbBtGk8pMZXP0uVbFo42RF+BNmbv76yEQ645mEozxiV Xbtw== 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 k7-20020aa788c7000000b0056c064d3fb1si5192658pff.152.2022.11.18.14.59.01; Fri, 18 Nov 2022 14:59:13 -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 S234874AbiKRW4l (ORCPT + 99 others); Fri, 18 Nov 2022 17:56:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235045AbiKRWzw (ORCPT ); Fri, 18 Nov 2022 17:55:52 -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 71D5B8E280 for ; Fri, 18 Nov 2022 14:48:38 -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 1owA8N-0001cI-1u; Fri, 18 Nov 2022 23:46:55 +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 1owA8J-0058NO-Nh; Fri, 18 Nov 2022 23:46:52 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8J-00Hb7j-Tp; Fri, 18 Nov 2022 23:46:51 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 198/606] Input: max7359_keypad - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:52 +0100 Message-Id: <20221118224540.619276-199-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?1749876582728418587?= X-GMAIL-MSGID: =?utf-8?q?1749876582728418587?= 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/input/keyboard/max7359_keypad.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/max7359_keypad.c b/drivers/input/keyboard/max7359_keypad.c index 62ce93462955..1bba11ed4132 100644 --- a/drivers/input/keyboard/max7359_keypad.c +++ b/drivers/input/keyboard/max7359_keypad.c @@ -155,8 +155,7 @@ static void max7359_initialize(struct i2c_client *client) max7359_fall_deepsleep(client); } -static int max7359_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max7359_probe(struct i2c_client *client) { const struct matrix_keymap_data *keymap_data = dev_get_platdata(&client->dev); @@ -283,7 +282,7 @@ static struct i2c_driver max7359_i2c_driver = { .name = "max7359", .pm = &max7359_pm, }, - .probe = max7359_probe, + .probe_new = max7359_probe, .id_table = max7359_ids, }; From patchwork Fri Nov 18 22:38:53 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: 22758 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465297wrr; Fri, 18 Nov 2022 15:37:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf5vJP4C+hi7t7p5UEa0D2Jtid4PufnnuWCYlFzPDN5xclbkAgld3BSKkleBYgWUougRZCkP X-Received: by 2002:aa7:d94a:0:b0:463:6b8f:f203 with SMTP id l10-20020aa7d94a000000b004636b8ff203mr7971678eds.236.1668814627561; Fri, 18 Nov 2022 15:37:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814627; cv=none; d=google.com; s=arc-20160816; b=NtAMKjQYUnUXEkQwv3FzRAfdv5eHiOeiH/5tLYFwwl8HQrklS7OgI1qLIz1M1fs9Su FZZf9CnK8ciPRjquZo+lghqfxum0BGDOzr+C35K/RX2ViPdUQwBeypgaTpwxeRU6EMhK 12E+EMCBz5YQNWfLMXWsfcHBDRhKhfcT8ZcSwuuXJozuJeb2TOK1zsFSfl6iAegbASNg k6BK6vPoUfUKqiiOqa85kJ64CyoqrhLRPpcGYZq/JEO9ZNrPoqQIaHNJySoZwXd9IjkW Axwok5jgVEbmnOGAlKHNVG0c8D9TC76W28WKzEovMNCvF3LvmVTyHHQouiKHQhDUiE3O fF3w== 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=izfeM+4FeYRRANRlY3Oc8KuV7ZbGPi6RVtz5GUgMvaE=; b=sREi9S2Xz8oVX0WCJsCxBcI8CNfZbDHcQA6Pcl+c8yKnrgrFlFW/QidKXQzG6/eyH9 IHLtdjPUhjqwidYxLuqVXREFeF/ZjrffsmfbdzrVfhUx944OFjUEezspfov+0LAOot35 pR6EUGDtusi+B6xZiPUXZHCGMtrdDhy8dOHMgcW98l5UJ9JGGiqKbCRayv36klvq1h7e 6j0WiGgqPTwKNJZunPgKtIyHVITrgM5kBouaJF9BZHrs2iM2tW356aFlDpKQowRyiPdY k+CaY21+qGs+U/dS3I0wRSftCRH9YEfMxzpV6uHiKbQTzo847YAM5ZAAD73fqDwNrz0B HOdg== 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 mp9-20020a1709071b0900b007aea5ae39b1si4065948ejc.443.2022.11.18.15.36.44; Fri, 18 Nov 2022 15:37:07 -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 S236168AbiKRXgI (ORCPT + 99 others); Fri, 18 Nov 2022 18:36:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236316AbiKRXch (ORCPT ); Fri, 18 Nov 2022 18:32:37 -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 95AD3A8C37 for ; Fri, 18 Nov 2022 15:20:12 -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 1owA8N-0001cp-BN; Fri, 18 Nov 2022 23:46:55 +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 1owA8J-0058NU-Rb; Fri, 18 Nov 2022 23:46:52 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8K-00Hb7n-5m; Fri, 18 Nov 2022 23:46:52 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Jonathan Cameron , Andy Shevchenko , Greg Kroah-Hartman , Luca Ceresoli Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 199/606] Input: mcs_touchkey - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:53 +0100 Message-Id: <20221118224540.619276-200-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?1749878966805588725?= X-GMAIL-MSGID: =?utf-8?q?1749878966805588725?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/input/keyboard/mcs_touchkey.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/mcs_touchkey.c b/drivers/input/keyboard/mcs_touchkey.c index ac1637a3389e..34683458524c 100644 --- a/drivers/input/keyboard/mcs_touchkey.c +++ b/drivers/input/keyboard/mcs_touchkey.c @@ -92,9 +92,9 @@ static irqreturn_t mcs_touchkey_interrupt(int irq, void *dev_id) return IRQ_HANDLED; } -static int mcs_touchkey_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mcs_touchkey_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); const struct mcs_platform_data *pdata; struct mcs_touchkey_data *data; struct input_dev *input_dev; @@ -260,7 +260,7 @@ static struct i2c_driver mcs_touchkey_driver = { .name = "mcs_touchkey", .pm = &mcs_touchkey_pm_ops, }, - .probe = mcs_touchkey_probe, + .probe_new = mcs_touchkey_probe, .remove = mcs_touchkey_remove, .shutdown = mcs_touchkey_shutdown, .id_table = mcs_touchkey_id, From patchwork Fri Nov 18 22:38:54 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: 22847 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471975wrr; Fri, 18 Nov 2022 15:58:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf7+S9j2BWVUN23IQwTJnP1lsqEpQXe48ihh+DHIUHPpG9Cmiy/geWMB16FyybuOgWYZLzd7 X-Received: by 2002:a05:6402:1ca5:b0:468:f02a:f523 with SMTP id cz5-20020a0564021ca500b00468f02af523mr7173729edb.362.1668815937073; Fri, 18 Nov 2022 15:58:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815937; cv=none; d=google.com; s=arc-20160816; b=yqZGb6f3D3Q7mUAc5PHSM9MxwmubmBKtWl+v9fdH/9hDZpfjZAVGNsO7Vb1K+KSxTG 0rGSxCuKUKDYZvL1ymzmw8Yqj84jIr1l6sQ/f1hx85OR2a92y243kQ0kkkUkDwBSQULb 0BcljGHpZ2aAXkSOrYnu3BXlo9lYhO7+MivAYlEmsMq4i4DeSt/FbHIUOwSOIM1TllyU 6Qw8vs8WocdvqUwZMNllZNBDQZPyKD13GnZeJpGyltUhjkUUWIaH3LmGUi/Ju8QkA6PZ eZwcGL+aWVHn6x+Sa7NyZuud0t6EJAOfl6N3XKwH2sN6VZHqcQpGL2ZMKLxSkG0okkpo 9oTA== 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=mx4vW7Uk+mfCaRevc2webmKp93A/m9gm+LHkoeUPOnk=; b=nBSI/zDZW0t15GtF01wH4fLOqXFScTKxkCYp9tfIsyUVcwgd+yB2Cn3acWKerfHVD+ o0CB2dp6+tUgyHQYJiM7zkfSnSajqFubhVOL/LToK72gZbwb8j8iCplNjMCLQ8EwC+rw 1UYzUVN/d+A4glRzi0DiAvMNGP0eAEiuWWlKO8djKO68xNgz86Pe8trJ/J/5UsGsmq6r 9g9RYP2xQzqplUukwoHCLeDSrb08ppKcRN4zrgNxQTN0mZwx+z6csA2CCA2J5rLk5hzm dtHhEyqh39kHmmfTEbDiDwlsXkNY7vLVlYAaT7dAMUAjeuCweyKdC0VB+8LxmzaYhAXT mXTw== 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 t4-20020a056402524400b00461cb980126si4550264edd.309.2022.11.18.15.58.32; Fri, 18 Nov 2022 15:58:57 -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 S234812AbiKRXt4 (ORCPT + 99 others); Fri, 18 Nov 2022 18:49:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236857AbiKRXs5 (ORCPT ); Fri, 18 Nov 2022 18:48: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 1A28EEC08E for ; Fri, 18 Nov 2022 15:26:28 -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 1owA8N-0001eM-Ie; Fri, 18 Nov 2022 23:46:55 +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 1owA8K-0058NY-71; Fri, 18 Nov 2022 23:46:53 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8K-00Hb7q-Eb; Fri, 18 Nov 2022 23:46:52 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 200/606] Input: mpr121_touchkey - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:54 +0100 Message-Id: <20221118224540.619276-201-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?1749880340462997705?= X-GMAIL-MSGID: =?utf-8?q?1749880340462997705?= 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/input/keyboard/mpr121_touchkey.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/mpr121_touchkey.c b/drivers/input/keyboard/mpr121_touchkey.c index 230ab3d50b9e..4610ef55903c 100644 --- a/drivers/input/keyboard/mpr121_touchkey.c +++ b/drivers/input/keyboard/mpr121_touchkey.c @@ -230,8 +230,7 @@ static int mpr121_phys_init(struct mpr121_touchkey *mpr121, return ret; } -static int mpr_touchkey_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mpr_touchkey_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct regulator *vdd_supply; @@ -390,7 +389,7 @@ static struct i2c_driver mpr_touchkey_driver = { .of_match_table = of_match_ptr(mpr121_touchkey_dt_match_table), }, .id_table = mpr121_id, - .probe = mpr_touchkey_probe, + .probe_new = mpr_touchkey_probe, }; module_i2c_driver(mpr_touchkey_driver); From patchwork Fri Nov 18 22:38:55 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: 22848 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471979wrr; Fri, 18 Nov 2022 15:58:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf5YPUNQA74t3Xmmy0mRv//qsJGBWPQTzrsT4StQPtGNs1P0Q7FQhIofrKEbVYz1ju1qV8/H X-Received: by 2002:a05:6402:538a:b0:458:fbd9:e3b1 with SMTP id ew10-20020a056402538a00b00458fbd9e3b1mr8041029edb.6.1668815937000; Fri, 18 Nov 2022 15:58:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815936; cv=none; d=google.com; s=arc-20160816; b=u4lo3bxBERBNee2D0QToQUs4KEwHJ/aKOhftdYOaqp8gEMcEtLgCjX3vGD0Mn11b0x fZLFsX1bVLAnyDAulVBHYqgp6j6tRNMhIoHNa2gODR9O05udqRYeODeM/cDVz8UIhk1l cbpL1J9CAmCZ3vGKd+NQRZZbi65QIXwHR/swvcxZRfPJMmMjhCt6CyKdL9NQRmRfbe4N V2g5GW+zerkwaxGpNHyT16jZqOkzpP364G/SjjiYtu7hsb7SoSH4JN/WhEbjXGhdlGPl MzNi8AjJ1Oxi/wY2EYRUE7JM2Ab0Wz5/5NC6jT67kR00cU+vQ4KK9D7PmBMPtRlOdETo Z/3Q== 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=aC56mlbMmrHN1DWy9o1QeQsW3QERYCgKrPcErRZlkC0=; b=OIdbMvSEW3to/GabWv8Nvwil1xoNXruMYpgCEBUiFmgS83XmtFUKQLMOSPVpFsiDrm 3ZO/VyQz2Trccq/5539H9UQhaBMuz4+JV+2k/ObaVQOzL0tpemZ6X53jvKMdNA/JcYqa 4WR6bynjFl3BCEsvIFmoj1J7Y488y+hL2bgtHt791e6h8xiwqIPAB+qgl8cQg3U88gCy f/PHRl72PARsgpFY4rtYEhLiUNyDBd8Ry7Io1eHMn5qpwuPZ6l7h9byS9SwdOEJv5sF9 h+rmx8YrwZtJW2U6wCvS/Wx5hej778Xfxz0gaCGhAbeLj3FCnFg88H3gDYQFidJnReOv zAhw== 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 x11-20020a05640226cb00b0046311e80ebcsi4774547edd.151.2022.11.18.15.58.33; Fri, 18 Nov 2022 15:58:56 -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 S233511AbiKRXtA (ORCPT + 99 others); Fri, 18 Nov 2022 18:49:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237317AbiKRXr6 (ORCPT ); Fri, 18 Nov 2022 18:47:58 -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 2CB03E675C for ; Fri, 18 Nov 2022 15:26:13 -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 1owA8N-0001g1-Tt; Fri, 18 Nov 2022 23:46:55 +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 1owA8K-0058Ni-J8; Fri, 18 Nov 2022 23:46:53 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8K-00Hb7t-LM; Fri, 18 Nov 2022 23:46:52 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Miguel Ojeda , Andy Shevchenko , Maximilian Luz , Petr Machata Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 201/606] Input: qt1070 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:55 +0100 Message-Id: <20221118224540.619276-202-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?1749880339738377337?= X-GMAIL-MSGID: =?utf-8?q?1749880339738377337?= 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/input/keyboard/qt1070.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/qt1070.c b/drivers/input/keyboard/qt1070.c index 9fcce18b1d65..533bb0375223 100644 --- a/drivers/input/keyboard/qt1070.c +++ b/drivers/input/keyboard/qt1070.c @@ -126,8 +126,7 @@ static irqreturn_t qt1070_interrupt(int irq, void *dev_id) return IRQ_HANDLED; } -static int qt1070_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int qt1070_probe(struct i2c_client *client) { struct qt1070_data *data; struct input_dev *input; @@ -274,7 +273,7 @@ static struct i2c_driver qt1070_driver = { .pm = &qt1070_pm_ops, }, .id_table = qt1070_id, - .probe = qt1070_probe, + .probe_new = qt1070_probe, .remove = qt1070_remove, }; From patchwork Fri Nov 18 22:38:56 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: 22770 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465871wrr; Fri, 18 Nov 2022 15:38:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf6uVYmtzNFMdu4FAWeNpCOvD9mv34JV4Rkpgy4URksaRU9seAAx6oN0rDUVYMOcLxcaMaQ2 X-Received: by 2002:a17:906:5db2:b0:7ae:d58b:30f8 with SMTP id n18-20020a1709065db200b007aed58b30f8mr7518741ejv.564.1668814721067; Fri, 18 Nov 2022 15:38:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814721; cv=none; d=google.com; s=arc-20160816; b=yTCag4GJ7Jo5r0wdrvTTx0GNA+lgcs8Ws7RgLL9kCwwWL6J2WTc74qwe+NEkwO5jTw C14cCUDt7LpG1nA9JkUwaS4P3xgH6i4qNYm9fWiSJGtZa8l7zE5cTHFvG2zxQbqRx5wl LUjSelp1bnpLxTU1Qzv83BgZ9iJgJ76tufpvp0OPpHJifqOZrE9k3naW9dWOKL3nQ5bv 9UifTJezDp+4fTV678VFGAh3IEgjVtkg27BtLyv/Ug7BMu4QpcjkwbAP61YZFWNo80fc IQk+9zq6k2Q68mevm9MxSgeq9YW6SXKWEFqJde50gZNZJACAsT5lNxyjKZZ8SYlSkPOA 9FkA== 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=2Vj9T7TvlUN9Rd6+wDXOmgwIEsHHHYSbUs2Go0/AOAo=; b=MthwRwmkUqNrg35ziaq33Xw+KI08ORGKPeuuLQkFsJFPwF7wY2+1HYY1uP2vyUaQQG FODBEbwtGaTlx0XTJ6c7O5mNdtXuzs+vT/taPyZ1HcEoTOVtmG8pi+WjQYNcB9zpdUxT O47mNNbS+tuo5zdVF1GB4aIWiv76f12u9JXF1hkxNUlACrfQSdS94NDDoJJU4OImSgoN SlFLi8V6wwt1ULLJkqfDfNV9GsgaisHNPwKdCOf6T1em1WAsteOUGcp/D0VC7L2JvBCl HX92gBiJwSNf1Jt4BOe1QFxnTY7/vZzd/N6iJFfhW3gMX24FEaJuCV8wLEZDZDXZks9W U7qQ== 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 hd16-20020a170907969000b00791a37e665esi4326393ejc.10.2022.11.18.15.38.17; Fri, 18 Nov 2022 15:38:41 -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 S236003AbiKRXgx (ORCPT + 99 others); Fri, 18 Nov 2022 18:36:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236432AbiKRXc7 (ORCPT ); Fri, 18 Nov 2022 18:32:59 -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 EFF2A83EB9 for ; Fri, 18 Nov 2022 15:20:50 -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 1owA8O-0001hF-6M; Fri, 18 Nov 2022 23:46:56 +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 1owA8K-0058Nm-Qt; Fri, 18 Nov 2022 23:46:53 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8K-00Hb7z-Ss; Fri, 18 Nov 2022 23:46:52 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Miguel Ojeda , Luca Ceresoli , Petr Machata , =?utf-8?q?Krzysztof_Ha=C5=82asa?= Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 202/606] Input: qt2160 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:56 +0100 Message-Id: <20221118224540.619276-203-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?1749879064921380040?= X-GMAIL-MSGID: =?utf-8?q?1749879064921380040?= 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/input/keyboard/qt2160.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/qt2160.c b/drivers/input/keyboard/qt2160.c index 382b1519218c..04d2ee6ff577 100644 --- a/drivers/input/keyboard/qt2160.c +++ b/drivers/input/keyboard/qt2160.c @@ -338,8 +338,7 @@ static bool qt2160_identify(struct i2c_client *client) return true; } -static int qt2160_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int qt2160_probe(struct i2c_client *client) { struct qt2160_data *qt2160; struct input_dev *input; @@ -461,7 +460,7 @@ static struct i2c_driver qt2160_driver = { }, .id_table = qt2160_idtable, - .probe = qt2160_probe, + .probe_new = qt2160_probe, .remove = qt2160_remove, }; From patchwork Fri Nov 18 22:38:57 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: 22941 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474721wrr; Fri, 18 Nov 2022 16:04:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf5cL0yJ5sJzcr6skjthQ788gYyZirH86kDAfba8o068auoSpV0aU4kT1oC+KKZTIdKftSyN X-Received: by 2002:aa7:c04f:0:b0:45c:f13b:4b96 with SMTP id k15-20020aa7c04f000000b0045cf13b4b96mr8100574edo.129.1668816289892; Fri, 18 Nov 2022 16:04:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816289; cv=none; d=google.com; s=arc-20160816; b=wnaRq98k21zI9lMh9x+m8puUOwqN9yULZC0c3S4kriTDW3HxNaI2pfGaV5YJI5rC5h bJ6qx1Im08quodlr/g6Hu3XT7p4mt4jFoDmHkNz6kfq+iqz6hUhbPEGYJqcsIftj+8Ya EcW5PCLCr77Eg0H8jee+3ikTC4qMmduejbCws2j+5senrHhwV5JbLI5soiuD2yogWVGu LdSXTeaky1SJ27mSu/BcHaUueCpKupCsBaycPWQufrQT0Y/uPWDco+dwHPaavUtMcxD+ 55by23iUkn2tLcjp85GTH8x35knvRB8NJTugbDsLdTVyAYNo/C/smP6f4+1ma+xXx4jC MZ6Q== 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=doQS+70H7xmmb/wIs/k/JVUInbbx1xcW2MXtuqZD9vI=; b=SEPeEXV9/ycsxfgOfuXtyF9jvuC/jeaeuYU+bjWTOyFhG3nohr4xEZ5mrRTvCCNwa3 dV6TQRs9FRaKW3Cvmd+QTdVjPz5Wm7kltqz0QeTfYbPJqLwRF+uwMMqeYKxMbJt7gL6l NmY6tkmxsLh6lLNC2/VUqx2zPyw2ZKpTCUcyU/BiSe+eh273Ah5xafMN89pQjhiDinaE nof+X3Sjz711HUwc1rkLXEQ4sh3XkygdVY+HkzUgb7V8o5nrd+lZ1WJSkcxdDIeRzjBv I1lwkNoeoX4fnotMqvDOlK73rZKM9wPHM5Liv9so+n0j4Bbk3WsM/c8AErn8Q95oHP7h S+tw== 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 a26-20020a50ff1a000000b00461dca37cd0si3779674edu.126.2022.11.18.16.04.25; Fri, 18 Nov 2022 16:04:49 -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 S237047AbiKSAAR (ORCPT + 99 others); Fri, 18 Nov 2022 19:00:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237298AbiKRX5Y (ORCPT ); Fri, 18 Nov 2022 18:57:24 -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 D6622C050D for ; Fri, 18 Nov 2022 15:29:01 -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 1owA8O-0001iY-EY; Fri, 18 Nov 2022 23:46:56 +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 1owA8L-0058Nu-3s; Fri, 18 Nov 2022 23:46:54 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8L-00Hb82-6D; Fri, 18 Nov 2022 23:46:53 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Greg Kroah-Hartman , Andy Shevchenko , Luca Ceresoli , =?utf-8?q?Krzysztof_Ha=C5=82asa?= Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 203/606] Input: tca6416-keypad - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:57 +0100 Message-Id: <20221118224540.619276-204-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?1749880710243833965?= X-GMAIL-MSGID: =?utf-8?q?1749880710243833965?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/input/keyboard/tca6416-keypad.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/tca6416-keypad.c b/drivers/input/keyboard/tca6416-keypad.c index afcdfbb002ff..281d9ec163cc 100644 --- a/drivers/input/keyboard/tca6416-keypad.c +++ b/drivers/input/keyboard/tca6416-keypad.c @@ -194,9 +194,9 @@ static int tca6416_setup_registers(struct tca6416_keypad_chip *chip) return 0; } -static int tca6416_keypad_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tca6416_keypad_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct tca6416_keys_platform_data *pdata; struct tca6416_keypad_chip *chip; struct input_dev *input; @@ -352,7 +352,7 @@ static struct i2c_driver tca6416_keypad_driver = { .name = "tca6416-keypad", .pm = &tca6416_keypad_dev_pm_ops, }, - .probe = tca6416_keypad_probe, + .probe_new = tca6416_keypad_probe, .remove = tca6416_keypad_remove, .id_table = tca6416_id, }; From patchwork Fri Nov 18 22:38:58 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: 23035 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp480225wrr; Fri, 18 Nov 2022 16:19:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf4M6U7nOmedKdFAsojHfipJS27tFyDTyJOSHQsZXM+rJKLnodTzAjeXBqfpK0fgb7By11VZ X-Received: by 2002:a17:907:2997:b0:7ad:b791:1390 with SMTP id eu23-20020a170907299700b007adb7911390mr7742172ejc.279.1668817175095; Fri, 18 Nov 2022 16:19:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668817175; cv=none; d=google.com; s=arc-20160816; b=hNgyTJ3lw2B8m+EMoO+pEDASdKKiLRmILd6oQ9qzFWeZDOomUIGER65LRumwD5+N9U oRkrOmP/ymdxBRRhWkoExoVegmjVLCYdpPbPdTDwe7WhtoahjgkjiN/sVV7MEXF7vwcx pSMR5xNy4Cj0Zmp+hZQ3PWlOTqGMduE1chl3gSyfFgYPOQ+JXzTee/R3UcW3KJS5hVCv ujmUD6Nsb/P/RBwcQNcntSBJrOXoDBpainpzf1/ltYV0kL8cq5B6zrOQTapXjSBrfd70 i2SJCZW9JxzyC0NheW+NMUg/m3NUIWEB3jiEI+S4s6rqe/rs2uCBff4QRNUQiTPhrQEk NpRQ== 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=MXmU9RtD8/b0Ip89W3q5nrESJktjxtx3TyBqH6iGqxM=; b=wd3jf+hu2yqHFFku1QNMd4jy423hC7ok/XrC586PA2/YQQi4PkC4FVaU99yAscMliD gxQ8Osy/kXBnMx6aIdJx5OaKvLY7CJSFYarXo3FsHB8YJglUb/GR33oqdIq44nyklw6H NEqI3xff7Fzq0K+L9koK62BEuG8eDBWeY6/Z+6wLlPn7mhJgWof8EuOP0rBz7JO5l92d 8vNDtLesttGFlA81cp1YSV//AF1x6mLJqaFQSCiRGs6Nfb3ySDbV8PUqapZXjpEGRt9J QkpStRMM39mFqUSKdX0xirwKX9gv7/c3GgkljOwMRmUkeqnp5rBySUav47FPafoOJLrF JeNQ== 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 d36-20020a056402402400b00463a83ce065si3916559eda.420.2022.11.18.16.19.10; Fri, 18 Nov 2022 16:19: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 S232340AbiKSASc (ORCPT + 99 others); Fri, 18 Nov 2022 19:18:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237730AbiKSAQd (ORCPT ); Fri, 18 Nov 2022 19:16:33 -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 2DE65F887F for ; Fri, 18 Nov 2022 15:35:35 -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 1owA8O-0001kH-G9; Fri, 18 Nov 2022 23:46:56 +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 1owA8L-0058Ny-Fs; Fri, 18 Nov 2022 23:46:54 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8L-00004s-Eb; Fri, 18 Nov 2022 23:46:53 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 204/606] Input: tca8418_keypad - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:58 +0100 Message-Id: <20221118224540.619276-205-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?1749881638494799674?= X-GMAIL-MSGID: =?utf-8?q?1749881638494799674?= 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/input/keyboard/tca8418_keypad.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/tca8418_keypad.c b/drivers/input/keyboard/tca8418_keypad.c index 3bbd7e652533..3d7492f38337 100644 --- a/drivers/input/keyboard/tca8418_keypad.c +++ b/drivers/input/keyboard/tca8418_keypad.c @@ -259,8 +259,7 @@ static int tca8418_configure(struct tca8418_keypad *keypad_data, return error; } -static int tca8418_keypad_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tca8418_keypad_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct tca8418_keypad *keypad_data; @@ -371,7 +370,7 @@ static struct i2c_driver tca8418_keypad_driver = { .name = "tca8418_keypad", .of_match_table = tca8418_dt_ids, }, - .probe = tca8418_keypad_probe, + .probe_new = tca8418_keypad_probe, .id_table = tca8418_id, }; From patchwork Fri Nov 18 22:38:59 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: 23028 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp479141wrr; Fri, 18 Nov 2022 16:16:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf6XLQ5NLsQi9aEsYueNP/ohXmxbgi73XWQ2pBrQfdGTABluZWlr8Ukj2nttKQ4Q1HEcCGyl X-Received: by 2002:a17:907:d60c:b0:7ae:e592:6d83 with SMTP id wd12-20020a170907d60c00b007aee5926d83mr7404486ejc.699.1668816975046; Fri, 18 Nov 2022 16:16:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816975; cv=none; d=google.com; s=arc-20160816; b=fOLnn4mVmebzEG+7nuE5t4paGGPBk2mbl5gFiNuYQyxGBXUKKzF7+snlk10rRFqw1/ XzDFuIke5CWD88OmKmeTm/GdO1S5rIVjFqf9ceiCcV3cpmPD9siWj8Pfgaa/VSS/87li 6DGzWQd7RjQw0UNj6bASsofXk9jK85xDMdi/fDjwMaNhCnFpo+1PDXfdTEqWeacZcxmn iAlGR9Lg3DRCsS29om4b0HuYqK8GcBEBzTkBPJznGdKxL+5Kl1aa8qG38DTbEtNwfSig ZhyRLOuNLU84Dizq0sBn0jxEFUoz7QwqnA/MTXKpMcaTMH+EiHasXqTniXlUDAKuuesh iltQ== 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=AJr94lr4oOsS9hdX/P/n9j2KoSrovGlKiPYK8oWLzqU=; b=PDfRlpBQwdf3g333CB1JsKVyqlaB6vTM/ehWtGQKG97buEtIRGa0xhv27bHlSv1+Ax C24tridmQnSq2w2FeG2eWpXSeEZMQtk+Rm1X5n265KhtoDfQiIShRUcBAafNNdxLPOJa PhSGKssyzPa/ZjXb/bv0RBlGRw4txaJTbEPFmjb+/Eu3j0uLeK+r+t4G/zE+jExoR5cx OmhridC2NHaFYDa2Ps9FRBcjvR409eCqaX2E2KI7PstXjKN3JKnbvmRzTCsLdKJnZEhg qnIBFm7a6Vrw+ZdDWegqcvujEOI1E5rlZ0mifACVdyDPCFpnuAHgYwQ0hORIrJvJYSQM 0nOA== 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 cs9-20020a0564020c4900b004593bcff7e5si1418816edb.475.2022.11.18.16.15.51; Fri, 18 Nov 2022 16:16:15 -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 S237858AbiKSAPB (ORCPT + 99 others); Fri, 18 Nov 2022 19:15:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234182AbiKSAOU (ORCPT ); Fri, 18 Nov 2022 19:14:20 -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 D6D03B6B06 for ; Fri, 18 Nov 2022 15:34:49 -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 1owA8O-0001l8-VZ; Fri, 18 Nov 2022 23:46:57 +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 1owA8L-0058O3-Mp; Fri, 18 Nov 2022 23:46:54 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8L-00004w-N2; Fri, 18 Nov 2022 23:46:53 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 205/606] Input: tm2-touchkey - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:59 +0100 Message-Id: <20221118224540.619276-206-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?1749881428299372680?= X-GMAIL-MSGID: =?utf-8?q?1749881428299372680?= 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/input/keyboard/tm2-touchkey.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/tm2-touchkey.c b/drivers/input/keyboard/tm2-touchkey.c index 632cd6c1c8d4..086aafaf0418 100644 --- a/drivers/input/keyboard/tm2-touchkey.c +++ b/drivers/input/keyboard/tm2-touchkey.c @@ -181,8 +181,7 @@ static irqreturn_t tm2_touchkey_irq_handler(int irq, void *devid) return IRQ_HANDLED; } -static int tm2_touchkey_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tm2_touchkey_probe(struct i2c_client *client) { struct device_node *np = client->dev.of_node; struct tm2_touchkey_data *touchkey; @@ -357,7 +356,7 @@ static struct i2c_driver tm2_touchkey_driver = { .pm = &tm2_touchkey_pm_ops, .of_match_table = of_match_ptr(tm2_touchkey_of_match), }, - .probe = tm2_touchkey_probe, + .probe_new = tm2_touchkey_probe, .id_table = tm2_touchkey_id_table, }; module_i2c_driver(tm2_touchkey_driver); From patchwork Fri Nov 18 22:39:00 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: 23061 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486781wrr; Fri, 18 Nov 2022 16:41:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf4M0VwOGaSIiD4/d1rHPTSND2oe3UObl6rBshYrENNp8cq0FDeVeQyAcZZFa3r0j5qW8Wv5 X-Received: by 2002:a17:906:3b48:b0:78d:b65a:aabe with SMTP id h8-20020a1709063b4800b0078db65aaabemr8097200ejf.5.1668818471688; Fri, 18 Nov 2022 16:41:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818471; cv=none; d=google.com; s=arc-20160816; b=qiwfYODKAOYZ8MK8eoBM+9vlYde+uhajmH64hRiOH9ioiYww0Hgd5O/GpmB8+2EpBD z8pMf1npAy84WxXoP4hKe5VuO3ufpc+ey7u2jW79r/WwVUuX5pt81AgaLFMVaIKJUveV fx/EgjQffZNzJDemlmYztc5aoj9/HB6yvEUID0ZWOGq/TzPeLoqnt1V7bn/+CuVTTTYA R+HyiA08hOdqPVqzaJc0s8LOd7OU5wq71ewpGP6cMup1dWVexHkuPZLJB4uldhGxGqxo lUI6E6Ai01aM8Vo04LYeZ5eWCoo75sIzYUd467qqPitzGmFfQW38RSezQvbmhpkmV4OT M96Q== 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=bDUtSQ5ToqhT0BoLCnbvmghWdfXQ9CXmRxb8yjiANNU=; b=VMIcpLr0wWjER7T4Oq3Z2cpvXsGnDlerNAl+W0V47TWfK/aL9eSAK7pB6dOpIHYfRJ LNCPKceLbw8KGV2Mz+GRg55vqzU1NImOMmTGvpKPxNinGjVwN+8tvYJcZxm0jYZovPga Dw13gOfZmWJ8XbuoqmBnzDmAy1YXWXKyj6BBp42v9+LxfuCQvSaoeTFepGY1uTAqpmQy uMxE8USYPDN00IqAEDMlrJRjcNCBieeYEQQ8TcqCAY2rtcuWClPHisYHOj/+21EJJc2K hgsvijq/or3DtyDd4XvL5IvyDb5ZCCZbpcxzIJQeTTS/Q9+uuovVxAZXD7nADnuehbQa x9Fw== 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 by12-20020a0564021b0c00b00462273b6b75si3906181edb.361.2022.11.18.16.40.47; Fri, 18 Nov 2022 16:41:11 -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 S232030AbiKSAce (ORCPT + 99 others); Fri, 18 Nov 2022 19:32:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231283AbiKSAb2 (ORCPT ); Fri, 18 Nov 2022 19:31:28 -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 5EEEB10EA21 for ; Fri, 18 Nov 2022 15:41:32 -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 1owA8P-0001m8-58; Fri, 18 Nov 2022 23:46:57 +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 1owA8M-0058O8-0E; Fri, 18 Nov 2022 23:46:54 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8L-000050-VJ; Fri, 18 Nov 2022 23:46:53 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 206/606] Input: ad714x-i2c - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:00 +0100 Message-Id: <20221118224540.619276-207-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?1749882997880095626?= X-GMAIL-MSGID: =?utf-8?q?1749882997880095626?= 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/input/misc/ad714x-i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/ad714x-i2c.c b/drivers/input/misc/ad714x-i2c.c index efeef135007a..5ef518a50e63 100644 --- a/drivers/input/misc/ad714x-i2c.c +++ b/drivers/input/misc/ad714x-i2c.c @@ -69,8 +69,7 @@ static int ad714x_i2c_read(struct ad714x_chip *chip, return 0; } -static int ad714x_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ad714x_i2c_probe(struct i2c_client *client) { struct ad714x_chip *chip; @@ -99,7 +98,7 @@ static struct i2c_driver ad714x_i2c_driver = { .name = "ad714x_captouch", .pm = &ad714x_i2c_pm, }, - .probe = ad714x_i2c_probe, + .probe_new = ad714x_i2c_probe, .id_table = ad714x_id, }; From patchwork Fri Nov 18 22:39:01 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: 22760 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465351wrr; Fri, 18 Nov 2022 15:37:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf5BdgcvAUC97vMmm/5HPYayPqdJny5CZmvcfmmX5dhKWPGPwcAqLRqy08PCy3LCV+E+WUQd X-Received: by 2002:a17:907:9151:b0:7ae:df97:c03d with SMTP id l17-20020a170907915100b007aedf97c03dmr7964177ejs.125.1668814635362; Fri, 18 Nov 2022 15:37:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814635; cv=none; d=google.com; s=arc-20160816; b=GhSOFdHwbf63+VofZ1OXCid8JiQMoqj3BKrh9csfL8t7DPdSVg+B9WX9nyMHpWC8UK 1n8Lwg7O9B2QH6pcLbeUeI6bO+rVqy+lIRKBaXDWyMxEPuvrIbrMIODCfoH3dFDHHSGL OMsLBRKM3ukgveBqEd3AXDPpy/R8jhYP86WCvHawB5tSgWFxynk3WH6NJfYUhWeGrJS8 Hdu06IBIpJP7lk3uXx5BfMd7zxcVQR8kwEnyLI65ABjY8bokA5ArEsP+SmfpTqYhpszt ljxejqTRwoTCJiPbcoxdDrQrS0gNbQ5SfzxLFCXjbjsFsdKnUkmVnWIizIxdp4NoaO/+ GUhw== 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=HCyXCJj+t90gL4jX751dIPs8+7UHE/kNpAX5634QvTA=; b=k5QfIParFN8fMmW8T+8XzFboWe8YlypmOaNGsy6cd8dwqKFZcPzm5xCcBP0cTXV3tN 0sUvd/hWgA3cq7JW7xJCNJe15mlQFOth7IZ56YPeoPNFPsGNl09B8pagfUygQqXMsbEL J1Ar7r3QcwjXfIt5A0LKDtAmIoj6hqRD3DFCQeY9c0zL+TZdR6cuIkWajKSVJu7gr+Px Y3Sgner5h7yPs8p9EvfsO7UiEPC4gUB6MqR2KGfPtzFY/CKf/7A8hEvgbRyGE43W45z1 aNI7XXyIpYeNK9+EaVIbBKylY813UlWpq0hpQDumzVBBr8q0S2lGblVjpROJfqy0FVhP bTBQ== 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 p27-20020a17090635db00b0078331a3b123si3313764ejb.572.2022.11.18.15.36.51; Fri, 18 Nov 2022 15:37:15 -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 S236392AbiKRXgO (ORCPT + 99 others); Fri, 18 Nov 2022 18:36:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236343AbiKRXco (ORCPT ); Fri, 18 Nov 2022 18:32:44 -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 35917A8D67 for ; Fri, 18 Nov 2022 15:20:16 -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 1owA8P-0001mP-5d; Fri, 18 Nov 2022 23:46:57 +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 1owA8M-0058OB-33; Fri, 18 Nov 2022 23:46:55 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8M-000054-6t; Fri, 18 Nov 2022 23:46:54 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Jonathan Cameron , Hans Verkuil , Petr Machata , Andy Shevchenko Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 207/606] Input: adxl34x-i2c - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:01 +0100 Message-Id: <20221118224540.619276-208-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?1749878974971353603?= X-GMAIL-MSGID: =?utf-8?q?1749878974971353603?= 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/input/misc/adxl34x-i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/adxl34x-i2c.c b/drivers/input/misc/adxl34x-i2c.c index 5be636aaa94f..a8ceea36d80a 100644 --- a/drivers/input/misc/adxl34x-i2c.c +++ b/drivers/input/misc/adxl34x-i2c.c @@ -74,8 +74,7 @@ static const struct adxl34x_bus_ops adxl34x_i2c_bops = { .read_block = adxl34x_i2c_read_block, }; -static int adxl34x_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adxl34x_i2c_probe(struct i2c_client *client) { struct adxl34x *ac; int error; @@ -159,7 +158,7 @@ static struct i2c_driver adxl34x_driver = { .pm = &adxl34x_i2c_pm, .of_match_table = adxl34x_of_id, }, - .probe = adxl34x_i2c_probe, + .probe_new = adxl34x_i2c_probe, .remove = adxl34x_i2c_remove, .id_table = adxl34x_id, }; From patchwork Fri Nov 18 22:39:02 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: 22729 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464380wrr; Fri, 18 Nov 2022 15:34:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf6rEGNACQ9FD9YdTl6MkpQEZyuz0AP4HRdNhrFaTyI7uxDUDALlkm7gZNQa/WwSOSDNkMNJ X-Received: by 2002:a17:906:719:b0:781:8003:9b08 with SMTP id y25-20020a170906071900b0078180039b08mr8350223ejb.180.1668814485758; Fri, 18 Nov 2022 15:34:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814485; cv=none; d=google.com; s=arc-20160816; b=iZCq32MaShsVfQw1EnnPoFCSn3bbV+KW8xwWE9raW0jrkpxxV9dvvaLUqs4f2lpO5w Zoz1z+kQ6T/IHGb4B5oSNtqRzpEyQ9rh2oA4wrCqQp5X3gPH9OTxh73cJUdudLSUb4G6 cWGtWjwJZ6hAQPRa7qQTDJrH08V7ksSnyMGvp4rBrLmfdwYCF0kbfYy4+mNp6FJJARCJ TUJ/Uwc5RKq+C2Qcie/acBj8h52nkbJse1oyEVZqHBihtm0swFlDd6nnsjx9jknxHl/T 4xo72E3ZgQYPfn6dbHO30P9rslJYyq1aE97tV/mnAaMZJU0WkwajWSD0D4SAXZESS8Dq DSzw== 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=WivtIMGjDENGlcy2xmW+dWA8Fq/PmAEy+6MDfYCOmbU=; b=neFAMY0Q6kxbd7SpY0RHajt4v3Su6itFEkb64ndFfTcQGUsb5SNkkdzhS1eKwMZ6O+ wG4VQ20b2D50nnTYAtUp6vHrO2XUacxl+RW6Vdi7gkkHAgsvEzmTUGzn09PeT9k5xAd/ 7JARei/4zx3Thvqzqlhe2uGxDhVQWCOOxYoELgZ3LDNDX42JzpONnQaS1nkZhmnRrja8 Kg5GLQdOpawPh7cpdAQgLW8aPni78OBwVEmAGkBABX2deyAdk1UNSexYTkiB9K/+G2kq W4btcKcyIdQAzI5HQXWR1qI5Yn7RePnQZr/cgk0a7Y8wLekyEX+YgGNH62usoZWFBZYz Tegg== 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 sa21-20020a170906edb500b007701a050273si3861408ejb.942.2022.11.18.15.34.22; Fri, 18 Nov 2022 15:34:45 -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 S236195AbiKRXdl (ORCPT + 99 others); Fri, 18 Nov 2022 18:33:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235779AbiKRXa7 (ORCPT ); Fri, 18 Nov 2022 18:30:59 -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 4D5AD2B629 for ; Fri, 18 Nov 2022 15:18:45 -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 1owA8P-0001nH-CC; Fri, 18 Nov 2022 23:46:57 +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 1owA8M-0058OG-B7; Fri, 18 Nov 2022 23:46:55 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8M-000057-Df; Fri, 18 Nov 2022 23:46:54 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 208/606] Input: apanel - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:02 +0100 Message-Id: <20221118224540.619276-209-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?1749878818007087630?= X-GMAIL-MSGID: =?utf-8?q?1749878818007087630?= 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/input/misc/apanel.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/apanel.c b/drivers/input/misc/apanel.c index 7276657ad7ca..f42d3219cdcc 100644 --- a/drivers/input/misc/apanel.c +++ b/drivers/input/misc/apanel.c @@ -120,8 +120,7 @@ static int mail_led_set(struct led_classdev *led, return i2c_smbus_write_word_data(ap->client, 0x10, led_bits); } -static int apanel_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int apanel_probe(struct i2c_client *client) { struct apanel *ap; struct input_dev *idev; @@ -202,7 +201,7 @@ static struct i2c_driver apanel_driver = { .driver = { .name = APANEL, }, - .probe = apanel_probe, + .probe_new = apanel_probe, .shutdown = apanel_shutdown, .id_table = apanel_id, }; From patchwork Fri Nov 18 22:39:03 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: 22851 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471984wrr; Fri, 18 Nov 2022 15:58:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf7F++dHbkfDGemLyAA0OiVJd6tdKR8/sk5KQo/rZ/LS5jesyZ2Or4oeOE/Imt1q4pc9ADsk X-Received: by 2002:a62:442:0:b0:55f:8da3:71d2 with SMTP id 63-20020a620442000000b0055f8da371d2mr10109791pfe.37.1668815937622; Fri, 18 Nov 2022 15:58:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815937; cv=none; d=google.com; s=arc-20160816; b=YI+L64IhNH9s0iIOmr8uorDOcgJVQj9DuVp+BVXG5CPGV4LKIbtJKpFLDGi+ofwUXB yXz4assoD23WejotG+2moP8pE9oD16wI5qLRkjcuFbzX9Wn1CbpBU0B0IAv8wdW7eQf8 UNtZmYYBPa9tBGlQoS4zj64BOdyUHAXhhFc8z1Qfwsose3UO7whFGTFDvNcQWlaQ4yLl MkSnKSVcoMYjTKeskzkARoHz9MuxJJdDmV8lsICb/wXRQwKFMgz0ppDWxOHfj0FzfHoB SXIetjaPpC3hCDn2smPXN5oFmod8sBfNcU+OS2zogZoIf1s9Kn+Z9VDB0oby7oLA9WMF 5w3w== 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=ufAIgf4Dsdnb2l6oHywlq8+8tSlGKbncqfBTV4q4lPo=; b=NkPE63z9OAomMvblTWRaH8EsbFWrhsHoXW0TnVsX9NpmFJikjFTX3hC4vlFqVCDYo8 kFxxN6Yf7A5COK9JmYIR+qONu+IaSzvBW3sQB/l0sQu6LGDFxR9B0gd0sqJh9+RFvoib pvMkazKD1jNnn2Yeyu9DmXBUIG7ikhIDlHuM9GTo3DyzJ0wrxluS3zCbR9i+ie9ANye6 UpTqySNARtjwBjFJ34ut4IeGwyxspkjxXMxfvHnlRUAO6QFqxJsfu0D8+iZkf/GqA2N/ dnWCL2gaF0m1wy7uD/5EaSmFHQsljzMU10GpaqD7eZQRmb+cD6wxVq2qfC8SKKqmNH3t CCzA== 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 np9-20020a17090b4c4900b002130aae4825si9838108pjb.9.2022.11.18.15.58.44; Fri, 18 Nov 2022 15:58:57 -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 S233840AbiKRXvE (ORCPT + 99 others); Fri, 18 Nov 2022 18:51:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230466AbiKRXuI (ORCPT ); Fri, 18 Nov 2022 18:50:08 -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 4C4CAEC0B3 for ; Fri, 18 Nov 2022 15:26:42 -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 1owA8P-0001oG-HB; Fri, 18 Nov 2022 23:46:57 +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 1owA8M-0058OM-In; Fri, 18 Nov 2022 23:46:55 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8M-00005C-SO; Fri, 18 Nov 2022 23:46:54 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Jean Delvare Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 209/606] Input: atmel_captouch - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:03 +0100 Message-Id: <20221118224540.619276-210-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?1749880340975332326?= X-GMAIL-MSGID: =?utf-8?q?1749880340975332326?= 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 Reviewed-by: Jean Delvare --- drivers/input/misc/atmel_captouch.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/atmel_captouch.c b/drivers/input/misc/atmel_captouch.c index 156c699a8913..d9704b174d3a 100644 --- a/drivers/input/misc/atmel_captouch.c +++ b/drivers/input/misc/atmel_captouch.c @@ -161,8 +161,7 @@ static irqreturn_t atmel_captouch_isr(int irq, void *data) /* * Probe function to setup the device, input system and interrupt */ -static int atmel_captouch_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int atmel_captouch_probe(struct i2c_client *client) { struct atmel_captouch_device *capdev; struct device *dev = &client->dev; @@ -264,7 +263,7 @@ static const struct i2c_device_id atmel_captouch_id[] = { MODULE_DEVICE_TABLE(i2c, atmel_captouch_id); static struct i2c_driver atmel_captouch_driver = { - .probe = atmel_captouch_probe, + .probe_new = atmel_captouch_probe, .id_table = atmel_captouch_id, .driver = { .name = "atmel_captouch", From patchwork Fri Nov 18 22:39: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: 22793 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466706wrr; Fri, 18 Nov 2022 15:40:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf5CIcVuzMCFwiR+gAiiTCv6S+HawXUlvFbNwkULeRLEOj9rO/Moxfya24W9MydKX8Yp9J/y X-Received: by 2002:a17:906:af6d:b0:79e:1783:7f68 with SMTP id os13-20020a170906af6d00b0079e17837f68mr7894811ejb.11.1668814846731; Fri, 18 Nov 2022 15:40:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814846; cv=none; d=google.com; s=arc-20160816; b=XUtLHu3AYaWK+xgCjvaRKRvoJB9MWcymUpZL1JatIK4DSqD1BQC7I2EkvJY6c0gb1X 4jJ/U/3vEOq7OrnUP/Fji45+1kOyes7vhOJTmtXSdeAQ/5ATLhCQ3XRcqDw7oqHB+k2r UK+Gg6ewU2FnfGotjHm5/d2EhF9c6KZ/IT7FWd1Otm0luWr8Ugl9IHTSEF1qJ7nVQG/9 I65MQTBLwa7wB063rK5ZeIEoG5S8EG+Qi0sNHjhBphVeN1ASz8QY4UV0yUAafkXynvX1 EZ/zbRvDXJVRFoXYUduzrBPmvOs+kObsMKACiAWXn3qt6VyQOTP6cXAQgc2hGxys0OwD DI6Q== 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=0RtZoBNe4HBUHv9CkdrrjMCFHO8mtcWSz8+Y6q90KLM=; b=U6G3e3HCzDheaErhhjmHz4j5MRiTUJpdRbg1SApUrdy6XNeP4lfkJy9YyexoadHn3l bEuxZFBUM9hv1KJTd81UB62PvPZ31gHSKoGTEi5t2MuA48lAy5w5+Xo5NvuVxQPsXgcX fHVrXL+VQ2lO9g7qfgYqdJmT5z97+xG6hvXRpaHy36F+NKXfQp8mWYNSApU+egNQzCQc uiSYyowXFUsk+RIkJx3bHwoT6Kj9zfy+P3/lkaGRx4ZQKn2+XLMR4oMWyswHp8q6U+H2 wbWP0KS0XuDkW9EoqCqN6sTmbgz2gDfCX2ndTovOqifjykIYrlKcFJSzQkLyHBpAViL3 oWgw== 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 g21-20020a056402321500b004534c6c4bd7si4140057eda.433.2022.11.18.15.40.22; Fri, 18 Nov 2022 15:40:46 -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 S236588AbiKRXjR (ORCPT + 99 others); Fri, 18 Nov 2022 18:39:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236480AbiKRXhC (ORCPT ); Fri, 18 Nov 2022 18:37:02 -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 F1FA9C4C0C for ; Fri, 18 Nov 2022 15:21:55 -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 1owA8P-0001pI-QH; Fri, 18 Nov 2022 23:46:57 +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 1owA8M-0058OR-TL; Fri, 18 Nov 2022 23:46:55 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8N-00005H-4r; Fri, 18 Nov 2022 23:46:55 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Srinivas Pandruvada , Ajay Gupta , =?utf-8?q?Marek_Beh=C3=BAn?= , Vladimir Oltean Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 210/606] Input: bma150 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:04 +0100 Message-Id: <20221118224540.619276-211-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?1749879196760248522?= X-GMAIL-MSGID: =?utf-8?q?1749879196760248522?= 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/input/misc/bma150.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/bma150.c b/drivers/input/misc/bma150.c index 84fe394da7a6..3f9da5c3cb53 100644 --- a/drivers/input/misc/bma150.c +++ b/drivers/input/misc/bma150.c @@ -414,8 +414,7 @@ static int bma150_initialize(struct bma150_data *bma150, return bma150_set_mode(bma150, BMA150_MODE_SLEEP); } -static int bma150_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bma150_probe(struct i2c_client *client) { const struct bma150_platform_data *pdata = dev_get_platdata(&client->dev); @@ -552,7 +551,7 @@ static struct i2c_driver bma150_driver = { }, .class = I2C_CLASS_HWMON, .id_table = bma150_id, - .probe = bma150_probe, + .probe_new = bma150_probe, .remove = bma150_remove, }; From patchwork Fri Nov 18 22:39:05 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: 23017 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp478255wrr; Fri, 18 Nov 2022 16:13:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf6zky6Vh61hGPhQW4QBDw2ZjXQPdAfg0X93rrCBolust8cqdhUvW124wfy9WZpW6ULyoQfu X-Received: by 2002:a17:902:f78a:b0:188:a51c:b570 with SMTP id q10-20020a170902f78a00b00188a51cb570mr1991439pln.7.1668816823855; Fri, 18 Nov 2022 16:13:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816823; cv=none; d=google.com; s=arc-20160816; b=cm9WYx6alM9SficVD+ycdMmdGT38k2z5ePzz342MNF/01YZCx+sNlQL2o3t6D2+PIc erk29b8px9leI3tCoFQwPgTdNxB7WMfLefYnsTNqJWJopPqIV/FXIkFo8r0kjpqAy4vW hxFt1KEwkUO69gv9ICPrHWPARlzIQUQsnKLIYxXF5LK0c4o1Y2Jo2W6TXq0TUMzbOxyY o3ft2okEagxz89I87H64MtyvwjYuWrotWHPRO35ETJjFJMfl7TGJQoqLwwX5xwkObItQ 0o/yDSFOb1UGW4fynsEvvLy3XjSYD6911lpS1xswZIHBvImY3gDRMo0um8YB+/ALzqir kSPA== 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=pIDmx3bUL1SeKpck1CoOITwAKQ/fJpSTIyN8Pb06fIU=; b=HZWv2NGnwyrbhEeq/wxAc0JlwdCFv3Syn3ebSXlmzkxA5L7gq4w6CmfWesoc143OSp JQfk8aJ4EHNI35lBARfj24nZZdm9SfVLyzTrbWo+oEkUqEUhh2KvtWC6AeGCbPWAFrMo 2GjtjCHtZtjV33+hrp/8US56w/fSYXfITVlY7+I0IS92BP+ZbpjXycvOxIdp0nQnVpQj zwJy8CKe33pWI2ZMEvhlIiBvROIoPQq+DeTIsMwzz27OH/fO0vplK7Hu8dG2r+Y6DQjF N/tHEDHzzh1FefG80TV89BPC2u1KKFsfcGErcLcBOmhFy7k8dgaCMCaZ5fCQaHOIi6Tk qOsw== 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 k3-20020a170902c40300b0017145b821d2si5674179plk.477.2022.11.18.16.13.31; Fri, 18 Nov 2022 16:13:43 -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 S237784AbiKSAMw (ORCPT + 99 others); Fri, 18 Nov 2022 19:12:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232312AbiKSALC (ORCPT ); Fri, 18 Nov 2022 19:11:02 -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 5F75028707 for ; Fri, 18 Nov 2022 15:33:36 -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 1owA8P-0001ps-QT; Fri, 18 Nov 2022 23:46:57 +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 1owA8N-0058OV-1w; Fri, 18 Nov 2022 23:46:56 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8N-00005L-DI; Fri, 18 Nov 2022 23:46:55 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Jonathan Cameron , =?utf-8?q?Krzysztof_Ha?= =?utf-8?q?=C5=82asa?= , Corey Minyard , Maximilian Luz Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 211/606] Input: cma3000_d0x_i2c - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:05 +0100 Message-Id: <20221118224540.619276-212-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?1749881269915374631?= X-GMAIL-MSGID: =?utf-8?q?1749881269915374631?= 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/input/misc/cma3000_d0x_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/cma3000_d0x_i2c.c b/drivers/input/misc/cma3000_d0x_i2c.c index 3b23210c46b7..75442c1230b1 100644 --- a/drivers/input/misc/cma3000_d0x_i2c.c +++ b/drivers/input/misc/cma3000_d0x_i2c.c @@ -44,8 +44,7 @@ static const struct cma3000_bus_ops cma3000_i2c_bops = { .write = cma3000_i2c_set, }; -static int cma3000_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int cma3000_i2c_probe(struct i2c_client *client) { struct cma3000_accl_data *data; @@ -100,7 +99,7 @@ static const struct i2c_device_id cma3000_i2c_id[] = { MODULE_DEVICE_TABLE(i2c, cma3000_i2c_id); static struct i2c_driver cma3000_i2c_driver = { - .probe = cma3000_i2c_probe, + .probe_new = cma3000_i2c_probe, .remove = cma3000_i2c_remove, .id_table = cma3000_i2c_id, .driver = { From patchwork Fri Nov 18 22:39:06 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: 22901 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472593wrr; Fri, 18 Nov 2022 16:00:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf7WSlml0LMfq9oL9SpgHLJGU7Tuyg8rJWtbSA4TW/p/Cme7+9rbT5725l99/hZq65anEQp7 X-Received: by 2002:a17:90a:5c85:b0:20a:92d2:226a with SMTP id r5-20020a17090a5c8500b0020a92d2226amr10144535pji.155.1668816030194; Fri, 18 Nov 2022 16:00:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816030; cv=none; d=google.com; s=arc-20160816; b=KCUYoeL4nRnLGzg7yWqZGqa57fw9nGl68TvTNkQXmITe8w+8SkZ5hoQ60S8cQDiw3j QwN2JpVmVOQFDmIyEZE581nkBPsatlUSRRXMkKfAQIR/CpHOQuO4Volcom3G/Zgr4pEj o+wzqxNNUDHQ21AyIyopLgxISTQA+yYHfHloGrKldPEounlUzFUiTMXKMz/WipnauUrm TXRBmpEu9HNtBXIEx4rYXwqGN/Zw8HqdXJ5nvkKo0Ws6AA/4a0mmGHdgeJ6XaJNxmjv6 PeP7zf2REpP8WCT01VhOz12u7Xli+dIqkPph34fFqdVQtzMqx8EDTcbzJCsHRAFw0Afz q/hQ== 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=cgW/e1Bko8B1ue7LG0W2vAU4T0CB+I8oxN+UtaJ0vzw=; b=NcttdFmdyXQRGdDvTM4mAGo1isveMC/3MtrVEeSL3o6+1JNuWnvdzm7Ox6Ok6z+Mfb PKvjJRe7BERxRXrSfX4K1fHUGciFEKCTVaaJuE7rFwzLfoIzX1dmGDoV/cqekC3Xr+va +Lbfhlb8oJC0taAsaB9snK01ytoOFGE1O84aO2zOXolxZ6mBPMfSTe/Mmu1YRNNXVou1 l71b8gIqNU+Ad53HOdZ6fRriwaQDCpv8KwlnjXCQpzQ6DkTCGMow6NCcKfv6lEZdwfm3 8jDhVk77+NNJc/VYACooPdrPuswVXBVhjbAUw8hoEQ1ykaUVn0yaFqjJ1cuo2iss228w t5QA== 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 e25-20020a656499000000b0046e9da9ac40si4705079pgv.556.2022.11.18.16.00.15; Fri, 18 Nov 2022 16:00:30 -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 S236882AbiKRXy2 (ORCPT + 99 others); Fri, 18 Nov 2022 18:54:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233638AbiKRXw1 (ORCPT ); Fri, 18 Nov 2022 18:52:27 -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 A3639BE246 for ; Fri, 18 Nov 2022 15:27:38 -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 1owA8Q-0001qv-7g; Fri, 18 Nov 2022 23:46:58 +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 1owA8N-0058Oa-9E; Fri, 18 Nov 2022 23:46:56 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8N-00005P-Kj; Fri, 18 Nov 2022 23:46:55 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Support Opensource , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 212/606] Input: da7280 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:06 +0100 Message-Id: <20221118224540.619276-213-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?1749880437320831951?= X-GMAIL-MSGID: =?utf-8?q?1749880437320831951?= 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/input/misc/da7280.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/da7280.c b/drivers/input/misc/da7280.c index b08610d6e575..dcdea33b1a8f 100644 --- a/drivers/input/misc/da7280.c +++ b/drivers/input/misc/da7280.c @@ -1140,8 +1140,7 @@ static int da7280_init(struct da7280_haptic *haptics) return error; } -static int da7280_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int da7280_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct da7280_haptic *haptics; @@ -1322,7 +1321,7 @@ static struct i2c_driver da7280_driver = { .of_match_table = of_match_ptr(da7280_of_match), .pm = &da7280_pm_ops, }, - .probe = da7280_probe, + .probe_new = da7280_probe, .id_table = da7280_i2c_id, }; module_i2c_driver(da7280_driver); From patchwork Fri Nov 18 22:39:07 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: 22828 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471348wrr; Fri, 18 Nov 2022 15:56:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf5m9zhLfoL+B+YBbJa4A1k3Cq7fKh3xGL5Mb3OIM8XGoC1OzAfOwxGHERn9Sn89UYibtZ/C X-Received: by 2002:aa7:cc99:0:b0:44e:cd80:843b with SMTP id p25-20020aa7cc99000000b0044ecd80843bmr8013154edt.126.1668815792182; Fri, 18 Nov 2022 15:56:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815792; cv=none; d=google.com; s=arc-20160816; b=onMR0DlgqkVXlVqSLv+u2pLeIoQn/l4vcQ9/a37KolhD9Vqg6p8Cmnb21cRAottmpJ IK1oH8ltLUzCS9i2p75PhdPsewCkBovzUOibo+q8IvESaZDZJBJ92hfBHVwYF9PRWuRn hQ2xGWHXtPXX9AREnFpxVR6YlFGe3n1ODotWfor5OFBU5End2Ead1Y2dEVqiwQ2Siwo+ sXcOD4TmxBvKIlg8LQQ1bjX1xvxUY6ncoRBXsqaB2MgGw2+GgZPvniz284+KrC+gGn5t h8+vIdgkzh8MZFZAqFXxKln7qtB31zFhTZ/iqRe3RH0f5RJ/akko/BLKYxfuEr8DXXZM PlKQ== 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=Ic8PBGQ33zAgotdSR0uA0rQY3lYosP8eCbdIzrKPDUs=; b=W6V+oZlra1PvTWm7DJUJIcQRwgW2D9HIlwnwZdOhwN336/vx5Hgy+8tooyxCviF8Vi 2wBe/V1h6gpHpJcDLmnW8i/tuBGZQs9afA/ZUC9vjCt0PBmyJs5zhWo5vwgG+nzjIuUV sPTBrWLZhfvMNgQFGhouryW14tR+vnB5SUmObRWhozurFIfDorZoTaTZJW8s1MOubtcP LYzac2FVtv26lcNiiiK/VskDaik00GzLl+CMaMwGP2tfvuFv4FH+VSFvKsCP2yNxmJQh KcigzabKZycTku8Srttlum721qkMDBAPAqTOSiP9tQE/+3yBkTrvoijxiFXP7Oxh0kNU 6XUg== 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 p26-20020a056402501a00b0045f802c0b98si4123243eda.443.2022.11.18.15.56.08; Fri, 18 Nov 2022 15:56:32 -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 S234165AbiKRXpR (ORCPT + 99 others); Fri, 18 Nov 2022 18:45:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236142AbiKRXon (ORCPT ); Fri, 18 Nov 2022 18:44:43 -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 D3241CC15F for ; Fri, 18 Nov 2022 15:24: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 1owA8Q-0001sr-LN; Fri, 18 Nov 2022 23:46:58 +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 1owA8N-0058Oh-Ne; Fri, 18 Nov 2022 23:46:56 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8N-00005S-T8; Fri, 18 Nov 2022 23:46:55 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 213/606] Input: drv260x - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:07 +0100 Message-Id: <20221118224540.619276-214-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?1749880188404731847?= X-GMAIL-MSGID: =?utf-8?q?1749880188404731847?= 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/input/misc/drv260x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/drv260x.c b/drivers/input/misc/drv260x.c index 0efe56f49aa9..3a51ee5e935a 100644 --- a/drivers/input/misc/drv260x.c +++ b/drivers/input/misc/drv260x.c @@ -457,8 +457,7 @@ static const struct regmap_config drv260x_regmap_config = { .cache_type = REGCACHE_NONE, }; -static int drv260x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int drv260x_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct drv260x_data *haptics; @@ -654,7 +653,7 @@ static const struct of_device_id drv260x_of_match[] = { MODULE_DEVICE_TABLE(of, drv260x_of_match); static struct i2c_driver drv260x_driver = { - .probe = drv260x_probe, + .probe_new = drv260x_probe, .driver = { .name = "drv260x-haptics", .of_match_table = drv260x_of_match, From patchwork Fri Nov 18 22:39:08 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: 22952 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474910wrr; Fri, 18 Nov 2022 16:05:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ld7QmAAh0cn0CJaN4LS50x21QF2lKCHV/Xr33U/jQGsabRYbRbrIv9yGAr7KLSYgc4Ir6 X-Received: by 2002:a17:906:c0c:b0:78d:77b1:a433 with SMTP id s12-20020a1709060c0c00b0078d77b1a433mr7888456ejf.486.1668816315420; Fri, 18 Nov 2022 16:05:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816315; cv=none; d=google.com; s=arc-20160816; b=ldDC60zZ6vphRpGoKJxfGM7FlueNV0JVBXQG8doECMt16weX4z+QSRsiuzB9cXdF+s r8kQNwE3HmRBm1dEsURlQ9qNY1e9a46/l1IzGZ055VZcZ48kNyLV8QkzJLA4gp9d4VvV N4m/Qa9iBcDupgouCudjyyUZSu+/iFT44lH0asA7oaKrjLIYxhyo6HopXtToH+sxXgTx pk5IN0o9eUgL0d2Pb5w8hX8Acj2s4h5NuzrEkntbsvParWRaoaQEPdqjA0Kp14yng7w5 cAH8hGRL/XC5h0N7cnj6bcSUTkrBsEzhNnKGDXcKVLvA8n8w9HrWqnptd48PVJmXJWZf RoLQ== 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=QCEf85VLhf4oZWu5U4d06AYD7HRLTC/ih1hEny7iHQE=; b=kPnKXvVQt6dynb/DnDw+mK+Iy1qzLMqG2YUmU4K0LSF65mKLI/dT/s1lFd6faCWQcd fiwPOFHPckF/C7NVtSqcC/6bgkC8yQ+CUTO+o1QYaJ/IljpnjyXko31Rs3qL76Q5SCBK V8eZGgYGpi8FG2+dXMoZsNN7o2Y8Mp/8IYE4NFcn3oJSCYX6jc9kDiUxtF2hfGEOeP/+ 9ZKzGVYNASt2LGUv51MLIV9vpF1YVkqkCchP/xX4hJ1ITvto5n64Qmn1CA1VoH6yaaFi ni8fwqEhhEuHNo8v9Bx8v/A7xCjJ6uEJUbsPs/ginww7yZjeP2dcA5IlEXu9USBxK9oi HZLw== 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 dm5-20020a170907948500b0078db3762061si4653127ejc.439.2022.11.18.16.04.47; Fri, 18 Nov 2022 16:05:15 -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 S234932AbiKRX4f (ORCPT + 99 others); Fri, 18 Nov 2022 18:56:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231864AbiKRXzJ (ORCPT ); Fri, 18 Nov 2022 18:55:09 -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 8CDEABE872 for ; Fri, 18 Nov 2022 15:28:06 -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 1owA8Q-0001tt-S6; Fri, 18 Nov 2022 23:46:58 +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 1owA8O-0058Om-1e; Fri, 18 Nov 2022 23:46:56 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8O-00005X-4s; Fri, 18 Nov 2022 23:46:56 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 214/606] Input: drv2665 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:08 +0100 Message-Id: <20221118224540.619276-215-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?1749880737038463151?= X-GMAIL-MSGID: =?utf-8?q?1749880737038463151?= 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/input/misc/drv2665.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/drv2665.c b/drivers/input/misc/drv2665.c index 21913e8085d7..c2a2ff980c06 100644 --- a/drivers/input/misc/drv2665.c +++ b/drivers/input/misc/drv2665.c @@ -156,8 +156,7 @@ static const struct regmap_config drv2665_regmap_config = { .cache_type = REGCACHE_NONE, }; -static int drv2665_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int drv2665_probe(struct i2c_client *client) { struct drv2665_data *haptics; int error; @@ -298,7 +297,7 @@ MODULE_DEVICE_TABLE(of, drv2665_of_match); #endif static struct i2c_driver drv2665_driver = { - .probe = drv2665_probe, + .probe_new = drv2665_probe, .driver = { .name = "drv2665-haptics", .of_match_table = of_match_ptr(drv2665_of_match), From patchwork Fri Nov 18 22:39:09 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: 22682 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462002wrr; Fri, 18 Nov 2022 15:28:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf5TQIq3tqqAM475ALxIOw/p7Dv8sncUhcT54nNbtX65eEOrURhjUES4BVwifqClHQ0wilfy X-Received: by 2002:a17:906:4b18:b0:7a1:b573:c99e with SMTP id y24-20020a1709064b1800b007a1b573c99emr7801743eju.55.1668814126566; Fri, 18 Nov 2022 15:28:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814126; cv=none; d=google.com; s=arc-20160816; b=h0tyvoGdSal0CUx44TfdJB/z0S4UeBjRQkyWJxv6PFeX/w9rVxJ9lXtlNWCDsdnMxE lzzceLO3w4QF6sQy1fNEAkFyZP2kNL8bErZ5w2vaUl3oK19Dd/NYpoYjmDC+poVDMv6n RKDrGE0KGxxgIvm/ewMLVw5t8MCmCGcvy0tQAlkrznqeHCyap30DlO+1gv9DUsWXRnDe cVAplbSHT1Fx3Te8WfVxLJ990HBmBnIMM0Gu7PXbgJkaLky4jDuMBKeK5YZMfr7EYBeN mEgwhA/kzHV7M1JrlE4YWgMidI2CsIw5Q82PNHlB8nrkuk1LPxcnYCqvi0bAyD8wF7Nm KubA== 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=rwG/8foNuoJSZeD16mifjy6KkNopdT3+/cPm6UjnDW4=; b=K3GTRsUE3elfqj1FiSVabiYRpb2b+hzbqRGuJstAIH06JsaXKqCVGRZRszP9pN9W0t IKWEAeAVJiKsNlxRCNEuHIlXtT6Zqb1nEAGQWDnvHcria8wPH4UKFJM9fHlOAfXB8SM7 uTHX0FscMzBI2UvOiPcJ8e0Ypitv/NVwb1yDjEEfz8FiKjNcr2YAV+34b92rz8b1pwSm KYCvhiNT/RMZOQ3ILIJoqJhfXE5Hg9o63H1ieaenst8Z1dbdObzbjIqRnsRYhe//SGlv IkbA1VD+S7ZGBTYdAs2+SAGaiHUne1rxqCh8wOG3rz2dMPD5EPUDG7mKPPgqEJoscJ/n CkNg== 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 w10-20020a056402268a00b00462f4ea167esi4649930edd.315.2022.11.18.15.28.22; Fri, 18 Nov 2022 15:28:46 -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 S235742AbiKRX0t (ORCPT + 99 others); Fri, 18 Nov 2022 18:26:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231723AbiKRX0N (ORCPT ); Fri, 18 Nov 2022 18:26:13 -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 63F9D9208B for ; Fri, 18 Nov 2022 15:14: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 1owA8Q-0001tv-NQ; Fri, 18 Nov 2022 23:46:58 +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 1owA8O-0058On-2P; Fri, 18 Nov 2022 23:46:57 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8O-00005b-FJ; Fri, 18 Nov 2022 23:46:56 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 215/606] Input: drv2667 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:09 +0100 Message-Id: <20221118224540.619276-216-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?1749878441171756493?= X-GMAIL-MSGID: =?utf-8?q?1749878441171756493?= 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/input/misc/drv2667.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/drv2667.c b/drivers/input/misc/drv2667.c index 3f67b9b010bf..da7ac63dce4c 100644 --- a/drivers/input/misc/drv2667.c +++ b/drivers/input/misc/drv2667.c @@ -333,8 +333,7 @@ static const struct regmap_config drv2667_regmap_config = { .cache_type = REGCACHE_NONE, }; -static int drv2667_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int drv2667_probe(struct i2c_client *client) { struct drv2667_data *haptics; int error; @@ -475,7 +474,7 @@ MODULE_DEVICE_TABLE(of, drv2667_of_match); #endif static struct i2c_driver drv2667_driver = { - .probe = drv2667_probe, + .probe_new = drv2667_probe, .driver = { .name = "drv2667-haptics", .of_match_table = of_match_ptr(drv2667_of_match), From patchwork Fri Nov 18 22:39:10 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: 22800 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466802wrr; Fri, 18 Nov 2022 15:41:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf7dy1aoJYYwULKg7vE8lb2UrfWBxXcDkXsQhYAJtytX+mHD7ht98TFjY9FJf1jrYsv0/Xld X-Received: by 2002:a17:907:a705:b0:78d:3e6b:d402 with SMTP id vw5-20020a170907a70500b0078d3e6bd402mr7579208ejc.563.1668814864858; Fri, 18 Nov 2022 15:41:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814864; cv=none; d=google.com; s=arc-20160816; b=yRp+k70DVabmORkF7ohjq3J+YNA4aQOKtawvJ4G9dvbALZl/G7xcEys/SnYFWK1wKc LO06ePRaPsmCdL2ulRQlesE6d6+Hgk5tqzFI1zJJdHY7KMnwx00fd3Z4ifG3vlTg/ndn zvfvMfLDeapB7ljkNeQF6Judh23mzUnQdABvNz/UOP8KDnFCkoyfEd6/O73Wr7DKD+WN 8YtnFyqZRmG5dQc02hilG0kLw6kUoTUSE8b53Tr1FtQXBRPlXa5422QmpbJeiczAf8hP 4eIW4jtJwZLfz1O0POtIJYoJNHvtt+R0wAP+HNqUpe9Y1HGPFUHGJqzNbB4qXW185epK T4ww== 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=ziH5/oPUGkL5NUoOVqqoHh/ozZzq+uHDum4iSJ93aZ0=; b=v3OUBzCdM3UAQgR1kXhbY5ep2NMd4JF7Si5/UdIOQyKlxsp6WKbg9gJl8gXTyl5txc cb43G2Gigmq1Mfy/a/CA/Kzo3H+zbFZT7DL5N3AaPUDg9DMqIEilKyMUbNCoana8Eztp nN9a0m/fNMWBhDfUhur3RitaLFo7htTIPfAkgR763Y0xqi7CcoB2y5Xml0oKEZhGbtQJ yw/GyAH1TDQ6xQ/8sCNkbFMiONDfFleQ/LKB17LgmNGSqhas0nxPI+GlhVaFF/G5NT1B x7ON9saM6g7Uh0wdqVO9swgbPVQ+IFW56HgaBkZ3r95+68ExN9trjEd32qSRO5QYEMfU OfRQ== 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 z22-20020a056402275600b004618ed2dfe2si4885347edd.6.2022.11.18.15.40.41; Fri, 18 Nov 2022 15:41:04 -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 S236614AbiKRXjt (ORCPT + 99 others); Fri, 18 Nov 2022 18:39:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236767AbiKRXhw (ORCPT ); Fri, 18 Nov 2022 18:37:52 -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 E98CA6D95B for ; Fri, 18 Nov 2022 15:22:26 -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 1owA8R-0001vh-Em; Fri, 18 Nov 2022 23:46:59 +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 1owA8O-0058Oy-M4; Fri, 18 Nov 2022 23:46:57 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8O-00005e-NN; Fri, 18 Nov 2022 23:46:56 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Eddie James , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 216/606] Input: ibm-panel - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:10 +0100 Message-Id: <20221118224540.619276-217-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?1749879215243279689?= X-GMAIL-MSGID: =?utf-8?q?1749879215243279689?= 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/input/misc/ibm-panel.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/ibm-panel.c b/drivers/input/misc/ibm-panel.c index a8fba0054719..3969ffc1bc8d 100644 --- a/drivers/input/misc/ibm-panel.c +++ b/drivers/input/misc/ibm-panel.c @@ -119,8 +119,7 @@ static int ibm_panel_i2c_slave_cb(struct i2c_client *client, return 0; } -static int ibm_panel_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ibm_panel_probe(struct i2c_client *client) { struct ibm_panel *panel; int i; @@ -190,7 +189,7 @@ static struct i2c_driver ibm_panel_driver = { .name = DEVICE_NAME, .of_match_table = ibm_panel_match, }, - .probe = ibm_panel_probe, + .probe_new = ibm_panel_probe, .remove = ibm_panel_remove, }; module_i2c_driver(ibm_panel_driver); From patchwork Fri Nov 18 22:39:11 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: 22889 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472364wrr; Fri, 18 Nov 2022 16:00:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf7GQDEZ8ZmNke53SWRWfraXAJfICfKaOFKFvaZ33aJiuVWOjxN8Q/6Nf2QeNxmJ3H9bFZuy X-Received: by 2002:a63:2c8:0:b0:457:4863:2e85 with SMTP id 191-20020a6302c8000000b0045748632e85mr8665217pgc.6.1668816006023; Fri, 18 Nov 2022 16:00:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816006; cv=none; d=google.com; s=arc-20160816; b=EeaGpFqWz1KnF5erogG7+Z/Da94jQ8Z/YpabYoIf6gSjFx1JFxIuHMz+wPixXpn5DO wYnI57kU/j0N07Lg1aQ6sXXeVrVu2aWIa8e+Ju0vclLa5z95zmL0At+7KpL4cqLcRyeg hpSkK3CfDJCpta2ueIKSvr4uDFf0CI3EoYvYSJM2sjcLiD2JKrccIA8pjYpaqLnoVuRG b1eeSd5eXVVaFiGyy6Ny1qKs9sp3pKe4AHlQ2Jr/VlGOuxwgPlzxaODBk9UYMy1Lbvho V9Y+X6kTM+XtfWngapF/fIXUIV3rVNZWKs7v5ZOtKgAbGtwdD0mj7pxCGE+R12PT8+Kt MxyA== 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=icDWmEkkJoh8bLw1ipkfdyPEMxh1UZamkX/eg00Pt+U=; b=HJOug7k4z3cPo1QuSsP9BPhDNY3QNkXAhe2UX1X8evo9QIUNZXqR2Qs5Fd0xf8TaUD dou2B5lTuSW6bQ21SiYQO2CtfwFaAgontmGVOX2L4tU/QmXs6nbZiDIUAqvmsloczOpy P0yxd3gGRsIzrRFt0brkZ6mScxKI+FITpUxsBSJXYKvoqpoVshiYN+TuUe3RxGy2ShjS vQ3seyEVPQBP0u7yPJoYVztDqCFAEuNsE+i1DfPia65WtoVPKBSTK14+XW1fjHE6qiEA S4FxwoKHMxy7gaU5bWiww1kc+Qeb1+ny3emHCPrxMsdr6xZdvRFXmWRnxtisyjFlEgIP vsaw== 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 m17-20020a656a11000000b0043aa67c7d8esi6095448pgu.738.2022.11.18.15.59.49; Fri, 18 Nov 2022 16:00:06 -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 S237089AbiKRXxg (ORCPT + 99 others); Fri, 18 Nov 2022 18:53:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236985AbiKRXwB (ORCPT ); Fri, 18 Nov 2022 18:52:01 -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 1F87FBB5F2 for ; Fri, 18 Nov 2022 15:27:19 -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 1owA8R-0001wL-IB; Fri, 18 Nov 2022 23:46:59 +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 1owA8O-0058P3-R9; Fri, 18 Nov 2022 23:46:57 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8P-00005i-28; Fri, 18 Nov 2022 23:46:57 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 217/606] Input: kxtj9 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:11 +0100 Message-Id: <20221118224540.619276-218-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?1749880412228826617?= X-GMAIL-MSGID: =?utf-8?q?1749880412228826617?= 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/input/misc/kxtj9.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/kxtj9.c b/drivers/input/misc/kxtj9.c index bbb81617c2b2..7e73e6e0730f 100644 --- a/drivers/input/misc/kxtj9.c +++ b/drivers/input/misc/kxtj9.c @@ -385,8 +385,7 @@ static int kxtj9_verify(struct kxtj9_data *tj9) return retval; } -static int kxtj9_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int kxtj9_probe(struct i2c_client *client) { const struct kxtj9_platform_data *pdata = dev_get_platdata(&client->dev); @@ -539,7 +538,7 @@ static struct i2c_driver kxtj9_driver = { .name = NAME, .pm = &kxtj9_pm_ops, }, - .probe = kxtj9_probe, + .probe_new = kxtj9_probe, .id_table = kxtj9_id, }; From patchwork Fri Nov 18 22:39:12 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: 22842 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471967wrr; Fri, 18 Nov 2022 15:58:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf6JxsrCiM4bAAsrSFfBVWuAV3CfSqkcXobVzhZ6/TRl2LUC6vxV4L/lWzcd9UCNodXS67uh X-Received: by 2002:aa7:d482:0:b0:461:8503:2b46 with SMTP id b2-20020aa7d482000000b0046185032b46mr8200435edr.202.1668815936576; Fri, 18 Nov 2022 15:58:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815936; cv=none; d=google.com; s=arc-20160816; b=NsFH3pX6iY9qe6zSE6Cf+k3k1jCPlgEbHjWDmEnSSPPQMZeIYCk1oLSWADsEbfSM52 qxmU3KcIq7mhQz8J00PYoBBPrRzCQgKRIy6l7KNqQyU6z+JaU2ooaPIdvDHTzzvee/7y 4UuHzQRTcc8wk7mYiXYGjasx4gDq85oYcI7FfGkOYTHAzuWuEs9QaPpLTvBZpUA/AXiv GmeaKd7i2nK9IEcaCuouhsDWuhao5t0tyRqwqtxp/4eZvj3bjwgyMQoPEIvd4CQ2C1Vu DGbFZ4GYzgrketJT2jxPmFzVpCNCJDMedKoykkSVYEY7kwdnNkRnQG0JDvEPD2TZynXL FSnA== 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=v33TmFdL64xblP2p27mDwixDrQIfvasV2i+kNORg1Jk=; b=wKr0JaND/i8zG+N0xlan4telvyb6HEqlziolS75M1vokdIBbicFRxeoWdC6nLZBaeY 4QtNZYtgHUJ9kdpZ5L2jlV7ENia05XpLaxOoExh4Ipyl8RXiK8zVzf7yRLB3/I1nEuVn LbTZZWYdcn70ps8XpFI3ZX/wUA34EU4BDI9T9kghqHJMj3mPyaynu6KrMwC+E9K2+qtu Pz+L70up3LtHvc1hft5NF8Zqm+uU4XSxLX5mquAK47Mfm+uiR0rPQeIN/VHgYRVxLmyV 8P2hnayZN7ghF0y8Me8VI5nN0q2wBRvIlh5dZLeZPCVBBhykHQ+ICEgCxTMg7lZXxMFj YcvA== 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 q12-20020a056402248c00b00459b0141076si3988985eda.465.2022.11.18.15.58.32; Fri, 18 Nov 2022 15:58:56 -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 S234430AbiKRXtJ (ORCPT + 99 others); Fri, 18 Nov 2022 18:49:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237339AbiKRXsA (ORCPT ); Fri, 18 Nov 2022 18:48:00 -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 07E56E34C0 for ; Fri, 18 Nov 2022 15:26:18 -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 1owA8R-0001wo-NV; Fri, 18 Nov 2022 23:46:59 +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 1owA8O-0058P8-W3; Fri, 18 Nov 2022 23:46:57 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8P-00005o-8i; Fri, 18 Nov 2022 23:46:57 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 218/606] Input: mma8450 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:12 +0100 Message-Id: <20221118224540.619276-219-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?1749880339549924255?= X-GMAIL-MSGID: =?utf-8?q?1749880339549924255?= 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/input/misc/mma8450.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/mma8450.c b/drivers/input/misc/mma8450.c index 1b5a5e19230a..b12152536976 100644 --- a/drivers/input/misc/mma8450.c +++ b/drivers/input/misc/mma8450.c @@ -146,8 +146,7 @@ static void mma8450_close(struct input_dev *input) /* * I2C init/probing/exit functions */ -static int mma8450_probe(struct i2c_client *c, - const struct i2c_device_id *id) +static int mma8450_probe(struct i2c_client *c) { struct input_dev *input; int err; @@ -203,7 +202,7 @@ static struct i2c_driver mma8450_driver = { .name = MMA8450_DRV_NAME, .of_match_table = mma8450_dt_ids, }, - .probe = mma8450_probe, + .probe_new = mma8450_probe, .id_table = mma8450_id, }; From patchwork Fri Nov 18 22:39:13 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: 22839 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471558wrr; Fri, 18 Nov 2022 15:57:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf43t1mJKlT/5QUiITISr6BvFd7KabsM6zV8i5t5qnGFBZRKvhGXgwo7qN29D6jxxQ4Gxmkz X-Received: by 2002:a17:907:1750:b0:7ad:8608:a0a1 with SMTP id lf16-20020a170907175000b007ad8608a0a1mr7832266ejc.110.1668815833247; Fri, 18 Nov 2022 15:57:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815833; cv=none; d=google.com; s=arc-20160816; b=LGYm216ar55FOluFNKCmMcw4mE1+8CnHlLxUxLJZl848AgamSL8IQGMCH1EcIWFdl3 bmm2qIf8qtl17xToIp0p2MaWhvME5MvF3WCTUoNdyE5Q63ivkLLI7B6Wt7BLgLHyvx7v vSBtqUGvZuSogGZlO83D+UXjLYeQ3L5HYwSNNE8y8M9ZdMT5A70Xgs1p3OoutndTVUJI 8DUt+gzku4bwKWg/mepomvLWM4hAs7P8S0NsfD4M82aEMc0ww8oCVE5EBxuujqOWqLgc 4KHWw4J6CrCU/c4E1+UyliBxCJWThIejYWjgASO3AWJBQ7rlA/j/sco98AitC2Sy7bwQ K+DQ== 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=CM5/spRIyfBQVwMcYnzZ0IyvzWZoEFruONBrSQ3Pis8=; b=dwx078HTlRyHrsbD810PwgAJtLCwqXM3era6Ef6nkBCkwmHE90tpmf+YuT619YBE4R bL83gFr7EQYrtW/dJvvxcSL38UsvSUuLYoYT022lklaq9OtvZ7KeerLyiIZLtavco6VX WT9B2ZETsu7ozNEXHHSvxuOmDheIom9dSlcf8ceyAa5CYnVSTcK1a9jv/lozyHBDDxnP 6Bxzr3sH/ZJf08j47q3insQbFOoCugzk2EHngmTsEbckJtuvFspEF7Rjj95/Dt4x21xK sbOdcHWgZYUXKXV0eSCDgvyWZLxl2uXY5dq2BWK6RsD9JSHYNxUHnza8b8man6lcX00i 8u9g== 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 gt19-20020a1709072d9300b007ad8140c60asi5239914ejc.492.2022.11.18.15.56.48; Fri, 18 Nov 2022 15:57:13 -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 S236852AbiKRXst (ORCPT + 99 others); Fri, 18 Nov 2022 18:48:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237279AbiKRXrv (ORCPT ); Fri, 18 Nov 2022 18:47:51 -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 14E7BE6747 for ; Fri, 18 Nov 2022 15:26:10 -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 1owA8R-0001yA-S7; Fri, 18 Nov 2022 23:46:59 +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 1owA8P-0058PC-Ah; Fri, 18 Nov 2022 23:46:58 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8P-00005r-Fe; Fri, 18 Nov 2022 23:46:57 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Corey Minyard , Miguel Ojeda , Javier Martinez Canillas , Crt Mori Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 219/606] Input: pcf8574_keypad - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:13 +0100 Message-Id: <20221118224540.619276-220-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?1749880231169063841?= X-GMAIL-MSGID: =?utf-8?q?1749880231169063841?= 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/input/misc/pcf8574_keypad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/pcf8574_keypad.c b/drivers/input/misc/pcf8574_keypad.c index cfd6640e4f82..fd1ff3f1cd92 100644 --- a/drivers/input/misc/pcf8574_keypad.c +++ b/drivers/input/misc/pcf8574_keypad.c @@ -80,7 +80,7 @@ static irqreturn_t pcf8574_kp_irq_handler(int irq, void *dev_id) return IRQ_HANDLED; } -static int pcf8574_kp_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int pcf8574_kp_probe(struct i2c_client *client) { int i, ret; struct input_dev *idev; @@ -209,7 +209,7 @@ static struct i2c_driver pcf8574_kp_driver = { .pm = &pcf8574_kp_pm_ops, #endif }, - .probe = pcf8574_kp_probe, + .probe_new = pcf8574_kp_probe, .remove = pcf8574_kp_remove, .id_table = pcf8574_kp_id, }; From patchwork Fri Nov 18 22:39:14 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: 22947 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474898wrr; Fri, 18 Nov 2022 16:05:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf5HRKA591sEIfwpiDokHHkIPYW9KNk3e+aNOSEN2ugLN0RYH5fb4W106NQRDcgLCM3t7kRY X-Received: by 2002:aa7:cb58:0:b0:469:3902:9b78 with SMTP id w24-20020aa7cb58000000b0046939029b78mr1584772edt.403.1668816314569; Fri, 18 Nov 2022 16:05:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816314; cv=none; d=google.com; s=arc-20160816; b=zH/9PgDB/YgsGKPjJNSw7sDAUGrvfwM8IvMNj4VNfz1J9E3JtoU/7tT/svCNniZYsA bLKPb6y9t2pB91U8SflP6XkJFg6C/7qOZNWn4lOPhTqXJ5l7D/ZAlS/ldXvKWyjpmhwC tUrx4LKGH2dl8V35UO99m3XYIR4BfsZv/RoTkgg4vYpWlbr6VBzhlXtB93/MDGywNZLx 9LxqKvDKQUL36iiBEktGTfEArtwf3mH1mByWHmUV2WzSrZD6fFIBSdLwrKHgFwemayJZ EtauFz4wAOsGTH1s35cMNM6U1ZKnAnOAlx721SNHE3w9COYkeAZasicouEpvEf8OCYez I6FA== 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=Az/y1Ew7GlYg1HlWT3LxPhrpz01hS152lElwZgU2Lp8=; b=Z7DPIDrzipe5QEfEIQKSbws0u0Q9X4/QsDq2/fqAIbQLdyUS6rS39eTTrcS/ucKuhG Z6aBcCp+nt48BscPGyVRxaP9fYIELQYDe70w2XYl5jPaK2R2J7QWNZ+tcndKlbttfE5l W+x9iys6lG076LCovAvyXp+p8S0i5WYsBH4LM7LwqwGhI3Gp9BXpIGKAAdg89vnZhoZV b7EkWE46n63gi3Llcvy1Hx9BP5WFCt3H7HlFuL9/MZlHUaz//VW5z7jz5Pbh5NUkmxan qAkKrlanKRKbC4evaUYCx6ptSyxU5iUr4U7UwdV1l/5Gsx528GFElO4BCgJTM2FlghgO QFJw== 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 sd42-20020a1709076e2a00b0078a30f54c57si4818426ejc.32.2022.11.18.16.04.47; Fri, 18 Nov 2022 16:05:14 -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 S235011AbiKRX4a (ORCPT + 99 others); Fri, 18 Nov 2022 18:56:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231475AbiKRXzG (ORCPT ); Fri, 18 Nov 2022 18:55:06 -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 15EC0BE261 for ; Fri, 18 Nov 2022 15:28:05 -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 1owA8S-00020A-Rw; Fri, 18 Nov 2022 23:47:00 +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 1owA8P-0058PO-Te; Fri, 18 Nov 2022 23:46:58 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8P-00005w-PP; Fri, 18 Nov 2022 23:46:57 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 220/606] Input: cyapa - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:14 +0100 Message-Id: <20221118224540.619276-221-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?1749880736065912090?= X-GMAIL-MSGID: =?utf-8?q?1749880736065912090?= 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/input/mouse/cyapa.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/mouse/cyapa.c b/drivers/input/mouse/cyapa.c index 77cc653edca2..7e88a6ec7989 100644 --- a/drivers/input/mouse/cyapa.c +++ b/drivers/input/mouse/cyapa.c @@ -1244,8 +1244,7 @@ static void cyapa_disable_regulator(void *data) regulator_disable(cyapa->vcc); } -static int cyapa_probe(struct i2c_client *client, - const struct i2c_device_id *dev_id) +static int cyapa_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct cyapa *cyapa; @@ -1490,7 +1489,7 @@ static struct i2c_driver cyapa_driver = { .of_match_table = of_match_ptr(cyapa_of_match), }, - .probe = cyapa_probe, + .probe_new = cyapa_probe, .id_table = cyapa_id_table, }; From patchwork Fri Nov 18 22:39:15 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: 22683 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462018wrr; Fri, 18 Nov 2022 15:28:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf7hQMwbojGxilqhx1MlklU282acn8ySF/yHMo7FFBIxniyeDQs1Jkd2iLX7SqEwU1tAHcqg X-Received: by 2002:a05:6402:100b:b0:461:f1c6:1f22 with SMTP id c11-20020a056402100b00b00461f1c61f22mr8316265edu.95.1668814129543; Fri, 18 Nov 2022 15:28:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814129; cv=none; d=google.com; s=arc-20160816; b=b/bNIeWA4GdJWjLZglc/ibNJbcyjv3Rr/lcs8zB1ZkYCDNJ5gCXsWHm0+tr3kccV1J Ji8TJBJiAD87Gefs+hprY1YYW0PqgvVBokmQr0Fm2rKvmSJWjIV3c+GVoNgRAYnRSiJg O9yi6FPDOZt2ps56UCnVWCKKDRMovuzMDMFyzXw6hagN8CDc1UWso7lpswMYwkbbDClH cT3pPIb9kzjC6VUiGNVgPbqRK3bAaHDpGZ3UozHc3KnuxRYJoXFZEcspjL4p3VwfurJz boZKrBLrAcMFOJeNFm6rNs2Tih5gkBxV7aE1Tyn83J529AAr2M/+K78uZW47JHOaNUzX NrJA== 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=1CcK7SLcxRORZ8fpG90zP2FkK43SMOjcQNfnqXvM4jg=; b=gbUXkNnkeucilfCeWxJ8CLVPJymXUK7ZqSflh2NYRb2qY+UcTmuWqkwghH5Z68VBZO lnnAVbAmbKdcD6y7kjRU3AvU9w2ZwRKCEZ5ZG0XSs43CX6vaKi2iDDaRfUKsYlKi3ENp F355GzcnYr3HRa9MGkOQNWsF0q0w+sV0p5k8V+/K4WpGlgfQMsnyEEq5Kvdoi9sWOBbf mUBKi3viCzQ9TgNzHhOHDrPMrv+FSXQHCQDFHtfnxOnvzumf1X6ljkJRTGL+lHHK2wUz Uv9G+S5OfsKISEifY+r9Nkg9lxKwq4LR9UVAxBDSzVF2fN3VT+m1k3MC310ehFqG1xfT r7bw== 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 xe14-20020a170907318e00b007ae417013desi4329221ejb.324.2022.11.18.15.28.25; Fri, 18 Nov 2022 15:28:49 -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 S235477AbiKRX1R (ORCPT + 99 others); Fri, 18 Nov 2022 18:27:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235721AbiKRX0f (ORCPT ); Fri, 18 Nov 2022 18:26:35 -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 0FD95B9B95 for ; Fri, 18 Nov 2022 15:14:51 -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 1owA8S-0001zP-Fy; Fri, 18 Nov 2022 23:47:00 +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 1owA8P-0058PI-Mh; Fri, 18 Nov 2022 23:46:58 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8Q-000061-1a; Fri, 18 Nov 2022 23:46:58 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Hans de Goede , Greg Kroah-Hartman Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 221/606] Input: elan_i2c_core - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:15 +0100 Message-Id: <20221118224540.619276-222-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?1749878444670490291?= X-GMAIL-MSGID: =?utf-8?q?1749878444670490291?= 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 Reviewed-by: Hans de Goede --- drivers/input/mouse/elan_i2c_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c index d4eb59b55bf1..a25d5b055553 100644 --- a/drivers/input/mouse/elan_i2c_core.c +++ b/drivers/input/mouse/elan_i2c_core.c @@ -1188,8 +1188,7 @@ static void elan_disable_regulator(void *_data) regulator_disable(data->vcc); } -static int elan_probe(struct i2c_client *client, - const struct i2c_device_id *dev_id) +static int elan_probe(struct i2c_client *client) { const struct elan_transport_ops *transport_ops; struct device *dev = &client->dev; @@ -1438,7 +1437,7 @@ static struct i2c_driver elan_driver = { .probe_type = PROBE_PREFER_ASYNCHRONOUS, .dev_groups = elan_sysfs_groups, }, - .probe = elan_probe, + .probe_new = elan_probe, .id_table = elan_id, }; From patchwork Fri Nov 18 22:39:16 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: 22844 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471973wrr; Fri, 18 Nov 2022 15:58:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf74FPDI5no3pL3UbUbVC2HbI6x3LkGT9DhVGYDp/CoitAITzXB+oDVKAczuDGWRm5oPiSa0 X-Received: by 2002:a05:6402:41:b0:467:3ea2:3ec4 with SMTP id f1-20020a056402004100b004673ea23ec4mr8234656edu.351.1668815936878; Fri, 18 Nov 2022 15:58:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815936; cv=none; d=google.com; s=arc-20160816; b=m0+rksPXPc0IFC9BwmCtRpGQkrp4FXwwG/V2ZRPvGgAYhwyADB5XWLwcMCS8zv80+F LD/nyep9nGMO3kdZ/SuL8KxzjXnIdWzuPG5bZ8b+/DKST6xR8/M+35ZVpCiny3Wenf8T MEKWdiD7HM44p4selvqRIvs8XO6jtBhbeg/cmGYYph9h6Fm7tYqoa5UyPhmZnEpPX2w3 868885NOXH/s2ixVw5qzmONFsUPPyd09xE2JiRCOMzTGQAsomFh8RD8oKmbVn6LkV0T4 Lx2sv4nCTdiUHGIhANK/n04tHVOX01b6nbQ9fPgu4KdCpMnvTyWtwKNvoexBRrmw23pf Dlqg== 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=JAKsvYzIOdEHM/AIAUNQVQ8Kdqh3ynJeTD9ClXpfxIM=; b=VPSI4/tytmzvfQ1iWleZA1u8txsPIOECxTVFn7zAelo5rUGpJilx7Z7V9vFWDPohy6 67BEBUmCTEXdAtU0tGw8QJg8ylLcuKU23ZRGoDrf6j8+Xg7vqQeyiBmlSkq65VvzJK8t 7rETsBFGmYhGcwuXlznCPwy9qEekphAWhuvdhrc9Zp0diCwXwW/pmGfn2bYmPAv/g6pg 6PUGdE7oSn80j2DYpHmzxFCZywMlaHfUwrWF9Jaw1rRFjclnMCC9Y2k3Rt4TzX+/nnNW b+9ZO8XGCEWZDm7GXwKkCtbFaVYa5PZSfLYyh9lb0fSXvty6PFF+SXRvpYARSUoMfO/T PO2Q== 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 en17-20020a056402529100b0045bfaaab6d1si3958675edb.48.2022.11.18.15.58.32; Fri, 18 Nov 2022 15:58:56 -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 S236684AbiKRXuS (ORCPT + 99 others); Fri, 18 Nov 2022 18:50:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234851AbiKRXtY (ORCPT ); Fri, 18 Nov 2022 18:49:24 -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 3287DEC0AC for ; Fri, 18 Nov 2022 15:26:33 -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 1owA8S-00020d-Rs; Fri, 18 Nov 2022 23:47:00 +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 1owA8Q-0058PS-18; Fri, 18 Nov 2022 23:46:58 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8Q-000064-96; Fri, 18 Nov 2022 23:46:58 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Jean Delvare , Peter Senna Tschudin , =?utf-8?q?Krzysztof_Ha=C5=82a?= =?utf-8?q?sa?= , Greg Kroah-Hartman Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 222/606] Input: synaptics_i2c - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:16 +0100 Message-Id: <20221118224540.619276-223-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?1749880339803944068?= X-GMAIL-MSGID: =?utf-8?q?1749880339803944068?= 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 Reviewed-by: Jean Delvare --- drivers/input/mouse/synaptics_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/mouse/synaptics_i2c.c b/drivers/input/mouse/synaptics_i2c.c index 987ee67a1045..6487c8c60d5e 100644 --- a/drivers/input/mouse/synaptics_i2c.c +++ b/drivers/input/mouse/synaptics_i2c.c @@ -521,8 +521,7 @@ static struct synaptics_i2c *synaptics_i2c_touch_create(struct i2c_client *clien return touch; } -static int synaptics_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *dev_id) +static int synaptics_i2c_probe(struct i2c_client *client) { int ret; struct synaptics_i2c *touch; @@ -651,7 +650,7 @@ static struct i2c_driver synaptics_i2c_driver = { .pm = &synaptics_i2c_pm, }, - .probe = synaptics_i2c_probe, + .probe_new = synaptics_i2c_probe, .remove = synaptics_i2c_remove, .id_table = synaptics_i2c_id_table, From patchwork Fri Nov 18 22:39:17 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: 23088 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487611wrr; Fri, 18 Nov 2022 16:43:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf75pXRNHu69WEPFzDFonCXGelWrQPuR2Ob924rdjbXGPxAL1FScRGwvWZor6jwd7f7663Be X-Received: by 2002:a17:906:fcd0:b0:7ad:b8c0:3057 with SMTP id qx16-20020a170906fcd000b007adb8c03057mr7990531ejb.440.1668818614260; 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=agIC1okt+c7+2D10xMtzoXw7CG5jrZrQR0QmfmX20CUXbF9bgTI/HfVSbgVqoIm2lS Dl5ddUuOpq17M3B9tdQe82t+M+MBzZa0lDrTuJtKpB/Rwvhf8jNigbEPtZCJXMUIHf8u nkbvCc+a2iyu8mAJ2+KuLJufVq3J+hdJWwfBRL2gbIKo8dgb8DndVR1Lj98ex2NsNRqr mhKo/OxP7rlXwILCBGaOIs90A4vcbG9bdhTJmhWQRoeNqtr8YKxdL9xy3XzG6/hi20QB GooOe+VY+mEecfW6IkKjMlQr2megV2bAsmwZ7ZhkPxltaf4xbsLJtsXxvv2E/CqBexzW GdAA== 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=g+RZM+nS2VaC5J7bFXM6BejfUoMpqM2+BsnV/5gZYqQ=; b=PpR/GYh/AzhQYKBpDBdGUK3Ezap7CYdVvmFQBPrriw6ZqaKdwKU+TgHNAl7XNqa+1C hZuur6ia3qTuVyP4b8NVYB1Nn/TKvAqzfgOHhI9FH+IBkKzJ5dBpNnh94G8LZWXdGNvF 9FgozOQjD3yiljeloNGrxie2m63c/MGs463rTQGcePrUxR6Xj2KPvRqSgkyaCZN1PA0M ksHuO+3fUNqqNXxuS6O19imqpByV+Mf2XPUGnKvdvT69+ntTT1i9JGA56ol7WzoEO2QP JHReV9sTDM8vZ4N8yICTleUqZCsNif2R3jWe/pPeGVAjOXnnAzAiQPSV5X3Uc5eSGhP5 yaXQ== 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 he39-20020a1709073da700b00783d5a873dcsi4965159ejc.341.2022.11.18.16.43.04; 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 S232327AbiKSAdu (ORCPT + 99 others); Fri, 18 Nov 2022 19:33:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232146AbiKSAdQ (ORCPT ); Fri, 18 Nov 2022 19:33:16 -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 DB776C6899 for ; Fri, 18 Nov 2022 15:42:25 -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 1owA8S-00021N-Us; Fri, 18 Nov 2022 23:47:00 +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 1owA8Q-0058PY-Ao; Fri, 18 Nov 2022 23:46:59 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8Q-000068-EX; Fri, 18 Nov 2022 23:46:58 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 223/606] Input: rmi_i2c - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:17 +0100 Message-Id: <20221118224540.619276-224-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?1749883147274119825?= X-GMAIL-MSGID: =?utf-8?q?1749883147274119825?= 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/input/rmi4/rmi_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/rmi4/rmi_i2c.c b/drivers/input/rmi4/rmi_i2c.c index 50305fcfbef5..f2b75c6d3224 100644 --- a/drivers/input/rmi4/rmi_i2c.c +++ b/drivers/input/rmi4/rmi_i2c.c @@ -198,8 +198,7 @@ static void rmi_i2c_unregister_transport(void *data) rmi_unregister_transport_device(&rmi_i2c->xport); } -static int rmi_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int rmi_i2c_probe(struct i2c_client *client) { struct rmi_device_platform_data *pdata; struct rmi_device_platform_data *client_pdata = @@ -383,7 +382,7 @@ static struct i2c_driver rmi_i2c_driver = { .of_match_table = of_match_ptr(rmi_i2c_of_match), }, .id_table = rmi_id, - .probe = rmi_i2c_probe, + .probe_new = rmi_i2c_probe, }; module_i2c_driver(rmi_i2c_driver); From patchwork Fri Nov 18 22:39: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: 22838 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471552wrr; Fri, 18 Nov 2022 15:57:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf5LCG/fDi3KwKIt73hMYCsp1W6At6J+PUxHf3B/1cfdvd7kOiaUOIAyIJ29O0MFN6VCTukL X-Received: by 2002:a50:fd15:0:b0:461:c7bd:7da3 with SMTP id i21-20020a50fd15000000b00461c7bd7da3mr8220040eds.218.1668815831519; Fri, 18 Nov 2022 15:57:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815831; cv=none; d=google.com; s=arc-20160816; b=yqULLpMfpYtKBxV10FKkvDVL4CnNEeJoZRY41a4b0UWzvITcTqCkvQe4SOw0ZqyJUo 1FBZ2tCmNvxam45x0rvQL5KVToHJROCJMGKzZ0tUehSZnozZDE5kPIr3KpoCFvqYaZi8 Syn2D5HGuljUP3h7/yuWvaY6nxvlqVGG0/5A+RtN52g+szriVDW+mTttod1pop9yAUPP S7zypzATGbGL5Vua4t9a5JcDktRm8mWEs+YVEXay/Y8kHec71dp/l/bXnccC5RSo3Ypt f9uUvyod30yyXUk1NKDhuYHkxVig9zfzMLyTz9b9MZuCciE/sAlItdr6qygFwCeMu1dJ LGaA== 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=knQDsxhj+kf3aw6Uaj5EEZAxmfh2U1fVR9adRvTX380=; b=PfyH2gMDIhUHEbpqIl8a+u/k/Deo2UvTS0Kx3L28VHHLZbo/4O2v7S/tL2DPY5LNLs 79OyBsljMl1+d3JMJpd6z2gP7dbBNXvJ6JhEy38w7JPAsvW5PH3Ud7eV4UNAPTmYGQdz SvBaQWgirPCMAGxkiVSC2yeCu9dWs2yk5V4bkSNRfSXtrJfUG+TtoRGDNyf8JqVaYIv/ heO1nt5Vf2qXzwR1nMxZDUidqV/wB2qpK7kf4uGMJ/WUzYZOYpPeEcLzR3c+d6rRpeWZ eF4fAWIwLODdzfqUlgJigIKFn1XtYUdA6KfRNUnNSabvPPio31Qp/8zFfDXXkTP2HC9M v81g== 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 h17-20020a05640250d100b00461a98a20cbsi4556621edb.187.2022.11.18.15.56.46; Fri, 18 Nov 2022 15:57:11 -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 S236846AbiKRXsp (ORCPT + 99 others); Fri, 18 Nov 2022 18:48:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237165AbiKRXri (ORCPT ); Fri, 18 Nov 2022 18:47:38 -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 A4F3FE634C for ; Fri, 18 Nov 2022 15:26:03 -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 1owA8T-00021f-0K; Fri, 18 Nov 2022 23:47:01 +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 1owA8Q-0058Pb-Do; Fri, 18 Nov 2022 23:46:59 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8Q-00006B-KF; Fri, 18 Nov 2022 23:46:58 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Srinivas Pandruvada , Heikki Krogerus , Andy Shevchenko , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 224/606] Input: rmi_smbus - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:18 +0100 Message-Id: <20221118224540.619276-225-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?1749880229256492550?= X-GMAIL-MSGID: =?utf-8?q?1749880229256492550?= 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/input/rmi4/rmi_smbus.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/rmi4/rmi_smbus.c b/drivers/input/rmi4/rmi_smbus.c index c130468541b7..8a9ee2bd7402 100644 --- a/drivers/input/rmi4/rmi_smbus.c +++ b/drivers/input/rmi4/rmi_smbus.c @@ -268,8 +268,7 @@ static const struct rmi_transport_ops rmi_smb_ops = { .reset = rmi_smb_reset, }; -static int rmi_smb_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int rmi_smb_probe(struct i2c_client *client) { struct rmi_device_platform_data *pdata = dev_get_platdata(&client->dev); struct rmi_smb_xport *rmi_smb; @@ -420,7 +419,7 @@ static struct i2c_driver rmi_smb_driver = { .pm = &rmi_smb_pm, }, .id_table = rmi_id, - .probe = rmi_smb_probe, + .probe_new = rmi_smb_probe, .remove = rmi_smb_remove, }; From patchwork Fri Nov 18 22:39:19 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: 23024 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp478846wrr; Fri, 18 Nov 2022 16:15:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf4GvxlPkS3qMDAfL0wnSrxdZlYlzAoj34Up8dnIvzWW1lYLY8Y64tWG78ub8+71iT9gPcuO X-Received: by 2002:aa7:df84:0:b0:468:74:9820 with SMTP id b4-20020aa7df84000000b0046800749820mr7976741edy.288.1668816924473; Fri, 18 Nov 2022 16:15:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816924; cv=none; d=google.com; s=arc-20160816; b=cKBF8UbBrl8sOAb7EwlgPpfMPbSfajbrjiqLS9IGq3SvZaxwCb317hX5caUVbdDomc KWJ5OWkWxpeRkeRGOWkpRHb78R6XgaUO2hL5Y5RzE1gbpALlIDswTlQ7jkq2UaxnK89J O9BHCjo9aLI/BMJRrUmQuEO3nQU0NBACtFt1XxR2oPFkQ75OijfshYraWO/o6oskDlw6 SAjqrfP0CiCOivqDYg4/LIgqvbm6Rn6LFDSjeRkvoUIMXvpXOu7BrTSNzbj2Ei+qGKKm +jARoXeYL9XpbLsJqQ2akdwq7ILqxytu5gP7f+XTdbZ7FXUgP8BJp4cSURTRo4mCkjbZ ktOA== 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=Kjs35bqxrl91ItpmYscPZZxv0yzNitrncCAeRNt85HU=; b=jn5Sc22t+5cTa7a5Qn2H3WqJ7O7JFEFCNlLV/auUcd3PgpCpe0kVawf4CQzK0bIeqz u2q1OfkTDDwjJYrBFGQeIkXrZg1LW+jNhB4u8xujMglAlgGbgA9I9Ti6qp2dmmMYx1vD cYVXxfLuVFDYZfWS6wOlmfe0EtseMmGpt8jxiKLLW6hV0Y211Lez6qBPQGkJy9B6gVkg ZWdDLGa+Vkyyw82Vk862BkP3c2GMkpeOLwiVK/BnlDFA1etAKPHOOWE7DbFInMwRGYGp X4aqOUnQnZ3eQ/ysRXbLAmKA8mOn63dRfFsvpFxZhNjxjSUdOFa44AOj1ZW/byV8jyYz vlcw== 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 h19-20020a05640250d300b0045c9f2adb6bsi3983867edb.606.2022.11.18.16.15.00; Fri, 18 Nov 2022 16:15:24 -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 S237844AbiKSAOH (ORCPT + 99 others); Fri, 18 Nov 2022 19:14:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237817AbiKSANf (ORCPT ); Fri, 18 Nov 2022 19:13:35 -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 065B0F390F for ; Fri, 18 Nov 2022 15:34:34 -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 1owA8T-00021q-DL; Fri, 18 Nov 2022 23:47:01 +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 1owA8Q-0058Pe-Fg; Fri, 18 Nov 2022 23:46:59 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8Q-00006F-Pi; Fri, 18 Nov 2022 23:46:58 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 225/606] Input: ad7879-i2c - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:19 +0100 Message-Id: <20221118224540.619276-226-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?1749881375479058555?= X-GMAIL-MSGID: =?utf-8?q?1749881375479058555?= 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/input/touchscreen/ad7879-i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/ad7879-i2c.c b/drivers/input/touchscreen/ad7879-i2c.c index 0f20a1fdcdba..dd8f31737bb8 100644 --- a/drivers/input/touchscreen/ad7879-i2c.c +++ b/drivers/input/touchscreen/ad7879-i2c.c @@ -23,8 +23,7 @@ static const struct regmap_config ad7879_i2c_regmap_config = { .max_register = 15, }; -static int ad7879_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ad7879_i2c_probe(struct i2c_client *client) { struct regmap *regmap; @@ -63,7 +62,7 @@ static struct i2c_driver ad7879_i2c_driver = { .pm = &ad7879_pm_ops, .of_match_table = of_match_ptr(ad7879_i2c_dt_ids), }, - .probe = ad7879_i2c_probe, + .probe_new = ad7879_i2c_probe, .id_table = ad7879_id, }; From patchwork Fri Nov 18 22:39:20 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: 22853 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471999wrr; Fri, 18 Nov 2022 15:58:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf5bb2AFRz+vM2AVd+/U2rKtVwJByKOdKwLAqv9BZzIbyfeXs0oUSJhIX6AabjQjhO5HzVzA X-Received: by 2002:a17:906:c24e:b0:778:d81d:b1f0 with SMTP id bl14-20020a170906c24e00b00778d81db1f0mr7828590ejb.731.1668815939367; Fri, 18 Nov 2022 15:58:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815939; cv=none; d=google.com; s=arc-20160816; b=kBhhnGT3tR+pRlHL2R0XqUpOISH5zrcwLMgQKZkrmdZiRC+4v2cyQCmkwz3xeYlcZf WxoQow4OIazz4Qkvyek0Xvwzv4LZBAhpEx4xOGe9CWel0Ik7oFyCEyp/i/gA1DoIr1Qi OMlF0yrUsTM47cjlhUusnFTPf90kGGEFokVgmufDEr7LddjEPd0w3++KvAozJU7/Koq6 9F/thMS4brngup59ie4RnWrBL8z8vjgEF9f/G2lu6zUf2ST+6yzgfEkbGA7eXALPabvW 8APhwMv/9zeHNKt+/ZqYoL7E1tild3jVqy+thb2igxtRgo6y3Fd7QREKC/o8a8pgj2GN M6qg== 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=CiOwqZxPGrzjDMwmRoyTJE8DVngA+/GIyGA+EZ3+nJI=; b=mL9mU/C6vTP5Rs0mNhvR6XR/N4nLJKZqutGRxp58VNkRyw5+D2UgFVXQrWPrUrd9pu vAzGItqHBVc/N+gWSu69Hz9UwebFvmrzG3hh9yApd8cRtx/kyafwyblAWT/tFuDfTj1X UHAdwBB03ryhNAg3B9nExIPJIBgBoadNl46q1Qcl7e0acHtSmGr3dW2AA9vTjA0XVG7K xRDJllrqioeaswIqcWOu7Dgr6CoJIjku/vnbL/NcljJ+xtoUhypCrS/HJd5TxlQaBL37 ioqRnDCc1n1DsToDfxL9k1TzG3TwFitbW44kQph13xs01wJ9Q/21yS8tWnLBtiJNzYMW hsZg== 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 wz2-20020a170906fe4200b0078c5d28e27esi4357407ejb.604.2022.11.18.15.58.35; Fri, 18 Nov 2022 15:58:59 -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 S236916AbiKRXuW (ORCPT + 99 others); Fri, 18 Nov 2022 18:50:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236870AbiKRXt0 (ORCPT ); Fri, 18 Nov 2022 18:49:26 -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 5E3A582234 for ; Fri, 18 Nov 2022 15:26:35 -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 1owA8U-00024F-3i; Fri, 18 Nov 2022 23:47:02 +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 1owA8R-0058Pr-4F; Fri, 18 Nov 2022 23:47:00 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8Q-00006J-VJ; Fri, 18 Nov 2022 23:46:58 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 226/606] Input: ar1021_i2c - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:20 +0100 Message-Id: <20221118224540.619276-227-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?1749880342393760624?= X-GMAIL-MSGID: =?utf-8?q?1749880342393760624?= 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/input/touchscreen/ar1021_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/ar1021_i2c.c b/drivers/input/touchscreen/ar1021_i2c.c index dc6a85362a40..25bcc677e98b 100644 --- a/drivers/input/touchscreen/ar1021_i2c.c +++ b/drivers/input/touchscreen/ar1021_i2c.c @@ -87,8 +87,7 @@ static void ar1021_i2c_close(struct input_dev *dev) disable_irq(client->irq); } -static int ar1021_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ar1021_i2c_probe(struct i2c_client *client) { struct ar1021_i2c *ar1021; struct input_dev *input; @@ -182,7 +181,7 @@ static struct i2c_driver ar1021_i2c_driver = { .of_match_table = ar1021_i2c_of_match, }, - .probe = ar1021_i2c_probe, + .probe_new = ar1021_i2c_probe, .id_table = ar1021_i2c_id, }; module_i2c_driver(ar1021_i2c_driver); From patchwork Fri Nov 18 22:39:21 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: 23021 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp478587wrr; Fri, 18 Nov 2022 16:14:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf4h9Q3IarAjvjboaNN8jnteMMbDmU3hDsdPh/F2xMF68Mqmvuxj8lr/W1F66n+PWIigBkhA X-Received: by 2002:a17:906:4997:b0:7ae:ec5c:a99e with SMTP id p23-20020a170906499700b007aeec5ca99emr7664081eju.219.1668816885476; Fri, 18 Nov 2022 16:14:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816885; cv=none; d=google.com; s=arc-20160816; b=D6Klw2oujCfepkakofvZmwRycMY9tKjCvnF2iNFe/MAeYIHwu0P/FxiMXlJ/ykVevl txUfx57Pygbo3TQaDv6wr9t6vACOTKmVzIPsSpPYVDPoToRubw0POla0+odgEFT5Kz5i eknfDlVqNPkG0+LfnT1jOPhJC/LaAR44OjbWYXKO+Sw6auSFHSn32GFQLnye/GO/5EI/ 9680uJxGpY4lkEoy/ZQ4u8oIlvxHFYLJh7xgN0p+y94pVKyqBYvKz293jpVLdB6xmbwz VKX6+HnGU4q0F/goUY3I8ToPmwbmP2Q7PJW8XOxAwIgDIN3nw7exSYAAXqiqRzVl/Wv8 T0XQ== 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=XSTnUxNkMAGJM4B6kT4yG3uiUMO5l8rzRYSyxTaaxUQ=; b=mdxPFEDIaFNcR7XaT0Oisj4zKhyQ6Q/m9PWRKthpZKeTqnQd4m6ENBTzF8hRHvnk+w BiGbIfBNwIpYQcnSRf7teu7Wyyt9xF0NlmZu4MZHL5Q7U45ZEb/qoZN34s3wE0Kug1rj EHPQoSHj3+yn25KKFVurfFYsrRcAAuH+rao7u6HVfTjNqsWb5gILcRHWePucBSt7IWgc +waVksPVq/bmMNMoHBVCrVGetxbVKvf7P8WXPJoaTh1TTpQBvvtN7epCeWFvxNf69cUE 6A4FSjcniVSnwaXEXtYP8McpCMvR7Xfu82rESCDqUOplhXJfOoXNpojlT9H5s3EdBfOE TliA== 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 m3-20020a056402430300b004637e16cfa3si4034665edc.598.2022.11.18.16.14.22; Fri, 18 Nov 2022 16:14:45 -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 S237747AbiKSALm (ORCPT + 99 others); Fri, 18 Nov 2022 19:11:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237589AbiKSAKK (ORCPT ); Fri, 18 Nov 2022 19:10:10 -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 66A5DA459 for ; Fri, 18 Nov 2022 15:33:28 -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 1owA8U-00023U-2l; Fri, 18 Nov 2022 23:47:02 +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 1owA8Q-0058Pm-TW; Fri, 18 Nov 2022 23:46:59 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8R-00006N-6K; Fri, 18 Nov 2022 23:46:59 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Nick Dyer , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 227/606] Input: atmel_mxt_ts - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:21 +0100 Message-Id: <20221118224540.619276-228-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?1749881334403185559?= X-GMAIL-MSGID: =?utf-8?q?1749881334403185559?= 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/input/touchscreen/atmel_mxt_ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index ccecd1441f0b..39ef2664b852 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -3129,7 +3129,7 @@ static const struct dmi_system_id chromebook_T9_suspend_dmi[] = { { } }; -static int mxt_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int mxt_probe(struct i2c_client *client) { struct mxt_data *data; int error; @@ -3377,7 +3377,7 @@ static struct i2c_driver mxt_driver = { .acpi_match_table = ACPI_PTR(mxt_acpi_id), .pm = &mxt_pm_ops, }, - .probe = mxt_probe, + .probe_new = mxt_probe, .remove = mxt_remove, .id_table = mxt_id, }; From patchwork Fri Nov 18 22:39:22 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: 22902 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472596wrr; Fri, 18 Nov 2022 16:00:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf4IIjPLP7XAOP/8WwX0ssTns+ubK/AG73/YUIKoAD0sSANz8kpivJAEM/AbQD6An3fOLeKt X-Received: by 2002:a17:902:7b96:b0:186:9890:97cd with SMTP id w22-20020a1709027b9600b00186989097cdmr1749303pll.104.1668816031022; Fri, 18 Nov 2022 16:00:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816031; cv=none; d=google.com; s=arc-20160816; b=Uq1vVR0KCcKQ/uZ2atJC8lYm0jvANDnw39cMkAHgINmJa5Q+diev7Ts77aWwRhNZRR NoHwm158y/+y4GTGHOOMd6QEySQ+b5bM5iSpCraA/WnFsQ8Hpr61+ydaPI9mpDD3VUIr 9MtZ6kd0QvzRwzKFfRy4zPVDw4gwx48cq6EaduFBNZiIA0lqVfcdtLGyGKd01Y8sc5RB YVn5t5SqBXard9LO1tUTJ9/bcKV3uPPNiHJe4CP5ymdO23VPL2C0PABqrO7AVJsLpEFk lFeuhaKmxUyAAmNF2po4C+IZ9lcbmmvuqJaaypaFzwrh8ehoApY0PCdXDiygAu3OeB1p GdTw== 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=HkBOwooZHp9nmkCJj+Npx7oKIim9YeMXDz9mH/Rlegg=; b=vT98Pa32st7ew6TfDN5vvQqyeAqGyeOc2YSPMmfF6KkQaBLsqg3YgHU84z5rgbmajh SpQMQpTei9CRk26EmaGLV/LBQNHrg2chUJrCvOmox8/Zl04zjxbXgmEPvmhzx5A50NIl 9Lbwvly7AHdW0MJ4Lod+DoYJQaV1Fri4hckbSv4jg5iodHBS1KbZsdj7MMGnqSjIrZiv 2ToH+ls6EbIimPxpmr00J+/4YGJfrxJtscQ3A/dg1nzKBguXRsKDLkCbb8d7r7PR1HVd QNaEqojc3o1d7HF0wDRM/ETQxrSfYh6D2bzrDwD73n9Oe11smdwiEQKE9w3EcMHg7E+H vDJA== 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 m1-20020a17090ade0100b00202b78e2adasi262090pjv.102.2022.11.18.16.00.16; Fri, 18 Nov 2022 16:00:31 -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 S231757AbiKRXym (ORCPT + 99 others); Fri, 18 Nov 2022 18:54:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236960AbiKRXwt (ORCPT ); Fri, 18 Nov 2022 18:52:49 -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 A7E96D2DCA for ; Fri, 18 Nov 2022 15:27:39 -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 1owA8V-00029C-EM; Fri, 18 Nov 2022 23:47:03 +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 1owA8S-0058QK-Jt; Fri, 18 Nov 2022 23:47:01 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8R-00006S-F0; Fri, 18 Nov 2022 23:46:59 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 228/606] Input: auo-pixcir-ts - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:22 +0100 Message-Id: <20221118224540.619276-229-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?1749880438600187204?= X-GMAIL-MSGID: =?utf-8?q?1749880438600187204?= 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 Reviewed-by: Heiko Stuebner --- drivers/input/touchscreen/auo-pixcir-ts.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/auo-pixcir-ts.c b/drivers/input/touchscreen/auo-pixcir-ts.c index 2deae5a6823a..a4a1d58aeeac 100644 --- a/drivers/input/touchscreen/auo-pixcir-ts.c +++ b/drivers/input/touchscreen/auo-pixcir-ts.c @@ -482,8 +482,7 @@ static void auo_pixcir_reset(void *data) gpiod_set_value_cansleep(ts->gpio_rst, 1); } -static int auo_pixcir_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int auo_pixcir_probe(struct i2c_client *client) { struct auo_pixcir_ts *ts; struct input_dev *input_dev; @@ -637,7 +636,7 @@ static struct i2c_driver auo_pixcir_driver = { .pm = &auo_pixcir_pm_ops, .of_match_table = of_match_ptr(auo_pixcir_ts_dt_idtable), }, - .probe = auo_pixcir_probe, + .probe_new = auo_pixcir_probe, .id_table = auo_pixcir_idtable, }; From patchwork Fri Nov 18 22:39:23 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: 23082 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487192wrr; Fri, 18 Nov 2022 16:42:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf7++64Y2G7RTUm+wYaMbuC4H5TdySqS019AXTQrNUgz3skaR6CJX38bs0XOX1XO+kW6288m X-Received: by 2002:a17:906:524b:b0:7ad:a030:485c with SMTP id y11-20020a170906524b00b007ada030485cmr7727376ejm.605.1668818530266; Fri, 18 Nov 2022 16:42:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818530; cv=none; d=google.com; s=arc-20160816; b=zVHzi/5gRD/b1pUYDxCGChiAqzbJDvKNBVo3/k+TINMrgb1A2qAhVtFmUeST8k+CSM 2Hx5daK40ftG07tbcFCVFapEVWwWsuCyJorjXKmEcQ7i270fo/HuUPqxX74uUn9LkEhY 8Urr+MhQqCPyGaCS4qit4l7HfWO+S7J56Ng1QcMHmEMOi/hb9sdwuF+5H9U5q7b0mJ6z Iv4pbMH/q32+pJHNeIgmUruwhIhSIkMQ21p1jD5iE9ZFW+XpGxSoereRk8JqCNc6Pmt7 KD6Hm4yzY47cE6ojaz4BI+P1RPL5B1wMMk89CzbqOPgLaORUBCqQfE1oYZdWdszkt1tK GTMg== 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=bg4WSIj9NL0M69pBCjg0helqUCTZdyD/jb1kNEg+D5s=; b=NlfkquqWKSLw08LQlAH/ljp4AM6QtRpG4DZeC4Jd9cSJSJr5nDvEIjlsWn6+pc8Fgr U4zmulzj3WvJHYkmINDbTJj8BkK/EeTHoxPSX6KJ43Em8fGhoHKawy2esyifl0yAkH2O caznKh0CzzEYFUPC4MIxo0asfkehwwMwjMCjZ7SDYGpWvJtTPVcYrerldzVJYEjoFhxM +xOD5Q9UapY883GheaoBOC08CfkLjS75W4Zf3QrdVn9szILUgVTvZiAkTYZHhG4XkkOu TR8di3iCpWC1ltrgOxgle/oUYiIJQ5+zBSIWVc3cM193CmBnO7LJbyHiEbbFPEtP2PY4 UIUw== 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 qw17-20020a1709066a1100b007ae6ba5f344si734326ejc.53.2022.11.18.16.41.44; Fri, 18 Nov 2022 16:42:10 -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 S235021AbiKSAio (ORCPT + 99 others); Fri, 18 Nov 2022 19:38:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235477AbiKSAiI (ORCPT ); Fri, 18 Nov 2022 19:38:08 -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 C8D4CBCE6D for ; Fri, 18 Nov 2022 15:43:55 -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 1owA8V-00029T-4I; Fri, 18 Nov 2022 23:47:03 +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 1owA8S-0058QN-ML; Fri, 18 Nov 2022 23:47:01 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8R-00006X-Lv; Fri, 18 Nov 2022 23:46:59 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , =?utf-8?q?Marek_Beh=C3=BAn?= , Vladimir Oltean Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 229/606] Input: bu21013_ts - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:23 +0100 Message-Id: <20221118224540.619276-230-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?1749883058762987574?= X-GMAIL-MSGID: =?utf-8?q?1749883058762987574?= 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/input/touchscreen/bu21013_ts.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/bu21013_ts.c b/drivers/input/touchscreen/bu21013_ts.c index 34f422e246ef..5a4dbd39a372 100644 --- a/drivers/input/touchscreen/bu21013_ts.c +++ b/drivers/input/touchscreen/bu21013_ts.c @@ -404,8 +404,7 @@ static void bu21013_disable_chip(void *_ts) gpiod_set_value(ts->cs_gpiod, 0); } -static int bu21013_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bu21013_probe(struct i2c_client *client) { struct bu21013_ts *ts; struct input_dev *in_dev; @@ -618,7 +617,7 @@ static struct i2c_driver bu21013_driver = { .name = DRIVER_TP, .pm = &bu21013_dev_pm_ops, }, - .probe = bu21013_probe, + .probe_new = bu21013_probe, .remove = bu21013_remove, .id_table = bu21013_id, }; From patchwork Fri Nov 18 22:39:24 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: 22720 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464011wrr; Fri, 18 Nov 2022 15:33:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf7wtRCuuRNi3ffH6Qi3Pm56PSI5sbsoyROSSwbe82LxlSky+BErOqWuUjC005Ev485CpMwW X-Received: by 2002:a05:6402:3785:b0:461:e598:e0bb with SMTP id et5-20020a056402378500b00461e598e0bbmr8184957edb.21.1668814430146; Fri, 18 Nov 2022 15:33:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814430; cv=none; d=google.com; s=arc-20160816; b=GVwWpJ2lVsVTXZO9tpXemoSIri2kQTJbry9Rm46DHQlxrQyDEKm/w+kUhXDQn5Vcjo X6uqVjq2iSMSmlcy9KMtax0Pl7a+8/fy4R7skW7uaEcgBDzgWDJ/eoTbgLFIUaJ4s0Ow iHXz2Ce5396u8lYhDCmelovuczzMPbQ7wZG8MCc0rHo5/KFi8h0crAgeHUHTR+7B8a2+ y+559rlhiHCKm82CE6t4eYzqDps/+i9iHydnwRN/DKQ8TsscXdnrX4oAJXc8ZFbuJOyL lhK2zLdIFWwn/N1kNeJ1OKGkIm2swaIfpYaAo8FmcW1NfX0d1nMFpWqLo6iZIfN0q7Xv R1+A== 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=MIPk0OiIRqV192Ljyz3vir5GeZXpIBcpCV5ssk1b1CM=; b=dbiGp4XZ/tssYapSeL+rmbATZYIkyxuEvLcE5KrE3l/yoz4Ls5jU6qAYngU49oTSpJ zLsthhnWugjR6zUhloI/JDZKMrLxPOjbxuv5zHkLPt/xNv2m9/yHdoBRBcvTisxj8aV1 IgEmrl0SQjRi+s6L3ODxc33jkenLlrW15MvIuieMjyPsRDMMfqkyZCPAzw5xcGGmkqWD LhmjDljy9zP1ANJ/aqUkDqQKJ7jJjyP7xlc8JjbVvqDe30dWdrfdb9RIIPXqCJbJe5Mc 7TXBVyuHxzXx3veKr9az7ArnieAwN6zV9rtuDnw1j+OQW+w0It5tcYpvsQpEexFW6Orp DrHQ== 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 h3-20020a1709060f4300b00781bbff1cc1si3556915ejj.455.2022.11.18.15.33.25; Fri, 18 Nov 2022 15:33:50 -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 S236040AbiKRXbQ (ORCPT + 99 others); Fri, 18 Nov 2022 18:31:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235888AbiKRX3n (ORCPT ); Fri, 18 Nov 2022 18:29:43 -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 AFF8E71196 for ; Fri, 18 Nov 2022 15:17:58 -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 1owA8U-00025t-Ji; Fri, 18 Nov 2022 23:47:02 +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 1owA8R-0058Py-Lx; Fri, 18 Nov 2022 23:47:00 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8R-00006a-RO; Fri, 18 Nov 2022 23:46:59 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 230/606] Input: bu21029_ts - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:24 +0100 Message-Id: <20221118224540.619276-231-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?1749878759523905936?= X-GMAIL-MSGID: =?utf-8?q?1749878759523905936?= 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/input/touchscreen/bu21029_ts.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/bu21029_ts.c b/drivers/input/touchscreen/bu21029_ts.c index 392950aa7856..215f4dc5105d 100644 --- a/drivers/input/touchscreen/bu21029_ts.c +++ b/drivers/input/touchscreen/bu21029_ts.c @@ -331,8 +331,7 @@ static void bu21029_stop_chip(struct input_dev *dev) regulator_disable(bu21029->vdd); } -static int bu21029_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bu21029_probe(struct i2c_client *client) { struct bu21029_ts_data *bu21029; struct input_dev *in_dev; @@ -475,7 +474,7 @@ static struct i2c_driver bu21029_driver = { .pm = &bu21029_pm_ops, }, .id_table = bu21029_ids, - .probe = bu21029_probe, + .probe_new = bu21029_probe, }; module_i2c_driver(bu21029_driver); From patchwork Fri Nov 18 22:39:25 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: 22789 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466606wrr; Fri, 18 Nov 2022 15:40:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf6FNBHBOcedt6X9GIiOkP8Ihvmi1PebLzX2kP/ZkPIUocljm8cbfrAygf6GLSECRtsqM8kI X-Received: by 2002:aa7:dd45:0:b0:45a:3c66:b0e4 with SMTP id o5-20020aa7dd45000000b0045a3c66b0e4mr8246305edw.33.1668814827894; Fri, 18 Nov 2022 15:40:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814827; cv=none; d=google.com; s=arc-20160816; b=J0pUau84oMgeoPtLHoZwzY2S2Dl6jBimgb3WqbFzXaxrstThgUcpCXrsj3lmhtVD5c dlNd97EDKoL5X8B1ggcnzuYqcriFxoKJp26UYf1cRFB3temL3CtynjNYDmpVAGSdlAeq DxT0jCVgJnVnnE7mCw+w7IFRBRBpqpqII0R0j5fKf2g7gwZfpNn9s05EozvwDyz1YgcA pg3NJvJewyEo1AFyIOEMff+LO87P8VKsQ8bZ1XqkgvffhdMyuth2yd2its7G0cEXocdr FSkDQtsGUjLEsgIiZtTEccH2gYylnZeJC+/gOnCRNzp55tK4dVaxAtTGcCeaJ7WC3Mxp 56qQ== 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=PXIs4FDIgfUx3a2dx2zD4kGzhYisVUDVQt/H9hQpQmg=; b=SIXFcG9WAlKLH0WoxiaYad/EMolA5tP78hz8tdgzcLrFCF8FrysdKzEfakeu27OLRU FQSujCds5Z5mH/rlKZJgF6ezcqmnD1wxA/d5m/goyEyb3BOflHrhGpa6kRhOZpgXLiHR O9dQ9Ukmf9zk4CeVmb57fU/g/+VSaipILG+ao6/FiSa0zfHtOLnya/IumuCgkiO0H7Cz MCZ1EZl1sNN78TnIAcc6FOzCAUuCSYf1xyznDaIZ2NUfde9JoNl3REcnb6dbM8mXyrTd ptrHa+KjsZLe6V03erpx6NBEy1wfQ+rZnXLUX4ozo5B0F5tnXwAoO0cQfijIAULFJC0D 16NA== 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 xd9-20020a170907078900b007addbdb9fbbsi598591ejb.558.2022.11.18.15.40.03; Fri, 18 Nov 2022 15:40:27 -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 S230391AbiKRXjB (ORCPT + 99 others); Fri, 18 Nov 2022 18:39:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236605AbiKRXdY (ORCPT ); Fri, 18 Nov 2022 18:33:24 -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 92A93950D3 for ; Fri, 18 Nov 2022 15:21:33 -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 1owA8U-000272-Qu; Fri, 18 Nov 2022 23:47:02 +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 1owA8R-0058Q3-Uf; Fri, 18 Nov 2022 23:47:00 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8S-00006e-0l; Fri, 18 Nov 2022 23:47:00 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Hans de Goede , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 231/606] Input: chipone_icn8318 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:25 +0100 Message-Id: <20221118224540.619276-232-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?1749879177090641143?= X-GMAIL-MSGID: =?utf-8?q?1749879177090641143?= 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 Reviewed-by: Hans de Goede --- drivers/input/touchscreen/chipone_icn8318.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/chipone_icn8318.c b/drivers/input/touchscreen/chipone_icn8318.c index f2fb41fb031e..f6769e4bd4f2 100644 --- a/drivers/input/touchscreen/chipone_icn8318.c +++ b/drivers/input/touchscreen/chipone_icn8318.c @@ -176,8 +176,7 @@ static int icn8318_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(icn8318_pm_ops, icn8318_suspend, icn8318_resume); -static int icn8318_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int icn8318_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct icn8318_data *data; @@ -267,7 +266,7 @@ static struct i2c_driver icn8318_driver = { .pm = &icn8318_pm_ops, .of_match_table = icn8318_of_match, }, - .probe = icn8318_probe, + .probe_new = icn8318_probe, .id_table = icn8318_i2c_id, }; From patchwork Fri Nov 18 22:39:26 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: 23003 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477536wrr; Fri, 18 Nov 2022 16:11:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf7eGKRAP3ObE1VLgZjK405UjmkJoWARtybcgx9ukz6ZUjz44TKFu1Kv/08oIh+xRHpAFtfH X-Received: by 2002:a17:90b:3944:b0:214:1df0:fe53 with SMTP id oe4-20020a17090b394400b002141df0fe53mr15783778pjb.214.1668816708237; Fri, 18 Nov 2022 16:11:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816708; cv=none; d=google.com; s=arc-20160816; b=kjnMUk/KcJN8c/3Iqm9MsOO5lm/t5lk2K1KZ7BtAE8Kht4II93EG1Zcfo10U1TyPla eTihje9a1qbIfGA1wBK/Byp/f2ECYQVyEwgjlKR6qx5NHmknVhnLr7wURZmmtRwpjfMe utXPdY2NQvYsBvk5YMWD3E6SFH1/XpI5VYIcop3yjtY/05yPsHU5x5BaRFF3zDp4UxcW 7BWI8hyf55HYGf/zBBSFAusZBrp+i5Qe504o3fimZMGkriUu9+OTlFu1XB215hjT50eN 6JDxOzmyq/7I5oNEtHQ4NVzj61CNKKFRXqW7bRBeT3txFCV2L40yq0fbrmFvmT/xoPoT cecQ== 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=SONioEB4jsj97dRpVMMv4zf19mSXIl57VUf9jo8+JpE=; b=Jj8A6OnND4dyXJ0kW9T3NCfAEwDGjK7vTBc4deZfDFYtDg0AV/5FBnOYpNV01z/TTr PWSC4y6LyYMQOMztMGuN1JOwtPaMahgafObMRQp74noRIQ/EqSVFrzVk05rHHTIpa41r FOyFz78bor2HSaR+Asv55GemkL08wMJsod2eEJ9ncYYZlPO7y/GQ9I6cXPG1D3JhIz8o 8VfLoOpMFMAoJmC2p7BP7iBSYt7ACD+Y0FaPkBLVZBK3WjppQ8liazP7zQWhCZgLtJiJ sbCR4jc5Fd9cUh7VzeXGOjRwgpZNeCdqtlpX0HGWI6JtUDEu1uGujvA3+7ppYKIcb9wh WG8Q== 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 n1-20020a170902e54100b00185466d72e8si5684264plf.320.2022.11.18.16.11.35; Fri, 18 Nov 2022 16:11:48 -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 S237705AbiKSALN (ORCPT + 99 others); Fri, 18 Nov 2022 19:11:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237547AbiKSAJy (ORCPT ); Fri, 18 Nov 2022 19:09:54 -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 BD505F61 for ; Fri, 18 Nov 2022 15:33:19 -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 1owA8U-000271-TS; Fri, 18 Nov 2022 23:47:02 +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 1owA8R-0058Q4-Ud; Fri, 18 Nov 2022 23:47:00 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8S-00006i-5y; Fri, 18 Nov 2022 23:47:00 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Linus Walleij , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 232/606] Input: cy8ctma140 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:26 +0100 Message-Id: <20221118224540.619276-233-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?1749881148763576579?= X-GMAIL-MSGID: =?utf-8?q?1749881148763576579?= 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/input/touchscreen/cy8ctma140.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/cy8ctma140.c b/drivers/input/touchscreen/cy8ctma140.c index a9be29139cbf..3a91d948b7f6 100644 --- a/drivers/input/touchscreen/cy8ctma140.c +++ b/drivers/input/touchscreen/cy8ctma140.c @@ -198,8 +198,7 @@ static void cy8ctma140_power_off_action(void *d) cy8ctma140_power_down(ts); } -static int cy8ctma140_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int cy8ctma140_probe(struct i2c_client *client) { struct cy8ctma140 *ts; struct input_dev *input; @@ -344,7 +343,7 @@ static struct i2c_driver cy8ctma140_driver = { .of_match_table = cy8ctma140_of_match, }, .id_table = cy8ctma140_idtable, - .probe = cy8ctma140_probe, + .probe_new = cy8ctma140_probe, }; module_i2c_driver(cy8ctma140_driver); From patchwork Fri Nov 18 22:39:27 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: 23147 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488717wrr; Fri, 18 Nov 2022 16:46:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf5OEQ25pe6VIcil+9zOEFB1WFtuDzYoZSyDvM3/656UwFtqOctSzGt2mxwAFQwWtumP+nv3 X-Received: by 2002:a17:907:7670:b0:78d:b713:7247 with SMTP id kk16-20020a170907767000b0078db7137247mr7991191ejc.706.1668818811049; Fri, 18 Nov 2022 16:46:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818811; cv=none; d=google.com; s=arc-20160816; b=U0tE4lIkwlxSUUSmLjly9Pm40kn22Qn1NjWXb3ka/8H3zEVtNd6wSAJS2c2AgqxQNh cZ+0pcq34GSRYtQMDR0MQs3yFaGsimTGIR68NYkb5hKPbT6hNRWEkGzpSelcdvzaN2Es eUfxqBDo6g95GKU4hEmuQl5LJVujTXC0skGM07utzX5WFDLcV0Ygfp+wMd5eG8pMdnye IDIEzhIHtyROnQxm/KjjFdNdjuY2fYCdRsSZVegflvkAHfZs2KqbuvR2DnP7LtPPfRE3 0K1w8cLValIUtGq2BY2j8kuDOK+7mnGhL79mLUy2K+0tor77z7BgCtpzBymdeR6w+VLo dr+A== 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=Q1FY/AZC3UmgvV04Ev8hP9ZrlCPumM3jMHDMEQXItL4=; b=RW0KWvQ2uDzkzfVvO0b3uxreTXQkznQfPMhdyZap/KyElHODj4Ygjl02aqyDbekRei aTO56guZFz0t6KBj2lQnNxFMKDZkwR8ETB058iom8BRzLoLdDhXnwNxB1oCQud1qsfYe XG/eBJQi+Upfdz0OIBdvaX+G2IP+YCYZobqpQRBREle/3EYqXlZSee8yeOvgU6Y9jWHV Nll/v6T0UbKpDRtn+QS93ajWRVf0gIdiUqVVMi+EMjl7p+tjQUvuPxKuZ9YgyDm1go/R fj1Aq2CxWyYJmpyWpp4mOoOhB+uVJY8zr7UWqbMIPzO0W05+ec6skbYVyy0m6sgNjU7Q qFYw== 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 ds11-20020a170907724b00b0078bcc872a6esi4663234ejc.360.2022.11.18.16.46.26; Fri, 18 Nov 2022 16:46:51 -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 S232105AbiKSAlI (ORCPT + 99 others); Fri, 18 Nov 2022 19:41:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233651AbiKSAjs (ORCPT ); Fri, 18 Nov 2022 19:39: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 EE161117AF1 for ; Fri, 18 Nov 2022 15:44:32 -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 1owA8V-00028l-05; Fri, 18 Nov 2022 23:47:03 +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 1owA8S-0058QF-Fj; Fri, 18 Nov 2022 23:47:01 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8S-00006l-Ce; Fri, 18 Nov 2022 23:47:00 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 233/606] Input: cy8ctmg110_ts - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:27 +0100 Message-Id: <20221118224540.619276-234-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?1749883353715242422?= X-GMAIL-MSGID: =?utf-8?q?1749883353715242422?= 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/input/touchscreen/cy8ctmg110_ts.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/cy8ctmg110_ts.c b/drivers/input/touchscreen/cy8ctmg110_ts.c index 495ef156cf43..7c2b7309dbaf 100644 --- a/drivers/input/touchscreen/cy8ctmg110_ts.c +++ b/drivers/input/touchscreen/cy8ctmg110_ts.c @@ -168,8 +168,7 @@ static void cy8ctmg110_shut_off(void *_ts) cy8ctmg110_power(ts, false); } -static int cy8ctmg110_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int cy8ctmg110_probe(struct i2c_client *client) { struct cy8ctmg110 *ts; struct input_dev *input_dev; @@ -279,7 +278,7 @@ static struct i2c_driver cy8ctmg110_driver = { .pm = &cy8ctmg110_pm, }, .id_table = cy8ctmg110_idtable, - .probe = cy8ctmg110_probe, + .probe_new = cy8ctmg110_probe, }; module_i2c_driver(cy8ctmg110_driver); From patchwork Fri Nov 18 22:39:28 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: 22856 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472014wrr; Fri, 18 Nov 2022 15:59:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf74lGgk44KsEjQwmeeYM4EGYb6eoxTU2ipNqDtxCrf4RqDGxlyup2sxnYSvk+NCGM/+55Z8 X-Received: by 2002:a17:907:986b:b0:7ad:b7c2:a2f7 with SMTP id ko11-20020a170907986b00b007adb7c2a2f7mr7885806ejc.227.1668815942418; Fri, 18 Nov 2022 15:59:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815942; cv=none; d=google.com; s=arc-20160816; b=YYlythUMEXpPes/VbfIYUNz5sLFwYlVtW0d6WFFux9bDxIyRv1M+1zEjNUXvnsX6Mx 78ehWqGLjQ9KZVGB5q0ggJOAPK+s3JVirsGWzWtq9lmN0jnmpWseFRp8fVqg1tzai9ET y5SJLYOJyMw+9oiWlSQwW+Q5goPPVmNEQc6Yb8poE9wdDbywYxC6sCspcp7dCLX7U3UN 1w2Z8QFiue0WoH8DwTW8f6bJsJXu/+pf7EtLGx2giDbPgTcvN121yaBHrhLegv5ObM5W phUZIov9tLyn5Z+KSA/GhT7faY9wLROZvijXBVXHo/D9bIq2SlHaJdkgFbPJuLt4onU7 00WA== 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=w3fHbB6zoZ++u5tt+vZ8/t3AVYh98ufBKLkZc7wXQ48=; b=1EL8GrSCZA0oPXGG0c2nX7p9FBmkYj3pQtJvfi4cvzeUMWfNnzjbTWFc4pjIa3Z0bJ uPMMR4wH+qe6VCsruSpGOQerw9+/Wy19Po5jUaMR52gWjBDlOhsYBRHWXwJXSsSO6kR6 Ny+p9TulsHKJ1JvHRt+9sJ8bbqFeKJXBunclAda0PGBJbg/RfHj2wFON/XTrZ+kZ5Lzj wiFiRNJKfpLvnrVUQhptJfQghkiIC29Z2rCJr0r82XGSBEwJ4yJb/3OVdO5kPqk391Aq PpI5WOZoMxWL9XZT0u1k2IB7C+2Sbzz/4yH5TdBcs+9NKKT3IVoSiQlLaJyGISBm8tDA R7wg== 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 dr14-20020a170907720e00b007ade82b9333si4272195ejc.43.2022.11.18.15.58.38; Fri, 18 Nov 2022 15:59:02 -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 S236924AbiKRXue (ORCPT + 99 others); Fri, 18 Nov 2022 18:50:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236874AbiKRXt2 (ORCPT ); Fri, 18 Nov 2022 18:49:28 -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 B8A25E9307 for ; Fri, 18 Nov 2022 15:26:36 -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 1owA8V-0002Ar-Lg; Fri, 18 Nov 2022 23:47:03 +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 1owA8T-0058QX-8w; Fri, 18 Nov 2022 23:47:02 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8S-00006o-Ie; Fri, 18 Nov 2022 23:47:00 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Linus Walleij , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 234/606] Input: cyttsp4 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:28 +0100 Message-Id: <20221118224540.619276-235-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?1749880345612586636?= X-GMAIL-MSGID: =?utf-8?q?1749880345612586636?= 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/input/touchscreen/cyttsp4_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/cyttsp4_i2c.c b/drivers/input/touchscreen/cyttsp4_i2c.c index 28ae7c15397a..c260bab0c62c 100644 --- a/drivers/input/touchscreen/cyttsp4_i2c.c +++ b/drivers/input/touchscreen/cyttsp4_i2c.c @@ -27,8 +27,7 @@ static const struct cyttsp4_bus_ops cyttsp4_i2c_bus_ops = { .read = cyttsp_i2c_read_block_data, }; -static int cyttsp4_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int cyttsp4_i2c_probe(struct i2c_client *client) { struct cyttsp4 *ts; @@ -61,7 +60,7 @@ static struct i2c_driver cyttsp4_i2c_driver = { .name = CYTTSP4_I2C_NAME, .pm = &cyttsp4_pm_ops, }, - .probe = cyttsp4_i2c_probe, + .probe_new = cyttsp4_i2c_probe, .remove = cyttsp4_i2c_remove, .id_table = cyttsp4_i2c_id, }; From patchwork Fri Nov 18 22:39: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: 22826 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471314wrr; Fri, 18 Nov 2022 15:56:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ilcEDu2leRE1jfejPkkvvWZ6+q4/NMgUu8fklnXSzhi0A4sA0i3fwyAuhB0ZHTvKCdg6K X-Received: by 2002:a17:906:e21a:b0:7a1:e4c2:fb0b with SMTP id gf26-20020a170906e21a00b007a1e4c2fb0bmr7897811ejb.464.1668815786378; Fri, 18 Nov 2022 15:56:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815786; cv=none; d=google.com; s=arc-20160816; b=cw9T/SBvIdmG2Rc2IIjPJ3epY5Heomva7juYljoOETN8F2nmHo+AC9OVX2qM19ocs6 rM1y3jN0Mh2O0TV/Z9r/pIZPfUX/hHyQzrCF96U3PgC0EXteTtmIEREwDnIDSs0e1vr3 3Dt9NSVJMqMUxyulN+aFrme5TE1R4Ezn/4YkfYcbmn71FfeIB5FjEQ+bOqMqj/Z3hjNX 3kmvoytZEFum9tM6qC3JuY85304IZBnQOeveI8NukhTm+y/gNl3mx1Lq3RN7CDPvarAm JY9vAdo2EHbWzju7Wmlb2kkZ55GJVre6buo/TrF1jGejg+Jfg8BuSkhveW/HWTukuefs WJXg== 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=35M54guh0D0TR2pAL5dptpnbNp8hAlyBt0YfoTuq/M8=; b=QFYlcmqGtnHGOCWmiSSU1HlpKU0t+eyVv/HH8SNIgR6qByS9XbBd+mfTxodGPzyZMS 31Migjpr+aWkEicV4K59VqC4JmNZ3cv86h05sUWvPI39WvFPnEBqq0wkJ5Ql/VYUhVQ7 7zph/DmmNOWEGCcfmMY/jhRQXQ6mOaIQ0rXV+neOK7+lSzp//mFXgUOTDMOc5RVTFbzx ghvE7PaShDIPnRWRnyEkmFGYqeBIY6Qx7X6wuCyrUERVaRlNBJWQp/ZJBDhfIjHI/ez4 mSo9M/uxjcUjoEWDOuEl7oZasZDmI51oBCedfd9XZKhDfa3Mv+vncGZ5XqxABhR+QicV 9GBw== 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 nc27-20020a1709071c1b00b00783c42d2da1si4319235ejc.425.2022.11.18.15.56.02; Fri, 18 Nov 2022 15:56:26 -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 S236663AbiKRXo0 (ORCPT + 99 others); Fri, 18 Nov 2022 18:44:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236648AbiKRXn7 (ORCPT ); Fri, 18 Nov 2022 18:43:59 -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 34495C78DF for ; Fri, 18 Nov 2022 15:24:16 -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 1owA8W-0002BA-CO; Fri, 18 Nov 2022 23:47:04 +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 1owA8T-0058Qe-Dv; Fri, 18 Nov 2022 23:47:02 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8S-00006s-PN; Fri, 18 Nov 2022 23:47:00 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Linus Walleij , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 235/606] Input: cyttsp5: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:29 +0100 Message-Id: <20221118224540.619276-236-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?1749880181825278178?= X-GMAIL-MSGID: =?utf-8?q?1749880181825278178?= 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/input/touchscreen/cyttsp5.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/cyttsp5.c b/drivers/input/touchscreen/cyttsp5.c index 24ab1df9fc07..4a23d6231382 100644 --- a/drivers/input/touchscreen/cyttsp5.c +++ b/drivers/input/touchscreen/cyttsp5.c @@ -855,8 +855,7 @@ static int cyttsp5_probe(struct device *dev, struct regmap *regmap, int irq, return cyttsp5_setup_input_device(dev); } -static int cyttsp5_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int cyttsp5_i2c_probe(struct i2c_client *client) { struct regmap *regmap; static const struct regmap_config config = { @@ -891,7 +890,7 @@ static struct i2c_driver cyttsp5_i2c_driver = { .name = CYTTSP5_NAME, .of_match_table = cyttsp5_of_match, }, - .probe = cyttsp5_i2c_probe, + .probe_new = cyttsp5_i2c_probe, .id_table = cyttsp5_i2c_id, }; module_i2c_driver(cyttsp5_i2c_driver); From patchwork Fri Nov 18 22:39:30 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: 22773 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465959wrr; Fri, 18 Nov 2022 15:38:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf6peK3eoY/xf93mYPAiolGTV6azNBk+F9FsvQg88O6cA+2xI0QlVgAVS/K43wDZyNoZBIbA X-Received: by 2002:a17:907:904f:b0:78d:85fe:4951 with SMTP id az15-20020a170907904f00b0078d85fe4951mr7566970ejc.593.1668814728815; Fri, 18 Nov 2022 15:38:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814728; cv=none; d=google.com; s=arc-20160816; b=Q2iQIgvuVkYAMIHa2eUZZC3/IoXDMWQhce6l3MZR5BPS8XBSVKJi/TW4VQ+QmPebmh s53Td2Kxt/udjJ65GpND7XIzRd88KE7zWNpWmut7+hqMjrTZnrgDrfNdXZ5ZsmMuA/ie 6gNg1Hq4jfzUwXGMCszyLEscGd+xxLPeU3MDVMd+Rp91wp+0nM2/yE8p8r7lqdeo3+5/ dh8xyO3kjf3eKeMYjYtaXDL6RVvRHlMyHlFiWYwa9rcJOFjCRaA1PCdBThOEYQs/1RNP QeAvbG9iPdmgv2sdVDt8Y9pc0QZ8apRQrA5I7gU9WD7RmvWyB+2yvqQ0d4xgqzJMvwiD n+Jg== 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=yj6hIYnTcj6ftE6VSX8xBQmoJw0RX8aoKAbXF7V/+lM=; b=jCU7CP3pex+6cKoBijzdDwMEl+IBWQtWCUEMogooJQkFeTd2g1NBV0XZVewcVmQFOt ciuesZTQ/w1walmEpZURxDR40HFs8wuDKOaRbwtZ/NTG3zDBeZtL8R+Rucn7ZQCF+5EI fX0jf19lCauOOJTfBKDB5TMupFase6+x3X5CH7a7iACJL8OSfmW7lEfkCSRLFBvGypGe p4XhcFuq2pQEwLhRGSBf31yKC1sTWb9klgQj9s5CkPumxuPXnz/vRct12vxqIMpbnco8 JEcLVaYKdoE4yJritrfTNHbYpO0MmcYMG0vUxtdO+hRHqOD6QQMCdbEdNQFsuspKhWP5 crVQ== 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 ov8-20020a170906fc0800b0078d3a35e181si3292198ejb.871.2022.11.18.15.38.25; Fri, 18 Nov 2022 15:38:48 -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 S236519AbiKRXhH (ORCPT + 99 others); Fri, 18 Nov 2022 18:37:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236449AbiKRXdB (ORCPT ); Fri, 18 Nov 2022 18:33:01 -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 669E826B for ; Fri, 18 Nov 2022 15:21:02 -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 1owA8V-0002Ax-LQ; Fri, 18 Nov 2022 23:47:03 +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 1owA8T-0058Qa-A9; Fri, 18 Nov 2022 23:47:02 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8S-00006x-Vc; Fri, 18 Nov 2022 23:47:01 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Linus Walleij , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 236/606] Input: cyttsp_i2c - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:30 +0100 Message-Id: <20221118224540.619276-237-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?1749879073022119218?= X-GMAIL-MSGID: =?utf-8?q?1749879073022119218?= 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/input/touchscreen/cyttsp_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/cyttsp_i2c.c b/drivers/input/touchscreen/cyttsp_i2c.c index 4c8473d327ab..0155a1626adf 100644 --- a/drivers/input/touchscreen/cyttsp_i2c.c +++ b/drivers/input/touchscreen/cyttsp_i2c.c @@ -28,8 +28,7 @@ static const struct cyttsp_bus_ops cyttsp_i2c_bus_ops = { .read = cyttsp_i2c_read_block_data, }; -static int cyttsp_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int cyttsp_i2c_probe(struct i2c_client *client) { struct cyttsp *ts; @@ -67,7 +66,7 @@ static struct i2c_driver cyttsp_i2c_driver = { .pm = &cyttsp_pm_ops, .of_match_table = cyttsp_of_i2c_match, }, - .probe = cyttsp_i2c_probe, + .probe_new = cyttsp_i2c_probe, .id_table = cyttsp_i2c_id, }; From patchwork Fri Nov 18 22:39:31 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: 23015 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp478209wrr; Fri, 18 Nov 2022 16:13:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf71PKAPjd4xo3l/0iedYzi7toyZvLVfPzpsSO+IIk+9HhfQk5ZCDfaxjb6rzKangxgvd0mb X-Received: by 2002:a05:6a00:2da:b0:56c:6f58:5937 with SMTP id b26-20020a056a0002da00b0056c6f585937mr10475568pft.5.1668816815726; Fri, 18 Nov 2022 16:13:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816815; cv=none; d=google.com; s=arc-20160816; b=yhkYRDJETOQsCsmvbtOyJCozfH4IXORuMDuoXij2QejoazEOnCgm9H+hP+1+QKAfA7 q16GXSlwMpzQhNcJ4BXvd/DjLKf6IfCZetwBVr7cN52Rx/p5XdK4R5FKBsVcAIwDhOo/ p5fkibjz2hLvsnuq2Fyd6UAF8aecgZ6e2IQXHbc9PwpBMGf90KqqN0F0nM4hapmwl2+5 frxWBBOQzOslWWK3ctQ80ekCwzHgeVaAH2aAYunrPkodZmT8KxeHTkwyFwYINRK9C84k ti8PBDXpbu5nURZ8ooLSvTtJ1KvB9W9MqqTyTw81K0lltLghoR0b6nCCDh/174H29baU f94g== 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=5m3hMZOfBnGx6VEFMO+dTKhmX7kY4VH+JjvSvjcvYok=; b=oO2sVQbUPUUy1lY8cV5cBthKX3BMgbsjI8SG0s26fCPILGzCRnjVbFmvCdE2dg9TAu mbxl7sFQNXTUXnfvEkXIp9sEEfxhQXaspd8DyP8kMaOImCrtVl7hraG0vHGVY19/1mjh EwGKK66yNZYgARg182/TRKYbkKix6ilSRHbhza7KhhQk5Cz7dTnNozaM1Ks46AoGCQ/t g2z9Z0GR5/VPKZWnWlTMhioWQtQMKFRoAxz67i8s3kPYsyaGHyzBxXmWCXUuAmbcytmx RulxWI7N5i0rmDicGopYKqXOytqnmSIsXlrXPo4/VINr6ImfyxJOI0Fn2yfGnQ6au5Nl 0I0g== 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 e1-20020a17090a77c100b0020087bc6415si7765192pjs.16.2022.11.18.16.13.23; Fri, 18 Nov 2022 16:13: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 S237728AbiKSAMn (ORCPT + 99 others); Fri, 18 Nov 2022 19:12:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237456AbiKSAL3 (ORCPT ); Fri, 18 Nov 2022 19:11:29 -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 5C89F4F1B6 for ; Fri, 18 Nov 2022 15:33:38 -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 1owA8W-0002Ak-CX; Fri, 18 Nov 2022 23:47:04 +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 1owA8T-0058QS-7J; Fri, 18 Nov 2022 23:47:02 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8T-000070-6d; Fri, 18 Nov 2022 23:47:01 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Michael Trimarchi , Dario Binacchi , Oliver Graute , Wolfram Sang Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 237/606] Input: edt-ft5x06 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:31 +0100 Message-Id: <20221118224540.619276-238-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?1749881261357258226?= X-GMAIL-MSGID: =?utf-8?q?1749881261357258226?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Acked-by: Oliver Graute --- drivers/input/touchscreen/edt-ft5x06.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index 9ac1378610bc..ddd0f1f62458 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c @@ -1131,9 +1131,9 @@ static void edt_ft5x06_disable_regulators(void *arg) regulator_disable(data->iovcc); } -static int edt_ft5x06_ts_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int edt_ft5x06_ts_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); const struct edt_i2c_chip_data *chip_data; struct edt_ft5x06_ts_data *tsdata; u8 buf[2] = { 0xfc, 0x00 }; @@ -1504,7 +1504,7 @@ static struct i2c_driver edt_ft5x06_ts_driver = { .probe_type = PROBE_PREFER_ASYNCHRONOUS, }, .id_table = edt_ft5x06_ts_id, - .probe = edt_ft5x06_ts_probe, + .probe_new = edt_ft5x06_ts_probe, .remove = edt_ft5x06_ts_remove, }; From patchwork Fri Nov 18 22:39:32 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: 22755 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465228wrr; Fri, 18 Nov 2022 15:36:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf4dY74Pni8Accb+isGx5lQgjZpVDtS88PHNB7rfXSW+ZV4HHFLaMefU39jvOiM0T6i2aRCn X-Received: by 2002:a17:906:1b4a:b0:7ad:aeda:f81d with SMTP id p10-20020a1709061b4a00b007adaedaf81dmr7971514ejg.588.1668814616611; Fri, 18 Nov 2022 15:36:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814616; cv=none; d=google.com; s=arc-20160816; b=HZvwSPqJHvsl07sQdCzcT+/JCqP6bf5dIwjkbOUqHfuiwXGJbwwXPtoSbG0ocZilnv Qb6wdRW3dI4Gof4qhAdtnNgHBbjK23tKR6+8D9xPUIvbLlf4QepFNvwiepVloUy8xHU/ m/7w7M1TBBPOgy1MJ1QKmjnnS7rcAiLMoxNu0BdFcMVJir9dDb88sj7JtRxldZP4pPsv g9+XPr6NavQGzZulRVjUZQzoYtMgt30gf+m+S/AgPTjvVqPpFuv+GObTx6xEQkrOOaDL uuxflwooqmhfOlfjWSNa9fm3AA+47gGMssJtxgfq5UVpP2LI0JrSMGLSlGH31LdRrD78 BxpQ== 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=v+qs6ubjBZyVf/KtmIY4Tneb7CyB1QkQp1wadEc4Rck=; b=ccVAuy7v755B+Pl8/UkEFxOT/a8AtGw4DSluEfSumfTWPnFWArbmGP640I5JKuOhno u3TGjuFhNhLVnQqMn2SQObwg2eS0bKdolmuaz50yeD2v6jexAHARLa6lrY+PUoXzDcJN wtVCFd8D+BGg531nR1t3n3doiz5drdVx8IoVh9+H09WzUpxQ36wUOvS4MdcQ2yYAVTM/ ZjfUtAnYIHbc3XJJRFWktHIv/M4xMrIa21QNpYDFLc23vtcKeyX5ZBORI2gfsHgwXHoG 9dwR+BqD0enb80hSAWUa8pizUYM3AEDE6BWk1EZOH92X1QybgmIQXRVTq/nL8pK+vqhg UE4A== 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 y20-20020a17090668d400b007ae165c79c8si3979579ejr.940.2022.11.18.15.36.32; Fri, 18 Nov 2022 15:36:56 -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 S236361AbiKRXfz (ORCPT + 99 others); Fri, 18 Nov 2022 18:35:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236249AbiKRXcV (ORCPT ); Fri, 18 Nov 2022 18:32:21 -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 4E29B60F1 for ; Fri, 18 Nov 2022 15:20:02 -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 1owA8W-0002BI-Dx; Fri, 18 Nov 2022 23:47:04 +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 1owA8T-0058Qi-GK; Fri, 18 Nov 2022 23:47:02 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8T-000073-E6; Fri, 18 Nov 2022 23:47:01 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 238/606] Input: eeti_ts - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:32 +0100 Message-Id: <20221118224540.619276-239-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?1749878955726398786?= X-GMAIL-MSGID: =?utf-8?q?1749878955726398786?= 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/input/touchscreen/eeti_ts.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/eeti_ts.c b/drivers/input/touchscreen/eeti_ts.c index a639ba7e56ea..c8ab03f49227 100644 --- a/drivers/input/touchscreen/eeti_ts.c +++ b/drivers/input/touchscreen/eeti_ts.c @@ -158,8 +158,7 @@ static void eeti_ts_close(struct input_dev *dev) eeti_ts_stop(eeti); } -static int eeti_ts_probe(struct i2c_client *client, - const struct i2c_device_id *idp) +static int eeti_ts_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct eeti_ts *eeti; @@ -292,7 +291,7 @@ static struct i2c_driver eeti_ts_driver = { .pm = &eeti_ts_pm, .of_match_table = of_match_ptr(of_eeti_ts_match), }, - .probe = eeti_ts_probe, + .probe_new = eeti_ts_probe, .id_table = eeti_ts_id, }; From patchwork Fri Nov 18 22:39:33 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: 22900 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472576wrr; Fri, 18 Nov 2022 16:00:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf68O1LC2lH07gy7Ue4pW+pUz6cTXKoKnIyy1kAzXT1tQdKPfmngS0gfXKVyqG69RTqdg1wc X-Received: by 2002:a17:903:456:b0:17f:5810:e9e3 with SMTP id iw22-20020a170903045600b0017f5810e9e3mr1866983plb.11.1668816027987; Fri, 18 Nov 2022 16:00:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816027; cv=none; d=google.com; s=arc-20160816; b=yXxk7ot0zQH4ETmzQ0rzj9FPKMoM36lpG6yfiBKQSNykKdBJwURpS5qu9lUcY6Mway d/8YqH0cVhpqRWC93wJAP773k8GXXCK8TnA6I/Z6wslD/qoYx94t3+EzxxVzMoHg1eGR X+kOCOzI/XThC76DSgKF93mFpEiUHkrN7hPRuozJSTlxXxb20a9YS6HZsLNZRmJkNhnZ edDh04GIW6z7GKsPLvtpHQbMAAx3fIAes/jM7Nn1SwDPQyEMAJtchG6+6zOBCcsY3GRY ErXLPSZ0/vTfru+8e6kmG3M8uKXjA6S81idpAX/qJQSbb876yUujngyYkI0rQ6lXwDud ZoCw== 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=BdHe0KvUm5Aksfs15hIS12igDqgu5JO4WWr/fbJB9jE=; b=g0lg2IVJrv7RE2JmmZQnlq2TPCMxRtswQjH/NYkE1mzVzia1tTv1iPajQEI4HlDVal oXZ0YQOg+o2SF9yf296HAqJt2LsX3SJG9oSCaIubjQa5/iQNR3fk24+cs9xMAPu8O53f XWMS6kxC1lA1UA3Gv0QFy2pUEKeAOILfcvbExaveIbOWYilUvbmjE4kjyCL77PkRZwXR 6Ajsb48c0FzvrDI8rZadSjJ0brLnWCeIqQKDJzRZqzw8fTUG35fldCfiVFHrWWXdFOIu BZmopS71+bVBSzpolfDBucCl1Am5UxzkAzJ78P94W8Ou3Dk7X3HGUjUnFOcl6/i3YjFO xkqQ== 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 ot17-20020a17090b3b5100b00213dce992c1si5206365pjb.7.2022.11.18.16.00.14; Fri, 18 Nov 2022 16:00:27 -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 S236940AbiKRXy6 (ORCPT + 99 others); Fri, 18 Nov 2022 18:54:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237002AbiKRXw4 (ORCPT ); Fri, 18 Nov 2022 18:52:56 -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 D2315D2DD3 for ; Fri, 18 Nov 2022 15:27: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 1owA8W-0002D3-PC; Fri, 18 Nov 2022 23:47:04 +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 1owA8U-0058Qx-6o; Fri, 18 Nov 2022 23:47:03 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8T-000079-OC; Fri, 18 Nov 2022 23:47:01 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 239/606] Input: egalax_ts - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:33 +0100 Message-Id: <20221118224540.619276-240-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?1749880435236668469?= X-GMAIL-MSGID: =?utf-8?q?1749880435236668469?= 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/input/touchscreen/egalax_ts.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/egalax_ts.c b/drivers/input/touchscreen/egalax_ts.c index 8333a512b605..742d47a75ac1 100644 --- a/drivers/input/touchscreen/egalax_ts.c +++ b/drivers/input/touchscreen/egalax_ts.c @@ -155,8 +155,7 @@ static int egalax_firmware_version(struct i2c_client *client) return 0; } -static int egalax_ts_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int egalax_ts_probe(struct i2c_client *client) { struct egalax_ts *ts; struct input_dev *input_dev; @@ -264,7 +263,7 @@ static struct i2c_driver egalax_ts_driver = { .of_match_table = egalax_ts_dt_ids, }, .id_table = egalax_ts_id, - .probe = egalax_ts_probe, + .probe_new = egalax_ts_probe, }; module_i2c_driver(egalax_ts_driver); From patchwork Fri Nov 18 22:39:34 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: 22864 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472080wrr; Fri, 18 Nov 2022 15:59:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ISxbX4/Yupd46Dqnh3GVSjqCiP8sRXpJhnwfR/yvQ5X33mWyOJeb7TAtvuw1yddvkjA8u X-Received: by 2002:a17:906:860b:b0:7ad:f8e2:ff0a with SMTP id o11-20020a170906860b00b007adf8e2ff0amr7819553ejx.275.1668815959463; Fri, 18 Nov 2022 15:59:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815959; cv=none; d=google.com; s=arc-20160816; b=pSu/9dQ0jc46SvV1G4/xoBEqsrqK/zNeJoqgnrLm1O1z/PkILVSVTnaN1R/n0m53hd kWH9jiJEmdWrQSVrx7TSaH0XY/e8HtD1ruFkR0NtOx9OOUuknZIAjeeIuQBW3odUURW5 yNSJKvXV0VpjP8wK8ssc46Hobr7UZilaQRaFYFGZJ7qxqcPiKAKkahWhV2UZDp9gG/Wq qVV8C1joYa2Quqav56ttpi45iy4TmtLdPsjhtuwjKQXPJOPvgXx8jcmizpiSNyRJPX1N i5EzAxTHuR7od+Dl6ltMiLpgmJG7d4owgex4qrLC1G+a1ZdKvTeNyVCpKWXcESDEXx3K awWw== 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=FGUcKJtJ3vbeP2cPIkNNkTIBbTvRDA6XiTshfQtFa4U=; b=wlfeat/qVN3c2xiRqxoBdXgnI/MCV2fRquFMFHTmG5pxKmEBQzyVI8D9I3uTcgwM0X AAT50I2G8OuNqOKvmgqU8+eygK7FHHQcgDAeLsud4h9B5Em5AOQA8GwFGtJJUrmLKgk0 9LO+1bSe+6fZWX8SDjyDE45fdubFq44Cgcq3eqgZjuYNct4XkeX4OvcLKv7VKZKR0RZ7 D9omlxdIMS7EOslHCLKzCXJCzJq7av5nQkHsr5rfZ/fUvM4Db8rERqqwpWinDcGTg/WV QlJnlmZAjkLyasYMdu4VVfUMSaridqfyO5AxNGGqBZAw4vrHgHgZxAm0AqNSFdRZnpQB Dw8Q== 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 k7-20020aa7d2c7000000b004690736f5f0si373607edr.543.2022.11.18.15.58.56; Fri, 18 Nov 2022 15:59:19 -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 S236619AbiKRXnT (ORCPT + 99 others); Fri, 18 Nov 2022 18:43:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237115AbiKRXmk (ORCPT ); Fri, 18 Nov 2022 18:42:40 -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 BED7D7463A for ; Fri, 18 Nov 2022 15:23:49 -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 1owA8W-0002CE-Po; Fri, 18 Nov 2022 23:47:04 +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 1owA8T-0058Qn-RM; Fri, 18 Nov 2022 23:47:02 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8T-00007C-Te; Fri, 18 Nov 2022 23:47:01 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 240/606] Input: ektf2127 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:34 +0100 Message-Id: <20221118224540.619276-241-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?1749880363296274675?= X-GMAIL-MSGID: =?utf-8?q?1749880363296274675?= 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/input/touchscreen/ektf2127.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/ektf2127.c b/drivers/input/touchscreen/ektf2127.c index 2d01a8cbfcc6..328841eaa1b7 100644 --- a/drivers/input/touchscreen/ektf2127.c +++ b/drivers/input/touchscreen/ektf2127.c @@ -244,8 +244,7 @@ static int ektf2127_query_dimension(struct i2c_client *client, bool width) return (((buf[3] & 0xf0) << 4) | buf[2]) - 1; } -static int ektf2127_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ektf2127_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct ektf2127_ts *ts; @@ -352,7 +351,7 @@ static struct i2c_driver ektf2127_driver = { .pm = &ektf2127_pm_ops, .of_match_table = of_match_ptr(ektf2127_of_match), }, - .probe = ektf2127_probe, + .probe_new = ektf2127_probe, .id_table = ektf2127_i2c_id, }; module_i2c_driver(ektf2127_driver); From patchwork Fri Nov 18 22:39: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: 23050 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486637wrr; Fri, 18 Nov 2022 16:40:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf5TH4UFP/eCJAct+LTdj/M1FO5QnMW9gs8ExAoq050SgQZaBFcbih8OzYvSBG4l6W4SyS7X X-Received: by 2002:a17:906:6a0c:b0:7ad:9f03:aa46 with SMTP id qw12-20020a1709066a0c00b007ad9f03aa46mr8199168ejc.175.1668818444331; Fri, 18 Nov 2022 16:40:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818444; cv=none; d=google.com; s=arc-20160816; b=JJRq/z5Ws+pAAvm/dGx3VJyhnnsrjZ4DihL2TG3yAhaZ7j2P9hzL3NiP8k/NnuucOP mKp555Qkww/hQkEHGkwaMbQ287r35YMJqly+K5MI+UitUfOIWj6Ra/uDwD4502w6ODuW V6/2iPfaZ0qpeLga4dChIq4T57UwzWOSGUpAeyNKEkOnjhDIBSdhPbJBf18GqhXIu++L nLK+cCpigWybkpDZEZwqZeNesGvaigjSTAV2BR3xFD09MTaVN1KyY6B6kefftjqDX4fx LLOqANEPilTdkuHuy0wssf91ItkSDJ43H8kjyTQ4FvgHyWIbaiUzNlgu5nq9xEYWjwWB SHxA== 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=2Tri1wLcoxcfVHhqnzBBy59cK1593a7a41ipYHT/Dg4=; b=FD1QQEDvuWJugHwHH5HgzmPOHpJXoL0otgGKZcOjrfgGvSvrKEqNJAQT1oIufZC3oJ qSaaOfvGf9eejxHGmHmODiygxBWtSVUjlnFzCqJlvVwQnA9SQFslhV7ZhTiMw+3spfLV aevMPh4Uz5yG2iJOCYDjW0qORDcEnKjVTBiC7cUbOWVIAEMm/CoUR6yQcJS31pmQ0dxH nNM03BVaFJV2BLvFuCUyjldUAapobntHoKEE1VRffoRlnm7JRrx4WncQWhzb0kjStjWu Ht1b/z2tD3LrglhBwplHMgkfHHq4bW8Dl9BpPd6JwIyloUTq6L6rzw6Cf/VuHiQxKP3H j8wQ== 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 g38-20020a056402322600b00461c12f1f4csi4242315eda.478.2022.11.18.16.40.21; Fri, 18 Nov 2022 16:40:44 -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 S236899AbiKSAYt (ORCPT + 99 others); Fri, 18 Nov 2022 19:24:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235210AbiKSAYW (ORCPT ); Fri, 18 Nov 2022 19:24:22 -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 40BF3D13AC for ; Fri, 18 Nov 2022 15:38:11 -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 1owA8X-0002Cb-2R; Fri, 18 Nov 2022 23:47:05 +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 1owA8U-0058Qs-0b; Fri, 18 Nov 2022 23:47:02 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8U-00007F-4f; Fri, 18 Nov 2022 23:47:02 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Bastien Nocera , Hans de Goede , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 241/606] Input: goodix - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:35 +0100 Message-Id: <20221118224540.619276-242-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?1749882969118660938?= X-GMAIL-MSGID: =?utf-8?q?1749882969118660938?= 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 Reviewed-by: Hans de Goede --- drivers/input/touchscreen/goodix.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index c281e49826c2..8a0a8078de8f 100644 --- a/drivers/input/touchscreen/goodix.c +++ b/drivers/input/touchscreen/goodix.c @@ -1282,8 +1282,7 @@ static void goodix_disable_regulators(void *arg) regulator_disable(ts->avdd28); } -static int goodix_ts_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int goodix_ts_probe(struct i2c_client *client) { struct goodix_ts_data *ts; const char *cfg_name; @@ -1537,7 +1536,7 @@ MODULE_DEVICE_TABLE(of, goodix_of_match); #endif static struct i2c_driver goodix_ts_driver = { - .probe = goodix_ts_probe, + .probe_new = goodix_ts_probe, .remove = goodix_ts_remove, .id_table = goodix_ts_id, .driver = { From patchwork Fri Nov 18 22:39:36 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: 22784 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466420wrr; Fri, 18 Nov 2022 15:39:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf4dNriOpBRjPxxznfNclJz5IUbEE7PhRcnrUCir6mGy+nBXrsBHKoGdDAd1JP4w0QpQDyfU X-Received: by 2002:a17:906:c40b:b0:7ae:1e53:95b2 with SMTP id u11-20020a170906c40b00b007ae1e5395b2mr7658879ejz.333.1668814798839; Fri, 18 Nov 2022 15:39:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814798; cv=none; d=google.com; s=arc-20160816; b=hzkJ9Fvawl29+pY1XH4zL7GwOOqcVhdqFDt/YvA7WN+0qXvO/J/0J5h1EnSjwoIo6X wLV2nVY9NlUCvdPGoNdgQbT0gxHxgCsr/8cHK2g87WKSOoxXySfU+dxQSQVg9QMbSxcN YR5dOaJjt7KVh0iBcEPcCObjm+/s3mjT8/Mc+opRSLSBj9aHc3emLo9gL5svc/xbQN94 BoM9xxcBdF0dKdsOVLngsLZcYTwl/pOHrspBggxtw2RqDXw/D4B5kcL6jQb2RmaGrwPd eLSCJNWLOfX13FFJZU8pFZrRRKEuShcCfHUoRep1E67a4dxcIKws1WnbGdJDRApqS80S UCPQ== 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=JLoKi8D/b2EV+8/31ZPbraxyrXyKoyxHffjedbClmAA=; b=x+X9dcEQBTOTXcxvV1cFhocqTdgy6AwdXJB+1w7CB/0tDgEkkmezlsff/iK4S1iQaA QWvCbeZ/rcKvM6df0przQbyI97QFx1OddSan7cssfMaT2v8ukmEfxwIIwmTgErV8LDUQ rx+K1a2JzDK1s3jGPXfYkdQhxDo9/5opg8Y1xYls8c734Kb9BaC17aeD++rNSBXWnsv0 mmjgayeaciv6wTEUZQpADGAfcyl3fy8uhmPd8xmNBWfu7cjF6QmV8knPvwYRsVk92nEf ukIxOpPp2zBW98MyIx1IoLHyE9U3ueTx4z5hrMr9dBxQXOtug3qKePob2G0e15kBeWIS IOKw== 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 xf9-20020a17090731c900b007ad86f97b36si3960959ejb.560.2022.11.18.15.39.34; Fri, 18 Nov 2022 15:39:58 -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 S236434AbiKRXig (ORCPT + 99 others); Fri, 18 Nov 2022 18:38:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236383AbiKRXcu (ORCPT ); Fri, 18 Nov 2022 18:32:50 -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 2DCEE94A7D for ; Fri, 18 Nov 2022 15:20:29 -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 1owA8X-0002Dg-1o; Fri, 18 Nov 2022 23:47:05 +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 1owA8U-0058R2-Cn; Fri, 18 Nov 2022 23:47:03 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8U-00007M-FF; Fri, 18 Nov 2022 23:47:02 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 242/606] Input: hideep - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:36 +0100 Message-Id: <20221118224540.619276-243-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?1749879146154262538?= X-GMAIL-MSGID: =?utf-8?q?1749879146154262538?= 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/input/touchscreen/hideep.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/hideep.c b/drivers/input/touchscreen/hideep.c index e9547ee29756..ff4bb4c14898 100644 --- a/drivers/input/touchscreen/hideep.c +++ b/drivers/input/touchscreen/hideep.c @@ -997,8 +997,7 @@ static const struct regmap_config hideep_regmap_config = { .max_register = 0xffff, }; -static int hideep_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int hideep_probe(struct i2c_client *client) { struct hideep_ts *ts; int error; @@ -1112,7 +1111,7 @@ static struct i2c_driver hideep_driver = { .pm = &hideep_pm_ops, }, .id_table = hideep_i2c_id, - .probe = hideep_probe, + .probe_new = hideep_probe, }; module_i2c_driver(hideep_driver); From patchwork Fri Nov 18 22:39:37 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: 23047 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486613wrr; Fri, 18 Nov 2022 16:40:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Lt9AYGBaGGjo4Qt4KUUMiIWALydae9SNRm+O6VQv9vpF1kL+f5tbVIO6MN4bUZeMzd12b X-Received: by 2002:a05:6402:5289:b0:462:70ee:fdb8 with SMTP id en9-20020a056402528900b0046270eefdb8mr8342215edb.66.1668818440767; Fri, 18 Nov 2022 16:40:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818440; cv=none; d=google.com; s=arc-20160816; b=cbQ8qMlnp/bm0BqKJ6jADHW0378vsuj0SPkC8dC0ehnIGb27K3NlM74MCKRu/oaeSh q+CmOQxZ8YUzUjbw2kGg2H0TULytejtHOh4GS6Ny8y1KAny2k9KxXmYnZTBQJUh+AAwk CILImZKyZEYGZpnDkeyRTIVoul+YkdUZhoQnkdLuYRvDxXWaJNlDcajIGRlld3UgoORX zRCLmpGRY8QdKI6AtRgGVZCqznWpvwKc9FWw5Kg6P1kdjEyusd4EGpe6G72SMntjmpTm 1PC4Mt4otx5evuW/QCV0nrZuF6lL5XaJverUik1Cft+e9IZmqH75m/s2ve3iUZ4dEVfl sXdA== 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=rpmHOU/o3rJDPV8XDqOh32PPnoX0DJrn2UKmwlADRwI=; b=e9C09Y39Uqjn/nCluhqXRrCVMVMBsTq+6X4jFzvr3AUpegaEeXNkV0CerGJ9oTIlIR 1OlSBGO2sxS8QuAGVEXbn/CZulFBUDjQBNbSjPZvDdsBmY2LXmjwnSBpnjydV/T7ODG/ +TaGsmck+93dakNKbD6vmt1I95IHuhdAyE38JhuZZKsFN52r6WUfp4Gww4rWXikYUV2l VW0/iKPreSisCzdmfg+54kyIc5kpN3aWPyXaoEOXDm6ed0N66G7yKIFbrYW9ITDDHoqz ZeR1Y+u1KbxEs9DkyoZOgKbf/tChkGRuCyKyj+fTIcxgIbtxxmRc4qizQbrcF17x3uHP 50fw== 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 gs1-20020a170906f18100b007708400bee5si3431902ejb.1003.2022.11.18.16.40.17; Fri, 18 Nov 2022 16:40:40 -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 S237656AbiKSAXS (ORCPT + 99 others); Fri, 18 Nov 2022 19:23:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236975AbiKSAW6 (ORCPT ); Fri, 18 Nov 2022 19:22:58 -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 C34E7BA582 for ; Fri, 18 Nov 2022 15:37:34 -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 1owA8Y-0002Dm-RY; Fri, 18 Nov 2022 23:47:06 +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 1owA8U-0058R5-Ez; Fri, 18 Nov 2022 23:47:03 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8U-00007Q-MO; Fri, 18 Nov 2022 23:47:02 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Job Noorman , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 243/606] Input: hx83112b: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:37 +0100 Message-Id: <20221118224540.619276-244-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?1749882965283621984?= X-GMAIL-MSGID: =?utf-8?q?1749882965283621984?= 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/input/touchscreen/himax_hx83112b.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/himax_hx83112b.c b/drivers/input/touchscreen/himax_hx83112b.c index 737cc134e8f9..e96150d80a48 100644 --- a/drivers/input/touchscreen/himax_hx83112b.c +++ b/drivers/input/touchscreen/himax_hx83112b.c @@ -265,8 +265,7 @@ static irqreturn_t himax_irq_handler(int irq, void *dev_id) return IRQ_HANDLED; } -static int himax_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int himax_probe(struct i2c_client *client) { int error; struct device *dev = &client->dev; @@ -350,7 +349,7 @@ MODULE_DEVICE_TABLE(of, himax_of_match); #endif static struct i2c_driver himax_ts_driver = { - .probe = himax_probe, + .probe_new = himax_probe, .id_table = himax_ts_id, .driver = { .name = "Himax-hx83112b-TS", From patchwork Fri Nov 18 22:39:38 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: 22733 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464498wrr; Fri, 18 Nov 2022 15:35:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf7zBRUeMB5WBCqNTA1WH+UhELzEQIYo/G7FvHWULeQJY2Civ6xTPqZ50q2PMoNUPuo3SCeD X-Received: by 2002:aa7:cb0d:0:b0:45a:2d7c:f3a0 with SMTP id s13-20020aa7cb0d000000b0045a2d7cf3a0mr8046577edt.98.1668814495442; Fri, 18 Nov 2022 15:34:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814495; cv=none; d=google.com; s=arc-20160816; b=U8hDi9FTPGTNXYglWEsCkM8ffn1aXCHziGJe/9nZNxhfp3SWFbm2qqh2B70DuATzov FQL/vwRI9zrrzzbVaJCN5UkI+M3iqAsMd8zlXRLWUV/RUhVQJ6zmurz0+0z5wAnHpGxg zrEgyETRxHmXurIoqBD7WwckwnldiKSDnBtQCEU1hJuKhxbSijCWMOF33oFaZqgJAHBY nZX522OQ/PKGzSA73dR6OPm7/GoVFMWNbMzZcJnv4/lyQbs0XvE2KdL/O042mzmq0U3f QqIEJHHCJZk0yNMTXx/NEDzWtvwK37gK8z6fhnvIlcPce5IEbrxn04O10zI6ZEJa0g7k Pebw== 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=YZwsBZ5PoxqrApJTBQ1NPN9CAfjbt1TMukrHGIcZCYk=; b=t3rWxYgBof6LtYe32aBTmltLZ8SuUKrcA9MFrP5ptmOBuaJwu25+4bOkWKR0HsVU8h hNp/ekYLFXO0tfqS55CpHg/zs8a9Fv8ssKI93zgYu2V39MTt2BTI1uavRHDEeCBrn4uI x1dfe/uWS9hmFveoC/V3SccIksQkygARpRjGYUk81cpzYUxu9WY1zEcREcSo7cYZsu69 KRFm81rHMgGDfuD8Z18TtCEBKgUZgwAfnG1S4gNVChUCN20zZlRPUX0up0np9Y1D2qNL 2kbBoUmjvj34zGixNAXQfdyarwrnl0N7cNgEd9XMeo8A5jXQxB5AUFlS3jkXprHnEc5m 77Xw== 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 n11-20020a05640205cb00b00468fd5712a3si3644168edx.351.2022.11.18.15.34.32; Fri, 18 Nov 2022 15:34:55 -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 S235965AbiKRXdw (ORCPT + 99 others); Fri, 18 Nov 2022 18:33:52 -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 S236016AbiKRXay (ORCPT ); Fri, 18 Nov 2022 18:30:54 -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 090FA9FFF for ; Fri, 18 Nov 2022 15:18:39 -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 1owA8X-0002EF-Li; Fri, 18 Nov 2022 23:47:05 +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 1owA8U-0058RA-M1; Fri, 18 Nov 2022 23:47:03 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8U-00007U-UQ; Fri, 18 Nov 2022 23:47:02 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Giulio Benetti , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 244/606] Input: hycon-hy46xx - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:38 +0100 Message-Id: <20221118224540.619276-245-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?1749878828456049708?= X-GMAIL-MSGID: =?utf-8?q?1749878828456049708?= 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/input/touchscreen/hycon-hy46xx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/hycon-hy46xx.c b/drivers/input/touchscreen/hycon-hy46xx.c index 891d0430083e..8f4989aba9a4 100644 --- a/drivers/input/touchscreen/hycon-hy46xx.c +++ b/drivers/input/touchscreen/hycon-hy46xx.c @@ -439,8 +439,7 @@ static void hycon_hy46xx_disable_regulator(void *arg) regulator_disable(data->vcc); } -static int hycon_hy46xx_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int hycon_hy46xx_probe(struct i2c_client *client) { struct hycon_hy46xx_data *tsdata; struct input_dev *input; @@ -581,7 +580,7 @@ static struct i2c_driver hycon_hy46xx_driver = { .probe_type = PROBE_PREFER_ASYNCHRONOUS, }, .id_table = hycon_hy46xx_id, - .probe = hycon_hy46xx_probe, + .probe_new = hycon_hy46xx_probe, }; module_i2c_driver(hycon_hy46xx_driver); From patchwork Fri Nov 18 22:39:39 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: 23056 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486713wrr; Fri, 18 Nov 2022 16:40:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf6kmsji6ohHeinw8lkv7zRYDynHLfIjkaBa/UJ4ZH7twgnhtKHPF2Mq00zsRuWaqWBVbNBN X-Received: by 2002:a05:6402:c1c:b0:461:bd12:52ce with SMTP id co28-20020a0564020c1c00b00461bd1252cemr8251895edb.197.1668818458230; Fri, 18 Nov 2022 16:40:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818458; cv=none; d=google.com; s=arc-20160816; b=FoZYiRFpdATuhla6jvrzpyOyf+N/vIARbRBM8LtrQzAiNcyDSmoduO0ZqOJuqVXQbV ybVKBZXgoPLKX3MmOO0OTBZgbK9ReOifyHbfwXY11aPPX6u8bsfHLiZ5Tb0sZk3uxWcZ RV/w6om2LrIAXTFhcob6AQKAZ/XjaFHm3xR/KcA4rjL3VEdEY5jwcsPL1ovYHPlIGNkF imyI1fxT3yxIse9Tf5BLR0E0rRorvdbj++zY9QxZCioQxqrkqDikxWrrtd6acZalbRPr c6kIhsMpBmPnHr67UMQdAbDEW9TVv0TaeZKDtGbQwuZpYbye56YrqRYHlZaSqzP+oWl6 EVvg== 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=HzLSJC6qrrQiUMBaJ0+bZ75G18rwKVpPoWWTKLheGH0=; b=x8Rgun9DJxXsrOQ8HS3CTapmfqfeRiMdUNnotjahRY1AdPi2/GXS+SkexZMBQ9g8Iw jOYyrRx4lCxMo06ZHWHJNHE4kO8P8kqa9T/8ynZ6NvkPKqAPIij1Xi6bIZLYz/sqCY2K T1MCn21k01TFwvhjWARyvsWHgXITzjnAbsKMNR/MJVImJq/OnMygLAghcMdsS7fsXaKQ OFo5Yg5SN4QkJh+uYRrC9vIf7CsxT90ZU7qzC1u1/wSPeRRKP5uzHRCUoCUKgLTTS9P+ mnUg8JClVQaxv9gop6oxu5aZKo8DGunALR0LfXLj7RZAL4hlmPLb/+4dpy3+RmtxkLy1 auMA== 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 cy2-20020a0564021c8200b00462750bbe08si3895764edb.522.2022.11.18.16.40.34; Fri, 18 Nov 2022 16:40:58 -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 S232638AbiKSA10 (ORCPT + 99 others); Fri, 18 Nov 2022 19:27:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbiKSA0e (ORCPT ); Fri, 18 Nov 2022 19:26:34 -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 5811B1095A0 for ; Fri, 18 Nov 2022 15:39:10 -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 1owA8X-0002F2-Qx; Fri, 18 Nov 2022 23:47:05 +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 1owA8U-0058RG-UC; Fri, 18 Nov 2022 23:47:03 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8V-00007a-7d; Fri, 18 Nov 2022 23:47:03 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Marek Vasut Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 245/606] Input: ili210x - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:39 +0100 Message-Id: <20221118224540.619276-246-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?1749882983797693289?= X-GMAIL-MSGID: =?utf-8?q?1749882983797693289?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/input/touchscreen/ili210x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/ili210x.c b/drivers/input/touchscreen/ili210x.c index e9bd36adbe47..4897fafa4204 100644 --- a/drivers/input/touchscreen/ili210x.c +++ b/drivers/input/touchscreen/ili210x.c @@ -913,9 +913,9 @@ static void ili210x_stop(void *data) priv->stop = true; } -static int ili210x_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ili210x_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; const struct ili2xxx_chip *chip; struct ili210x *priv; @@ -1043,7 +1043,7 @@ static struct i2c_driver ili210x_ts_driver = { .of_match_table = ili210x_dt_ids, }, .id_table = ili210x_i2c_id, - .probe = ili210x_i2c_probe, + .probe_new = ili210x_i2c_probe, }; module_i2c_driver(ili210x_ts_driver); From patchwork Fri Nov 18 22:39:40 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: 22949 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474904wrr; Fri, 18 Nov 2022 16:05:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf7pinqgAzzh9WN6fX9RQaGU5Si492YWRrz7xk9HXxpMnqfUcIHiM9egZBpOfeVP2mJ356LC X-Received: by 2002:a05:6402:5007:b0:44e:baab:54e7 with SMTP id p7-20020a056402500700b0044ebaab54e7mr8255663eda.265.1668816314893; Fri, 18 Nov 2022 16:05:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816314; cv=none; d=google.com; s=arc-20160816; b=ADn5ZZNLgUhuiHXB5izIj2x8xrije6gQDqWV/eAmRAq6RrtVRAWWDAZwZSM7SR7/ly yExmJIUD3xeprpbOY4P6ztm5g7rp3CPI4bYue92mt55Ou5nh+73d0mLnrp89pu84GChm oHdizEMwdi4If/GM/d5AXwdjV80vUccsqBpMs7TxviEzn+8EcuyN0id+pR9Z5FEK4oej lusIk0XiJy/jWZkAl+JluFHaTjq/nEbct5cUc3lN91mWa2ch0O4KMEm/Oi6vNoibxYUw hJoZroF2MWXknrq5fEn4bA21AlYxtISfLl6uizzgf4TNu62qwpNWkzXQwHLi1vjYmKdY tn4A== 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=sW/fBZ2UrV5UIfcLbY3OrptY1OKGdetzaskOddRAiuc=; b=XnPxjWcOLetaAzpgh2gREe4f9FLUxADQzrOMAZn3LU+ALfWhyJ2uJWYBs1RxLtwbTB V/FKCTv/gZMNECIEbX6IzpRvCBY63JTk7mkGHqfO99wKw3l1UMlufy8vsAXwhp+g6Y7y R5cMCAPFbwAn6KdK1KSMMj4K58slDBuJnkpmdHeRwePA0B0jtMSO3ncAYXXroJ6POme1 sWeRY65pnh6rKKNDgFBZR/zZkeUFbFmQmnO6PgbkCzZv8VdhVy3lBMEWwzA2/vDDj/wm Zh4MTaVwD9lVFseMwHSOBtRyBPZMc0vWEkACJHtp4M/JkRXTjzksfgZ8KOE3eeebwCq7 hfvw== 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 qc8-20020a170906d8a800b007ae86742c3bsi3162741ejb.1009.2022.11.18.16.04.42; Fri, 18 Nov 2022 16:05:14 -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 S237322AbiKSAAq (ORCPT + 99 others); Fri, 18 Nov 2022 19:00:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237068AbiKRX4T (ORCPT ); Fri, 18 Nov 2022 18:56:19 -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 63989D2DFC for ; Fri, 18 Nov 2022 15:28:23 -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 1owA8X-0002FL-Kt; Fri, 18 Nov 2022 23:47:05 +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 1owA8V-0058RK-3g; Fri, 18 Nov 2022 23:47:04 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8V-00007f-GU; Fri, 18 Nov 2022 23:47:03 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 246/606] Input: ilitek_ts_i2c - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:40 +0100 Message-Id: <20221118224540.619276-247-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?1749880736199927872?= X-GMAIL-MSGID: =?utf-8?q?1749880736199927872?= 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/input/touchscreen/ilitek_ts_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/ilitek_ts_i2c.c b/drivers/input/touchscreen/ilitek_ts_i2c.c index c5d259c76adc..e6ade3775a8a 100644 --- a/drivers/input/touchscreen/ilitek_ts_i2c.c +++ b/drivers/input/touchscreen/ilitek_ts_i2c.c @@ -542,8 +542,7 @@ static struct attribute_group ilitek_attrs_group = { .attrs = ilitek_sysfs_attrs, }; -static int ilitek_ts_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ilitek_ts_i2c_probe(struct i2c_client *client) { struct ilitek_ts_data *ts; struct device *dev = &client->dev; @@ -680,7 +679,7 @@ static struct i2c_driver ilitek_ts_i2c_driver = { .of_match_table = of_match_ptr(ilitek_ts_i2c_match), .acpi_match_table = ACPI_PTR(ilitekts_acpi_id), }, - .probe = ilitek_ts_i2c_probe, + .probe_new = ilitek_ts_i2c_probe, .id_table = ilitek_ts_i2c_id, }; module_i2c_driver(ilitek_ts_i2c_driver); From patchwork Fri Nov 18 22:39:41 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: 23128 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488363wrr; Fri, 18 Nov 2022 16:45:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf6kPP9Vyp20evIqpyOrtyiqbkwTI3UeQ/BNz0duId7+qcMPifuLK+j4odxmFFrC08QpsVGb X-Received: by 2002:a17:90a:440f:b0:218:9894:62c1 with SMTP id s15-20020a17090a440f00b00218989462c1mr821519pjg.205.1668818744967; Fri, 18 Nov 2022 16:45:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818744; cv=none; d=google.com; s=arc-20160816; b=UBnM9HGd0LsfESFhE4mhNs8Mr4sXZu/6Yp4ejFzn3ej7J0WomfMPenaGmRp5HE6gd6 UHSUgoiTpyi6YkP5yvaPboiEOjJb9U0Rrr3f/bR06vwXfGBS8D3xVxE0G/pS5SgnOf6c avJAzOn1dCZsh/FF7oHZTlXxkECCpPl+Epu3DGIS+PxvF5C+vrNXpJ0qkAV5lUgwpTYO aDlRhUu05e5Gs4WjDZW/UzK0jw3M1kxAYQNF7nIIZsoYz2YbvgTOF93TJRa1R+BsUiOu isHpigg0rf9iABwDI73egOHX68rpBIpXM3SFgLcIIuib15j4jdix3IuNlSoaqm7bc8mX x0DQ== 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=wNM9h85+alOD+pEvzNfVPWgbc1NbB6316JfGDZXyLEc=; b=d68i/0ulaoS01zx1E6mMFRiBqlKk89VqOJvgQWc58vZcvsld/V/XgOykMKaT1oqobR EcYbSiyDNoPydyOPoyqerU572+iSPDLY2KH/IFo6Fi4h39s7ZpZRlupprNNheTbec6Y2 1L1m4ozMyVa9cExBIJGdPNin966EP0hE4YISSMfHPss6TsSw06caMQJ0VHQhyxoSdskw vmpMyGGpMgXjlGdP0+UyHHFq0PXTVfi0izM10Dsj32TSLT7ogmnll0M0YAoCH2m5qqH7 lPDmAmkLQP6A+nNXH6tjTb+rynBt9APKYDymdHV2oKF07dB1FNJJ+//joq7HBBM9enU1 PXXQ== 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 h11-20020a17090a710b00b0021846dc82a3si8086721pjk.18.2022.11.18.16.45.24; Fri, 18 Nov 2022 16:45:44 -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 S236069AbiKSAja (ORCPT + 99 others); Fri, 18 Nov 2022 19:39:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236493AbiKSAif (ORCPT ); Fri, 18 Nov 2022 19:38:35 -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 B41CF1181E1 for ; Fri, 18 Nov 2022 15:44:12 -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 1owA8Y-0002GJ-47; Fri, 18 Nov 2022 23:47:06 +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 1owA8V-0058RP-Fn; Fri, 18 Nov 2022 23:47:04 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8V-00007j-NL; Fri, 18 Nov 2022 23:47:03 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Jeff LaBundy Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 247/606] Input: iqs5xx - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:41 +0100 Message-Id: <20221118224540.619276-248-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?1749883284674964941?= X-GMAIL-MSGID: =?utf-8?q?1749883284674964941?= 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 Acked-by: Jeff LaBundy --- drivers/input/touchscreen/iqs5xx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/iqs5xx.c b/drivers/input/touchscreen/iqs5xx.c index 34c4cca57d13..dc3137a34f35 100644 --- a/drivers/input/touchscreen/iqs5xx.c +++ b/drivers/input/touchscreen/iqs5xx.c @@ -1019,8 +1019,7 @@ static int __maybe_unused iqs5xx_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(iqs5xx_pm, iqs5xx_suspend, iqs5xx_resume); -static int iqs5xx_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int iqs5xx_probe(struct i2c_client *client) { struct iqs5xx_private *iqs5xx; int error; @@ -1094,7 +1093,7 @@ static struct i2c_driver iqs5xx_i2c_driver = { .pm = &iqs5xx_pm, }, .id_table = iqs5xx_id, - .probe = iqs5xx_probe, + .probe_new = iqs5xx_probe, }; module_i2c_driver(iqs5xx_i2c_driver); From patchwork Fri Nov 18 22:39:42 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: 22694 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462583wrr; Fri, 18 Nov 2022 15:30:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf7IKARO+e9izVkEjavHtOXJZ15x85eTIvldxRMd5C9vFPInhZ3qAWuLO3yoq0efQSlGK6Ev X-Received: by 2002:a05:6402:2987:b0:45c:a9d3:d535 with SMTP id eq7-20020a056402298700b0045ca9d3d535mr8001458edb.0.1668814229592; Fri, 18 Nov 2022 15:30:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814229; cv=none; d=google.com; s=arc-20160816; b=tqaTZzY67p8fbMBqz+HiIyCktSDB4A6lMJCoO+m4b2lJMppod6jj280kdYnRAT+lqD nm5SPFrefc33/2PnqyH+1SYzlclRDGjTAhr80GIptworm0oP0BAInrjoCE5XtIUnmAPV Z9jFXXfP2C/tG1fCZUn61I4l5uWeZg2F+dU9wbgQSdgaf/08qDKtoHFsdMpZaGMHt8vC DGe0IIA2D+I73xYFEPFP0g7pXBFVdUNJvbtLy5plxZ5T8Y2ZTTgcI4xViFkw52LK+46j 4/GMTd7FZpw7F8y4Oj84G1OyZQXEp0TFqIRPcih5Veo7D73ToGm7RHn63mpicIkm+hGw 9b6w== 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=K0727g4p8oLRITYuQPPCsyZSly+FNgZaqmIo0orptvs=; b=wt0lqYxBag0G1UnQXi2Uz+ZvIqvnLVzuC23m6Qnn06gkQdDyB9SUmU/cx9ZdACZ+ci OI+u/YS+CkPlXwVBChrx+kWJQ/inwl7UuHtCxfiIcUW8tdQAuC7G1aYnVRXkH6QM7JMx /xA4DtnnADXZAU4cTCn9xJJlsH/Ohnmh0z5nI5HhvzVuSC+nLJeJGJdMKjIzqHlrLSbh afLlbwdLOEtJHm38r+qT6VTdmhUEEGjWVoLbPwAOZajApQAFe+Pi9+Txes+qV/nubRNV SnbktOHxTWxihXSe4V4UT+EzsVHYYEm6SnwXxzgglxJ7ensq6djmGX8m+SYxq1tMAOia XlkA== 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 k12-20020aa7d2cc000000b00453688643fasi3867320edr.260.2022.11.18.15.30.04; Fri, 18 Nov 2022 15:30:29 -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 S235865AbiKRX3h (ORCPT + 99 others); Fri, 18 Nov 2022 18:29:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235781AbiKRX2o (ORCPT ); Fri, 18 Nov 2022 18:28:44 -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 46E298CF2C for ; Fri, 18 Nov 2022 15:16: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 1owA8Y-0002Hc-Qy; Fri, 18 Nov 2022 23:47:06 +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 1owA8V-0058RY-Ue; Fri, 18 Nov 2022 23:47:04 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8V-00007m-UC; Fri, 18 Nov 2022 23:47:03 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 248/606] Input: max11801_ts - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:42 +0100 Message-Id: <20221118224540.619276-249-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?1749878549987326064?= X-GMAIL-MSGID: =?utf-8?q?1749878549987326064?= 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/input/touchscreen/max11801_ts.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/max11801_ts.c b/drivers/input/touchscreen/max11801_ts.c index f15713aaebc2..461023fd6a09 100644 --- a/drivers/input/touchscreen/max11801_ts.c +++ b/drivers/input/touchscreen/max11801_ts.c @@ -168,8 +168,7 @@ static void max11801_ts_phy_init(struct max11801_data *data) max11801_write_reg(client, OP_MODE_CONF_REG, 0x36); } -static int max11801_ts_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max11801_ts_probe(struct i2c_client *client) { struct max11801_data *data; struct input_dev *input_dev; @@ -231,7 +230,7 @@ static struct i2c_driver max11801_ts_driver = { .of_match_table = max11801_ts_dt_ids, }, .id_table = max11801_ts_id, - .probe = max11801_ts_probe, + .probe_new = max11801_ts_probe, }; module_i2c_driver(max11801_ts_driver); From patchwork Fri Nov 18 22:39: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: 22677 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp461607wrr; Fri, 18 Nov 2022 15:27:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf5wWgLEHmzAo6yupbXj8Zfs6wSZSw6F2lwFP9v87WmE5SN/8f3VhaN5P2jW7Zi12G/5Suk5 X-Received: by 2002:a17:907:7f9f:b0:7b2:a48e:302f with SMTP id qk31-20020a1709077f9f00b007b2a48e302fmr6689972ejc.334.1668814058881; Fri, 18 Nov 2022 15:27:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814058; cv=none; d=google.com; s=arc-20160816; b=BdB1tfkoyhxwMzS3BRGr+bYPzKYccOglwc/MOd0mDKKeVhLQDpnDB6My7zy1NOqk8Q 6lSoVrKv0NkQQZ+gWA7+yA2rwPskl8U9NRNOavyNalzVwFumezlVin/TjH2jG/O/FpY5 N15oKs7twad72x+jPaGqlAo4oDthQbIUFaSbOQxjAfg7PV6S1EAH93hb4+Xp9nPY4JnB 9url2IMNHPV+zkxh7RjQnvLkQ2rDQVSFYSq6EZmo+MT67Cqy3Z7MzNZTf+4bTCWmmx6h MkzhpfxQKD+SlqNwWdnPQROJNuNbgVSIP7IwDxy2ugoV980E9bSxPQOZ6SiJueiWYelw Nk3g== 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=oepIZ0gMTNpltUMRo4ocNVMFdTylk2maVUoMyti49KI=; b=ZvYs/8z+vRIRXzX6d1EktbBSsqTaPtrRR2iIkABfyDSwj/AtME0gFd6YacytXjD7tH +olj83H4ufWNDbsz22l6Wjl84/d3JAUocWrLd+meow2cgVwkZZNFl26pvt/qPx6b+n9B T2Dw4RX8+Je6zhoIh7mSikRXSNc0+wt65xIj9Qmoy8F8tJoT5QzRt7Qm2eaYNNAe9X7F hg79XRkmtJxaLn3qs9Yd15hy5/g6SRQbHRpPWQFdj16Ow54uiSsapsbagmhiU2++zUae cJIn8gMJjZtfGS8cUqkypSe9xFyjZ1W6t1LWl4Zuz35CZYRv7c5NJ48iVCEwjKW/AMWp DZcw== 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 x12-20020a05640226cc00b00461a3438b24si4613499edd.182.2022.11.18.15.27.15; Fri, 18 Nov 2022 15:27:38 -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 S235596AbiKRX0G (ORCPT + 99 others); Fri, 18 Nov 2022 18:26:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235611AbiKRXYO (ORCPT ); Fri, 18 Nov 2022 18:24:14 -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 06E85786F6 for ; Fri, 18 Nov 2022 15:14:18 -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 1owA8Y-0002IK-KY; Fri, 18 Nov 2022 23:47:06 +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 1owA8W-0058Rf-8q; Fri, 18 Nov 2022 23:47:05 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8W-00007r-4e; Fri, 18 Nov 2022 23:47:04 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 249/606] Input: mcs5000_ts - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:43 +0100 Message-Id: <20221118224540.619276-250-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?1749878370403706194?= X-GMAIL-MSGID: =?utf-8?q?1749878370403706194?= 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/input/touchscreen/mcs5000_ts.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/mcs5000_ts.c b/drivers/input/touchscreen/mcs5000_ts.c index 5376d8f740ab..ea9517cad695 100644 --- a/drivers/input/touchscreen/mcs5000_ts.c +++ b/drivers/input/touchscreen/mcs5000_ts.c @@ -180,8 +180,7 @@ static void mcs5000_ts_phys_init(struct mcs5000_ts_data *data, OP_MODE_ACTIVE | REPORT_RATE_80); } -static int mcs5000_ts_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mcs5000_ts_probe(struct i2c_client *client) { const struct mcs_platform_data *pdata; struct mcs5000_ts_data *data; @@ -272,7 +271,7 @@ static const struct i2c_device_id mcs5000_ts_id[] = { MODULE_DEVICE_TABLE(i2c, mcs5000_ts_id); static struct i2c_driver mcs5000_ts_driver = { - .probe = mcs5000_ts_probe, + .probe_new = mcs5000_ts_probe, .driver = { .name = "mcs5000_ts", .pm = &mcs5000_ts_pm, From patchwork Fri Nov 18 22:39:44 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: 23132 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488384wrr; Fri, 18 Nov 2022 16:45:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf5TE+t7xdKlVEJfrjqwH/fl9r7KTSe2H+svHeXqizg4u2p6GWYKPg+yXaHXAuxBYkXBU7Ca X-Received: by 2002:a65:6c11:0:b0:477:2bc0:f1b with SMTP id y17-20020a656c11000000b004772bc00f1bmr4709333pgu.566.1668818748220; Fri, 18 Nov 2022 16:45:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818748; cv=none; d=google.com; s=arc-20160816; b=DiKDgsY6+7fxvxMaoVR2fYtJN4kGQ29NilquugIUwT8Y5bns1VH9uRpHvTRHKLBw/y TBeQbNVtNJmK8CxfVyz5JrRHCFxUJY1x/nxnMg+dXTErzVVA2gBj5chr6Pb/e6ZxX8bG 1TjHDe7wsTNtJlqPl4xnvnJuz/0+183fr0gash55lUG3VLqbMxpHUV5U8rHYdgStgyhc 9l0+f9rk6h62Qnr4WtpOn0iqKguTqtV+ISfjzHkOOYQZE8z8Nccio4QOqsR6CxN4GgHW XLRo8ShVT0QVwiPVY5Urfi0h+T8xrz3V7wQEWkFd45cwfePlEXIxZK7C52ASTDMGtq3h EwuQ== 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=PKpJQRxUqa2aBP+TmnIT2cZEmKmolFn64Q4bKGGL1Q0=; b=bNpNyAsLZiGPcVqcpKnh2CgmufIyLYfGP9C+F1h9X7OToPpZAeGJecz1LUqdJqnu0u qMcUMo/gSdlkD5j6dTDt7VS4+s6O8WTDlCdQZUwMEO6URT1GXCT0po1bq8nHQefXbvfd SyRLTjD7Th7NdQXd90JJ9/sxb5ooa0mtrLN1xcd1LM920UhP+/Vco8pYblJ/oU5kl+u3 SmfITKW9G8oS+kugyaMJFMLa8a7DIyBVBpwXiMX8UxN37+LMHx2LHKWOFzULeXLTQ9A8 E8BWMKUR6VZbCYxvL7c/k19niif01j143pf180d8XNNHXVcAI3Tt05nNX5FYLlPeOSL3 QICw== 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 30-20020a63165e000000b004767bc4252csi4920221pgw.519.2022.11.18.16.45.28; Fri, 18 Nov 2022 16:45:48 -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 S235757AbiKSAnn (ORCPT + 99 others); Fri, 18 Nov 2022 19:43:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236781AbiKSAkg (ORCPT ); Fri, 18 Nov 2022 19:40:36 -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 06ED9D919E for ; Fri, 18 Nov 2022 15:44:54 -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 1owA8a-0002Ib-6Q; Fri, 18 Nov 2022 23:47:08 +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 1owA8W-0058Rj-BJ; Fri, 18 Nov 2022 23:47:05 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8W-00007u-BN; Fri, 18 Nov 2022 23:47:04 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sangwon Jee , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 250/606] Input: melfas_mip4 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:44 +0100 Message-Id: <20221118224540.619276-251-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?1749883287641029878?= X-GMAIL-MSGID: =?utf-8?q?1749883287641029878?= 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/input/touchscreen/melfas_mip4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/melfas_mip4.c b/drivers/input/touchscreen/melfas_mip4.c index 83f4be05e27b..4ee8ed4c930c 100644 --- a/drivers/input/touchscreen/melfas_mip4.c +++ b/drivers/input/touchscreen/melfas_mip4.c @@ -1424,7 +1424,7 @@ static const struct attribute_group mip4_attr_group = { .attrs = mip4_attrs, }; -static int mip4_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int mip4_probe(struct i2c_client *client) { struct mip4_ts *ts; struct input_dev *input; @@ -1590,7 +1590,7 @@ MODULE_DEVICE_TABLE(i2c, mip4_i2c_ids); static struct i2c_driver mip4_driver = { .id_table = mip4_i2c_ids, - .probe = mip4_probe, + .probe_new = mip4_probe, .driver = { .name = MIP4_DEVICE_NAME, .of_match_table = of_match_ptr(mip4_of_match), From patchwork Fri Nov 18 22:39:45 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: 22937 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474679wrr; Fri, 18 Nov 2022 16:04:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf7dukRpDFw6lb5OzP77JDkZICfum4NpJ5ew65rmf4WsPfApKoZp1eoaLyP+xJSThXt/dA36 X-Received: by 2002:aa7:d405:0:b0:461:b4e2:904d with SMTP id z5-20020aa7d405000000b00461b4e2904dmr8184577edq.216.1668816285065; Fri, 18 Nov 2022 16:04:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816285; cv=none; d=google.com; s=arc-20160816; b=0ZeDm8hpOrNazd7vSdAqJJUq7rEhRpKbY8OZ57y3Z/RUmP3Y/ri57p6p9E5V1pPpZd i7Zb6FKiZkUaMtQKsg7d47Zq0JdxhBue6F2S5jgfsfXK9UqqBeatbPHGOzaX2G2MsOWC ZRJ75/q3ZDrdQE4UoTzmQ6yudEB1hEVYsa9izjKUMCFRl9/JB+lWWqJVY1RohBhPeszV QUcjWNfOzyjjJDCKcpQs+ZcXnKCEGJuzp4bbw3Rwo3uYWVssxTp7HM0WO6RsQDUCMxBW 6OEQbUKJo7saz/Ds+46aTiz673CfXEI/P8eAzLkuqUfWPdXbh46nMj/bGcCGzxXYQWMf fucA== 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=T4rj0AG6K9F/ij/p6Lg3mQSIpf2fc4H2vfiXO0eDq0A=; b=FqQKh4KkJlpQqD14H4pZ8ZGjEQ6hT7kJNSvV+W1S3IqyeOp3qT2UBOXtzFE1rPxFM1 KQDm8XWYdmQKUcceInKHweGHsjGwPU86Nzp9dx/w/6c3AUS63zHFBo+WVmKo53rLSQIf lDoON90TDm7kXPtqeOb/kTO6WAxITd15eyuovaiu5f6xLG4Z8voHr7iWLP7P+m7pC/Xe 8G9jkON40k3wpjdDNseCJlTmBn3/JPM4XV88OIFqdJmf07+LAZZnZYdbNJgQb43nOc/v 9XZlx91Wr8oynY9Oygt5XZmeME0cZaY8VrtXkn7qBYXjEjtk+dpXadFGIqdZmvJMznev xBdA== 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 mp9-20020a1709071b0900b0078ed891fef3si4126897ejc.440.2022.11.18.16.04.20; Fri, 18 Nov 2022 16:04:45 -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 S230118AbiKRX77 (ORCPT + 99 others); Fri, 18 Nov 2022 18:59:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237206AbiKRX5G (ORCPT ); Fri, 18 Nov 2022 18:57:06 -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 3425AB0419 for ; Fri, 18 Nov 2022 15:28:52 -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 1owA8Z-0002JC-0U; Fri, 18 Nov 2022 23:47:07 +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 1owA8W-0058Rn-IE; Fri, 18 Nov 2022 23:47:05 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8W-00007y-Hf; Fri, 18 Nov 2022 23:47:04 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Jeremy Kerr , Luca Ceresoli , Hans Verkuil , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 251/606] Input: migor_ts - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:45 +0100 Message-Id: <20221118224540.619276-252-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?1749880704973711106?= X-GMAIL-MSGID: =?utf-8?q?1749880704973711106?= 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/input/touchscreen/migor_ts.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/migor_ts.c b/drivers/input/touchscreen/migor_ts.c index 79cd660d879e..ff0f605f3a3a 100644 --- a/drivers/input/touchscreen/migor_ts.c +++ b/drivers/input/touchscreen/migor_ts.c @@ -116,8 +116,7 @@ static void migor_ts_close(struct input_dev *dev) enable_irq(priv->irq); } -static int migor_ts_probe(struct i2c_client *client, - const struct i2c_device_id *idp) +static int migor_ts_probe(struct i2c_client *client) { struct migor_ts_priv *priv; struct input_dev *input; @@ -222,7 +221,7 @@ static struct i2c_driver migor_ts_driver = { .name = "migor_ts", .pm = &migor_ts_pm, }, - .probe = migor_ts_probe, + .probe_new = migor_ts_probe, .remove = migor_ts_remove, .id_table = migor_ts_id, }; From patchwork Fri Nov 18 22:39:46 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: 23012 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp478052wrr; Fri, 18 Nov 2022 16:13:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf4l9Qzm10EebHPGDh8jO+Qv+Y8eUEjgYRiJdyDcG9w4LtIuzzwUp4Hsv9NdeuvVUO93u3Y9 X-Received: by 2002:a63:4b0f:0:b0:439:3b80:615d with SMTP id y15-20020a634b0f000000b004393b80615dmr8841930pga.255.1668816788439; Fri, 18 Nov 2022 16:13:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816788; cv=none; d=google.com; s=arc-20160816; b=Dfz0fSgjDmH/HqIyaW0J5oh5p37+2MeKk6NUyR2qqlcz3j4wQ13aL3cp5ktTyTap48 Gup6GCxjGpGOm8YJEBnJZ+qtd2CAvjuyyGMO6GDMuWKAFN0fc0cmqeO8M++ECYcfMRiB j76fePZblcnnCxkHEUGDafkLmKrYXd5d19d9xtlRsHK1kS6meQLe0B960l5FzqM+JTa6 j85U5ISOSVREVmm/CZYD1fUEK4BT1jfo5uszmtKbFx4lY55mspau4GEa4NUOtZIOG0T1 lqN+mEUowHZa4EE19rwz/OqCOKnTUx8WNxL/7J6tygwPbw4t9RFuw1AVMxtQYrkmrZBd xcZQ== 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=3jMLDdr1r0+akC2rX0bFtp1z/FrHGT+p2Q3i4vaEFho=; b=ZJc85E9ByitOzpX/5Hx3QfWjpB6HF0W+vRk0wqbysL/+EhmlCEvTytA0+jJ8U9U8X0 6W5ZBd77vZrmIICthRQK0LzhQLt6vuKxfPGbtyEviWK+mssGHDowgHYQuELYAf83RmIr SnFF3hOmuW3HgP9LUG/wCiktwnirRlfa8GCk839qR89/lVEkdC4+UGJ8F0JOxMhfmDYS xF/JCIj/wo2/6yNxrL4g0u/wSdte+ZRQZ3ArQInT7RX5gMwREVlEsSCBmq9tVjoktjeJ ZehEE8Wj5+JDbGcsGNuT5iBbsTosb/IxW1xIh4koUm1/NuoGDte3KzDhLprR1xd6cP+a +1xQ== 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 h13-20020a056a00218d00b005668645daebsi5160142pfi.111.2022.11.18.16.12.55; Fri, 18 Nov 2022 16:13:08 -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 S237608AbiKSAMe (ORCPT + 99 others); Fri, 18 Nov 2022 19:12:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237765AbiKSALz (ORCPT ); Fri, 18 Nov 2022 19:11: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 D684E56D6F for ; Fri, 18 Nov 2022 15:33:45 -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 1owA8b-0002OD-CJ; Fri, 18 Nov 2022 23:47:09 +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 1owA8Y-0058SU-Mf; Fri, 18 Nov 2022 23:47:07 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8W-000081-Ov; Fri, 18 Nov 2022 23:47:04 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 252/606] Input: mms114 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:46 +0100 Message-Id: <20221118224540.619276-253-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?1749881232363237767?= X-GMAIL-MSGID: =?utf-8?q?1749881232363237767?= 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/input/touchscreen/mms114.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/mms114.c b/drivers/input/touchscreen/mms114.c index 9fa3b0e421be..758b669391a7 100644 --- a/drivers/input/touchscreen/mms114.c +++ b/drivers/input/touchscreen/mms114.c @@ -440,8 +440,7 @@ static int mms114_parse_legacy_bindings(struct mms114_data *data) return 0; } -static int mms114_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mms114_probe(struct i2c_client *client) { struct mms114_data *data; struct input_dev *input_dev; @@ -639,7 +638,7 @@ static struct i2c_driver mms114_driver = { .pm = &mms114_pm_ops, .of_match_table = of_match_ptr(mms114_dt_match), }, - .probe = mms114_probe, + .probe_new = mms114_probe, .id_table = mms114_id, }; From patchwork Fri Nov 18 22:39:47 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: 22978 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476664wrr; Fri, 18 Nov 2022 16:09:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf4RMJJ8e/YZ+s9DOM9h8Pn4kEjbYHDftnwefb7hsJakaYBKJWBRzJYRm5g/YErfdB5pbIA0 X-Received: by 2002:a17:90a:4283:b0:218:4953:58aa with SMTP id p3-20020a17090a428300b00218495358aamr16082341pjg.219.1668816580640; Fri, 18 Nov 2022 16:09:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816580; cv=none; d=google.com; s=arc-20160816; b=vLL8oaqgHH+36EnJoRQTZ5HjRqg7nLUnvEXPi9CeK5SP2/zVwmBkdYVIvhknqghrF+ BImKaTCwH9S01VGsnSzwWMtCWMF2e6lGhV0DMvSVMMCJawPT+PD5Cxh0QUo0aBGCykJl ChN5p93xTow9achDJe7P8HQJcMRw8jIXLTlw1R8feOUZG7oCyoJL7Q1GQitO1JHNfUU9 CDDbhrOOrLjuGpu2UMdgWLvLmLnkok1m7+NpzUM+utwaSaLolDJDOG7LcBJYp2NOYhhV 0WH8awrRGMRBlVtBwyevBwdGkrg2tvbyKkSPMGaiP7c2O4Sq4hfWw0zWaijyYxeQFgpE EV8g== 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=B6w/KYztBkdBeoUlj8/UXuBQv1UOVy9JqGgHkI7YNBs=; b=eWijsAu2uS2IXVyZpxrn6LNFtysaFq0dUuCcLlD9o8Yw8f/pD8hIifJ9L/VCdHczix zYJ9zC2oMLAZY/2SmzF12qmM2TUp0lyZEbFZuO3z8FiNmTPpaRYll0N2C70s7dk3gPxo FPvhLxradCGa9FGm+sH3UI+LVKQd4z8qMHxZ+A7i35iZ9wJh9IEDsr4RZsEzlkAAA77Z v+xUQ9qIyNmb3io+BNFZtMAyk4rNt9ySnqlH06hYWM0ravnOghDlr2ECVkGMAdEoGhcz 1NeZe33qoGP+G0DLuuoTWaUvjyf5VGqDNNKEVg677oqNmyGGWYj28pB5UmfHs7ULtn8Q dfbA== 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 w11-20020a170902ca0b00b001869cf73143si4169322pld.314.2022.11.18.16.09.28; Fri, 18 Nov 2022 16:09:40 -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 S237411AbiKSAEZ (ORCPT + 99 others); Fri, 18 Nov 2022 19:04:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238004AbiKSADj (ORCPT ); Fri, 18 Nov 2022 19:03:39 -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 EBF1CCFBAA for ; Fri, 18 Nov 2022 15:30:51 -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 1owA8a-0002MF-8r; Fri, 18 Nov 2022 23:47:08 +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 1owA8X-0058S8-Q3; Fri, 18 Nov 2022 23:47:06 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8W-000085-VX; Fri, 18 Nov 2022 23:47:04 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 253/606] Input: pixcir_i2c_ts - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:47 +0100 Message-Id: <20221118224540.619276-254-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?1749881015030927419?= X-GMAIL-MSGID: =?utf-8?q?1749881015030927419?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/input/touchscreen/pixcir_i2c_ts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/pixcir_i2c_ts.c b/drivers/input/touchscreen/pixcir_i2c_ts.c index dc148b4bed74..7959947a3458 100644 --- a/drivers/input/touchscreen/pixcir_i2c_ts.c +++ b/drivers/input/touchscreen/pixcir_i2c_ts.c @@ -462,9 +462,9 @@ static int __maybe_unused pixcir_i2c_ts_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(pixcir_dev_pm_ops, pixcir_i2c_ts_suspend, pixcir_i2c_ts_resume); -static int pixcir_i2c_ts_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int pixcir_i2c_ts_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; struct pixcir_i2c_ts_data *tsdata; struct input_dev *input; @@ -617,7 +617,7 @@ static struct i2c_driver pixcir_i2c_ts_driver = { .pm = &pixcir_dev_pm_ops, .of_match_table = of_match_ptr(pixcir_of_match), }, - .probe = pixcir_i2c_ts_probe, + .probe_new = pixcir_i2c_ts_probe, .id_table = pixcir_i2c_ts_id, }; From patchwork Fri Nov 18 22:39:48 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: 23079 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487139wrr; Fri, 18 Nov 2022 16:41:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf5DwELSuuJcV9QgzaItFwz4E+XGBhiEB2e5iOsL5Qdt0hZFoQaoJYbf5ItaCJAvx06NNUHp X-Received: by 2002:a17:907:b606:b0:7af:ecf4:61c0 with SMTP id vl6-20020a170907b60600b007afecf461c0mr8091819ejc.178.1668818519452; Fri, 18 Nov 2022 16:41:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818519; cv=none; d=google.com; s=arc-20160816; b=z1IW2ygmbKq5o4CdWiNwA5BMyAVun05LsC/NPo3uyLxr2AAm0sSjoWXHUGEUbOof/o 4a/kuhEQQZE/4UpREBaJ4foPrhu3rtmVZFcC4dY77TQ/Qq53tJxw/BVM885q9bijUWOm CC9nKdZUsjaesaHP8tAwZd9ju6wTQmmOZftpc9dXgV9xO7xvAWiXLkFVpw8Bb7GgeuQG xbcsPaY16EmbFnw4cH/PeBov+T5YiveAQGdR1l9GqEl6LmtsobDq0XSIs5gJas9mHmcz rigneHAAdaGy7n8qO17MSHqgrFp/HGKfwSEvx9FfkGHWU+eYid7153zXPD38HjwVl4Ho 4gNA== 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=4EpiIYUGlr+Jg1KeFvOFyt/bLRGlHyB/4SehLzASfkE=; b=MGS4kRYmbNoUJR6DkSvjKQqy0xj3vp1QmV3OA/6kP1ABIrGB3invAJC4qI5vasKB9C eINEAnOLFGnT93iL9ceIDLClntL2ULqFXXnnYI3yb+IuNtVWYlUTPHWTSxzMYrUk0FjV a6mU9ksvqk+T99PRUb6Fe+xgJSjMZCIP8oS93XwRYrVnoU3ua/0Wz8pw2V3tPcb8A5FJ qLhgsPyWQS65Z4+Y8NPIlDl7D4aG0nK8xjuuZwBlFTZRvXa8KHneDKtJjRmBKgurvYVh 2zEoBuNAH7izvGxJRRWAa3f4fVV/VYotgUowWylhvIDkd/KRJ+9Rbk8vsLH2rhXuUFaw akYg== 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 xh13-20020a170906da8d00b0078e2828052asi3722063ejb.638.2022.11.18.16.41.32; Fri, 18 Nov 2022 16:41:59 -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 S236129AbiKSAhk (ORCPT + 99 others); Fri, 18 Nov 2022 19:37:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235364AbiKSAgv (ORCPT ); Fri, 18 Nov 2022 19:36:51 -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 DAB2E7CB9F for ; Fri, 18 Nov 2022 15:43:30 -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 1owA8Z-0002K5-G5; Fri, 18 Nov 2022 23:47:07 +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 1owA8W-0058Rt-TY; Fri, 18 Nov 2022 23:47:05 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8X-000088-5V; Fri, 18 Nov 2022 23:47:05 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 254/606] Input: raydium_i2c_ts - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:48 +0100 Message-Id: <20221118224540.619276-255-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?1749883047829040346?= X-GMAIL-MSGID: =?utf-8?q?1749883047829040346?= 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/input/touchscreen/raydium_i2c_ts.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/raydium_i2c_ts.c b/drivers/input/touchscreen/raydium_i2c_ts.c index 3a4952935366..181c675e9d34 100644 --- a/drivers/input/touchscreen/raydium_i2c_ts.c +++ b/drivers/input/touchscreen/raydium_i2c_ts.c @@ -1064,8 +1064,7 @@ static void raydium_i2c_power_off(void *_data) } } -static int raydium_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int raydium_i2c_probe(struct i2c_client *client) { union i2c_smbus_data dummy; struct raydium_data *ts; @@ -1277,7 +1276,7 @@ MODULE_DEVICE_TABLE(of, raydium_of_match); #endif static struct i2c_driver raydium_i2c_driver = { - .probe = raydium_i2c_probe, + .probe_new = raydium_i2c_probe, .id_table = raydium_i2c_id, .driver = { .name = "raydium_ts", From patchwork Fri Nov 18 22:39:49 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: 23124 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488281wrr; Fri, 18 Nov 2022 16:45:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf6jiFXsFmTo/JmfM3dyp3hflZmCNFFSjPGzKq3cqDVv5Ug8ud8iYnbACtLAUcgPkW63MpBN X-Received: by 2002:a17:906:f891:b0:78d:9f2f:a661 with SMTP id lg17-20020a170906f89100b0078d9f2fa661mr7756735ejb.555.1668818615939; Fri, 18 Nov 2022 16:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818615; cv=none; d=google.com; s=arc-20160816; b=wCNkx1eg+VXy9JOQajNMGa31cRbEV7uMqSVnvf78KnEiaE8pWLU1qX5Zy/rLNV+zYR P4MrsbMTksVH05ZeszOMP/v/TCtmeyIWYz6MptFtgjEhjc+liI2yxJkE4beRm/B+HSEv IpwCfXhZoNn24RdFTXitkgWNrRURJ+L1pumA7Rpas2qJBsmpowTIrRtpi3X80pYQgLaP sBlFVZH7XF0U+9CWyO+PVy0xPloctr36y8OQC17NU2YZlp0wVLggCOO9F95QHGSWolUF XGhW6wB63pizwydSP6AzJvTm0T5rlGH6OB3cjnMQF5LuTfmaXs+ULQQVBwM+Ps2K34mU Or8g== 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=rAm9wbII+b9WH3AD7T6ZsfOAIJE+Gth0W/jg4DDMgMw=; b=qSWOIDceInrQW1+aQf3fzatwfaif30utOn26fQETLsQKFZr6UT7tlocZdydHCnprAM 4i3wcmY0mkcGq3g8GmrYBTmFhV4d2mDzCfz3vNRr/XCIj/15s+fd6GFdoWlpoEcRuXR6 5SbeH+oXu9EJvsgmMOg/w+oZ8csjpbadtXjnErLuPy7hVPQeJq+croxF2KvpPHGc8m/5 WdM8i8hnNkPVFZEkN/SjOxV2d+d5phCZGRdqwSHwkvrbWSWBZ7EqlOtW1gYLnpA4zrT9 rv9reTEHhH9w6Fq19cqwMOQ32j0SNp+JXjoZaC5TWkO/nPeiVrIB1cHneTxj/1Bzr7f0 2qBA== 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 nb17-20020a1709071c9100b007a858ead52dsi4679149ejc.732.2022.11.18.16.43.05; Fri, 18 Nov 2022 16:43: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 S235525AbiKSAk3 (ORCPT + 99 others); Fri, 18 Nov 2022 19:40:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236420AbiKSAjI (ORCPT ); Fri, 18 Nov 2022 19:39:08 -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 C0E43C78FF for ; Fri, 18 Nov 2022 15:44:25 -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 1owA8Z-0002Ky-St; Fri, 18 Nov 2022 23:47:07 +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 1owA8X-0058S0-9N; Fri, 18 Nov 2022 23:47:06 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8X-00008D-Dv; Fri, 18 Nov 2022 23:47:05 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 255/606] Input: rohm_bu21023 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:49 +0100 Message-Id: <20221118224540.619276-256-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?1749883148928593586?= X-GMAIL-MSGID: =?utf-8?q?1749883148928593586?= 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/input/touchscreen/rohm_bu21023.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/rohm_bu21023.c b/drivers/input/touchscreen/rohm_bu21023.c index 730596d599d8..833422e5fd6d 100644 --- a/drivers/input/touchscreen/rohm_bu21023.c +++ b/drivers/input/touchscreen/rohm_bu21023.c @@ -1095,8 +1095,7 @@ static void rohm_ts_close(struct input_dev *input_dev) ts->initialized = false; } -static int rohm_bu21023_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int rohm_bu21023_i2c_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct rohm_ts_data *ts; @@ -1184,7 +1183,7 @@ static struct i2c_driver rohm_bu21023_i2c_driver = { .driver = { .name = BU21023_NAME, }, - .probe = rohm_bu21023_i2c_probe, + .probe_new = rohm_bu21023_i2c_probe, .id_table = rohm_bu21023_i2c_id, }; module_i2c_driver(rohm_bu21023_i2c_driver); From patchwork Fri Nov 18 22:39:50 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: 22722 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464023wrr; Fri, 18 Nov 2022 15:33:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf4YymZYd88rYjGjeL3IwpFMaeoNIXEfnc8BZ4FtYvsj+yHkEOsfq/KdoXFHf7mscq14Xk2P X-Received: by 2002:a17:906:a113:b0:7b2:7c9a:1849 with SMTP id t19-20020a170906a11300b007b27c9a1849mr7719452ejy.733.1668814432540; Fri, 18 Nov 2022 15:33:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814432; cv=none; d=google.com; s=arc-20160816; b=UH2tQd2hmSUQzxIkFcqgHMTDymQRjIIA7JkcNUPvRW6pobTN5Z7BfCrtqJiW/yoXUt pzNg2wYDM/QD3hONMSeVUOaL23Fh+5+Z7TLb7rXGYuFnOQ+nppxviWxH0PCU1HIFK4dI Zcixo7E2dqP73pHak1aPmvaYCPy6GB6Hu1aytpqs+ieC6pVBy6RKh9kOzwO32H/A38O7 sFr5nyTjV4ubQzd/l28WYaPYfBum0SU07d4W41MWfmmcFRN58dude37IeBC4R5R7G1uI Ag9qncwMWDVrRLzKBfXlmnJUOg6vxOdpHa2nJkqIlylGLGwzAljDy/5bPBczb9Gi/c+s cAUg== 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=RgNxHIXCnbu09pCsJbSKD/RkMhvTo22+bFL+oWP2XWA=; b=CpqB4qUQwx9C6jzy2w6z556ZdLY8wUpunOBWncZvI67N1rDg6AS3+PCVrRXMGSlMix t2F5FfFMhn4ZPIOjSFialMcbsb85xn/uYUAD7R8JXORqY1jgWum28yYgDXPHuQSyc052 a+2hOLC3Kjv3okkFPl08yzx65qeQ7iq5E5lnQgbtgChhxPt57F3cXVhqK8xEdPg9F8fg wLch4Ybkj3TpcAZMAIJsMy74LrSGk20gPZV/3xJ+5WTMcTVJuHUzV0u9YSQiR1PhGiiN BoxLQPEFsszA9VvayDPTaoNYzjI3a1SNF8AcWlmmB/YHNhfV5dFMRf0m4kMTm/JZiTSY Mc1g== 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 s2-20020a17090699c200b007ad943d0608si4072117ejn.630.2022.11.18.15.33.28; Fri, 18 Nov 2022 15:33:52 -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 S236051AbiKRXb0 (ORCPT + 99 others); Fri, 18 Nov 2022 18:31:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235906AbiKRX3u (ORCPT ); Fri, 18 Nov 2022 18:29:50 -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 696E6C284B for ; Fri, 18 Nov 2022 15:18:01 -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 1owA8a-0002MG-Au; Fri, 18 Nov 2022 23:47:08 +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 1owA8X-0058S9-QX; Fri, 18 Nov 2022 23:47:06 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8X-00008H-Kd; Fri, 18 Nov 2022 23:47:05 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Heikki Krogerus , =?utf-8?q?Krzysztof_Ha?= =?utf-8?q?=C5=82asa?= , Crt Mori , Hans Verkuil Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 256/606] Input: s6sy761 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:50 +0100 Message-Id: <20221118224540.619276-257-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?1749878762534680682?= X-GMAIL-MSGID: =?utf-8?q?1749878762534680682?= 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/input/touchscreen/s6sy761.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/s6sy761.c b/drivers/input/touchscreen/s6sy761.c index 1a7d00289b4c..cc417c03aaca 100644 --- a/drivers/input/touchscreen/s6sy761.c +++ b/drivers/input/touchscreen/s6sy761.c @@ -389,8 +389,7 @@ static void s6sy761_power_off(void *data) sdata->regulators); } -static int s6sy761_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int s6sy761_probe(struct i2c_client *client) { struct s6sy761_data *sdata; unsigned int max_x, max_y; @@ -540,7 +539,7 @@ static struct i2c_driver s6sy761_driver = { .of_match_table = of_match_ptr(s6sy761_of_match), .pm = &s6sy761_pm_ops, }, - .probe = s6sy761_probe, + .probe_new = s6sy761_probe, .remove = s6sy761_remove, .id_table = s6sy761_id, }; From patchwork Fri Nov 18 22:39:51 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: 22860 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472027wrr; Fri, 18 Nov 2022 15:59:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ZF7nUytaKtWMpRdQ0+W5juxM8JQQR3R5WwHGDhTl6MejTD23NcTwhRXWT57Y3abqJ0aQM X-Received: by 2002:a65:674e:0:b0:439:3ca9:94a with SMTP id c14-20020a65674e000000b004393ca9094amr8486235pgu.107.1668815947299; Fri, 18 Nov 2022 15:59:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815947; cv=none; d=google.com; s=arc-20160816; b=HKBZ2JpQcfJcti5GW9oMRVQwEeOkIbj9vbdRnfQDIdOJe4EE9ZxkM6vjNvrr+FSVy6 v80pVf3xkXKg6RqfWamVrGlNimdYgOdu0+w5o15CNwUwcPjNXhd3q2zyZ/eVAg9lKmHw PXxNYNeQyhpzK+ecRfuIVP+YFF+/x1Ws0XjW0iYGhipljQcJLpmUJ3N3DzWaRUvyL/Wy 1FttnYArRJ0qA30FZnAcH0dJhneBd6QOuYecChBuOej7U3w7W2Dprb54c5zBXW2gm0S1 I3H4isIua2XZK/dnwWp8BfbEm3epE+gm/3GgbcQ8eJKgG3rpw8pNlA1Yd4JU4u/zLqQF i7mg== 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=Xi4AneL89CJI7KOj+t0H1G8CqcTySZsihr3yROAMNlY=; b=mUY0Dk252Mxxv8wl7jY776NEBnxScBwOgpYjfmPRgrMEt+OYyTJRmbQELlImGJybGk 5/M+ttQYEXT4eIrAs0lHO4IHlkGkIAP7i4627rpSqO4Gsv7GzrvQRqhuLFhboWqh+wGI anv53iqwNCNI1Cv72s+NWLhshchDcwpS0c+/7Ztb33KJuziVmkpZOiGtPlCX9vlmwML/ 3ru1Dk2yF4j3LyGHbjuNiCehR7cJgcs/ShPQeyXQrvMB4m1Bt6CH7t2vmOoS3XZnI0Jq Ss5dCw0KYCTPJK+6yhfw6vHjpKVcXRUJX7l0CD4WuzvUC90gbA9/bdBvHa9Q5glIZ1Dd O73g== 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 l72-20020a63914b000000b004773c334cf0si1563141pge.155.2022.11.18.15.58.53; Fri, 18 Nov 2022 15:59:07 -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 S232437AbiKRXvp (ORCPT + 99 others); Fri, 18 Nov 2022 18:51:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236889AbiKRXun (ORCPT ); Fri, 18 Nov 2022 18:50:43 -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 75E4EC6632 for ; Fri, 18 Nov 2022 15:26:51 -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 1owA8a-0002M5-Ia; Fri, 18 Nov 2022 23:47:08 +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 1owA8X-0058S5-OZ; Fri, 18 Nov 2022 23:47:06 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8X-00008K-RJ; Fri, 18 Nov 2022 23:47:05 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Hans de Goede , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 257/606] Input: silead - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:51 +0100 Message-Id: <20221118224540.619276-258-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?1749880350735002563?= X-GMAIL-MSGID: =?utf-8?q?1749880350735002563?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Reviewed-by: Hans de Goede --- drivers/input/touchscreen/silead.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/silead.c b/drivers/input/touchscreen/silead.c index 3eef8c01090f..8a7351c4414c 100644 --- a/drivers/input/touchscreen/silead.c +++ b/drivers/input/touchscreen/silead.c @@ -652,9 +652,9 @@ static void silead_disable_regulator(void *arg) regulator_bulk_disable(ARRAY_SIZE(data->regulators), data->regulators); } -static int silead_ts_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int silead_ts_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct silead_ts_data *data; struct device *dev = &client->dev; int error; @@ -826,7 +826,7 @@ MODULE_DEVICE_TABLE(of, silead_ts_of_match); #endif static struct i2c_driver silead_ts_driver = { - .probe = silead_ts_probe, + .probe_new = silead_ts_probe, .id_table = silead_ts_id, .driver = { .name = SILEAD_TS_NAME, From patchwork Fri Nov 18 22:39:52 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: 22805 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466875wrr; Fri, 18 Nov 2022 15:41:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf6mBgERvIC28i7RmAzwb70arIyTuPuB4/iXe4rEZyZUX6GObSBZk5FiGsiEBQp3Zm1UVBST X-Received: by 2002:a17:906:f84a:b0:78d:3cdb:e7ee with SMTP id ks10-20020a170906f84a00b0078d3cdbe7eemr7806368ejb.134.1668814882666; Fri, 18 Nov 2022 15:41:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814882; cv=none; d=google.com; s=arc-20160816; b=DlSuqNrRRDDbPonv25C4vvqpUoQ3nJ6bdKw6R2xo51e6cvCS+6wS1wVV3X1GssUhpX gQSBKv9L9o/nn1Puy4miNHws02lTJTFbk7Xe0hOAA6Dr4ahC5l+ZfP0dyGMSP06aiG9h shq3Ep2mA5/vhZ2kxTjLqplKPlR1IGVe8dLnKOmn6tonHYM7gGCwgWOeILgqlwY1Eh1M jafrP/i/W5c+Y5riU0hJ0FvjZeWAbVXQNWE31HzDfiB1rwJ23Db6kxquTVsuBnDjXbxi vTvPRoOMFmnF7DtysM9yYZn+Cf9p+qfSMvGdEYk4InRp4sM+CVN/ZMA3xXcIQy3i7RBM 1lug== 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=+7BiSGZ7umMHE6Al22NkOjeXpFQ5Qa0pC7arQYHh3iI=; b=FjpGkS/jxrNrFzJ1cpxF6kq7BFDhXc61G7M5Hux7TasgtFJ/iUhkocY6DJn7KAL3MX zoKx/JA1js3gMKmDIhbVoDnp9wm5LqFjtqcrcksHAuBHxzY9tJlRiUsVPO1ASG+4i/wv 1x6aSX8CL7Rh2pYhAO8AiWG9LmSmtsQ+6ihrvt5CIGbApLRDFYHMIGZiQha14qIN140m 6TBBKfHXvo6b0cNQfd9y2mciQdvaGX0tmlyZj15C/x+DU+D1wsi8WB5CBDfsDs3iVwy5 EngpqtxW2m3+1+rrp+kLJ2I4UVYn0TXQA5jFRNjF+9QdK+5sMQJ2PVFLRDBM09Ai5Vtc mryA== 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 hw21-20020a170907a0d500b007ae72fcabb3si3879691ejc.838.2022.11.18.15.40.59; Fri, 18 Nov 2022 15:41:22 -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 S236164AbiKRXkO (ORCPT + 99 others); Fri, 18 Nov 2022 18:40:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236787AbiKRXhz (ORCPT ); Fri, 18 Nov 2022 18:37: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 CE75C6D97D for ; Fri, 18 Nov 2022 15:22:34 -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 1owA8b-0002O1-Hk; Fri, 18 Nov 2022 23:47:09 +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 1owA8Y-0058SO-HA; Fri, 18 Nov 2022 23:47:07 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8Y-00008P-2X; Fri, 18 Nov 2022 23:47:06 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , =?utf-8?q?Mika_Penttil=C3=A4?= , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 258/606] Input: sis_i2c - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:52 +0100 Message-Id: <20221118224540.619276-259-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?1749879234029893056?= X-GMAIL-MSGID: =?utf-8?q?1749879234029893056?= 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/input/touchscreen/sis_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/sis_i2c.c b/drivers/input/touchscreen/sis_i2c.c index 6274555f1673..5a493b15b25d 100644 --- a/drivers/input/touchscreen/sis_i2c.c +++ b/drivers/input/touchscreen/sis_i2c.c @@ -296,8 +296,7 @@ static void sis_ts_reset(struct sis_ts_data *ts) } } -static int sis_ts_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sis_ts_probe(struct i2c_client *client) { struct sis_ts_data *ts; struct input_dev *input; @@ -394,7 +393,7 @@ static struct i2c_driver sis_ts_driver = { .name = SIS_I2C_NAME, .of_match_table = of_match_ptr(sis_ts_dt_ids), }, - .probe = sis_ts_probe, + .probe_new = sis_ts_probe, .id_table = sis_ts_id, }; module_i2c_driver(sis_ts_driver); From patchwork Fri Nov 18 22:39:53 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: 23000 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477403wrr; Fri, 18 Nov 2022 16:11:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf7EITOxZMFV86lLHt0pce1zgXlbEK9qCdDP/4lWqtLLDo5cmzRbkbuC2VVXqAKhqhQYTSka X-Received: by 2002:a17:902:a511:b0:187:3bc8:fc56 with SMTP id s17-20020a170902a51100b001873bc8fc56mr1798915plq.83.1668816689211; Fri, 18 Nov 2022 16:11:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816689; cv=none; d=google.com; s=arc-20160816; b=ufeQbpcClOwOfKHkiKb1eqpTehTGJ+XgTeXQiyJc5z6gptT0HIF7Dlnl+++QS5lRDg jXHUh9+lRPM1aXe6cdGM6Z022wsn/4K7WehEMj++gLy+iBVPJXvx1hxXOdFhUmC8IxV6 cwNuYrdRFHVGOFPcz7zoz3U3I/VylIQbEhES8s1Yz3xF5l+ObM0Ld1zxVAL9njOwamxK nQhf9o+sakztX3gyVYeESVzHvMf0LsmIXUXQ7fiAh5z2Oh/BiVjgdqLherpd089ToCtN rGTHG/s0yRIq6C/adzyPgdoEWfUQtTvHVg7lMQyM3Zm2wsulZhvTNrMt0rFSGJRwnOSP QPeg== 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=QPYSE713NPCfLBtUXwVUYpjTfmlw1OoVrWL0WZIeBGs=; b=R0YGewvN8AOGy48Y1VRL3WMin7HlJrjWJohp08TUFYFxpCppHYuB26ssEwTq8Xamqz 9XpS5j8FgW+iEtPMK9IYcdd02l4akLTZacy9Wq03/++V2DcetHZWT3uxDOoVO2b5/usX 8F6gMcT8Ity+IAREivVbFB/KjHyaR8dVZfdvkAP5LccEmaaQ0V6SC1aKvPBgFrUHDfIz W+5PPh/CANaHPKeeflDny1gLkDRSPTQp1dbNkbcdCPF/ED33k4i9/+HBOr/sU3wn2NCW 2+RKGMw9Y7DWDN0NKivaW8K/llEzK+1i0B3LNyfVSgEK9m4dBMNjUlTvzyCYyLNk20Q0 XsmQ== 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 t191-20020a6381c8000000b0047722bd8f94si3735125pgd.397.2022.11.18.16.11.16; Fri, 18 Nov 2022 16:11:29 -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 S237659AbiKSAKx (ORCPT + 99 others); Fri, 18 Nov 2022 19:10:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237528AbiKSAJv (ORCPT ); Fri, 18 Nov 2022 19:09:51 -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 8772124BDC for ; Fri, 18 Nov 2022 15:33:11 -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 1owA8b-0002OZ-OK; Fri, 18 Nov 2022 23:47:09 +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 1owA8Y-0058Sa-RR; Fri, 18 Nov 2022 23:47:07 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8Y-00008S-9d; Fri, 18 Nov 2022 23:47:06 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 259/606] Input: st1232 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:53 +0100 Message-Id: <20221118224540.619276-260-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?1749881128735124709?= X-GMAIL-MSGID: =?utf-8?q?1749881128735124709?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/input/touchscreen/st1232.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/st1232.c b/drivers/input/touchscreen/st1232.c index e38ba3e4f183..bd68633dc6c0 100644 --- a/drivers/input/touchscreen/st1232.c +++ b/drivers/input/touchscreen/st1232.c @@ -220,9 +220,9 @@ static const struct st_chip_info st1633_chip_info = { .max_fingers = 5, }; -static int st1232_ts_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int st1232_ts_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); const struct st_chip_info *match; struct st1232_ts_data *ts; struct input_dev *input_dev; @@ -384,7 +384,7 @@ static const struct of_device_id st1232_ts_dt_ids[] = { MODULE_DEVICE_TABLE(of, st1232_ts_dt_ids); static struct i2c_driver st1232_ts_driver = { - .probe = st1232_ts_probe, + .probe_new = st1232_ts_probe, .id_table = st1232_ts_id, .driver = { .name = ST1232_TS_NAME, From patchwork Fri Nov 18 22:39:54 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: 22693 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462562wrr; Fri, 18 Nov 2022 15:30:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf7WhVVEBpYOtwHP/pt6xfcmaMdkbL4wc51kFFbtJLFUFGWnhvD3t6pqKQV5JLdPzYEyDo9z X-Received: by 2002:a17:906:4b54:b0:7ac:ef6b:1ef4 with SMTP id j20-20020a1709064b5400b007acef6b1ef4mr8062405ejv.104.1668814227150; Fri, 18 Nov 2022 15:30:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814227; cv=none; d=google.com; s=arc-20160816; b=PHR29JhjxaZUrG0+QDM/gDM+KD6Qy49HzVsVJQ8gi3b3IodDubZrb/BAx+4erJl7RC cZT93vOhyHukSJarQNU1PEcI9JaFZ36ng6a9Sjnqj9cWp7pId6Qq0hMnsqllMoGD6RiB zhP7oz3uwwW1BCTUSYkPhZV3p+r5eWtaZV7tjiHdHXr1gVOV8iR/lmpCmI3cowhUNoVx eGEoks44ESuB4g4OEoSr+j9/dwBqGAScoxUd6QceBcxB8MCAFHnD3tOMU9VJMHum7l6M RThbnrbNkfUTYTYrZboVSeD1P6qUN+PZKHWKT+qh9aOQ4VE8qSVZBvHREzKKCO+u7uX3 Seig== 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=uurchcbuTSszeT+VFD4pnEejCnac60Xo96ucABwOPGw=; b=ufNoxzcgU6aEo31g/Xj0yKKkc6JQtugbXAYAYRFVjUqrYP1BjARm5Tatp97a4qCDxj wKlb6Smu+cUk74a9weEOVCfWJyOc6NPysRSKT/x3uzs7GxonUZVVAQr0irThZr6JqI8X 1GZKZ0NnerjZjOTbZD9ZRK2HnahY7fLHiC1t5/L/70WVIjFFGxZSpRV6UGZl1zSAnmbb hEsnc56CSNiUZaUQNKrnzs4dWPUFr1HeGddn/KHJcVc74jliwsJM+WCZXh4VU7W9g2Yl tl0f3fxCwhyuz0vnFawKrbov9aV+eURn+oFfjX+Qu+cpTzsig6b/lLjD/osWOMvUSrcx ixIA== 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 w7-20020a1709064a0700b0078d9f02b452si3248516eju.861.2022.11.18.15.30.02; Fri, 18 Nov 2022 15:30:27 -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 S235860AbiKRX3c (ORCPT + 99 others); Fri, 18 Nov 2022 18:29:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235708AbiKRX2m (ORCPT ); Fri, 18 Nov 2022 18:28:42 -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 9678378B26 for ; Fri, 18 Nov 2022 15:16: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 1owA8b-0002Nr-3c; Fri, 18 Nov 2022 23:47:09 +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 1owA8Y-0058SL-E2; Fri, 18 Nov 2022 23:47:07 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8Y-00008W-Ht; Fri, 18 Nov 2022 23:47:06 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Maxime Coquelin , Alexandre Torgue , Heikki Krogerus , Jonathan Cameron , Srinivas Pandruvada , Zheng Yongjun Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 260/606] Input: stmfts - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:54 +0100 Message-Id: <20221118224540.619276-261-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?1749878547124750588?= X-GMAIL-MSGID: =?utf-8?q?1749878547124750588?= 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/input/touchscreen/stmfts.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/stmfts.c b/drivers/input/touchscreen/stmfts.c index d5bd170808fb..d092e89d40e8 100644 --- a/drivers/input/touchscreen/stmfts.c +++ b/drivers/input/touchscreen/stmfts.c @@ -624,8 +624,7 @@ static int stmfts_enable_led(struct stmfts_data *sdata) return 0; } -static int stmfts_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int stmfts_probe(struct i2c_client *client) { int err; struct stmfts_data *sdata; @@ -809,7 +808,7 @@ static struct i2c_driver stmfts_driver = { .pm = &stmfts_pm_ops, .probe_type = PROBE_PREFER_ASYNCHRONOUS, }, - .probe = stmfts_probe, + .probe_new = stmfts_probe, .remove = stmfts_remove, .id_table = stmfts_id, }; From patchwork Fri Nov 18 22:39:55 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: 23103 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487694wrr; Fri, 18 Nov 2022 16:43:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Y2CTPp+OLu+cJWbvp20kK/Txu0CrS/1drEfrI8SvIm4qRktp6YUJ7eIChJnA/EzZgTEC1 X-Received: by 2002:a17:906:17c9:b0:782:fd8e:9298 with SMTP id u9-20020a17090617c900b00782fd8e9298mr8009084eje.640.1668818627130; Fri, 18 Nov 2022 16:43:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818627; cv=none; d=google.com; s=arc-20160816; b=DECxkLtzJLXH8KOHy6lkpDSLaydYF3K6PNJdZrBpbRDMuyiv6LjnoMq9EFNwVAfTq6 ggC4WXvCUMbD2SE/TLJHG9/T8mYXVQPgtWli2+cnw/gsI8rUfoPT+LTsuSZsojuBHSLm JDoKf4LQMAoJcU3FRa5YjujEbx00PeDJx0y2+PnYgD5jxmy/jBgGUUfw9nSEyQ4AYKd4 c08HOn6Jo7IiATr9Z17mfM1HHCeUeJI1P4e5OsgFOJ0i1CSgLSIJnjfQDaGuuz53y9lX 5TWUNdm7IOb8ExP9egh85vs+DlGrI1GNJJEmp9Uq4dkQuFteHVci5XwmPuQjhtVG9m1b acFQ== 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=385CaKTrI+EVv0hmkyJsVl2j79VLAsCgVyl8mwCuEvc=; b=eIXI1Q5L3veBfgriM4Ld/WwIMhF03oHvvmtEOChMaWdIn5SokT6QRLpV835wGqpAbA MlY8MXlZREUfDCCAby5tB9xm9iwmWoz71ATmiGNlemQLNSo7YN+EGoSlmjXt0PqwUgxY 4guaCJF7vBS1yJKi8sbHO/MWsk/1JAxmZGXWhmj0CM6PlPwRBHyGyv0jHx2nQuOieO7D 14JY7D3ZBqdMVTxjcQYWD3NIOwEkQfHye1nqKweU/Z57FAOcABmzQ18dEizp0XWpspm+ WQRdQft4ylQUNNZDJ63JXlW6XXCE7eGHotd6B2fXnzC36j1K14kiQqpwk48C+058zt7Q H5rQ== 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 k9-20020a17090646c900b0078e27f2fbe3si3483489ejs.115.2022.11.18.16.43.16; Fri, 18 Nov 2022 16:43:47 -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 S234608AbiKSAkk (ORCPT + 99 others); Fri, 18 Nov 2022 19:40:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234504AbiKSAjW (ORCPT ); Fri, 18 Nov 2022 19:39:22 -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 D5702C80D7 for ; Fri, 18 Nov 2022 15:44:26 -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 1owA8b-0002OE-I3; Fri, 18 Nov 2022 23:47:09 +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 1owA8Y-0058ST-Mg; Fri, 18 Nov 2022 23:47:07 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8Y-00008Z-On; Fri, 18 Nov 2022 23:47:06 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 261/606] Input: sx8654 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:55 +0100 Message-Id: <20221118224540.619276-262-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?1749883160951009812?= X-GMAIL-MSGID: =?utf-8?q?1749883160951009812?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/input/touchscreen/sx8654.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/sx8654.c b/drivers/input/touchscreen/sx8654.c index de85e57b2486..52ae73035830 100644 --- a/drivers/input/touchscreen/sx8654.c +++ b/drivers/input/touchscreen/sx8654.c @@ -306,9 +306,9 @@ static void sx8654_close(struct input_dev *dev) } } -static int sx8654_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sx8654_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct sx8654 *sx8654; struct input_dev *input; int error; @@ -470,7 +470,7 @@ static struct i2c_driver sx8654_driver = { .of_match_table = of_match_ptr(sx8654_of_match), }, .id_table = sx8654_id_table, - .probe = sx8654_probe, + .probe_new = sx8654_probe, }; module_i2c_driver(sx8654_driver); From patchwork Fri Nov 18 22:39:56 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: 22749 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465084wrr; Fri, 18 Nov 2022 15:36:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf5jnEkmTkOCPuR73lcNiptmCMaxxmbBcLIzeojRXvDDzGSnF0ocV0OSIjluXPg5sD5yM+a+ X-Received: by 2002:aa7:cc8d:0:b0:461:15f0:a574 with SMTP id p13-20020aa7cc8d000000b0046115f0a574mr8101201edt.187.1668814593171; Fri, 18 Nov 2022 15:36:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814593; cv=none; d=google.com; s=arc-20160816; b=FZBWCyOJmBWo9CZzpj+WhrKIprLF2BuD15zU/4xUDgjC5hCaTlmlc/qsD86v2Ekz7y e7EmuSK8XbL0wPaPw+LBhvZncsSzZ5hAY0kquwBJsQQS1F4A03CahcU9kHAb97JPsSEU Qnsr3sxtp2wssfDk9qKexXLs7zJimicONrzItWPorOiqZAaZ8XHVss+kAz74B6UYZREu CFmJd+xOSNs5yjo30XqbmE/bRo71Pd4elYbYblRmp08PWickhuK5txTGZJGeXPbjMl0N ye0tmpUtgYXVQWD7aAlmgdpnUoYe30M3EzsB84fP3Uxnq7NNFoy00MYtOvlzRRDgmI86 RSig== 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=SV1f1LyctfG9oOBLS2hhK6vzJGaHOpZzMNW1N0FjdKM=; b=PLv5fbQCPMLPzj/MUC5nAfxouZuwnk7bUKNfejlXa2dYywnwPc29fQNEgSZJT2ylvE lLxMXtoUQqXaR8/y8pQiplPMXFTIWKPtzft6N4ot4VhvgT8aJOR0Sz0GgvAjqPp8vQ57 PPH1Sk8RE6aVPKQEXLW9tF6Z6hpzoqIkIo7GtRNCs14bF8wS8rq4zMYwOQ+O0Sn/73Bi 0H0bOBvcbvgVvsKBk2jt6QsgkHybiXmUfR+s9aT5305h2KvJ225qka+nTAeJQfq8fKmE phD4f0DH0t8vfvLRcM83SUZYr19Q0YIDbX8UudsloqQzkwJ2KZIpp6C4RBWN1hmHgz22 OYQA== 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 s17-20020a056402521100b0046822f4ca71si4810606edd.366.2022.11.18.15.36.09; Fri, 18 Nov 2022 15:36: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 S236322AbiKRXfZ (ORCPT + 99 others); Fri, 18 Nov 2022 18:35:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236116AbiKRXcB (ORCPT ); Fri, 18 Nov 2022 18:32:01 -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 98A8697ECA for ; Fri, 18 Nov 2022 15:19: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 1owA8b-0002Oe-Kt; Fri, 18 Nov 2022 23:47:09 +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 1owA8Y-0058Sb-RW; Fri, 18 Nov 2022 23:47:07 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8Z-00008f-08; Fri, 18 Nov 2022 23:47:07 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Miguel Ojeda , Hans Verkuil , Maximilian Luz Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 262/606] Input: tsc2004 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:56 +0100 Message-Id: <20221118224540.619276-263-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?1749878930947350586?= X-GMAIL-MSGID: =?utf-8?q?1749878930947350586?= 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/input/touchscreen/tsc2004.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/tsc2004.c b/drivers/input/touchscreen/tsc2004.c index a9565353ee98..575768b587bb 100644 --- a/drivers/input/touchscreen/tsc2004.c +++ b/drivers/input/touchscreen/tsc2004.c @@ -34,8 +34,7 @@ static int tsc2004_cmd(struct device *dev, u8 cmd) return 0; } -static int tsc2004_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int tsc2004_probe(struct i2c_client *i2c) { return tsc200x_probe(&i2c->dev, i2c->irq, &tsc2004_input_id, @@ -69,7 +68,7 @@ static struct i2c_driver tsc2004_driver = { .pm = &tsc200x_pm_ops, }, .id_table = tsc2004_idtable, - .probe = tsc2004_probe, + .probe_new = tsc2004_probe, .remove = tsc2004_remove, }; module_i2c_driver(tsc2004_driver); From patchwork Fri Nov 18 22:39:57 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: 22804 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466860wrr; Fri, 18 Nov 2022 15:41:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf7e1c4tOGzXZ7P004Uuwim2UVBpGLjfF040ilqujbaFqAclZSZe+PTaI6xfev58T6BaidZ/ X-Received: by 2002:a17:906:b892:b0:788:3a75:dc5 with SMTP id hb18-20020a170906b89200b007883a750dc5mr7367658ejb.537.1668814878313; Fri, 18 Nov 2022 15:41:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814878; cv=none; d=google.com; s=arc-20160816; b=BDdEnD3dpxPpwMlbKhiuAnaqefobEawM4oVFtP2snPzy4F0ebhMpyMjfoYQ2kKVNTH OH6IOfJGHonHz9W6WHG6V5oTqueKaiJSzHLeRc7RndOM5+y88qlGgMuS/CCt5IpKGyt+ ackFDnSe2nuSqoGdu8r200aDnm0OcKWSBrP4h503NpSNjTeZY9iFfvY6NgQkWQ2xaGng gQkJeEcZHlP84mBDJ9LAXsVuiVVFbSv3j3n0vzcbDKkcqrpDpSXm9EhGXccXd0kpUyfK xW/o8IuEFRyWjateZY0gHASgtidXh27GleHjCbbZ/LrbYCQnPcfql3vDrT2t0JbT8Yj0 IKNg== 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=D+8Oi7u8KfBCjpIhmpwI0Jck6VEbZ+kSMu5tOpKXc24=; b=fCh5uu6xU/+DUEP+vsHfuHrUUwDr3Sqh8Bd9HmGJASEtiDamnQ5zA+Iw1lAvr+e09W 9UxxGrsskFm8YmhTkre0nM9SmGHU5aFC3NajMlED7W24LnSWeOH/CmGRC/zwW8VQ0F+m KX3UB640NXWiXxuYo5xl3LWx3a6O1dW0THWobNiNLbrj9DN5dfZsO2O4onjwV+iFjgvl +iGPcnigpOlikzT7x2hNWkMl3FGVIPEa7RLOYyCWbr1GJAy8pB6/yQyD6JInexJH+Pk5 iiaWHhoIhi3kNp0Gc8xMGKFvi/Cde5TUfXnwrrqTuRX9fZzKYU/5fKd2iZCnRnX/V43L M81A== 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 xb1-20020a170907070100b007aee7ca1161si4631117ejb.711.2022.11.18.15.40.55; Fri, 18 Nov 2022 15:41:18 -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 S236670AbiKRXkK (ORCPT + 99 others); Fri, 18 Nov 2022 18:40:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236771AbiKRXhw (ORCPT ); Fri, 18 Nov 2022 18:37:52 -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 83ACA6D974 for ; Fri, 18 Nov 2022 15:22:28 -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 1owA8c-0002PR-1Y; Fri, 18 Nov 2022 23:47:10 +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 1owA8Z-0058Si-9E; Fri, 18 Nov 2022 23:47:08 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8Z-00008i-9S; Fri, 18 Nov 2022 23:47:07 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 263/606] Input: tsc2007_core - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:57 +0100 Message-Id: <20221118224540.619276-264-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?1749879230259851361?= X-GMAIL-MSGID: =?utf-8?q?1749879230259851361?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/input/touchscreen/tsc2007_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/tsc2007_core.c b/drivers/input/touchscreen/tsc2007_core.c index 3e871d182c40..3c793fb70a0e 100644 --- a/drivers/input/touchscreen/tsc2007_core.c +++ b/drivers/input/touchscreen/tsc2007_core.c @@ -302,9 +302,9 @@ static void tsc2007_call_exit_platform_hw(void *data) pdata->exit_platform_hw(); } -static int tsc2007_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tsc2007_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); const struct tsc2007_platform_data *pdata = dev_get_platdata(&client->dev); struct tsc2007 *ts; @@ -431,7 +431,7 @@ static struct i2c_driver tsc2007_driver = { .of_match_table = tsc2007_of_match, }, .id_table = tsc2007_idtable, - .probe = tsc2007_probe, + .probe_new = tsc2007_probe, }; module_i2c_driver(tsc2007_driver); From patchwork Fri Nov 18 22:39:58 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: 22764 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465827wrr; Fri, 18 Nov 2022 15:38:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf4iOYYuGbLf/U1m0D0HIwG033QRoXb9sHW8K5k/goRcg8gugGz0FU9DO7S0QKnKh8RPzydm X-Received: by 2002:a17:906:f281:b0:7ae:3b9e:1d8a with SMTP id gu1-20020a170906f28100b007ae3b9e1d8amr7383610ejb.581.1668814714394; Fri, 18 Nov 2022 15:38:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814714; cv=none; d=google.com; s=arc-20160816; b=AYH4+2C0Sy7radc3XtQxKLgX4vLpVvGHEdbY4oUnXraoleAXUWE6H+ZB7gyPKyppol GMw/6FCXsu4O96vp8p3JS/L0C/ONZ5ZisyMhNtNidWR+BWr430zFjpiQGWDqwFfreo5y 6kf4VXRKXDlTv1i4ThGjRZRv2ddCXrsS+emqTJbPoJJpKyqFenCz3UCHG3geWQc3FdaO Q3rVfEvIPgWZmOxFHdlpLb+dU6Rvf7TClRsjiaM/6SsBufIz0PVFO5ApKEo486b/cMe7 bfDQPu6bkqwNuPiAMNw1fKR4XtDhrGF0JMIRFr2aE1pT1jB3aww3H/12qCx8GtnV1u94 FJ3Q== 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=/CY8yYvApFWdohoKN2DU+I84yWZlrrLS/VhnNKHIn2M=; b=G8OPy9lQCS1vFl0C9Rn6uMGPN3QjT05VeVrd3QInjVft0gLuQWAkiesUbhr3YeqQhH UpsRuuJXkl8q5wyUIxPPM3kr4PbszFe7T48eKlHboF6e9fWnf363YUhCTLZ/ZR5Nx3aq wgKreomCtxFxMzP46WrsbY5tnL+Kc84GwZoTwqfRzOxzGbpHYJJ19OWdjXO90r5h+Qlf Xh4ttEW5RYKOVRy3S7W+U97dzGqD0UUI5Nu57XqsG5XjUtwS3IgPbCYyKAA3p9mrW3d/ bQ2K/ccdxDBVgwW9fcn6VjaziCjSPxmX/vqZTjlfZkjXP8LbkxOa6nObsNJQbJXBp6/T bIiw== 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 i21-20020a170906251500b0078316f0b5f8si3080203ejb.88.2022.11.18.15.38.10; Fri, 18 Nov 2022 15:38: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 S236417AbiKRXga (ORCPT + 99 others); Fri, 18 Nov 2022 18:36:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236385AbiKRXcv (ORCPT ); Fri, 18 Nov 2022 18:32:51 -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 34C2F9B7F7 for ; Fri, 18 Nov 2022 15:20:33 -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 1owA8c-0002QX-Id; Fri, 18 Nov 2022 23:47:10 +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 1owA8Z-0058Sp-MC; Fri, 18 Nov 2022 23:47:08 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8Z-00008m-GZ; Fri, 18 Nov 2022 23:47:07 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Alistair Francis Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 264/606] Input: wacom_i2c - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:58 +0100 Message-Id: <20221118224540.619276-265-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?1749879057941329165?= X-GMAIL-MSGID: =?utf-8?q?1749879057941329165?= 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 Reviewed-by: Alistair Francis --- drivers/input/touchscreen/wacom_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/wacom_i2c.c b/drivers/input/touchscreen/wacom_i2c.c index 141754b2764c..c9188ee00c62 100644 --- a/drivers/input/touchscreen/wacom_i2c.c +++ b/drivers/input/touchscreen/wacom_i2c.c @@ -162,8 +162,7 @@ static void wacom_i2c_close(struct input_dev *dev) disable_irq(client->irq); } -static int wacom_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int wacom_i2c_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct wacom_i2c *wac_i2c; @@ -265,7 +264,7 @@ static struct i2c_driver wacom_i2c_driver = { .pm = &wacom_i2c_pm, }, - .probe = wacom_i2c_probe, + .probe_new = wacom_i2c_probe, .id_table = wacom_i2c_id, }; module_i2c_driver(wacom_i2c_driver); From patchwork Fri Nov 18 22:39:59 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: 22928 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474505wrr; Fri, 18 Nov 2022 16:04:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Fm/pa3dBMt6kCcE1f7vsB3mMkmR51mF1LB8zJbJsT+GErrrFqCa40YH7SsDuVeIRENR/8 X-Received: by 2002:a63:575b:0:b0:46f:a202:f6be with SMTP id h27-20020a63575b000000b0046fa202f6bemr8669059pgm.378.1668816262009; Fri, 18 Nov 2022 16:04:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816262; cv=none; d=google.com; s=arc-20160816; b=SCu34/fxkgp9FLUJEjkO+NX2MwRIyS5pzHhvBBMJWNi2slNnhTiLj6HbfTcxfNCleH AylArXypCgpLDtHNP/zZWRRdAZQA/aTd3TTxDTbotpt+CMAhCSM0U/7aoBJvKDGAZbwl gt634SAl76YfOo6/T1W3DSgC3+lS7xQAR2g6e3WzDAqMTGlKBlen5TFrov3hdKBnxObV R7/TYye5x193a6uEI2J5ie1VXVuv50EgjgoicMTJcT2A+/mAtE4zM/x8W0eT5kVKRZ2O MUHhMGrLF//JSllOP+mFRU8hkAyw7HgEvE9w031PpDXfYksb6Yv0YDpy0UhkYKWcEvIk 2+bA== 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=W9GVUpFnCNG/S5ExDjAfejzlPuhNa6SKn/8dmz/tVs4=; b=BmcDdrRetbZTjXHJnLrhLxBWA3mRpxxCCfbnwwPlNA15vKoZ+3wwXEjORlw2OHEXlf CUr/FoNm8PibUbC5USDd6HRe8Wdn/aV95OJ6BHWGf2DKY372N8T0LjXdp+HXJyT9J7+H FqFDsFFchlKpiU7thBTqOB9SIP0GEjauoRnkp+dmkHPzsV+WAlM4vVhqvxO8EndzeCvu aG8cuCjKu2wnAD7+R3bmunlD3ueC+1W6/KayZSu7ePaxM099ZRY7JCbSVTY0AUQ2Ec3A FWx84g4QcBUToCEf+bQOec35Y7X2lwVJrKiFEokpT5PegriuyjZ61fy/ToiV19goFP4Y 0r7w== 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 y27-20020a63181b000000b0047698f9d889si4880088pgl.188.2022.11.18.16.04.08; Fri, 18 Nov 2022 16:04:21 -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 S237181AbiKRX7e (ORCPT + 99 others); Fri, 18 Nov 2022 18:59:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233034AbiKRX4x (ORCPT ); Fri, 18 Nov 2022 18:56:53 -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 1E6B199EAF for ; Fri, 18 Nov 2022 15:28: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 1owA8c-0002QY-Ob; Fri, 18 Nov 2022 23:47:10 +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 1owA8Z-0058So-M2; Fri, 18 Nov 2022 23:47:08 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8Z-00008s-Nd; Fri, 18 Nov 2022 23:47:07 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 265/606] Input: wdt87xx_i2c - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:59 +0100 Message-Id: <20221118224540.619276-266-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?1749880680872008845?= X-GMAIL-MSGID: =?utf-8?q?1749880680872008845?= 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/input/touchscreen/wdt87xx_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/wdt87xx_i2c.c b/drivers/input/touchscreen/wdt87xx_i2c.c index 166edeb77776..3f87db5cdca4 100644 --- a/drivers/input/touchscreen/wdt87xx_i2c.c +++ b/drivers/input/touchscreen/wdt87xx_i2c.c @@ -1064,8 +1064,7 @@ static int wdt87xx_ts_create_input_device(struct wdt87xx_data *wdt) return 0; } -static int wdt87xx_ts_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int wdt87xx_ts_probe(struct i2c_client *client) { struct wdt87xx_data *wdt; int error; @@ -1170,7 +1169,7 @@ static const struct acpi_device_id wdt87xx_acpi_id[] = { MODULE_DEVICE_TABLE(acpi, wdt87xx_acpi_id); static struct i2c_driver wdt87xx_driver = { - .probe = wdt87xx_ts_probe, + .probe_new = wdt87xx_ts_probe, .id_table = wdt87xx_dev_id, .driver = { .name = WDT87XX_NAME, From patchwork Fri Nov 18 22:40:00 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: 22999 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477381wrr; Fri, 18 Nov 2022 16:11:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf6bRPzGN2oas+qEsak+C9C3Cl2h0YcC2HxchuNKtH5+fp8HR5haI+G18r8kzhLZHfndTkWx X-Received: by 2002:a17:90a:7885:b0:20a:d81d:a8 with SMTP id x5-20020a17090a788500b0020ad81d00a8mr15833930pjk.177.1668816687428; Fri, 18 Nov 2022 16:11:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816687; cv=none; d=google.com; s=arc-20160816; b=wOqY5o+YdLWOoa6/oxYF0MGxZI6miuIxzxHE7NTN75SIROhMJdu5u2R1K828s6kib3 yKNaF34xkdSdAy0aAWHtgBJggYlu3d4y6e1PR3xAfwip88akOQ5Rsj5Y/MtBmZfq0wCU 9KRbVKnP67/JlVa3tbKrh/neFJMF6btcyq/pPq9WdYJi+9Sb2y/IjsdblMxNN3EeUC7/ UsebCBkS8SRCURB9rg9l2lKb7NQ9Xt7ZDthn5IunqN1/PYiLt/0VTwoAXZUpLI0lKB4U 5MO7rZQKbVCKifujRpU7UJLT8WtiGiNWzvF6D7oP1Srr9EFgN3P6B6CdRYmdgHDrGpSJ Yu9w== 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=V9ae3IkrWzMK/gxdRyNAkkVk5f4qdsXzqyQ+EFFsgWs=; b=B7u8a60aw/Q81LDfvmbfxPub+QsXeBWqV0dlFw6eoNGQbOJwIu+KKq7ohBTjVytIWu 0rnsUHDRCzJKp5xRjsKFRBHE8F+qZg6T/GrBb94didlHceVBy6jPRR3YZGPU5WrHbMc/ GbQFBWo5YavbZLqzeLYA8Wcvne9cFJWSGEckffbPETJlMfdZZNJ6umi0Ple7iwu36IEy pjRFIrRdBunzn/pPzes/dWdSn6aFahl2cnMlzTdppPA8mG1NAO0ExRNPJC4TERg7Zvea 4qgd6nzSiejqV/yXuV9/2KT+eQLUZwEYYIwwTHfC89nucZTzEthjbs3A8rp4K4SDk2CO 1miA== 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 i25-20020a635419000000b0046f57b135cesi4843160pgb.745.2022.11.18.16.11.14; Fri, 18 Nov 2022 16:11:27 -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 S230077AbiKSAKt (ORCPT + 99 others); Fri, 18 Nov 2022 19:10:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237526AbiKSAJv (ORCPT ); Fri, 18 Nov 2022 19:09:51 -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 876731E721 for ; Fri, 18 Nov 2022 15:33:11 -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 1owA8c-0002RY-Ml; Fri, 18 Nov 2022 23:47:10 +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-0058Sx-3B; Fri, 18 Nov 2022 23:47:09 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8a-00008x-CF; Fri, 18 Nov 2022 23:47:08 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 266/606] Input: zet6223 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:00 +0100 Message-Id: <20221118224540.619276-267-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?1749881126986947692?= X-GMAIL-MSGID: =?utf-8?q?1749881126986947692?= 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/input/touchscreen/zet6223.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/zet6223.c b/drivers/input/touchscreen/zet6223.c index 3b6f7ee1e38f..bfa0c637d569 100644 --- a/drivers/input/touchscreen/zet6223.c +++ b/drivers/input/touchscreen/zet6223.c @@ -167,8 +167,7 @@ static int zet6223_query_device(struct zet6223_ts *ts) return 0; } -static int zet6223_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int zet6223_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct zet6223_ts *ts; @@ -249,7 +248,7 @@ static struct i2c_driver zet6223_driver = { .name = "zet6223", .of_match_table = zet6223_of_match, }, - .probe = zet6223_probe, + .probe_new = zet6223_probe, .id_table = zet6223_id }; module_i2c_driver(zet6223_driver); From patchwork Fri Nov 18 22:40:01 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: 23119 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488134wrr; Fri, 18 Nov 2022 16:45:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf4QcUJig8sf0XBEgyyTeHkJLWLT2WSQmZoeD5KrP7TOpbOJVgI4iHUrrahp5lNAw3TatvZR X-Received: by 2002:a17:906:19d7:b0:7b2:b782:e1df with SMTP id h23-20020a17090619d700b007b2b782e1dfmr4107802ejd.308.1668818707914; Fri, 18 Nov 2022 16:45:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818707; cv=none; d=google.com; s=arc-20160816; b=sIgWJOslvjOHJlH4xXSVYi8Re10R7fF25o9B2U68npfjyuyNmcf0EDddAGClhFnvyG vdGpy6D+cg14P0Gya7xKrSP/fcxxB4pq1LoAWWtm7gpzpaooCEh7Q3hb26gAzISa4Rxo Ig658CZ3Q9mZowBHIpjnaz9vvWnPLlRz0ZP2sIEKpT7nh+2bWHbq6aHIJ6JmBfpw5XNA PWZBNK2sN4T2Yv8K+SH1zSQrNA5sXq/Aui8CZfaHQSOv5xTNe/eestz5/dgepsVkFuj6 kHQqEWcMcLvMKfsy8inA3VrqlFW6IdW06O2G7M6e/Tvx/qq2btUS0eplXBqcVnacB4rL CjjQ== 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=djFzp7Bffuz8Z7WsJ/dGeAsF4w9GvKxELx7JN1kV5UE=; b=adeZj5ualjImaWoVAdvqqxFwP+WZETx/q9tDlpHWYtp/w2CC8ExpiDWsTQ4F2JF34i BMg9Nlb3E0kELfM/bs8CFWrPYtXQ4PXeVZwQir1p0n6vjbzMDtIT12f4NSaduir9+Pf0 x758qRH3K1wREeVEuA3O5IbK1bsTQunod3U8S300OiYFUq25ItyObs+6aZx1j+tqWGiF JKYopmwDGvgqwDZT0sGOvSK83N76nrE4Jam/K00OsHloR7VYRMpeGO6fFset3dSo61XY H2iDf0fx/K9E1gINgE9b1DUBlGZMpfcef/A3X8Ex61TWOhJb7XNvoJTJvjMzd/Tm9ZJw OcYg== 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 n13-20020a05640205cd00b00447eb58b921si4685666edx.38.2022.11.18.16.44.44; Fri, 18 Nov 2022 16:45:07 -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 S237123AbiKSAla (ORCPT + 99 others); Fri, 18 Nov 2022 19:41:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235553AbiKSAkE (ORCPT ); Fri, 18 Nov 2022 19:40: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 D4344C78C5 for ; Fri, 18 Nov 2022 15:44:38 -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 1owA8d-0002S9-97; Fri, 18 Nov 2022 23:47:11 +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-0058T3-AL; Fri, 18 Nov 2022 23:47:09 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8a-000091-IT; Fri, 18 Nov 2022 23:47:08 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 267/606] Input: zforce_ts - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:01 +0100 Message-Id: <20221118224540.619276-268-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?1749883245146464858?= X-GMAIL-MSGID: =?utf-8?q?1749883245146464858?= 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/input/touchscreen/zforce_ts.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/zforce_ts.c b/drivers/input/touchscreen/zforce_ts.c index 495629628af6..24e78ca83fa3 100644 --- a/drivers/input/touchscreen/zforce_ts.c +++ b/drivers/input/touchscreen/zforce_ts.c @@ -732,8 +732,7 @@ static struct zforce_ts_platdata *zforce_parse_dt(struct device *dev) return pdata; } -static int zforce_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int zforce_probe(struct i2c_client *client) { const struct zforce_ts_platdata *pdata = dev_get_platdata(&client->dev); struct zforce_ts *ts; @@ -945,7 +944,7 @@ static struct i2c_driver zforce_driver = { .pm = &zforce_pm_ops, .of_match_table = of_match_ptr(zforce_dt_idtable), }, - .probe = zforce_probe, + .probe_new = zforce_probe, .id_table = zforce_idtable, }; From patchwork Fri Nov 18 22:40:02 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: 23080 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487171wrr; Fri, 18 Nov 2022 16:42:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Xct2xafMHgYKg7FyIYeyCYtKfWYja/ARsjCbW6VRl4a3ExmYQ6jBoMrs6K7IDTEY+eWkX X-Received: by 2002:a17:907:1df2:b0:7ae:8411:112c with SMTP id og50-20020a1709071df200b007ae8411112cmr7565285ejc.97.1668818526965; Fri, 18 Nov 2022 16:42:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818526; cv=none; d=google.com; s=arc-20160816; b=KvCQLO4faIEYf9vtVKVOmekZKQUOf9+ROXMIjYZw8iZjjf0cG1e4wCfujSznz7PVkD NTYeD1hOdSKf1xMWknlL884QaI5jDjGmReBRpYYu47mONVAbCWDlPhl5ukqqTpSp9UPd 25zP8MhwR+SGvtc50cYVzGwrO9GU0uYE1nNhJjiJYnoRyuynIOUj3SA82Y37hl6xRnOQ jH6HIC6vlUQRiuqdQ0W12sxBj0MyR0fNdId6GhxL4UfhWS4wrZM+s0/Mo0rua3f8ntll 5x9jycXXL7DuifYmFoXp3I+gIgxJ8na54wQFdRiJ9F/BJVRSO/B0ckDU4wWMyqlk36Gk 0niw== 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=Kc5ghiBMqZDKmY9ap0/4Ienp+Ys5A4dWI4bkOB2+YO4=; b=G8FxkSnrnAe6Jjm7RXc8Hd0NpQYzEFU5MIQWljRL7EGwwsQwLlQqaqWGgMY/whrH+P s2WAlQrrnFZdgEnn3TAM9bghfdrq9NB240ju2yT9Ue1X+cYwIeT/NvuyLtelaipu0MO/ d0XuvefrEX5IQ+PfBCc9S79muY61qEUdrig+ak8bvgMHYwLivJ6jYDU/r7TTvYOLQR42 ttIoC1wr2d74bgQ6T0vh/hHmxObAUEuVxRlOht9BA8ylsdNSzuoLA6LhjwhVi0vHiGLM QzK5bTU2ESK3uk3XGht9RRRJTWuOTibO/FMvCa4V8ArsPozKsoY422MVnfMWXjCkhzxb eM6w== 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 n13-20020a05640205cd00b00447eb58b921si4685666edx.38.2022.11.18.16.41.39; Fri, 18 Nov 2022 16:42:06 -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 S234868AbiKSAiK (ORCPT + 99 others); Fri, 18 Nov 2022 19:38:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232329AbiKSAhP (ORCPT ); Fri, 18 Nov 2022 19:37:15 -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 4175DC496B for ; Fri, 18 Nov 2022 15:43: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 1owA8d-0002Sc-8A; Fri, 18 Nov 2022 23:47:11 +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-0058T6-FX; Fri, 18 Nov 2022 23:47:09 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8a-000096-Py; Fri, 18 Nov 2022 23:47:08 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 268/606] leds: bd2802: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:02 +0100 Message-Id: <20221118224540.619276-269-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?1749883055504005924?= X-GMAIL-MSGID: =?utf-8?q?1749883055504005924?= 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/leds/leds-bd2802.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-bd2802.c b/drivers/leds/leds-bd2802.c index 2b6678f6bd56..601185ddabcc 100644 --- a/drivers/leds/leds-bd2802.c +++ b/drivers/leds/leds-bd2802.c @@ -656,8 +656,7 @@ static void bd2802_unregister_led_classdev(struct bd2802_led *led) led_classdev_unregister(&led->cdev_led1r); } -static int bd2802_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bd2802_probe(struct i2c_client *client) { struct bd2802_led *led; int ret, i; @@ -787,7 +786,7 @@ static struct i2c_driver bd2802_i2c_driver = { .name = "BD2802", .pm = &bd2802_pm, }, - .probe = bd2802_probe, + .probe_new = bd2802_probe, .remove = bd2802_remove, .id_table = bd2802_id, }; From patchwork Fri Nov 18 22:40:03 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: 23038 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp480424wrr; Fri, 18 Nov 2022 16:20:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf40zK91nndWtC/omi2nr7IyRC1wR6UkRPmsZ8jdzMKICVcdkwh12HagEZxBJr60WT7wKvrm X-Received: by 2002:aa7:c9cd:0:b0:461:891a:8162 with SMTP id i13-20020aa7c9cd000000b00461891a8162mr7977526edt.398.1668817211940; Fri, 18 Nov 2022 16:20:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668817211; cv=none; d=google.com; s=arc-20160816; b=QD2iGqZwvUU5gKWqe8tDPEcIEYqzgkjqr3Mbm4qI+gv7ebfHHJ2OaVmkZ9U+/aIRH6 Y9Agjd7QIUPbJpp06z0WK6oCSfhT1FyHXiwC5B6lBtNU/5QJOQSTaoX++J2HHMtp3oJY 0nsgFVF59Gk6yinV3AIvLOBU5DtzgrraIVBQGn3yQg/V0fGTHKHTO3qYkdZvhwQaMNgh MDp/XHAX5hVMQXrziTEk0F4+c/3iwlZ2s+KaLaMkds0eNFppBcE2y88uXLlB1lG0JteC xBOoYSpIKmKjd+JSVYM0uz0sfsx5CTJ6LHuDwyNjRQZF2fRksbsuRPOVl2/zHz6Qwf0/ qk5g== 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=Z4MDklT8om15cdH8MMLADym8apcJ5wN1EB/p/1l0WYI=; b=XcpJRXst7/4xuV+P36gaksZC+bbJJDjRKmhy0SBbx57puKlWsrYfFNVmQnR3BogY/t EPda3xlxFnAqzntEbG7YD7i7AUU+Rb565aTg0CLIsQgag7vHEZdj2CHgbaSk6Qx0OI0j /q1OHgn7x0JpnG1WvvVyePOwqQig1HG4f3Smt3872vBcsRH4ApabVnkXlZoFDlhhRr/B U2APsFepf209sD7RKIMCXPJ5sw8mt0zFVy62XJyAVBC7wHfo46ZBKllJ/jbCTxsFSs2O Os30RUw6G06D4T3TCad+m0Lgx0Q1cfNggduv2kHHbwaaUcP9qW0XMOmQcyzr3kFIvZnp S9Fg== 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 xh9-20020a170906da8900b0073d9f16e5b3si4248685ejb.258.2022.11.18.16.19.48; Fri, 18 Nov 2022 16:20:11 -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 S235671AbiKSASq (ORCPT + 99 others); Fri, 18 Nov 2022 19:18:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238810AbiKSAR4 (ORCPT ); Fri, 18 Nov 2022 19:17:56 -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 B971FFBAAB for ; Fri, 18 Nov 2022 15:35:56 -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 1owA8d-0002Tj-KQ; Fri, 18 Nov 2022 23:47:11 +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-0058TF-RA; Fri, 18 Nov 2022 23:47:09 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8a-000099-W2; Fri, 18 Nov 2022 23:47:09 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jan-Simon Moeller , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 269/606] leds: blinkm: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:03 +0100 Message-Id: <20221118224540.619276-270-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?1749881676886772408?= X-GMAIL-MSGID: =?utf-8?q?1749881676886772408?= 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/leds/leds-blinkm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-blinkm.c b/drivers/leds/leds-blinkm.c index 3fb6a2fdaefa..414b659d2ddb 100644 --- a/drivers/leds/leds-blinkm.c +++ b/drivers/leds/leds-blinkm.c @@ -565,8 +565,7 @@ static int blinkm_detect(struct i2c_client *client, struct i2c_board_info *info) return 0; } -static int blinkm_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int blinkm_probe(struct i2c_client *client) { struct blinkm_data *data; struct blinkm_led *led[3]; @@ -731,7 +730,7 @@ static struct i2c_driver blinkm_driver = { .driver = { .name = "blinkm", }, - .probe = blinkm_probe, + .probe_new = blinkm_probe, .remove = blinkm_remove, .id_table = blinkm_id, .detect = blinkm_detect, From patchwork Fri Nov 18 22:40: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: 23072 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487005wrr; Fri, 18 Nov 2022 16:41:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf6TIu1r7q7yOMe+ey+2veYdWsiqM5+og4DoQcUVq+r8dXCVoPHeIu1XTT6EGgeXIkWrNWkX X-Received: by 2002:aa7:c6c3:0:b0:469:646:97ff with SMTP id b3-20020aa7c6c3000000b00469064697ffmr5100432eds.402.1668818507750; Fri, 18 Nov 2022 16:41:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818507; cv=none; d=google.com; s=arc-20160816; b=0CmadIWiqDtwDluvNr3GoymMFbZZf2lt7uly1ym8vH9lUNkgtmeDBdcX6dcORJgw3o JoMSD7W0BskI3OQ51x0I5C0tjI4NB+AboAb7/BL7onSKenWfnYnkdKaQc7jZN/WVuoqb EFFXV6F6+fRhu6GpkwuJtUvcLJEGyvVeZcgecEJpcO5f6yWvsAosQLsCK9pBqjLWV47i 7zPp84IZbJEo1Nj2WIJlElk60k+W/Z0Aog5qbw2OiZbeNaO9utWeoGpAwvEPQIy3pulq NHa9lzFE4LTQa/VSO1TaUvfNDr3pjQT6flKvIggiUh2gOn978sCzWu5I7Iptrr47XKsF tKWw== 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=3pYOc5bLgGI9NHoy8wJbd+ykljWI26O1ncCpm8P7NoM=; b=byL4xT/kvN0jEB0UHhkYjav6WUkZkllaKh6qD8pVa7q7lSB3XGOkGH/oBcr5ehX8NR 47DJADz27Gs4OxS506piTiw5LyU//+A7Ws4ghRmlCMRFxmpt9n8ZQT7gCqaNRorT3+BE c4agvCFvk7T8SpqFLycSda+uI6UFcy2Xg95++Pn9xElV713VnPUJ/sd7etGrWzylCbFx JRvNekFGrqVV/Ut2yjn528kJaoaKJM2/u/DhMAdSjaHMo3tWKfuvtM+EXUJQc1Q42EXY qaSxdMwTEpiimFAwKATxPYrMMvJDiCXVFUrQv3VuWYyfRCbimUKt9UTEqljZCDfoXuss KkPg== 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 g10-20020a1709067c4a00b007309e8d567fsi3423784ejp.145.2022.11.18.16.41.21; Fri, 18 Nov 2022 16:41:47 -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 S236799AbiKSAgu (ORCPT + 99 others); Fri, 18 Nov 2022 19:36:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234440AbiKSAf6 (ORCPT ); Fri, 18 Nov 2022 19:35:58 -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 C43201165B2 for ; Fri, 18 Nov 2022 15:43:20 -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 1owA8d-0002V7-JC; Fri, 18 Nov 2022 23:47:11 +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 1owA8b-0058TM-B1; Fri, 18 Nov 2022 23:47:10 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8b-00009D-6K; Fri, 18 Nov 2022 23:47:09 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 270/606] leds: is31fl32xx: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:04 +0100 Message-Id: <20221118224540.619276-271-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?1749883035371740336?= X-GMAIL-MSGID: =?utf-8?q?1749883035371740336?= 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/leds/leds-is31fl32xx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-is31fl32xx.c b/drivers/leds/leds-is31fl32xx.c index 0d219c1ac3b5..799191859ce0 100644 --- a/drivers/leds/leds-is31fl32xx.c +++ b/drivers/leds/leds-is31fl32xx.c @@ -422,8 +422,7 @@ static const struct of_device_id of_is31fl32xx_match[] = { MODULE_DEVICE_TABLE(of, of_is31fl32xx_match); -static int is31fl32xx_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int is31fl32xx_probe(struct i2c_client *client) { const struct is31fl32xx_chipdef *cdef; struct device *dev = &client->dev; @@ -489,7 +488,7 @@ static struct i2c_driver is31fl32xx_driver = { .name = "is31fl32xx", .of_match_table = of_is31fl32xx_match, }, - .probe = is31fl32xx_probe, + .probe_new = is31fl32xx_probe, .remove = is31fl32xx_remove, .id_table = is31fl32xx_id, }; From patchwork Fri Nov 18 22:40:05 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: 22684 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462096wrr; Fri, 18 Nov 2022 15:29:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf5L2y4p0R/Yha0U/S7enoAOUnS/uSsHrjJeVJoTIMCm66s4fCU0Gf1sM8nC7yiTeC2v9ZCm X-Received: by 2002:a17:906:f8cc:b0:7ad:92fa:589e with SMTP id lh12-20020a170906f8cc00b007ad92fa589emr7535885ejb.668.1668814145970; Fri, 18 Nov 2022 15:29:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814145; cv=none; d=google.com; s=arc-20160816; b=zHhh29JVFe0Ghcz+pDCQNRgqaeRpkI5DAg5C7VlodjeXpETD7Oz/xMP4xnRpxoGdBD kOPgLjNlPUah7OdKZORCgv6A+mtGe9YO0amltYovr34bg0dpdQ8o0JwUolKP9GPUdTUd niHwcF1dO3xcWymu79FzZRUQlrRR0hkR8R5usb0KpBs6+bmLJN3eYwZPvi1Uncmtz6TI DMdpP4TuXwAun+B0f1j7IpPXc9+deCU5i2fdyWtejWm5oUDjRL3XCIDbo0WQwdOfsLHB IcEYNe7zBnaMWqnHaILe9w+UEl1bj514VMBgULjVEpVz15XK6vDW4Eh+XSVIos3hcM85 U2HQ== 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=YD4vEgYCsuFJrtL7vik0y6DG0ql4dmTFcaI7uts/xNQ=; b=cjkfV02OxGouwaqkV0pNnVfHoObjJ60+/Lom+6UGBW7920DRL/UWz/fYioMU58x+mQ JhLC5p3k6rvsbSbFW0AWjocMv4yC9v3NP3pK9uV9tkeT4CzfiARIy0/F2qq1RQ/l++Rz ko41O8LfIZNTNnhhnNPbd2fLrygCtKcqLWydEIXtD0sye6qchaNTlO5nDMezYW/dbwet GcYlZbtBiNK7LO9rVPl6Fe5ORhkgoettHYIK1rit3fXrsUtfjE4YIiVdEYODKxkKPu+h Q8Oozt07Ai4RDzl4DEQFoU/VQDPbtNBe9qbhG+08WxmeU0CJZllMxDMIZVfJuFM2h79O Uadw== 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 dm8-20020a170907948800b007add150c78bsi4342453ejc.216.2022.11.18.15.28.39; Fri, 18 Nov 2022 15:29:05 -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 S235710AbiKRX12 (ORCPT + 99 others); Fri, 18 Nov 2022 18:27:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235790AbiKRX07 (ORCPT ); Fri, 18 Nov 2022 18:26:59 -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 1A857BCDE9 for ; Fri, 18 Nov 2022 15:15:09 -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 1owA8e-0002VK-27; Fri, 18 Nov 2022 23:47:12 +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 1owA8b-0058TP-Dx; Fri, 18 Nov 2022 23:47:10 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8b-00009H-En; Fri, 18 Nov 2022 23:47:09 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 271/606] leds: lm3530: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:05 +0100 Message-Id: <20221118224540.619276-272-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?1749878461793819753?= X-GMAIL-MSGID: =?utf-8?q?1749878461793819753?= 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/leds/leds-lm3530.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-lm3530.c b/drivers/leds/leds-lm3530.c index ba906c253c7f..a9a2018592ff 100644 --- a/drivers/leds/leds-lm3530.c +++ b/drivers/leds/leds-lm3530.c @@ -405,8 +405,7 @@ static struct attribute *lm3530_attrs[] = { }; ATTRIBUTE_GROUPS(lm3530); -static int lm3530_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lm3530_probe(struct i2c_client *client) { struct lm3530_platform_data *pdata = dev_get_platdata(&client->dev); struct lm3530_data *drvdata; @@ -485,7 +484,7 @@ static const struct i2c_device_id lm3530_id[] = { MODULE_DEVICE_TABLE(i2c, lm3530_id); static struct i2c_driver lm3530_i2c_driver = { - .probe = lm3530_probe, + .probe_new = lm3530_probe, .remove = lm3530_remove, .id_table = lm3530_id, .driver = { From patchwork Fri Nov 18 22:40:06 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: 23032 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp479992wrr; Fri, 18 Nov 2022 16:18:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf4NJ3BJL2NaMrP+YrM1P10efYUhkPgbG4OgAACq8cRAh/aZeq/cjUcnZOyZo+ZakBu/iOgb X-Received: by 2002:a17:907:270e:b0:78d:3c82:a875 with SMTP id w14-20020a170907270e00b0078d3c82a875mr8062709ejk.465.1668817136594; Fri, 18 Nov 2022 16:18:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668817136; cv=none; d=google.com; s=arc-20160816; b=a3UJb4U5FL068yT39Bc2sGZl6BMQeZO/JQ2X1kjyJ4X4LSbSaD0Rx9h0pmS+YU6Hpp IORpPD8LkPjou7wgTZuZxjA1mhMy5/G53q4xx2uYMOrFBQN563pxrbSBXeWTPbA5kSmx mdoDeGKD01ydpY272Zi8krWunmNcZjvcddrvex6DJ1TqXNG1YawQqnUCLm+EW/AIKd+O 5Ftvyd64rofqIzMqi/F7EcePGKjQhA9jX6dB5gA4oNUFF62Qcy0G4XC4cOGDXIAcnvhr ACeA/38C99YSOHf8rlnDUf6zHTBjb5y+VDj+6410Oa9aWhlnza7oIDdLq03mzhUMOEJu OhXw== 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=ws5jQv+lu8SzYl9+nkcpFRDS6pxTDIHm1kgi3Tbqm2c=; b=QDGpIDSJ/AcbPvww0L4WmRI4E1krPPsosKGMH0sNgKZgx/dGL6IoXksmZeNyz6gz+g ORGiQACSMaGm/Zu5zxvHJu+RlyoIZi4eoythtr7UOgPdAqMMwI2lCCE96gOAPkW6wxZa Ee2WXpaR4SqpdPXxu4PxldXXe0PpLmJMZnLRt0v255BxgF+NE3dJAHqRyrI66lWndXH6 u7oSVf9vAeKOkxHnoOBozojmJL+9IU/UxyxVhhVjjhM7kiEYV+IDefePmgt4BHt0BE73 gx5CY8b8J3BZ1h0JKt2ZMZYKtZH/6iVBA3Y8tFYlcR6CNnyhNkffiVwf6NgLvkK9UAdr 1UKQ== 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 z2-20020a1709063ac200b00787aba35b7asi3149174ejd.102.2022.11.18.16.18.32; Fri, 18 Nov 2022 16:18:56 -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 S237802AbiKSAQM (ORCPT + 99 others); Fri, 18 Nov 2022 19:16:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237773AbiKSAPp (ORCPT ); Fri, 18 Nov 2022 19:15:45 -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 2C3F9950D2 for ; Fri, 18 Nov 2022 15:35:13 -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 1owA8d-0002Vi-Qf; Fri, 18 Nov 2022 23:47:11 +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 1owA8b-0058TT-Jl; Fri, 18 Nov 2022 23:47:10 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8b-00009L-MV; Fri, 18 Nov 2022 23:47:09 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 272/606] leds: lm3532: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:06 +0100 Message-Id: <20221118224540.619276-273-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?1749881597537249392?= X-GMAIL-MSGID: =?utf-8?q?1749881597537249392?= 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/leds/leds-lm3532.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-lm3532.c b/drivers/leds/leds-lm3532.c index db64d44bcbbf..a08c09129a68 100644 --- a/drivers/leds/leds-lm3532.c +++ b/drivers/leds/leds-lm3532.c @@ -663,8 +663,7 @@ static int lm3532_parse_node(struct lm3532_data *priv) return ret; } -static int lm3532_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lm3532_probe(struct i2c_client *client) { struct lm3532_data *drvdata; int ret = 0; @@ -727,7 +726,7 @@ static const struct i2c_device_id lm3532_id[] = { MODULE_DEVICE_TABLE(i2c, lm3532_id); static struct i2c_driver lm3532_i2c_driver = { - .probe = lm3532_probe, + .probe_new = lm3532_probe, .remove = lm3532_remove, .id_table = lm3532_id, .driver = { From patchwork Fri Nov 18 22:40:07 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: 23126 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488322wrr; Fri, 18 Nov 2022 16:45:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf5B6w3n1VaAtKTuRXccv+d31ohkYNnF+Z9V71QKlwyQDkbm9n3F3QlYjx0zlGv2WLfTuOnk X-Received: by 2002:a17:906:fca7:b0:7ae:9677:d8dd with SMTP id qw7-20020a170906fca700b007ae9677d8ddmr7946797ejb.71.1668818614769; 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=btgn2TIO0yc3drnhHueaVpS9FlDfLshoNMGrHYmqUWRkSUgSp31DmWVgdP57Vcrko2 nL7P4gfb1l4u71JC09j+MdYxJK5OOEhBcP1GTWZm4DCa80hAq9ttvHIAibqtpQp/Q44M jjlWSOqPuMBCozbPPfpS46sz+gyHbnaRY1q5sGXR3Nr9Dg8s4IlFMrhIMKZYblpaEbDB +AC4lLv5aqVExEezaZqgaIz0O9Se82izZd/KmU1xIf1ic2gwGSWSt8qvdtsIVyPm5b4S FT/HFDu+G9kYZTmsgTwOOhKWni6l5Vimca/6zYrkoWk6bgT6gis77lOv9L1gmEufL/7g UOZw== 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=c63jFWY/pwyH5wMwX2mlRGjtpF5F+8dr1abbwk2h1Tk=; b=iatyPTeMeB1IBu0aXFR1AlApZdE8BvK5B+R7yFo1Lije+4gye/zR6NUg3SAfLPdE/b PgVj6vIK2qtibAMWOSfF07RVLo+1StPTXlIIrRviy0122sEWLDGrwFhdeNt54gFFQsxx pxzb4FiHFOhz6zzU1IHNwEMT4YNoW8mqKxlM69Rjdg3yTXKJJKW5po1AMo7qomDf0As7 Z3hbIXFDeVGsKb8fO3uEqsItn8vNDqtVsEhHcnFMbkey0P5c9aHfygj0pZbkUzPRkVhq Bim9iwqNQSZiOSTSrlaqeUjJec9X1+5mhpfHOnC/lLH/19OLr8GbNKQN3P9ibHFHVPiW IZ/g== 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 dt7-20020a170907728700b007839bfdaa33si4688871ejc.358.2022.11.18.16.43.04; 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 S235958AbiKSAkE (ORCPT + 99 others); Fri, 18 Nov 2022 19:40:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236638AbiKSAiw (ORCPT ); Fri, 18 Nov 2022 19:38:52 -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 2FE2311865B for ; Fri, 18 Nov 2022 15:44:20 -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 1owA8e-0002Vs-CS; Fri, 18 Nov 2022 23:47:12 +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 1owA8b-0058TW-Mp; Fri, 18 Nov 2022 23:47:10 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8b-00009P-Tx; Fri, 18 Nov 2022 23:47:09 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 273/606] leds: lm355x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:07 +0100 Message-Id: <20221118224540.619276-274-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?1749883147404122208?= X-GMAIL-MSGID: =?utf-8?q?1749883147404122208?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/leds/leds-lm355x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-lm355x.c b/drivers/leds/leds-lm355x.c index daa35927b301..612873070ca4 100644 --- a/drivers/leds/leds-lm355x.c +++ b/drivers/leds/leds-lm355x.c @@ -396,9 +396,9 @@ static const struct regmap_config lm355x_regmap = { }; /* module initialize */ -static int lm355x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lm355x_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct lm355x_platform_data *pdata = dev_get_platdata(&client->dev); struct lm355x_chip_data *chip; @@ -516,7 +516,7 @@ static struct i2c_driver lm355x_i2c_driver = { .name = LM355x_NAME, .pm = NULL, }, - .probe = lm355x_probe, + .probe_new = lm355x_probe, .remove = lm355x_remove, .id_table = lm355x_id, }; From patchwork Fri Nov 18 22:40:08 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: 22880 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472214wrr; Fri, 18 Nov 2022 15:59:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf7GiLwzBY7c36HZbB6xpPhCMDtsq1XSgJqv81X6PWppZm0exPjuG1VJFu07Fx0LN7CAuoGe X-Received: by 2002:a63:5c0f:0:b0:470:8e8a:8e11 with SMTP id q15-20020a635c0f000000b004708e8a8e11mr8598019pgb.490.1668815984131; Fri, 18 Nov 2022 15:59:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815984; cv=none; d=google.com; s=arc-20160816; b=1FBp00ICUBPyBNm7+OHAybxbeN41vLeKAWqiW8ZBLytwfkbFCG/0YTkOEMO9wfULoU vcXhpSEJZ9kVRiB+xdqW00iuPT6WjVq5TXTI+uaAjyFWcnp2x/F+ZoUUApDUcMJcaaoS M09VXxQtW+Nf9GvBPiTcAraNNShdSP0x3ysmJYhZSAOFSg4v6Xm1JQaWVtVI8NS1lWaZ h69acslJC6SznoQ4XBNYll8KABLUBB+49hTBaBvt2A/inNmm21MFZKBRN9tNC/BaJbk1 sOiZu4VW1aRUSpIxKe3MGfvZCbhbU7QaVo0HvaSpn7LMzROX2sOU4NeeuiNuxvli6k3J Jl4w== 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=HfEDs/0m9X5S255dQy7FWK8JPvN1eUbRLr9sIbGEWXg=; b=ZELupjhPu8FUMl49B/ECjAosIkQ1G2dqb41WqSQpyK6QWgaNELE+K+fwbkWD3MfAvf Uw2Vaic6Vrod4/oie4wTcWykP88SKnXt58zonZl9Wnyw/8UGo2sq8ftV/o/p/QAJAX3w nzDe+ZF7DTXOzveKnsOaHnrxrNgHfGIkoAMKi+YYsVL8tFL0hNvcl5Qi6QE5X17Jr7ir 8r4iUzcSv8JHG3Tnm5+hzm8UPqRNvKdNGTRyQ7LjKy2IcPz7wG4bSFzHRMpnwv07LJY8 7mvHZAJHsZXRhENwWspUBa/4H45BXgTZzK932eY0wbzMudQnLLZtvJZyLPy9TpawGd5d TgZg== 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 r22-20020a63ec56000000b004769983b39asi5070335pgj.667.2022.11.18.15.59.30; Fri, 18 Nov 2022 15:59:44 -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 S237057AbiKRXxR (ORCPT + 99 others); Fri, 18 Nov 2022 18:53:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232419AbiKRXvp (ORCPT ); Fri, 18 Nov 2022 18:51:45 -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 8B34BBB9EB for ; Fri, 18 Nov 2022 15:27:12 -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-0002Xq-1E; Fri, 18 Nov 2022 23:47:13 +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 1owA8c-0058Tl-GT; Fri, 18 Nov 2022 23:47:11 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8c-00009S-5F; Fri, 18 Nov 2022 23:47:10 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 274/606] leds: lm3642: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:08 +0100 Message-Id: <20221118224540.619276-275-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?1749880389300376296?= X-GMAIL-MSGID: =?utf-8?q?1749880389300376296?= 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/leds/leds-lm3642.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-lm3642.c b/drivers/leds/leds-lm3642.c index 428a5d928150..b75ee3546c2e 100644 --- a/drivers/leds/leds-lm3642.c +++ b/drivers/leds/leds-lm3642.c @@ -289,8 +289,7 @@ static struct attribute *lm3642_torch_attrs[] = { }; ATTRIBUTE_GROUPS(lm3642_torch); -static int lm3642_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lm3642_probe(struct i2c_client *client) { struct lm3642_platform_data *pdata = dev_get_platdata(&client->dev); struct lm3642_chip_data *chip; @@ -402,7 +401,7 @@ static struct i2c_driver lm3642_i2c_driver = { .name = LM3642_NAME, .pm = NULL, }, - .probe = lm3642_probe, + .probe_new = lm3642_probe, .remove = lm3642_remove, .id_table = lm3642_id, }; From patchwork Fri Nov 18 22:40:09 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: 23002 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477459wrr; Fri, 18 Nov 2022 16:11:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf7X3CqW7F6GFjRV3KqtAIx+jKGtamBJmNYNjdwd9i4gErrNdzqSjTQ0swsPAEXMOORR97Bt X-Received: by 2002:a17:902:b691:b0:17e:3f0f:5ad0 with SMTP id c17-20020a170902b69100b0017e3f0f5ad0mr1712390pls.162.1668816697475; Fri, 18 Nov 2022 16:11:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816697; cv=none; d=google.com; s=arc-20160816; b=LWZ2paehyJUA5q+LfeymJe7+CLDqQspD7Mn/dZAR16RyEqw4XIWuhOSwmz4EydqfUe XbXr5mjLkThE1TNqmh67K3nSKE/a+em4AgUlA2yFjAbgK/SDkbZZpH+X/ymY7YbfJWbi NsiZXfz9plPNtMAOTa/ynFC7G9Qt19N0QSubF+GlEglSN9v/snLMXnqLYe3Ahe+zsSMd w+3f+9sSkxijjtj3AA04JC6mQZGjraG3KrvAM7HV4if1wG6Eu7+b0tTbsVFPUujdFxFN tz0tja3MC8/ylrFaZi8kGDXA3XAqBF1ZqIfnFhX4ODic6ZJf6IF5gDunyiCU+K7KLRoE GMHg== 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=yp+vvClgb4ixNOIhVvxrtM1aX52s67jD9h/2u010qBQ=; b=W9VnuVZMbVUxKZ30yQMIKgSXtGq7qRylCJc2tD2a7/ipn6DTPBnXADpAruDbUiri03 7FfYG7E1D9mM4AU21tR16EocSxuLcud21Ffc07QyH3bbZ84a37ub1dblZAOUoYyEfd7r RkUbqYOCwbvr9qphiDlguPQKwkec906ahTXpzaBJvByiMisU2ltCn4T+1hDW6RDWqnjR 6SNjdD89Srj20jOzYPgGMJ60lt1NDje3iOcaOFBFC5wFL+dUelzDIGuLH1O62D1VBgWu 4QCEbcvS+H3xQ+43nCC7P0Z1wuVQrc8mOwIaJN9GecymASFzxuL2efbxJA5QZHCKe+8X /cww== 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 197-20020a6301ce000000b0043941e5532dsi5286631pgb.391.2022.11.18.16.11.25; Fri, 18 Nov 2022 16:11:37 -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 S237672AbiKSALC (ORCPT + 99 others); Fri, 18 Nov 2022 19:11:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237533AbiKSAJw (ORCPT ); Fri, 18 Nov 2022 19:09:52 -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 27DF47C6A3 for ; Fri, 18 Nov 2022 15:33:16 -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 1owA8e-0002Wz-SQ; Fri, 18 Nov 2022 23:47:12 +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 1owA8c-0058Te-4J; Fri, 18 Nov 2022 23:47:11 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8c-00009X-Et; Fri, 18 Nov 2022 23:47:10 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 275/606] leds: lm3692x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:09 +0100 Message-Id: <20221118224540.619276-276-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?1749881137716728597?= X-GMAIL-MSGID: =?utf-8?q?1749881137716728597?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/leds/leds-lm3692x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-lm3692x.c b/drivers/leds/leds-lm3692x.c index 54b4662bff41..66126d0666f5 100644 --- a/drivers/leds/leds-lm3692x.c +++ b/drivers/leds/leds-lm3692x.c @@ -456,9 +456,9 @@ static int lm3692x_probe_dt(struct lm3692x_led *led) return ret; } -static int lm3692x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lm3692x_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct lm3692x_led *led; int ret; @@ -518,7 +518,7 @@ static struct i2c_driver lm3692x_driver = { .name = "lm3692x", .of_match_table = of_lm3692x_leds_match, }, - .probe = lm3692x_probe, + .probe_new = lm3692x_probe, .remove = lm3692x_remove, .id_table = lm3692x_id, }; From patchwork Fri Nov 18 22:40:10 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: 23102 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487641wrr; Fri, 18 Nov 2022 16:43:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf6jOW5pIJFfGjCvB5iuf0KGmw01xJd4Ea1a7CLzRQRACEZZPvy9hSN82TwolmpMSlT437Ja X-Received: by 2002:a17:906:944c:b0:7b2:71fa:c367 with SMTP id z12-20020a170906944c00b007b271fac367mr7537375ejx.377.1668818617279; Fri, 18 Nov 2022 16:43:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818617; cv=none; d=google.com; s=arc-20160816; b=tZr2nfFjMp9z2bZ6Ub+PxyeIf/5mcGgqZ9b4k50N2sUr8z2bcIZHaGB5wj79cIq1oz zx7egiQ3UFKG299JhF1LfmRcmULQ5lbPM3vjQDgLsNrnzId34BjQZh5QJV8+VQDkDmQ/ sZ2UrlnHDlYnGLEuogwyak9/Jhcgt8vd9I2uz06MMX/OkK+25UvSFVNsiYVpCraSYKNE sEAF7zhLN6tulcG84/LJXGzXp7O0NMKZFIvm64hlZ9CW58TxLpeHThmM92Ix/0U3Lhx3 9pC1e8nDFZ+16Lvf8ZumSxO5r43zdZ6ERpds+Pczpysood/GhoDFaPKK2Kk80Dp10fVU 3dBA== 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=mxMhMFDSI97SoDeCm71Wq8avi8VbtSg/mAaqQy6jf6s=; b=UQtJIED0VGdp5Hxp247MW4wxkekCjSHMsjUk0CU/wZQYpP2ryS3njPNB3EQx3Z63Cu wpFVGzdpUIcCM5vLyoiefGJoLmshr4H+kQMr7V0hkQRA6lnoFVwTmCHW7NC0A45tnkoK 34hV8GUl0h/N8qBAlCdk2l5yxkKM0fQrkJFWbTUO9YJo50tj4Er8URGaKelQFxjgOFiG MTTk9s5Q7CR+YnahDpJQC60GZrKC8Wz9uzAEqB4pvGPw7ZB5vYZqZLCbBtUhbfva9lzl DjVODrGGgCD53w1aQypsBuTvUOAsywvdKbtUd3cPAKLVnPkV24yRoDdOzqHVDapWFV9q 0A+A== 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 xd9-20020a170907078900b007addbdb9fbbsi685796ejb.558.2022.11.18.16.43.05; Fri, 18 Nov 2022 16:43:37 -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 S236432AbiKSAkY (ORCPT + 99 others); Fri, 18 Nov 2022 19:40:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236143AbiKSAjI (ORCPT ); Fri, 18 Nov 2022 19:39:08 -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 9939CC78DF for ; Fri, 18 Nov 2022 15:44:24 -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 1owA8g-0002ZU-4C; Fri, 18 Nov 2022 23:47:14 +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 1owA8d-0058U0-6A; Fri, 18 Nov 2022 23:47:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8c-00009b-Ll; Fri, 18 Nov 2022 23:47:10 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 276/606] leds: lm3697: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:10 +0100 Message-Id: <20221118224540.619276-277-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?1749883150391875067?= X-GMAIL-MSGID: =?utf-8?q?1749883150391875067?= 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/leds/leds-lm3697.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-lm3697.c b/drivers/leds/leds-lm3697.c index 71231a60eebc..10e904bf40a0 100644 --- a/drivers/leds/leds-lm3697.c +++ b/drivers/leds/leds-lm3697.c @@ -299,8 +299,7 @@ static int lm3697_probe_dt(struct lm3697 *priv) return ret; } -static int lm3697_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lm3697_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct lm3697 *led; @@ -377,7 +376,7 @@ static struct i2c_driver lm3697_driver = { .name = "lm3697", .of_match_table = of_lm3697_leds_match, }, - .probe = lm3697_probe, + .probe_new = lm3697_probe, .remove = lm3697_remove, .id_table = lm3697_id, }; From patchwork Fri Nov 18 22:40:11 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: 22767 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465835wrr; Fri, 18 Nov 2022 15:38:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf4kX2wtvYTmxn+iHcO4WpItAfQ9ET22XCRE4hwNWaULM2GIsbKQVfR+CvVtf9DeFCiiaqwZ X-Received: by 2002:aa7:d1c5:0:b0:461:dd11:c1bd with SMTP id g5-20020aa7d1c5000000b00461dd11c1bdmr7780412edp.406.1668814715768; Fri, 18 Nov 2022 15:38:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814715; cv=none; d=google.com; s=arc-20160816; b=sJhuN7T+NQvYB+E+iTepFrARfu1+ClC0ScstAQXKHevuuUxdufH4/EjGynKzBH8JVS luu28t5FJdODo6sxjn8NYymFPZRRCrpKWj5/OvhHaOMR5BOEVydw2DhxIbBT5dvWRi3d fQjHRy8U9BhaqfBorYPD0423gPkJfVUtxRQueL14yW6pPfBMEochEb4DSigVnAnPa1k4 ilyjHp7EUlGdjI/46uVs0e5JKrsBc2xgfBaaF0P3E55Erl+FhDrCVYLE9Zuig9ZAzURy QgRNW0lDcgu7KC88LIZR3qwqM1X000/4uOKWXl6G71lLhf79YTpzxR7vnqivxx7jUoyv 6MzQ== 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=YA3gC2ac+rFRP1j6AeR+2b7rhkmwSChskYhiI/Afj2g=; b=bxRp9EzO+ZyXLO5wcsUelTqQaNNoTYTUrHQ6qxw6ZclqPzymxqAuFL/m6tLijUuENV bOqMT18NU+Qtd9hJRVyLXXsskuQAsc7Kaar0qNmCRi5b+iP2bYOX0tjmIea/a5aVrKUf CcaYa4iJQm90x7beWdmzxgs8VwCsRbENiNyoReqNdiMCPIu4VzdpqRg8jBMJjzG0X4BU T4ABxdQG2cIPPbEulObprHrWIg7pYjH/HZPoiyKCHmNfXTAHsQdMlNX8oS8XIQ0ax8qy 6Aer7maDndxGXf7MaxvJIiOFR3vRctZhVgsJnOPBUyAb8KVRlSNunmv+gncm5aESFnFW I8pQ== 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 xe8-20020a170907318800b007adc8c49d83si4519425ejb.477.2022.11.18.15.38.11; Fri, 18 Nov 2022 15:38: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 S236431AbiKRXgj (ORCPT + 99 others); Fri, 18 Nov 2022 18:36:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236397AbiKRXcx (ORCPT ); Fri, 18 Nov 2022 18:32:53 -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 29DEFA5705 for ; Fri, 18 Nov 2022 15:20:38 -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 1owA8e-0002Y8-S7; Fri, 18 Nov 2022 23:47:12 +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 1owA8c-0058Tp-L9; Fri, 18 Nov 2022 23:47:11 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8c-00009f-SM; Fri, 18 Nov 2022 23:47:10 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 277/606] leds: lp3944: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:11 +0100 Message-Id: <20221118224540.619276-278-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?1749879059446015910?= X-GMAIL-MSGID: =?utf-8?q?1749879059446015910?= 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/leds/leds-lp3944.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-lp3944.c b/drivers/leds/leds-lp3944.c index 673ad8c04f41..be47c66b2e00 100644 --- a/drivers/leds/leds-lp3944.c +++ b/drivers/leds/leds-lp3944.c @@ -359,8 +359,7 @@ static int lp3944_configure(struct i2c_client *client, return err; } -static int lp3944_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lp3944_probe(struct i2c_client *client) { struct lp3944_platform_data *lp3944_pdata = dev_get_platdata(&client->dev); @@ -428,7 +427,7 @@ static struct i2c_driver lp3944_driver = { .driver = { .name = "lp3944", }, - .probe = lp3944_probe, + .probe_new = lp3944_probe, .remove = lp3944_remove, .id_table = lp3944_id, }; From patchwork Fri Nov 18 22:40:12 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: 22700 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462760wrr; Fri, 18 Nov 2022 15:30:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf4AaR3MoxknBCwLZDziXHvKpfPquQpUpwar4QUbTiY1xtDr5zo+VNaFmBthL+A/iiBVaFlX X-Received: by 2002:a17:906:fc9:b0:7ae:ef99:6fb2 with SMTP id c9-20020a1709060fc900b007aeef996fb2mr7599577ejk.761.1668814254151; Fri, 18 Nov 2022 15:30:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814254; cv=none; d=google.com; s=arc-20160816; b=AWZDcXVS7cAEbZMyp0qThLq3hTmSwmONHepMjWXQVD9bACdQgVh9++Jlyod78nlhsx 96/6VRKq8FcdmU7HeBzUUTbBWAAg5kLpeTA8tjm2zyXcNP+N9eOW2GWG1V+hr+DnqOdc NbzMDlKJgoXgUXRU0Ho93pdgjj+0x5Mfoo7AQx8gZ9eNj55GNS+4amNzd47713XCb2BT WL2hFEEERhSAJqc99cPk4yOQesiAHr8xlaA0POrTGxaKAjUY9Sm3dsftIf3zlMxvbDjC NkAuAuEsybF+gJA/bV0zH/9d7W02xCPQStA7eiuDctBZbIysrknOSEmiIwxR/cHVCfOm GG2A== 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=Op60DJ8UxkrqVMt42sGAFuLhJxONVqp/fv5GdOJIgt0=; b=jDQQE3RTP8qDHQtIgWxiK08GOCOfsX9FUnLGX8FynY1oLM0nBHOnxPGOkxBjBvzl+K UIc5wBBhB4w+m9adkH+E27NkOEYLE2Lzdq4G3w7cMcrQb0z+gF9dLaEoP8UqTPRnCRMN VwA3SojzbdNUscdGJpCObSpXjVznt1yYnfspRJF0zIFupJwVTzty/SsXI4Yy1ogqqain 0vMzPOnLxtPUeyauCEvcsjrOCh8uwZ7CE/kPIlKp0KwzMzw4sp/IBdnFUam4UGtJeo0H Q9dBBxJ12LmF5aZ3uNecRNr6qIk4PJF8BVRtJ7j+iiPPRP5DL/270TWhaS6Ko9yvGVCH nYzg== 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 ae12-20020a17090725cc00b007adef1fc90fsi4701437ejc.304.2022.11.18.15.30.30; Fri, 18 Nov 2022 15:30:54 -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 S235917AbiKRX36 (ORCPT + 99 others); Fri, 18 Nov 2022 18:29:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235802AbiKRX2r (ORCPT ); Fri, 18 Nov 2022 18:28:47 -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 A9394B9622 for ; Fri, 18 Nov 2022 15:16:55 -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-0002YV-Fh; Fri, 18 Nov 2022 23:47:13 +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 1owA8c-0058Tv-RX; Fri, 18 Nov 2022 23:47:11 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8d-00009i-3U; Fri, 18 Nov 2022 23:47:11 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 278/606] leds: lp3952: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:12 +0100 Message-Id: <20221118224540.619276-279-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?1749878575663908095?= X-GMAIL-MSGID: =?utf-8?q?1749878575663908095?= 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/leds/leds-lp3952.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-lp3952.c b/drivers/leds/leds-lp3952.c index bf0ad1b5ce24..24b2e0f9080d 100644 --- a/drivers/leds/leds-lp3952.c +++ b/drivers/leds/leds-lp3952.c @@ -207,8 +207,7 @@ static const struct regmap_config lp3952_regmap = { .cache_type = REGCACHE_RBTREE, }; -static int lp3952_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lp3952_probe(struct i2c_client *client) { int status; struct lp3952_led_array *priv; @@ -274,7 +273,7 @@ static struct i2c_driver lp3952_i2c_driver = { .driver = { .name = LP3952_NAME, }, - .probe = lp3952_probe, + .probe_new = lp3952_probe, .remove = lp3952_remove, .id_table = lp3952_id, }; From patchwork Fri Nov 18 22:40:13 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: 22909 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472865wrr; Fri, 18 Nov 2022 16:01:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf5dpw6R4Cdt5+9pIjxtElbTnVf2NfEeNsQ7s2EOMAbkuUfEGyGi65lMifgIQHqgMrzJ+3Li X-Received: by 2002:a17:906:fa19:b0:78d:9002:fe3b with SMTP id lo25-20020a170906fa1900b0078d9002fe3bmr4299704ejb.769.1668816062952; Fri, 18 Nov 2022 16:01:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816062; cv=none; d=google.com; s=arc-20160816; b=oawXppdNpi5jc4BsskmfzTQcrAwFL4MoRYpFjxzoaa3Q08OIbDFCyU+MotAheCFut3 wm6fP84yVNJ6Tp3EWgKCqPspPjxB0xS/43QQyOZ7Tr8ySK2UaQWh7aNCr/c6iMBxI3DL S1q+36QMFF8ncLd1+LrFM2hi4vfW+9OTQe8mewdq+Gf3R9dOX9NCwbn6XZ2MxoXERQtU 4J9B4nwqYTeizj++gqjgL7Ngog18hX4nWCdZlcMyTN043v/pTjU8n1JDBzBjLwraaqTh j3t9LTAZ3je8O1mIM4pn0StJOaH8TfVwLZBseNCHKNnPw7/Tt6gvV29r/YoUOFvcuai8 wAwg== 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=kKi3+ApYW1sAIneX+/SHv4xyrz049S/afn2oA6Jx0/Q=; b=lAdlHMpkqRT3N/ROlGmSsWFVAmwWpzAcdZZ9w14OGL9N3f9IYekxI2ERY2tBxX8kN/ MP4qS9/3SM0PIkXCSR1JrQ6hO47pI7gn1vKpQFUS3T07pFvOpy1A+Ds/X1yeGivtZDQS ihYMLaMX8s3tCb/pv2LgypoJ5cx5xosfYURdQrXWbfNu7G3rdLjQEtrp3JAVZn9vVqEF HhhemYfAVuU+t0UssxCSDRrjdHfun2w+2/pw8OL629vYYg0ZyFUmYBNf2zstjj0K41hx RpDgJyCd1S4SjX26TTn4S4e+PacTcfLG8Fs2w1gjsdXach3Zf2j9LJeQqgkcIN2lAWg6 UZsg== 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 tl2-20020a170907c30200b00781599eb7dbsi3555566ejc.573.2022.11.18.16.00.37; Fri, 18 Nov 2022 16:01:02 -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 S229963AbiKRXzh (ORCPT + 99 others); Fri, 18 Nov 2022 18:55:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237137AbiKRXyF (ORCPT ); Fri, 18 Nov 2022 18:54: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 5ED9FBE266 for ; Fri, 18 Nov 2022 15:27:50 -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 1owA8g-0002ai-Q9; Fri, 18 Nov 2022 23:47:14 +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 1owA8d-0058UJ-Si; Fri, 18 Nov 2022 23:47:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8d-00009m-AL; Fri, 18 Nov 2022 23:47:11 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 279/606] leds: lp5521: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:13 +0100 Message-Id: <20221118224540.619276-280-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?1749880471908116773?= X-GMAIL-MSGID: =?utf-8?q?1749880471908116773?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/leds/leds-lp5521.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-lp5521.c b/drivers/leds/leds-lp5521.c index 7ff20c260504..6faf7b10a593 100644 --- a/drivers/leds/leds-lp5521.c +++ b/drivers/leds/leds-lp5521.c @@ -516,9 +516,9 @@ static struct lp55xx_device_config lp5521_cfg = { .dev_attr_group = &lp5521_group, }; -static int lp5521_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lp5521_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); int ret; struct lp55xx_chip *chip; struct lp55xx_led *led; @@ -608,7 +608,7 @@ static struct i2c_driver lp5521_driver = { .name = "lp5521", .of_match_table = of_match_ptr(of_lp5521_leds_match), }, - .probe = lp5521_probe, + .probe_new = lp5521_probe, .remove = lp5521_remove, .id_table = lp5521_id, }; From patchwork Fri Nov 18 22:40:14 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: 23070 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486976wrr; Fri, 18 Nov 2022 16:41:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf4++vyvVmK5LICggrlW7/R7uw8vCRyvHEfjRiYfg0gN+RmHtlcyFa+EORIZhfzPnXTyoLUN X-Received: by 2002:a17:907:c016:b0:7a4:98cc:7c8e with SMTP id ss22-20020a170907c01600b007a498cc7c8emr7843885ejc.48.1668818504007; Fri, 18 Nov 2022 16:41:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818504; cv=none; d=google.com; s=arc-20160816; b=W7wFWHsZES+0zx3gpbCStkLpy3YkmV8ew3ltizBGgdkMe23aBp0TEBbqBFgYCg2V8Z RHcC/2C52n6scl2/l2HHdYY0Mr3gsgEbPqbv7xG6TJlTDi6Jg6/FDw2I1YgrndSKumM6 TX3rU0HF8KLYJ8aKJavyoVLW7Op1T3JxatDFs4nyQWXiwdHHZI5SYRGx66Dvtc3NywTb Ezw6wuwkjxyL2tQP+hCNPR6E/B3jOETTxeADmTML8qTn8Ja6GDEjmgkfptevjPx+PHZj mdO2eiy9xKf9DcVkzEAy0/Y74I53V3rZ2M1PXTeCkLm7sF5NaFUbLGk8/Lz8rHnXsI+y Dxkw== 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=m9XVmK3OWmOAM3d/N0sfQtLkAQL4M/4/GBGKG++v9gY=; b=oad4dyZsr1w7UAkY/ax2k0oOchdxFlCrVuyOD86Fd2L/mppdh0CiL5M9mIgl0PlFoP 5EA66BzF96LN0Zl9yRwSUc+iQ7765I6yCS5R+9VCHW38Dpoz1T1QGrpstjPGt6/XYpMn KnyWMWr62KwbvES8ixCcoYV2lUe/iVm6dVKbB+Wqw7FCjdmbFR/wSpzQD2gUcGIvIK4j I0UK99R2P+cK3IvEq78Fzb5wj/iUjNwZti7z8wOllm4N1XAOYMGmkiOKMqkPtI0I+OLU AUiAkg5sISI9CB2W+lgJhZGmTEb2W8v9jcFZbLomJFMxmIHzKRHErLoEOZpaEFQLlmGf jEYA== 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 tk5-20020a170907c28500b007ae199ea55asi4122689ejc.817.2022.11.18.16.41.18; Fri, 18 Nov 2022 16:41:43 -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 S236465AbiKSAgg (ORCPT + 99 others); Fri, 18 Nov 2022 19:36:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236185AbiKSAfl (ORCPT ); Fri, 18 Nov 2022 19:35:41 -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 C4DFC1165B8 for ; Fri, 18 Nov 2022 15:43:17 -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 1owA8g-0002Zs-Ca; Fri, 18 Nov 2022 23:47:14 +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 1owA8d-0058U6-D8; Fri, 18 Nov 2022 23:47:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8d-00009p-FV; Fri, 18 Nov 2022 23:47:11 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 280/606] leds: lp5523: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:14 +0100 Message-Id: <20221118224540.619276-281-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?1749883031495101767?= X-GMAIL-MSGID: =?utf-8?q?1749883031495101767?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/leds/leds-lp5523.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-lp5523.c b/drivers/leds/leds-lp5523.c index 369d40b0b65b..5dc17bb59575 100644 --- a/drivers/leds/leds-lp5523.c +++ b/drivers/leds/leds-lp5523.c @@ -884,9 +884,9 @@ static struct lp55xx_device_config lp5523_cfg = { .dev_attr_group = &lp5523_group, }; -static int lp5523_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lp5523_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); int ret; struct lp55xx_chip *chip; struct lp55xx_led *led; @@ -980,7 +980,7 @@ static struct i2c_driver lp5523_driver = { .name = "lp5523x", .of_match_table = of_match_ptr(of_lp5523_leds_match), }, - .probe = lp5523_probe, + .probe_new = lp5523_probe, .remove = lp5523_remove, .id_table = lp5523_id, }; From patchwork Fri Nov 18 22:40:15 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: 22898 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472547wrr; Fri, 18 Nov 2022 16:00:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf6nC338ngbkfmyyBbaUWW3uz1qZQb77LFZxwcagnhFIDGyRzTe9uCQ97+W6nd1Dzxsq8waJ X-Received: by 2002:a63:f253:0:b0:434:afab:5ff9 with SMTP id d19-20020a63f253000000b00434afab5ff9mr8336066pgk.349.1668816024456; Fri, 18 Nov 2022 16:00:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816024; cv=none; d=google.com; s=arc-20160816; b=lckF58krMvWk3OSu02V/FtvYWN6HigSuVbd/Cy3JMu/9YYEyZ0+3KnTb8UUEBlKgwi cdtg5wfOuYc7jmEnyhhSsBu29hcPsMbN1iSKijWq/wSP4oefMo9yRf/U4OWaJj6l653I 7U8N2Hu7bbRErkW8P0n0t9TVsJoEMiZk6521Sf6ucSp8n1JrJZ/AIOddPtZzIH2gU0jA 7q/2FzHluWE53aMwXbAoMr6atX5lZO8ecpiL1HF7+ZryNWzeGgLPGUiQPMP4Mln2O6qz K/PlcamN6HWFzTl3CD2RSsk+HXeQQ7jWxzj9TnN14XM67gfm31mUZYZdEi77LQgKFlQs HzWQ== 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=33ZK+C0/+EOT+gY3ZNSBiMLLdZhPsxafiRn8mShm97I=; b=0wwUQYeRD+CeIgIGxagxwyQB/J5pXWRH2k2sD0WG85YMadjfAQgUs8fEuFhsCjdbZY QDVqMjE5B1ZHNPJvIEg/WdIUo0vCOgLRvaUwtUx4MlEvahwbKlKrw00w62eOjno2gzwn w/Vr43wi4NMQXjqEIuv1Yq168GM1GkFeItg9WTC//4yDj0xy4uDWMwS4ETAgmAg9CAS0 uMZoEXOLn0se09kGb3G+2I0QLaS4iSoXnnlqX/gXSKZEE+I1+DMwv1hwZbdhY7aK1B7k N6O5uD7KyDa9oG2OcwI6ZSUF0WeOBcjJXIsKbZtxYzT/+dDG3F/+lrXrZtp6ArSXM+Mb kY3g== 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 s13-20020a170902ea0d00b0018683763131si5664097plg.501.2022.11.18.16.00.11; Fri, 18 Nov 2022 16:00:24 -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 S235356AbiKRXyx (ORCPT + 99 others); Fri, 18 Nov 2022 18:54:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236997AbiKRXwz (ORCPT ); Fri, 18 Nov 2022 18:52: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 2B28ED2DD1 for ; Fri, 18 Nov 2022 15:27: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 1owA8g-0002a4-3T; Fri, 18 Nov 2022 23:47:14 +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 1owA8d-0058UA-Ji; Fri, 18 Nov 2022 23:47:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8d-00009t-Kv; Fri, 18 Nov 2022 23:47:11 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 281/606] leds: lp5562: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:15 +0100 Message-Id: <20221118224540.619276-282-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?1749880431568078080?= X-GMAIL-MSGID: =?utf-8?q?1749880431568078080?= 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/leds/leds-lp5562.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-lp5562.c b/drivers/leds/leds-lp5562.c index 0e490085ff35..b5d877faf6d7 100644 --- a/drivers/leds/leds-lp5562.c +++ b/drivers/leds/leds-lp5562.c @@ -511,8 +511,7 @@ static struct lp55xx_device_config lp5562_cfg = { .dev_attr_group = &lp5562_group, }; -static int lp5562_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lp5562_probe(struct i2c_client *client) { int ret; struct lp55xx_chip *chip; @@ -604,7 +603,7 @@ static struct i2c_driver lp5562_driver = { .name = "lp5562", .of_match_table = of_match_ptr(of_lp5562_leds_match), }, - .probe = lp5562_probe, + .probe_new = lp5562_probe, .remove = lp5562_remove, .id_table = lp5562_id, }; From patchwork Fri Nov 18 22:40:16 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: 22996 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477316wrr; Fri, 18 Nov 2022 16:11:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf5vhIemaRlEHgCiwEP+HBpbnDdyMn3D3J9USVV/h2DJ2wZko7FJr7nw2RjC8NhfGLSTPkiB X-Received: by 2002:a17:902:bd83:b0:17d:6603:8e45 with SMTP id q3-20020a170902bd8300b0017d66038e45mr1687931pls.173.1668816675341; Fri, 18 Nov 2022 16:11:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816675; cv=none; d=google.com; s=arc-20160816; b=d1837uBsLaElE5+4Z1GSQBYYk0IHqBjQLx/ZSXnt+67P0E84xtODibgptKS3g8QPdD BmGio3d6uApSXpK2Ti9jPkmHkHuRPlw8Xwad9IiZzUsdD3Ll78twOEzbjkIuhMy7l1AS 9oIVJkccqAVsvzKCbeKPsz+7A+A2twjoS/4ZZ6TzQOI4OFW0padTT7GacTWDz+fRyev2 NBHR8HnT7eoQ4ERCw4lbx6DrtPPd+pzQSIzvGeMH8KE5V7pxcKJmaXPUNQEbt97JkYFm PGBaIRh6Can0U9h18Zfbs/gQgwPf0PIy+cMVSrRhmPJgvZPYxqZ+dGqBFvUf3GGUDhNV KfQA== 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=/13FA7DjGc1RTvAMtBburMAaocZm+rO1qXQ1Zocm2DU=; b=a9ixMoZ6S489lIX4qfi7ft8ixPokociaZ6/37VEhRXvuSidD0l+rH/4vlzV6Wwvi0X M8+m1G3bglIExqk/XfT9pMCU/howqdF12w6hacpwH9AtmhxxdbHWgi7jAv908O3Bz8zi RtXeKXVB/YxdqAkPmuJTJ9f323Nvj+7HR5NJwVPaBKlrN9Mpnb6jvpkB0ExZ3hAZ2QFK zVKWj6seXs5JU2+R276/vnWJHvaChbe0S31PL5bHRyV3Afl+Ko3h7Mv1H+Id/7HZrsR1 D5sm+iYpJXymN3foS8DivKxiIIUzJJN5VrUFrztYApXtypcK3jeY7VtgPCjN7zlEsqpQ IgpA== 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 u5-20020a17090282c500b00186f1a1fb83si4578001plz.352.2022.11.18.16.11.03; Fri, 18 Nov 2022 16:11:15 -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 S237622AbiKSAK1 (ORCPT + 99 others); Fri, 18 Nov 2022 19:10:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237487AbiKSAJu (ORCPT ); Fri, 18 Nov 2022 19:09:50 -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 51C0E1DDD8 for ; Fri, 18 Nov 2022 15:33:04 -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 1owA8g-0002aP-LE; Fri, 18 Nov 2022 23:47:14 +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 1owA8d-0058UE-NS; Fri, 18 Nov 2022 23:47:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8d-00009x-Rh; Fri, 18 Nov 2022 23:47:11 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 282/606] leds: lp8501: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:16 +0100 Message-Id: <20221118224540.619276-283-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?1749881114595795989?= X-GMAIL-MSGID: =?utf-8?q?1749881114595795989?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/leds/leds-lp8501.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-lp8501.c b/drivers/leds/leds-lp8501.c index ae11a02c0ab2..165d6423a928 100644 --- a/drivers/leds/leds-lp8501.c +++ b/drivers/leds/leds-lp8501.c @@ -299,9 +299,9 @@ static struct lp55xx_device_config lp8501_cfg = { .run_engine = lp8501_run_engine, }; -static int lp8501_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lp8501_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); int ret; struct lp55xx_chip *chip; struct lp55xx_led *led; @@ -392,7 +392,7 @@ static struct i2c_driver lp8501_driver = { .name = "lp8501", .of_match_table = of_match_ptr(of_lp8501_leds_match), }, - .probe = lp8501_probe, + .probe_new = lp8501_probe, .remove = lp8501_remove, .id_table = lp8501_id, }; From patchwork Fri Nov 18 22:40:17 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: 22922 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp473216wrr; Fri, 18 Nov 2022 16:01:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf6K6eVhI1DGGWMLMRr7Jqb4nKJhR8CVi9YlWx7dKUER/3xQUe7YpCi6UPYolWKR3Vn364ro X-Received: by 2002:a17:902:ca85:b0:176:cf64:2f39 with SMTP id v5-20020a170902ca8500b00176cf642f39mr1771804pld.93.1668816099023; Fri, 18 Nov 2022 16:01:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816099; cv=none; d=google.com; s=arc-20160816; b=WGYy/1RJgfEtDCrgyDR9TA/se1hgbIMHQJ6KAkraivMH40dASLJ54ugiwzNsKf4lf3 ZBKN081qZS0ZLcmZ5n5klSiZFa01+kNoR+cNmQqeg2ZqjO1BxGSjfEQjKVmKqiL33j4q faAufpZGcxgNRUA7NQ69lbvixn+R3r1oY/gXbHAPCNDZ00UuEJQlzKnmFsT6N+XRsCdK +gzBJFGRJYS+EnBM4bKmQ5/ZosT1vHMTRm3N4gKqZfnP7OpZ4gnwww/fGZwg3s5zirUP QXXrGkRSXJNn82lfTPt33r+0yNmRW+Tw2Cdlr6FSv4MlWyxIHdCWlquHRjYnvilDcopI vUDg== 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=JAxqBrSDhzeJw2/zN3x7DnelyBrB9BIwfF9CRYFmcFg=; b=hu/PpMXFYkkM5iue9lvGzRST0Y75ZEMJ8cI5rUZ5OAbSODF6JBCJU86weojRYySzG1 m/TPbA71SE0xaA2Ly3McrOfGnIaOOnhWkJcG1h+o8UjZKmqKdID+CFlSPoQI+m9jlSCw mC4ng+Ka+mm3/ybxNUuQ3+bUVrIsbn3PNlk/07oOzfA35bxaHsZuMVQU9J11RGXCWRZa nrRCx3S5/5XjBNeFjjUcL0s8yGTqNzISN8vng3IZMOzVngvRdWv8bJ+MHp08Knimo+3M SAxdkE47BUY6GZes3uF3OFItrw9hr6BudUayQVGOd8cMjQ2b/ML0pb5VENwDaLhk7P8Q kcDA== 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 lb4-20020a17090b4a4400b00213625eee7fsi10255072pjb.106.2022.11.18.16.01.25; Fri, 18 Nov 2022 16:01:39 -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 S237131AbiKRX4y (ORCPT + 99 others); Fri, 18 Nov 2022 18:56:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231929AbiKRXzi (ORCPT ); Fri, 18 Nov 2022 18:55:38 -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 45D62BE840 for ; Fri, 18 Nov 2022 15:28:13 -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 1owA8g-0002af-Tj; Fri, 18 Nov 2022 23:47:14 +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 1owA8d-0058UI-S7; Fri, 18 Nov 2022 23:47:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8e-0000A3-1M; Fri, 18 Nov 2022 23:47:12 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 283/606] leds: lp8860: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:17 +0100 Message-Id: <20221118224540.619276-284-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?1749880510142367620?= X-GMAIL-MSGID: =?utf-8?q?1749880510142367620?= 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/leds/leds-lp8860.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-lp8860.c b/drivers/leds/leds-lp8860.c index e2b36d3187eb..b66ed5ac1aa5 100644 --- a/drivers/leds/leds-lp8860.c +++ b/drivers/leds/leds-lp8860.c @@ -375,8 +375,7 @@ static const struct regmap_config lp8860_eeprom_regmap_config = { .cache_type = REGCACHE_NONE, }; -static int lp8860_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lp8860_probe(struct i2c_client *client) { int ret; struct lp8860_led *led; @@ -480,7 +479,7 @@ static struct i2c_driver lp8860_driver = { .name = "lp8860", .of_match_table = of_lp8860_leds_match, }, - .probe = lp8860_probe, + .probe_new = lp8860_probe, .remove = lp8860_remove, .id_table = lp8860_id, }; From patchwork Fri Nov 18 22:40: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: 23117 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488086wrr; Fri, 18 Nov 2022 16:44:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf5UIGm5YAqUKO0+EvOufyoF6kG0LTFyV2hON1TR6oG50Hd/GtFqXkTn7KyocWbfoMxSlttj X-Received: by 2002:a17:906:f81:b0:78d:8dfb:10ad with SMTP id q1-20020a1709060f8100b0078d8dfb10admr8257751ejj.289.1668818616567; Fri, 18 Nov 2022 16:43:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818616; cv=none; d=google.com; s=arc-20160816; b=opd1yl3PuZ5K5+6Jqugy26e6ktRYN590UQ/bgTd+iJcVrBw9LwT9VMHuIVgJ7PZh/e RTOknaouWbWT4kyXus8UnICPqY0EEbEiO8ZkadN6hcI5ImDcxvwFyEPKTkXs7dhNyo1D 1GCdgKYkzTI7HbtiN0SFdy0qcA29leM0PL8lQ7V4OfGfsqNIDY3pGMnVdsz9hy4wCjcn NCH/FHmeXR59CUwmIIbNt4eSubGI75Oi84kCoLf94Wt0axJmzAGy+gn6u6yd07av8LgL 8j4XgAXXltwtd2ur3HXUHzgf7cnhOUBTxl/OemnLpPtg9AnRC8oHpFLf5zch1DldUlXJ upkQ== 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=tuVnYtHH5mqQcknFzngtKOBH9NnSXllPmIQkzIbb04Y=; b=HvMUnBGPQfAF40I2zCdpkff0884PEfmUX9spiESxvWAA9N9pAOV1rj8DsenhoBG5l0 WTtVMjklYoeA1D+8tQdyw8U8dks1nH8vsrX5F1KYqQQswYe08w8XQNPQa+7cJxNrvZ0u Nc7iO09uktTbeYeqxC2JmYWQtDcUvVjfk8YksX/ERw8DdZGzoAzfJDkkecgdC1pfnW1v qcrVI+6dwyjjiLVu//ZrbDr/1GCcVzA7aZgoubYbEK7NaP/3i4JHr3SZAGJETrxmPkpm wE6MJ/EfWfMGyxR3CoOdsTC6VF26Z899jGFTm7uIrc0m9WFDsEDKvaF7j/eUUSEYxY4A cBOg== 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 dn8-20020a17090794c800b0078db6f488c2si4581250ejc.56.2022.11.18.16.43.05; Fri, 18 Nov 2022 16:43:36 -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 S235737AbiKSAfr (ORCPT + 99 others); Fri, 18 Nov 2022 19:35:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234130AbiKSAfP (ORCPT ); Fri, 18 Nov 2022 19:35:15 -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 0DFBA8C4B8 for ; Fri, 18 Nov 2022 15:43:07 -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 1owA8h-0002bn-Da; Fri, 18 Nov 2022 23:47:15 +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 1owA8e-0058US-6Z; Fri, 18 Nov 2022 23:47:13 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8e-0000A7-9t; Fri, 18 Nov 2022 23:47:12 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Riku Voipio , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 284/606] leds: pca9532: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:18 +0100 Message-Id: <20221118224540.619276-285-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?1749883149756653583?= X-GMAIL-MSGID: =?utf-8?q?1749883149756653583?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/leds/leds-pca9532.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/leds/leds-pca9532.c b/drivers/leds/leds-pca9532.c index df83d97cb479..15b1acfa442e 100644 --- a/drivers/leds/leds-pca9532.c +++ b/drivers/leds/leds-pca9532.c @@ -50,8 +50,7 @@ struct pca9532_data { u8 psc[2]; }; -static int pca9532_probe(struct i2c_client *client, - const struct i2c_device_id *id); +static int pca9532_probe(struct i2c_client *client); static void pca9532_remove(struct i2c_client *client); enum { @@ -103,7 +102,7 @@ static struct i2c_driver pca9532_driver = { .name = "leds-pca953x", .of_match_table = of_match_ptr(of_pca9532_leds_match), }, - .probe = pca9532_probe, + .probe_new = pca9532_probe, .remove = pca9532_remove, .id_table = pca9532_id, }; @@ -504,9 +503,9 @@ pca9532_of_populate_pdata(struct device *dev, struct device_node *np) return pdata; } -static int pca9532_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int pca9532_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); int devid; struct pca9532_data *data = i2c_get_clientdata(client); struct pca9532_platform_data *pca9532_pdata = From patchwork Fri Nov 18 22:40:19 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: 22981 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476859wrr; Fri, 18 Nov 2022 16:10:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf75V+dCS5RsPnXq74EkJl9WqIeJZa21wMMOzFOUOMA8XiMDjtXt+e5ZGA6CehTRIFBrgyXc X-Received: by 2002:a17:90a:5d0e:b0:202:c5cc:15bd with SMTP id s14-20020a17090a5d0e00b00202c5cc15bdmr16024644pji.235.1668816605639; Fri, 18 Nov 2022 16:10:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816605; cv=none; d=google.com; s=arc-20160816; b=mkCrqqsPk/Ce7nffXpgFnyFkVOt/yl5dcBJABR4/y+PeyMfrgdcotXLwkPG7F9Vd/c wp1D3rbe/P4j7GsuVe/keOxnvDVLBGFDB5c/4xHl/ACS1O2FPGIxW6WUF4/PG+BqHpsj TxgMwmonFF7Clj7nY6E/XtfxEcakN/vY9uBtEU9Z+z8uHuW+lCkPRW3GEEIr/wbxtxJc DgDac+3hMyjckGZifE/7Do/fbGdGUOfPo1xZa0gK7KulUVpd9StMTs45wDoc6DEL/ILT yAdR6LHHtrmSQGw/bDppCT7IadYpHi+nwWzo2lXbCRIkJHSngo/3W3y7QgTOi8UlndSJ 8NZA== 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=S2VO4y3oabCb+vvgj+Z3L1dubHtC7YvMLwKRB27bU0E=; b=w9hiBUgZUWYao0+WAo+D7AbX0sSPqRjOpZxVOhi0MqxPZnBDNwnCqLG04akptBXB6a 0QSsBCSWgyzw/iKvEB7T/LhdhsT19lQVi5tEVI5zY1gxI0uhRrbm33dyjZ7BNVNsg39W oMbjWvorrigJPSbfjaI7NyIg2jpidc5Vu9bObQp7PfJq8FzdN04PYiGQByT4dhsb74Ne m/H1mtREAGPHK1S6p5H42abRRuqnSyO9UfLp7ixy60JYLMmke0QXmxOzzf8WEvTILJxG kF0gaVhGxL+svfdrvCjnhR6hC7+Uv6/LQkOxA85R87T0v+SG8oAJofxqHnrRZCZGlCmx 25hg== 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 b18-20020a17090ae39200b00212cae10683si7841567pjz.69.2022.11.18.16.09.52; Fri, 18 Nov 2022 16:10:05 -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 S237445AbiKSAI1 (ORCPT + 99 others); Fri, 18 Nov 2022 19:08:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237895AbiKSAHy (ORCPT ); Fri, 18 Nov 2022 19:07:54 -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 E128397EDF for ; Fri, 18 Nov 2022 15:32:26 -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 1owA8h-0002cq-Gy; Fri, 18 Nov 2022 23:47:15 +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 1owA8e-0058Ua-KB; Fri, 18 Nov 2022 23:47:13 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8e-0000AB-Gx; Fri, 18 Nov 2022 23:47:12 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 285/606] leds: pca963x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:19 +0100 Message-Id: <20221118224540.619276-286-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?1749881040642244700?= X-GMAIL-MSGID: =?utf-8?q?1749881040642244700?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/leds/leds-pca963x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-pca963x.c b/drivers/leds/leds-pca963x.c index a7e052c1db53..9cd476db601f 100644 --- a/drivers/leds/leds-pca963x.c +++ b/drivers/leds/leds-pca963x.c @@ -389,9 +389,9 @@ static const struct of_device_id of_pca963x_match[] = { }; MODULE_DEVICE_TABLE(of, of_pca963x_match); -static int pca963x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int pca963x_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; struct pca963x_chipdef *chipdef; struct pca963x *chip; @@ -431,7 +431,7 @@ static struct i2c_driver pca963x_driver = { .name = "leds-pca963x", .of_match_table = of_pca963x_match, }, - .probe = pca963x_probe, + .probe_new = pca963x_probe, .id_table = pca963x_id, }; From patchwork Fri Nov 18 22:40:20 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: 23007 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477924wrr; Fri, 18 Nov 2022 16:12:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf4zh8NveC5I18yl2/I3G/lZw32m9LPe/he2Jdx7xDLR4QsFaxwPCi5osvg0qIdF/fiyZYLl X-Received: by 2002:a63:1b62:0:b0:476:a08c:c55 with SMTP id b34-20020a631b62000000b00476a08c0c55mr8571206pgm.334.1668816767617; Fri, 18 Nov 2022 16:12:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816767; cv=none; d=google.com; s=arc-20160816; b=JezFwSxw7e587vUYluww6fkRITyn/YWmBmXvRnwSZLDexQubN8iePd31CDZqLNOwRS JxrflJccu21bJuNDJCISN+7KaDlRfIx6NT9FbwDS+KO36J/ErEyTxOzdeHA5VRw9Bn0m RbKurq4zgko+WYA4xP462lohxRbyu0So9VfzkFkBynA25BdouDNFhLvFTbrb/cUfwMfE mlXYPFORA0yDWML4gr9XmKr2W8z9/5lnwhK13L94rpUuiyLSP9VRjAYDhFxlUHEWg8IG X4h1yNzLAnlLsGc5jdZ70Jhb9HwW4kV/Q/373mmdxobHW7x/KiZhVueiMydslwA9ehbZ VDoQ== 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=/Tp1WlbYoHlFf8yIlJ/x8dxz1wXcDd5oCrZpfbSI0lg=; b=SFfHzE4tlvHh/FMRvF8GpgbCWXrZW9SA/Q6oCXU9OBha/GTe530qS9LeGCSYSh+En/ w12/CxJYgIEGf9bSz/Vy5cRmWdv+KU58YFCWfBC5B+LNLoCGF3W615TNyjsRqs1reZZg gOaJGtL/DkGYC90shtAwSWMO6Ct3E9Oh2oiGynk+uqPTd3efMvwEJI/XVM7lqvhZRe2s d7zz6z8UOtXs/sWPjgwguOPE7BgN9ZXt1yv6IcHz8Shzp3/6qM3pmASb65nJ++TxcPdx 2EBj3HvZJwDr5RLsPd4LeF2aY+PrUY7ie740SN4CJ2PMvBYU9o7gS/NmwnVVLKQ5jLLD KUKQ== 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 sh7-20020a17090b524700b0021870b9d3c7si4299379pjb.45.2022.11.18.16.12.34; Fri, 18 Nov 2022 16:12:47 -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 S237727AbiKSALW (ORCPT + 99 others); Fri, 18 Nov 2022 19:11:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237503AbiKSAKC (ORCPT ); Fri, 18 Nov 2022 19:10:02 -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 9AD1925C7 for ; Fri, 18 Nov 2022 15:33:23 -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 1owA8h-0002cV-DY; Fri, 18 Nov 2022 23:47:15 +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 1owA8e-0058UW-Gb; Fri, 18 Nov 2022 23:47:13 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8e-0000AG-Np; Fri, 18 Nov 2022 23:47:12 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 286/606] leds: tca6507: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:20 +0100 Message-Id: <20221118224540.619276-287-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?1749881210987406115?= X-GMAIL-MSGID: =?utf-8?q?1749881210987406115?= 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/leds/leds-tca6507.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-tca6507.c b/drivers/leds/leds-tca6507.c index 161bef65c6b7..46e76b894651 100644 --- a/drivers/leds/leds-tca6507.c +++ b/drivers/leds/leds-tca6507.c @@ -728,8 +728,7 @@ static const struct of_device_id __maybe_unused of_tca6507_leds_match[] = { }; MODULE_DEVICE_TABLE(of, of_tca6507_leds_match); -static int tca6507_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tca6507_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct i2c_adapter *adapter; @@ -809,7 +808,7 @@ static struct i2c_driver tca6507_driver = { .name = "leds-tca6507", .of_match_table = of_match_ptr(of_tca6507_leds_match), }, - .probe = tca6507_probe, + .probe_new = tca6507_probe, .remove = tca6507_remove, .id_table = tca6507_id, }; From patchwork Fri Nov 18 22:40:21 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: 22705 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462896wrr; Fri, 18 Nov 2022 15:31:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf5QTUaZ8JvbeGfJGL2aCYFUDi22vJkjDtf/SiSYtQgbtYP2FSraQxhT/sRxdTbUeEgJD0j0 X-Received: by 2002:a05:6402:1768:b0:463:ce05:c00e with SMTP id da8-20020a056402176800b00463ce05c00emr8001037edb.46.1668814274104; Fri, 18 Nov 2022 15:31:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814274; cv=none; d=google.com; s=arc-20160816; b=ba/1BXIO2onsZ82hN95MludxvdpgqWzPNp0MWrHCp7Q+P6Vv2zS2pnOjU6Px1ckPQk 8He/sUBNcdblWBuXB1r1dxG8Eoj6HDgGSL9zWf+R/yXdBQjTTqTd4MAk32RtMIl5/lcn Z3pBOZV7Mi8XJ3qYbXnGaHD6bTXt2UkkyrH5+/gT3bDP+OVAmqNkta3yDqfnd1Q5ndC5 ACmq7INE2Uw8CchdgDfHX5Rrs3Th0tIYwsFZf8BTjKDjMrTes4WAxidfVfxzTnQeXj/U COq662hieYvrQvU+u6h8uNw3nGtAfNU9rk7JCHqoVJU93fgAjG8rsoaMN9GCiOTLcbrW X6hw== 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=apma+UImihc8fRHiTUdQ0IF2CC+tFtz+Khf2f3KbPRA=; b=gNGIm0k/gijrTSBtaUkEkOfCcOJ82kU1qhSeKBKtqATEAdbvDwm0y6zxSyv6PeNpPK jcsRtPy5HXO8kNAcL510qIL9w8Gf+2/art9SrJ03Poi5XNYwQrPoahT6A6KVY0M9CAjO 3qdzOX6mnisYBYe4dIOPGjLhOrLFqwYVhDcSh0bO2KOAyRsS35Onp3FEM0EoxOe90un8 ivShm0aST3RSouG4dlsDp31Er9bB2Vzw1QZy02tec8Q5eENWtnYG4Pk6svKMhBnKkErK uW0nQO3MUdQ0U6sxWuHrrCAD0Cfz4YvYWp9U+xNPXT8M1IFHOzFych1hhb1gVIwvpaZA gjsw== 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 h12-20020a05640250cc00b004537a3c4982si4949489edb.601.2022.11.18.15.30.50; Fri, 18 Nov 2022 15:31:14 -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 S235945AbiKRXaO (ORCPT + 99 others); Fri, 18 Nov 2022 18:30:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235580AbiKRX3M (ORCPT ); Fri, 18 Nov 2022 18:29:12 -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 CA3DD711AC for ; Fri, 18 Nov 2022 15:17:10 -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 1owA8g-0002dC-KU; Fri, 18 Nov 2022 23:47:14 +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 1owA8e-0058Ue-PL; Fri, 18 Nov 2022 23:47:13 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8e-0000AL-Vs; Fri, 18 Nov 2022 23:47:13 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 287/606] leds: tlc591xx: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:21 +0100 Message-Id: <20221118224540.619276-288-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?1749878596585153026?= X-GMAIL-MSGID: =?utf-8?q?1749878596585153026?= 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/leds/leds-tlc591xx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-tlc591xx.c b/drivers/leds/leds-tlc591xx.c index cb7bd1353f9f..ec25e0c16bea 100644 --- a/drivers/leds/leds-tlc591xx.c +++ b/drivers/leds/leds-tlc591xx.c @@ -145,8 +145,7 @@ static const struct of_device_id of_tlc591xx_leds_match[] = { MODULE_DEVICE_TABLE(of, of_tlc591xx_leds_match); static int -tlc591xx_probe(struct i2c_client *client, - const struct i2c_device_id *id) +tlc591xx_probe(struct i2c_client *client) { struct device_node *np, *child; struct device *dev = &client->dev; @@ -231,7 +230,7 @@ static struct i2c_driver tlc591xx_driver = { .name = "tlc591xx", .of_match_table = of_match_ptr(of_tlc591xx_leds_match), }, - .probe = tlc591xx_probe, + .probe_new = tlc591xx_probe, .id_table = tlc591xx_id, }; From patchwork Fri Nov 18 22:40:22 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: 22850 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471978wrr; Fri, 18 Nov 2022 15:58:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf4LJ+VkzlzT3QFwchcRi1+7/tkmuF+QzINS9h681dMVHo0w6EHZgwTR5rngfnjbQ7yQOTNT X-Received: by 2002:a05:6402:e8c:b0:468:89dd:aa0b with SMTP id h12-20020a0564020e8c00b0046889ddaa0bmr8183324eda.258.1668815937063; Fri, 18 Nov 2022 15:58:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815937; cv=none; d=google.com; s=arc-20160816; b=nCttWLBY6woaQMrBZcfuapdNBrgkC8udZvCwUHohzV0Vn9iLA/BFYZcdlTx4rLRQvE 7kx5TVH+SmHYQb+GPc/yTmql6Z9conI5ezZYOFUTz3jnlOLQWfXSN2mWOyEWEZfseGve EIOBZDxzc5k4fTu1DG1BitgpsgrrwBSckWC3l5oM8VGe1djeNPkkP4+RT+l/4fJUrdNC FfOQRJIS6BPdTL9TsPWyg5rUOalqdv6fERbaeVKrEUZmmc8MmW9tBsb69ZJKQRsP2FJU fPZ1LmB5ZcQhceeH/Huq58kaCfZ5RvYyQ+EnoNDfqC8brc/J/dCfjLdzRD59vu/mOTK3 pz9g== 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=8DvIalviL67kfDbhBARDkTzSpAK7t2v0iGPoRh1qZ5Q=; b=PJD78ti6dhac3f5diepusiABfCb4kHnLph4eeZLUlYhJD1Mhyx8veQ8psyGMOOAEE5 VvXGXyZP/Pk4KAs3CEMBGrRMC+Cw+ciaE9gl7GuE3ZyzkAl2YshvXqzHyQBnQxvt2URG lUPGdQFlMBT/6eNmr7+c+e+Y2euT/jEVpTojUVEEsnXR6VaR/WNrM7DZte73G8bGuPbQ g5kmMMwXe+LJXNyGkGMn1zcpZjCPVLqAF6rwMrl9JD0wslKaSEKhhlwsVvkm0Do/AruT A+VPQojBGSX6Z/2H1K6eBws4RbToAT2uBGgMN4ED8A4j8AeNvGgf3CaJLNEL4ahtkqdM JspA== 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 nb22-20020a1709071c9600b007815a44de91si4702714ejc.771.2022.11.18.15.58.32; Fri, 18 Nov 2022 15:58:57 -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 S236859AbiKRXth (ORCPT + 99 others); Fri, 18 Nov 2022 18:49:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236832AbiKRXsm (ORCPT ); Fri, 18 Nov 2022 18:48:42 -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 1E767E9338 for ; Fri, 18 Nov 2022 15:26:24 -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 1owA8h-0002dW-JH; Fri, 18 Nov 2022 23:47:15 +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 1owA8e-0058Ui-Tx; Fri, 18 Nov 2022 23:47:13 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8f-0000AO-6u; Fri, 18 Nov 2022 23:47:13 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , =?utf-8?q?Marek_Beh=C3=BAn?= , Pavel Machek Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 288/606] leds: turris-omnia: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:22 +0100 Message-Id: <20221118224540.619276-289-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?1749880340198964670?= X-GMAIL-MSGID: =?utf-8?q?1749880340198964670?= 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 Reviewed-by: Marek Behún --- drivers/leds/leds-turris-omnia.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-turris-omnia.c b/drivers/leds/leds-turris-omnia.c index c7c9851c894a..013f551b32b2 100644 --- a/drivers/leds/leds-turris-omnia.c +++ b/drivers/leds/leds-turris-omnia.c @@ -201,8 +201,7 @@ static struct attribute *omnia_led_controller_attrs[] = { }; ATTRIBUTE_GROUPS(omnia_led_controller); -static int omnia_leds_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int omnia_leds_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct device_node *np = dev_of_node(dev), *child; @@ -272,7 +271,7 @@ static const struct i2c_device_id omnia_id[] = { MODULE_DEVICE_TABLE(i2c, omnia_id); static struct i2c_driver omnia_leds_driver = { - .probe = omnia_leds_probe, + .probe_new = omnia_leds_probe, .remove = omnia_leds_remove, .id_table = omnia_id, .driver = { From patchwork Fri Nov 18 22:40:23 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: 23040 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp484669wrr; Fri, 18 Nov 2022 16:34:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf41U2MV2luzpXy9H4u91Fc7DK+EKaLxXgUqFHVtWyFipSDLuRSllYos0/uMl1Zk/axVDdwx X-Received: by 2002:aa7:d358:0:b0:467:6847:1ea7 with SMTP id m24-20020aa7d358000000b0046768471ea7mr8115660edr.237.1668818044515; Fri, 18 Nov 2022 16:34:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818044; cv=none; d=google.com; s=arc-20160816; b=f3Rc8WMAjkyQGrJN/ji1mMVV12WDo6wM8lBNkdffI8m9mjQdsOegTlEHCN0vZOyKmz QHxxzNRMhliz9OV4neKqoai2/IY7hqKdyRno2y7G2IMqTkmxTQrmHCuMuRcJIo7KlUas fvZCX+Gt0oaYawKwqJJIBZPRLwsPbtMAiVthRfOHeYBFCK6L8mOf9hJ+kX1mqWYxe+QX AykBBsaUrImmFBG2s5cAFoxIeaiVpKgZ5/QOZkMIEpRccr2E649tOFnbmiJ8Dp6gWl+6 xlF22c/kLKuhoZ1xDPvCTEqBsqFviOw+W9urhzUKbUodheQujF4M9fV4VOrFMNxmX+8R rrFw== 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=jIza/JiEbIgiuo0juW0aRSKBN7E635TDcKPNMd3yb2A=; b=x6MIvY0vm0n7gN43cNCASvmRYJyjN/lRBIWJ/Z1EjqhVN4qR1hU3UhQn2cwBwG0T3v yEkN0FCGFOD1ph08rTDf+tO9Na+R1c14VIU/2Z69D+CADPcbCfSHBvdevb0rox0i9K+3 wx2e35O+i1YAS7QgT9diOpbq5RL/lm5Q+JWglYSwqtvnof0L737D5ou1nUVVzabgalzA Da3rfpkyekxjwLWwBAT0m8ZywHG5NaZVfnTi8rj0fcitxF+j4AqT7BdjBr7wsi4ZkM8X Z7N535X4ni4lsUGdkRWb7cOVJ0QGWOwCDRPJ7I3Zp45nKY55IuSwalPpDnIN5RZIla/L A3oQ== 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 pj17-20020a170906d79100b007a45e4f4ff0si982971ejb.885.2022.11.18.16.33.36; Fri, 18 Nov 2022 16:34:04 -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 S237846AbiKSATh (ORCPT + 99 others); Fri, 18 Nov 2022 19:19:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237839AbiKSATI (ORCPT ); Fri, 18 Nov 2022 19:19:08 -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 A1FA1FC702 for ; Fri, 18 Nov 2022 15:36:14 -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 1owA8n-0002eo-9u; Fri, 18 Nov 2022 23:47:21 +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 1owA8f-0058Up-Cw; Fri, 18 Nov 2022 23:47:14 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8f-0000AS-GR; Fri, 18 Nov 2022 23:47:13 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Benjamin Herrenschmidt , Michael Ellerman , Christophe Leroy , Dmitry Torokhov , Minghao Chi Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 289/606] macintosh: ams/ams-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:23 +0100 Message-Id: <20221118224540.619276-290-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?1749882550221304210?= X-GMAIL-MSGID: =?utf-8?q?1749882550221304210?= 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/macintosh/ams/ams-i2c.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/macintosh/ams/ams-i2c.c b/drivers/macintosh/ams/ams-i2c.c index 3ded340699fb..a4a1035eb412 100644 --- a/drivers/macintosh/ams/ams-i2c.c +++ b/drivers/macintosh/ams/ams-i2c.c @@ -56,8 +56,7 @@ enum ams_i2c_cmd { AMS_CMD_START, }; -static int ams_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id); +static int ams_i2c_probe(struct i2c_client *client); static void ams_i2c_remove(struct i2c_client *client); static const struct i2c_device_id ams_id[] = { @@ -70,7 +69,7 @@ static struct i2c_driver ams_i2c_driver = { .driver = { .name = "ams", }, - .probe = ams_i2c_probe, + .probe_new = ams_i2c_probe, .remove = ams_i2c_remove, .id_table = ams_id, }; @@ -155,8 +154,7 @@ static void ams_i2c_get_xyz(s8 *x, s8 *y, s8 *z) *z = ams_i2c_read(AMS_DATAZ); } -static int ams_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ams_i2c_probe(struct i2c_client *client) { int vmaj, vmin; int result; From patchwork Fri Nov 18 22:40:24 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: 22679 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp461630wrr; Fri, 18 Nov 2022 15:27:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf5qbit5cqP9k7ZLfgY9S8fiLaj9fZBztvT6CO6RZgq/jeGBevaD62i9hKG53a7XSohofJff X-Received: by 2002:a17:907:8c8e:b0:78d:4167:cf08 with SMTP id td14-20020a1709078c8e00b0078d4167cf08mr7796417ejc.337.1668814061575; Fri, 18 Nov 2022 15:27:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814061; cv=none; d=google.com; s=arc-20160816; b=b9d10lfY5OWGtugSX0N0XqVPV3bReRhpYtEO9IoFz2udOrkXNAN1qC5nNuR5nB6VJn a+1IuV22/NYhK+4IgMnVv/Y1ZaQZGEtWnCXsuEWbpzVr56bamgzUhW/+EDH3GV5bwbUO 02KB/PSMT+QMjuLn7Ai1ajU0YOhrDh722AzMm/AZqdQhCeaZHtGOng/igTjFoMibhLxf MtmptgFT6PHVA/lP9X/0HTrU/ALQx0/ygU+9DDtigWM1P/nOZl8ys1lSYH+WWmpNbxq4 efwUgKw5ci2TY97V7kNEn2sNXRg3vZvpSLc6TBw7XTpowx87ohSpksZ2VjnI48j3LyBX 73eg== 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=bWyRQj/Y6sZAZJNp9/zHIcqaDX5o3d1QAHUKhr07kt0=; b=a3wvevSdyF4Ii4DuShwwha7aFDW5sbJMT4BCuH8ra5rvuinHjRerLuAMuFF8zWUKKG j7bjNQ+0W1BbRfN1N96Ll8IjWS09iaZ6vt3GIIM6CGcAWNVITdR3ZM+BXTtCWfMRTP0W dYS6stEdq+SiCtbhQeBrhc4gT9SPAnNKvnS4oMmEzshOXEIPStSXMvEVHVSP73V7NxVN 8QdH1Fu0Gx4VwZ5NAR+aJW2aNk1ulhf1MIGnTvG7V8y3PTvjHTihDp6PMDNgEfOrOwCN Xzdj0ydFViUNWmSCpxsO41zfMg7ObfROeJruirJRC2v892kjt/Jb6mBax1CfmFXUUzUl s9+Q== 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 ae6-20020a17090725c600b007309a570223si413740ejc.609.2022.11.18.15.27.17; Fri, 18 Nov 2022 15:27:41 -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 S235642AbiKRX0T (ORCPT + 99 others); Fri, 18 Nov 2022 18:26:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231259AbiKRXYU (ORCPT ); Fri, 18 Nov 2022 18:24:20 -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 EA7EB7FF12 for ; Fri, 18 Nov 2022 15:14:22 -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 1owA8j-0002gY-TA; Fri, 18 Nov 2022 23:47:17 +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 1owA8g-0058V6-3M; Fri, 18 Nov 2022 23:47:15 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8f-0000AX-Nb; Fri, 18 Nov 2022 23:47:13 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Colin Leroy , Benjamin Herrenschmidt Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 290/606] macintosh: therm_adt746x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:24 +0100 Message-Id: <20221118224540.619276-291-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?1749878373035737082?= X-GMAIL-MSGID: =?utf-8?q?1749878373035737082?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/macintosh/therm_adt746x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/macintosh/therm_adt746x.c b/drivers/macintosh/therm_adt746x.c index b004ea2a1102..8f5db9093c9a 100644 --- a/drivers/macintosh/therm_adt746x.c +++ b/drivers/macintosh/therm_adt746x.c @@ -464,9 +464,9 @@ static void thermostat_remove_files(struct thermostat *th) } -static int probe_thermostat(struct i2c_client *client, - const struct i2c_device_id *id) +static int probe_thermostat(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device_node *np = client->dev.of_node; struct thermostat* th; const __be32 *prop; @@ -598,7 +598,7 @@ static struct i2c_driver thermostat_driver = { .driver = { .name = "therm_adt746x", }, - .probe = probe_thermostat, + .probe_new = probe_thermostat, .remove = remove_thermostat, .id_table = therm_adt746x_id, }; From patchwork Fri Nov 18 22:40:25 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: 22852 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471997wrr; Fri, 18 Nov 2022 15:58:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf5x0+i1slH7sboctTawMybQauhUnaXDn2Xad7cgRLle6XkmAp8mY9inSbELw3BFP1knzJUF X-Received: by 2002:a05:6a00:194a:b0:56b:a795:e99c with SMTP id s10-20020a056a00194a00b0056ba795e99cmr10254504pfk.14.1668815938700; Fri, 18 Nov 2022 15:58:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815938; cv=none; d=google.com; s=arc-20160816; b=F0cVVz4tyYhxPaoBMCsA5CDWLNadHvLMmjA8YNyFzgVP10a4zymocsELb+q2gWxd6N LQ8JCZnJc67bOII90NKIQuKQm0uuj5wo1wutQP5xJZzZHtzWQMabsdU+IuUXy8SxPXqF CjQ3ANMZmyaUm9YX+TStn3PXfL6eB8cKa8NzWEfqGGs0xJmP2MrhI8knMMq0zSFsjWZV ka/ezsh1ue+P9V3GhMkVuIAt/Kxjt7Wz+DZoPDNxswV2Ak2Y6bX5VP4n/BljQUkPeQF/ cdqIVZHGvbVW5a+6KTJDrz3BXxIXp9fkvsNKxxMkimyzqX6KynbGts10jNrQ/jeZz5pR bHuw== 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=e+/kQwyjJqLwG6vSRXWeTucLts2FLDpCNBptu9hDzNI=; b=yPJpuAswDw8q0pgmt43jXpxWhwgrGw55ZO0cbfQUZ/H3bLhPOmJjuFYAp0hwsfbhAO th6iPTZ4nfcz75hLYRTbzNPst2M1DfIKuVCF7nJS3RScHJvORACIKJdEjxR9aN9cp2On E75whEoFWFELov5x0lvoF54/3HtJjgAibUDZuQR+akzgNH/WPg5Cj7J+XOOe5A9tzYPq Gd/KES+p1y77znIExrRg0wsNpqPcmGKjFThItMfqlNQUPh8UkBxH4MMgBAxiKTdwwLAm eJZRswp8IdIJ9OGOofdTk7snMUygAd3ZApzcsDo0F/h9OzUnBRRkj4xzkXIqaeiTRdrA imgA== 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 k63-20020a636f42000000b00476e764abf7si4898614pgc.201.2022.11.18.15.58.45; Fri, 18 Nov 2022 15:58:58 -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 S234439AbiKRXvK (ORCPT + 99 others); Fri, 18 Nov 2022 18:51:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234291AbiKRXuL (ORCPT ); Fri, 18 Nov 2022 18:50:11 -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 E6948C6604 for ; Fri, 18 Nov 2022 15:26:42 -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 1owA8n-0002g4-Er; Fri, 18 Nov 2022 23:47:21 +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 1owA8f-0058Uz-U9; Fri, 18 Nov 2022 23:47:14 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8f-0000Ac-VJ; Fri, 18 Nov 2022 23:47:13 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Benjamin Herrenschmidt , Michael Ellerman , Wolfram Sang , Ajay Gupta , Srinivas Pandruvada , Liang He , Christophe Leroy Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 291/606] macintosh: therm_windtunnel: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:25 +0100 Message-Id: <20221118224540.619276-292-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?1749880341748697116?= X-GMAIL-MSGID: =?utf-8?q?1749880341748697116?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/macintosh/therm_windtunnel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/macintosh/therm_windtunnel.c b/drivers/macintosh/therm_windtunnel.c index b8228ca40454..22b15efcc025 100644 --- a/drivers/macintosh/therm_windtunnel.c +++ b/drivers/macintosh/therm_windtunnel.c @@ -411,8 +411,9 @@ static const struct i2c_device_id therm_windtunnel_id[] = { MODULE_DEVICE_TABLE(i2c, therm_windtunnel_id); static int -do_probe(struct i2c_client *cl, const struct i2c_device_id *id) +do_probe(struct i2c_client *cl) { + const struct i2c_device_id *id = i2c_client_get_device_id(cl); struct i2c_adapter *adapter = cl->adapter; int ret = 0; @@ -441,7 +442,7 @@ static struct i2c_driver g4fan_driver = { .driver = { .name = "therm_windtunnel", }, - .probe = do_probe, + .probe_new = do_probe, .remove = do_remove, .id_table = therm_windtunnel_id, }; From patchwork Fri Nov 18 22:40:26 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: 22970 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476439wrr; Fri, 18 Nov 2022 16:09:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf60ZsG0Z05yoyFGpWjZSlDBHXLL2Wbqkz1x5gP/KBrB9hCnM57lofALYjc4/Kp3CytT5DOd X-Received: by 2002:a05:6402:910:b0:468:74:9668 with SMTP id g16-20020a056402091000b0046800749668mr1749469edz.394.1668816544042; Fri, 18 Nov 2022 16:09:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816544; cv=none; d=google.com; s=arc-20160816; b=CfcSS0B5WZsJnxVNsog1n853EntqGJlfwTGf9iAdUhkky8vwuLT5N6gsKLJ00L4eLc N7GuUY8+fxbjlmk55RM7KybW+Q3TgQrf4gh1KZ4H6cYJAudpmfV5TiubFLU+nfDMiEDT sbSPhUuDX+Y7HzGJXF1B1VP3GqzyGV50zq76x0lSMgQGbcMuqikTXkAt8drcqmRpKQ9m ZDHHsqQYCjlLYoIlLb6b6fQZHV6EzTH8BZDvU96x6+E9JyeTBflyaKAKshGzLrDyShPh ruFCnJO+DxOaMsjbGm+yV1ZbEE5YghZGxTxcL5dO29UpsEHnKaqByf2rLaEOpajWmyBg 1gXA== 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=JYaL6AwKD8Nl4CN/VroIfLkyUOoxRA/jm0wiRSR0ytI=; b=dpyXpiRix5enPFc/fO/pHlEvFbv+MBxOj6PXx0FQFDgQjK9SnAiUGWoOF/OYwpvYtZ 76MUzmV0yd8v/6hk/Hic+Lj6I16T2gL5iHKlm9fAO4NB/Pi7CQC1xAnrKK+RoGM9DePF Ur2oNqvUB8hG4xhmjb6Jj6hzzS86qxfRZ0fnMdQeHdji3BM4Lc6kjaxyEPuQnCs+YEr1 WmXHmGof61IYo83NStXSxf/2W65jtDQGhSs9jFhHdBSGf3ejacwdXSKhh/YmT2LGYFa9 mFSDNPEPOr2U3ZM896Ee8jCM+JuSS1Jw6lAXzjzzo+dJc/MiO645mkIMvYBPxfsnXyax v8aQ== 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 y14-20020a056402170e00b0045d5b83114esi4113148edu.112.2022.11.18.16.08.36; Fri, 18 Nov 2022 16:09:04 -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 S237355AbiKSAEO (ORCPT + 99 others); Fri, 18 Nov 2022 19:04:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237772AbiKSADN (ORCPT ); Fri, 18 Nov 2022 19:03:13 -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 C76C5CFB9C for ; Fri, 18 Nov 2022 15:30:32 -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 1owA8j-0002fz-Ty; Fri, 18 Nov 2022 23:47:17 +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 1owA8f-0058Ux-Ss; Fri, 18 Nov 2022 23:47:14 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8g-0000Af-5Z; Fri, 18 Nov 2022 23:47:14 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Benjamin Herrenschmidt , Adrien Grassein , Jeremy Kerr , Miguel Ojeda , Luca Ceresoli , Christophe Leroy Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 292/606] macintosh: windfarm_ad7417_sensor: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:26 +0100 Message-Id: <20221118224540.619276-293-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?1749880976644924228?= X-GMAIL-MSGID: =?utf-8?q?1749880976644924228?= 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/macintosh/windfarm_ad7417_sensor.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/macintosh/windfarm_ad7417_sensor.c b/drivers/macintosh/windfarm_ad7417_sensor.c index c5c54a4ce91f..33b4723d235e 100644 --- a/drivers/macintosh/windfarm_ad7417_sensor.c +++ b/drivers/macintosh/windfarm_ad7417_sensor.c @@ -229,8 +229,7 @@ static void wf_ad7417_init_chip(struct wf_ad7417_priv *pv) pv->config = config; } -static int wf_ad7417_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int wf_ad7417_probe(struct i2c_client *client) { struct wf_ad7417_priv *pv; const struct mpu_data *mpu; @@ -321,7 +320,7 @@ static struct i2c_driver wf_ad7417_driver = { .name = "wf_ad7417", .of_match_table = wf_ad7417_of_id, }, - .probe = wf_ad7417_probe, + .probe_new = wf_ad7417_probe, .remove = wf_ad7417_remove, .id_table = wf_ad7417_id, }; From patchwork Fri Nov 18 22:40:27 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: 23037 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp480370wrr; Fri, 18 Nov 2022 16:20:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf5JkTR+bKV9udV0I63DGKPBTJIbqMdqj3Nj+BJ5iYsbuxdYRDy+oLpy6y8IaFIIyRB+sM+e X-Received: by 2002:a17:906:190c:b0:7ae:c1b2:d912 with SMTP id a12-20020a170906190c00b007aec1b2d912mr7503000eje.577.1668817203127; Fri, 18 Nov 2022 16:20:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668817203; cv=none; d=google.com; s=arc-20160816; b=iI63pxfV0SLZzywzfcyXae2Ka6Mmfww3cMVHVK6b+NKFcU52/BzTAsGFHB6N9ZYkDx yTvIK3Qn7Rw35O16BGuXxUZOVrbhGzLXTX7Mv2ra2JRHVVX+SCEYUZ914ZEiqDgh/p5R ifDglx1zhyvEmhwb1ZSJ6gHAGyHTvf89CEpcFypIbt3AgSfukPRnb/hyv1ALw8eVQbVh N32VUY9Hs+uIVtaN8uOt4X5tF0+BNFMTlZkI7u/oEU2AEocqMWvA6lfSIBBA4RqtrDYU JjhZE4yFRNf8WrfDUD08RIFFKLdTmmNrGWahLQMW/3K/rnF4LxxQUqVNIiB7AngAqV5K +uKA== 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=MMSqNxvOY6VPWcdc/pL+ev7WAVUnS1cUuHdoBcihy4A=; b=yc44yYFMuZtzP5aDBkeA2AyKPwuI4Aey9YaFWJMUSbfKlZnAfXVQ2IvGy1Te2r1Oj4 CT8VM9F9zhH1nkUBwtBvYCgyo0hyVXNW43ozPPYeq13dFZscWpG+kFHWM7HqVNVP6C4g 44OX9okhBdjo1buhos45LER1xz4r//F/wHxesfV7M4TDAOiETrxSZ0SBS+yDgwuU1EWo 7Otu3p3jKBQwxUtlysxC/t3gvhS2pzegg/WzcwmxWJqBWnY4kk8WpNSKICoLLFFL0uNs pugF52uB1KqFym2IeOv+zXa+5QBkMkLvIYMoBErok/JF7aRNOwHDzk0kfTFwKIB8Bv8T JePQ== 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 p13-20020a05640210cd00b00461a144e981si3654374edu.356.2022.11.18.16.19.39; Fri, 18 Nov 2022 16:20:03 -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 S237666AbiKSASl (ORCPT + 99 others); Fri, 18 Nov 2022 19:18:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234050AbiKSAQs (ORCPT ); Fri, 18 Nov 2022 19:16: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 7B116B7004 for ; Fri, 18 Nov 2022 15:35:36 -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 1owA8j-0002hB-Tz; Fri, 18 Nov 2022 23:47:17 +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 1owA8g-0058VA-An; Fri, 18 Nov 2022 23:47:15 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8g-0000Aj-Fv; Fri, 18 Nov 2022 23:47:14 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Benjamin Herrenschmidt , Petr Machata , Peter Rosin , Crt Mori , Christophe Leroy Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 293/606] macintosh: windfarm_fcu_controls: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:27 +0100 Message-Id: <20221118224540.619276-294-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?1749881667413388803?= X-GMAIL-MSGID: =?utf-8?q?1749881667413388803?= 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/macintosh/windfarm_fcu_controls.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/macintosh/windfarm_fcu_controls.c b/drivers/macintosh/windfarm_fcu_controls.c index c5b1ca5bcd73..e027d889d7e8 100644 --- a/drivers/macintosh/windfarm_fcu_controls.c +++ b/drivers/macintosh/windfarm_fcu_controls.c @@ -514,8 +514,7 @@ static int wf_fcu_init_chip(struct wf_fcu_priv *pv) return 0; } -static int wf_fcu_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int wf_fcu_probe(struct i2c_client *client) { struct wf_fcu_priv *pv; @@ -590,7 +589,7 @@ static struct i2c_driver wf_fcu_driver = { .name = "wf_fcu", .of_match_table = wf_fcu_of_id, }, - .probe = wf_fcu_probe, + .probe_new = wf_fcu_probe, .remove = wf_fcu_remove, .id_table = wf_fcu_id, }; From patchwork Fri Nov 18 22:40:28 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: 22959 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp475181wrr; Fri, 18 Nov 2022 16:05:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf6yu63AZAkb7dL34eAhe71SF2z0GEhbVFwdQuhCnWzVYaI+c2STOmff7etAQW1UluG2Yr0K X-Received: by 2002:a05:6402:2887:b0:460:f0c0:f9c8 with SMTP id eg7-20020a056402288700b00460f0c0f9c8mr8283113edb.181.1668816348871; Fri, 18 Nov 2022 16:05:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816348; cv=none; d=google.com; s=arc-20160816; b=lCVJSuo7VxrFAg38xyOsMEA4bHFbI328J++nTAZQowwQa4k+bl6VDZ4y1+ox/+YirA HRcTgjs0q7kKj8Zs2HSeL3SLu9zdfVHZwyZK4veuftMXvI1XXYVZY1xzQUKSLXtoTX/c QOoD/IVuI6y3pipNeIVTF0PnR33iGr3BqV7SbrYN4ijTC3ODXmFX2v3azsr65AtTfQcr i/kzHT/aaWcmUYSoWZPQPkPQ5+6MJz6oB616PAHImOs+O6JEvghHoT8f4ZTz7Qyohd6c ia1g2dBQW0A+qunCUYCCE5u2z5rNxGIvTIAWgsb9BvmWX7hXPbBbGswkxMW/ege0EW3s S1Mg== 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=LcopH5Qwl5LmIIH2M6lL4t0/FisACA9p25ztRADhqEc=; b=cgJKssOfsRx6Yml+64YVbxhu5ljqrDHm00tDoYtgReFwTW/wfbqtIrzlaUMLJk6hZv 2KH6VQKRq0YIctgL/SL2GabpdVxohczzWegtXQJBTPA96yHL4wHYuOo9FwqYPKFakoXO yaOa5ZbQz++1BzBPedsx3N9SuwLHNp5bm84OzmFRcBeURyoOq8DyUMq6izRijXoww1tq t2IZKCAUMYyN4q94wdKuZV5YeASYaoP5qwwNP6HutuHwH3H0f8nFgu/oZyRbzr38cCEy fNU05wy/WuwNszJfEm+KLMuW5SkZA3TZA8nxTmRU8IQ0eTS1sQJYqPwhy6g9EscxGwAA 6+kw== 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 dd16-20020a1709069b9000b0078e2d2d1a67si4186795ejc.344.2022.11.18.16.05.24; Fri, 18 Nov 2022 16:05:48 -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 S237366AbiKSABY (ORCPT + 99 others); Fri, 18 Nov 2022 19:01:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235022AbiKRX64 (ORCPT ); Fri, 18 Nov 2022 18:58:56 -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 D6FAB776EA for ; Fri, 18 Nov 2022 15:29:27 -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 1owA8j-0002hs-Ty; Fri, 18 Nov 2022 23:47:17 +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 1owA8g-0058VG-Kx; Fri, 18 Nov 2022 23:47:15 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8g-0000Am-Mn; Fri, 18 Nov 2022 23:47:14 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Benjamin Herrenschmidt , Miguel Ojeda , Vladimir Oltean , Petr Machata , Hans Verkuil , Christophe Leroy Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 294/606] macintosh: windfarm_lm75_sensor: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:28 +0100 Message-Id: <20221118224540.619276-295-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?1749880772049903965?= X-GMAIL-MSGID: =?utf-8?q?1749880772049903965?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/macintosh/windfarm_lm75_sensor.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/macintosh/windfarm_lm75_sensor.c b/drivers/macintosh/windfarm_lm75_sensor.c index 204661c8e918..24f0a444d312 100644 --- a/drivers/macintosh/windfarm_lm75_sensor.c +++ b/drivers/macintosh/windfarm_lm75_sensor.c @@ -87,9 +87,9 @@ static const struct wf_sensor_ops wf_lm75_ops = { .owner = THIS_MODULE, }; -static int wf_lm75_probe(struct i2c_client *client, - const struct i2c_device_id *id) -{ +static int wf_lm75_probe(struct i2c_client *client) +{ + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct wf_lm75_sensor *lm; int rc, ds1775; const char *name, *loc; @@ -177,7 +177,7 @@ static struct i2c_driver wf_lm75_driver = { .name = "wf_lm75", .of_match_table = wf_lm75_of_id, }, - .probe = wf_lm75_probe, + .probe_new = wf_lm75_probe, .remove = wf_lm75_remove, .id_table = wf_lm75_id, }; From patchwork Fri Nov 18 22:40: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: 22915 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472939wrr; Fri, 18 Nov 2022 16:01:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf4TJegGy/wp5VyHa0PtXm/YFRPguGZbHRyUpexG2X6lkwvwjLSmhwCZjvz892V1ef9ejDOq X-Received: by 2002:aa7:d1cc:0:b0:468:f964:372e with SMTP id g12-20020aa7d1cc000000b00468f964372emr6330220edp.326.1668816070674; Fri, 18 Nov 2022 16:01:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816070; cv=none; d=google.com; s=arc-20160816; b=oj76iXRm4HzvRJeN/B3k4GhHSxKSrhPVQ3IopOzlaS5FczNAQdHoWYhZux9m58ZVvq UI7MUA0C6vPeJ7eOIt5YDu7gGkrAQc6yt44N2/yd97OTGp9J9MiJaURO3YGKc2YS3SRT jwRL6aGaewafJ9c5WIsOZvDyxv+uhQ9GVutv5JpkwHjF0NGnm4+StdJwGZatxXMYf0vU wd80sqgFOCNIgvlAtPAX8WTSmSZncUsq59aRZ+HCjDJI3CLTXpgr5QGK1Xxe52SteNEF Za71aOb2MAQ4lSx8hrdm8JcRpBk9y4EbT+KMHj3bhKjHc2DR34QadDQW8+DMdtOzd/zv 11Gw== 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=ge49tJqsO7K0jmBE/HJ3khmhsD9eSzCXJGTvrbGfbRI=; b=uW7r0Y2eKVuyipiTCbFfHHtw/Jl105fCgBaS99dxA3elEjLYuDOYL5UP0NTecnnl9Z hNaGrRzgyyl+/Ugrohx2jx8c6dDfmddZu5S/qALEX0Hz4sdBIGybc19fBU8eHSZCdvxx wSbt6QcSNSQH7KXl2HxP5Hv+z7Sjss91PB0zKOJgNKlv3XFwcZ67VtPjDs4u1aFU6cK4 dpbuB/cakaHkfjt4sRzVT+MHX3uCmqzVOXNVGqCIkZ5F33Ba3ovLYVMzC0LVL/WES7o4 dPLWzu/iIBPtNjOfi7vTK7eTnaVeKzFPA5ZUWHW8XhUG4fAtT/AeOiPHkegTauFP5ISE YFJg== 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 a27-20020a170906191b00b007adadfc97c7si3608084eje.918.2022.11.18.16.00.46; Fri, 18 Nov 2022 16:01:10 -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 S236880AbiKRXtE (ORCPT + 99 others); Fri, 18 Nov 2022 18:49:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237333AbiKRXsA (ORCPT ); Fri, 18 Nov 2022 18:48:00 -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 6EC38E9309 for ; Fri, 18 Nov 2022 15:26:17 -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 1owA8k-0002j0-BZ; Fri, 18 Nov 2022 23:47:18 +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-0058VN-6C; Fri, 18 Nov 2022 23:47:16 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8g-0000Aq-Tx; Fri, 18 Nov 2022 23:47:14 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Benjamin Herrenschmidt , Jonathan Cameron , Adrien Grassein , Jeremy Kerr , Benjamin Mugnier , Christophe Leroy Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 295/606] macintosh: windfarm_lm87_sensor: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:29 +0100 Message-Id: <20221118224540.619276-296-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?1749880480267185453?= X-GMAIL-MSGID: =?utf-8?q?1749880480267185453?= 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/macintosh/windfarm_lm87_sensor.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/macintosh/windfarm_lm87_sensor.c b/drivers/macintosh/windfarm_lm87_sensor.c index 40d25463346e..f37a32c2070c 100644 --- a/drivers/macintosh/windfarm_lm87_sensor.c +++ b/drivers/macintosh/windfarm_lm87_sensor.c @@ -95,8 +95,7 @@ static const struct wf_sensor_ops wf_lm87_ops = { .owner = THIS_MODULE, }; -static int wf_lm87_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int wf_lm87_probe(struct i2c_client *client) { struct wf_lm87_sensor *lm; const char *name = NULL, *loc; @@ -173,7 +172,7 @@ static struct i2c_driver wf_lm87_driver = { .name = "wf_lm87", .of_match_table = wf_lm87_of_id, }, - .probe = wf_lm87_probe, + .probe_new = wf_lm87_probe, .remove = wf_lm87_remove, .id_table = wf_lm87_id, }; From patchwork Fri Nov 18 22:40:30 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: 22948 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474905wrr; Fri, 18 Nov 2022 16:05:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf5oXh9PzSsGtUL4+fwHdCWtQJAg8yPIgGu1GUBtBwJ9p/pSBEERsHV5V24xRN7Qw5/9aPXD X-Received: by 2002:aa7:cd74:0:b0:462:3340:757b with SMTP id ca20-20020aa7cd74000000b004623340757bmr7999391edb.308.1668816314882; Fri, 18 Nov 2022 16:05:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816314; cv=none; d=google.com; s=arc-20160816; b=hrdU2I5poNqeShB8vCHKSRrT/hfN53bzYj9yciJVwk+Cp/wqJwY8iGytYSeQQMSAgs 2jdRwGAIEEa04A8zj8EfcwZio5S3f4wyQ4LvxCfs1zXeTnPciEQnVbkzD29GZeV03JOf tUzMWCFwIP477pesaI//bY7ttbWw7j7qdytzFe/oXq/1RDo+mfRioQ7Go8GIZaO+pwxj 7iWgrOSoLh+MPDxTAizvLWFd3j0dauff4hvxdRFhHhms/jF2y/ubJPhwWN67Qc3+GrBG Psn0vfmPRScsZtmzqdFUcZCyoOPy9/wJDpYtkUqg86iH6sFmT3BuusXRw+WhUu/F8Ors uUpQ== 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=17KgLeoqStKAZsfCjlLYNq3xfdzKIwXcGrAFfI8txJQ=; b=vzCeNVkNFFYv4SoRxwiAC7PQ+AHd4ixV9yvnX1j+vwXmeFGTzoQ9vtNbZjb9IyCvvg 0cm82o3nqwdyTdqeymhoaL9eokZmuErPgDkdqpferOQuhB+NbQF2Ax7QECulIBEofCx+ 41T5wOlKHvX6Pax4O3rA3hOkHC8vvqPdwwNTDPE3TFrhQIaeN4Mfrl6kDUcZNMhoNtCL EiUZC07IAeYoQDo4GpgzuGaOK1lofYq3SBcQG48r5HuXBlRwS/Rm8wsmqodGVZN86JDK r2Ov5hxBjQdq6QtLeZ6lzRGLYONZ/+W4ukXlDML9CAea6hooArliXQHZG48L7V12OM4e KpbA== 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 d12-20020aa7d68c000000b004691547f6besi2239516edr.280.2022.11.18.16.04.43; Fri, 18 Nov 2022 16:05:14 -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 S231305AbiKSAAu (ORCPT + 99 others); Fri, 18 Nov 2022 19:00:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235284AbiKRX4J (ORCPT ); Fri, 18 Nov 2022 18:56:09 -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 5D406BEB53 for ; Fri, 18 Nov 2022 15:28:22 -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 1owA8j-0002jO-U0; Fri, 18 Nov 2022 23:47:17 +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-0058VV-Bc; Fri, 18 Nov 2022 23:47:16 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8h-0000Av-4o; Fri, 18 Nov 2022 23:47:15 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Benjamin Herrenschmidt , Miguel Ojeda , Javier Martinez Canillas , Christophe Leroy , Heikki Krogerus Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 296/606] macintosh: windfarm_max6690_sensor: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:30 +0100 Message-Id: <20221118224540.619276-297-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?1749880735731197650?= X-GMAIL-MSGID: =?utf-8?q?1749880735731197650?= 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/macintosh/windfarm_max6690_sensor.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/macintosh/windfarm_max6690_sensor.c b/drivers/macintosh/windfarm_max6690_sensor.c index c0d404ebc792..6c5ab657b6b3 100644 --- a/drivers/macintosh/windfarm_max6690_sensor.c +++ b/drivers/macintosh/windfarm_max6690_sensor.c @@ -60,8 +60,7 @@ static const struct wf_sensor_ops wf_max6690_ops = { .owner = THIS_MODULE, }; -static int wf_max6690_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int wf_max6690_probe(struct i2c_client *client) { const char *name, *loc; struct wf_6690_sensor *max; @@ -129,7 +128,7 @@ static struct i2c_driver wf_max6690_driver = { .name = "wf_max6690", .of_match_table = wf_max6690_of_id, }, - .probe = wf_max6690_probe, + .probe_new = wf_max6690_probe, .remove = wf_max6690_remove, .id_table = wf_max6690_id, }; From patchwork Fri Nov 18 22:40:31 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: 22872 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472178wrr; Fri, 18 Nov 2022 15:59:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf4GERc5SvndirPLWTH2WddWJ3OtEf+0VT0GHtJ/NkTM2/Jep7qe3Oq+pzGIIqj694/WbXPt X-Received: by 2002:a62:5844:0:b0:563:1231:1da with SMTP id m65-20020a625844000000b00563123101damr10332091pfb.5.1668815975953; Fri, 18 Nov 2022 15:59:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815975; cv=none; d=google.com; s=arc-20160816; b=UTw2CLjUcBKr0cItTMB48BlOUxGLRJy6/waFKEtcKCt+p/mgFE2rM3piTtey2nuL5X SD0F5BM9hSxN9pNmaR/euG+xi21+pqluhtkeZaqeHLKwrXd1mrui6pC1q7HrNs5DNnPY v9PebIxQE+iyX0vkFndOwfoZcJQyJ8ffCEUckWvNLxJs3BzZzxvv46EQFeoDDsJgSaEA RDNXmqnbRAAMjItisqEriiYwtJk3NT8MmKx5AFpqBT9cg+aiO+ne9q2MSNu8c38TMDbf gcvlJ0FUhIAnfSDZVMK8jHUXH1X2fWLnrKcDnSw4VdR2+JX7xxL7S8dgeO3tF5g0IDPm iIHQ== 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=P6U7o73VQbuR1JYeIP5453UZ9UaButHlB9Z8GturUgE=; b=kHuYCVWd0xvXgrsZdJwd8Rfx4Myx0doQEjgziU4ImfvPPugahSGfvBP1hYMkbiGa2q ovcBuDS7z3DmB2D0+VmB4QvYc7sN4XhM64H5tORX+lxFAOscL3w50Z5SzgOue4wvlrqd LXI6ZEhzBWdEb/CGBx2ByU0+deSNpm60wXKAx8KsqhKSy2zeB11Rfgv2S3gPeGcnfDDx Mcq3p6CNDIFfKGfaK2mwLFDFweTokuRqEkxvM0bBmtTWIZvnHL2ii7KiQ5HK+XKCedOq ZJ06r36tJvwnz0hOsBpf1Tb9LV9AKctYlXVETsV4hHu1mgdt1fLrMF5djMQogZ7U/gba wg4Q== 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 134-20020a63048c000000b00470075c0faesi4876073pge.266.2022.11.18.15.59.22; Fri, 18 Nov 2022 15:59: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 S235271AbiKRXxD (ORCPT + 99 others); Fri, 18 Nov 2022 18:53:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236890AbiKRXvn (ORCPT ); Fri, 18 Nov 2022 18:51:43 -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 7F1A1B7E84 for ; Fri, 18 Nov 2022 15:27:09 -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 1owA8j-0002j5-UJ; Fri, 18 Nov 2022 23:47:17 +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-0058VP-6Q; Fri, 18 Nov 2022 23:47:16 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8h-0000Az-CH; Fri, 18 Nov 2022 23:47:15 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Benjamin Herrenschmidt , Hans Verkuil , Peter Senna Tschudin , Christophe Leroy , Jonathan Cameron Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 297/606] macintosh: windfarm_smu_sat: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:31 +0100 Message-Id: <20221118224540.619276-298-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?1749880380876999709?= X-GMAIL-MSGID: =?utf-8?q?1749880380876999709?= 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/macintosh/windfarm_smu_sat.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/macintosh/windfarm_smu_sat.c b/drivers/macintosh/windfarm_smu_sat.c index be5d4593db93..ebc4256a9e4a 100644 --- a/drivers/macintosh/windfarm_smu_sat.c +++ b/drivers/macintosh/windfarm_smu_sat.c @@ -189,8 +189,7 @@ static const struct wf_sensor_ops wf_sat_ops = { .owner = THIS_MODULE, }; -static int wf_sat_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int wf_sat_probe(struct i2c_client *client) { struct device_node *dev = client->dev.of_node; struct wf_sat *sat; @@ -349,7 +348,7 @@ static struct i2c_driver wf_sat_driver = { .name = "wf_smu_sat", .of_match_table = wf_sat_of_id, }, - .probe = wf_sat_probe, + .probe_new = wf_sat_probe, .remove = wf_sat_remove, .id_table = wf_sat_id, }; From patchwork Fri Nov 18 22:40:32 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: 22640 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460334wrr; Fri, 18 Nov 2022 15:23:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf6tnHZP9opYd0Ez2UIKkbgNOE3qP+Q1L30MfAM8W5vo3zRSssZVTeM01BTw+ozGifqMKjC1 X-Received: by 2002:aa7:c859:0:b0:461:17e9:4ea3 with SMTP id g25-20020aa7c859000000b0046117e94ea3mr8061012edt.49.1668813835701; Fri, 18 Nov 2022 15:23:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813835; cv=none; d=google.com; s=arc-20160816; b=DFaW1GllqjH1uRjBI20FX8zh6zm/Cn31G8rrjH+hvToMVB6rzFTrYS/5bximN9+bP1 5ndDRtOU0nDHpZEcv/UmZKteDB00jbdVMYvPqADxWDixuZkgEQtDolqZMSR2aBFBuKq+ ERDljudg1fcIUnYM/IBGxv+WhlA9ZmcwRzqbxf3Ng7A42tIpQ72+brFIs5vYskyDYEF2 40/H2ZAtnrxQvtkgqSdpVQs7RhT+aiA6Ks7ocsjvDLyAze0uHdLjIBwLyVTG7V7CS+I1 f1BqEzKZotvPzsMkWSZLMYuE/0rFgQVYi6i14z3LjAlErbRTaGTW6m4bYGhbi9QPwVe6 vHZg== 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=WMA2HvIkcEgegYIbM55DFwrLqTHM1B+V+COOvANmYsE=; b=r7LUNUW7AJE49YGXkZ2kXHph47fyB7LOdiTo3SuDO8BchfRiqGWoC1Zzt2H5gaEfdE 7n8g0tujJifpiI86J40oP2iU1VhuMV5mShzujCPGoEzRFAfIfmNJzmkwWDiUaRqQIpHy zCpnyoFqSToklZQ0qFSCXOuNcwVscsqy5+mCPVnSR9od5YoTa7WFzp1yMkdBU82v6SEZ 46sKWejcWqK48CgqTyC2o4uhNCgCBIQaZl/ltBLHKfXzWsBZlPfaqem9i6H7Jgz+lH9u oHZJ4oc/z/tHbolaPuC41JAG4xKCU8Hd1/XUJQe3vCTBfcgEQjEfZP/iyu6O2mluiv6A sXig== 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 sh40-20020a1709076ea800b007aec7f879basi4308696ejc.22.2022.11.18.15.23.27; Fri, 18 Nov 2022 15:23:55 -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 S231757AbiKRXVV (ORCPT + 99 others); Fri, 18 Nov 2022 18:21:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231836AbiKRXU6 (ORCPT ); Fri, 18 Nov 2022 18:20:58 -0500 X-Greylist: delayed 1382 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 18 Nov 2022 15:11:28 PST Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E01FC10049 for ; Fri, 18 Nov 2022 15:11:28 -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 1owA8j-0002jM-Gm; Fri, 18 Nov 2022 23:47:17 +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-0058VU-BT; Fri, 18 Nov 2022 23:47:16 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8h-0000B2-JH; Fri, 18 Nov 2022 23:47:15 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Antti Palosaari , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 298/606] media: dvb-frontends/a8293: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:32 +0100 Message-Id: <20221118224540.619276-299-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?1749878136235410493?= X-GMAIL-MSGID: =?utf-8?q?1749878136235410493?= 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/media/dvb-frontends/a8293.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/a8293.c b/drivers/media/dvb-frontends/a8293.c index ba38783b2b4f..3d9f87359c71 100644 --- a/drivers/media/dvb-frontends/a8293.c +++ b/drivers/media/dvb-frontends/a8293.c @@ -62,8 +62,7 @@ static int a8293_set_voltage(struct dvb_frontend *fe, return ret; } -static int a8293_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int a8293_probe(struct i2c_client *client) { struct a8293_dev *dev; struct a8293_platform_data *pdata = client->dev.platform_data; @@ -118,7 +117,7 @@ static struct i2c_driver a8293_driver = { .name = "a8293", .suppress_bind_attrs = true, }, - .probe = a8293_probe, + .probe_new = a8293_probe, .remove = a8293_remove, .id_table = a8293_id_table, }; From patchwork Fri Nov 18 22:40:33 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: 23030 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp479286wrr; Fri, 18 Nov 2022 16:16:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Kzd3fN4/epUuwo+Qmto19JNclBMrI8FLj/wXLizgGspA8LHEr+T8MoIkbfwfghfBXyiZO X-Received: by 2002:a17:906:77db:b0:7b2:8a6c:162f with SMTP id m27-20020a17090677db00b007b28a6c162fmr7685499ejn.693.1668817006129; Fri, 18 Nov 2022 16:16:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668817006; cv=none; d=google.com; s=arc-20160816; b=xgiHHhy0ZEmiI7H0ESIpwQECoWVvSjI8E3WuqwEy1JdLeF6ZVUvhGsIe/h4CZN2jf2 Bu1IkOztfJWUD+HIUkMVI+TayD4EYZtCxloTlA8hfPdCqpD0hhCvZrV3srBEO5207O58 YH2xd8P4l0XDZSOK9bJE6Tga8WHnQZdlBLKEZLr9dyWEMMNuyrrNZkBE9j9nc+oF3zUQ V9bz8p3rA6zuKuEBkqjg45sIeaxKBarKw55s3kXgK3RRXfbcRazToFE1TLMtllglQDTX vOKyE3wJKJrLpjJAga4dfgQysglqTeY7+mIsg2eIQna+C+7Ih275mpO9IRKD4X2o4KHg Mrhw== 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=G5KhhfZn7/95XT/VZm/UXlOnprkc5ImLBQF2p+cDQsw=; b=vjKzpjRuL4lKO6mbfk3Rs9MkOaPNnEtUBQh6+hAtppJrQWpnIX253SjlnPdbzGorQp pvkt6vdz5DJEaLFwgdxqfD1wCoCnq9ZUKeXCBIB2ejHePs4wrbOtfRJSSD+fGUD0h3jp ktmtDKm0c6s+aiE++VhLTdwYKRS8X856TSOkGCgqpxix+afZ9rpe7AXBf3D9dYpXGN+r d7qnRUVqvQUPYglcmEmvM3srerbSc51pJambCTtpMisbOnTZhN2QadhWNYQXyaZxNpiZ YTse1GpIwQpyU7KXum7hFu+PedBjNNAXcZd4Qjqz+hI4SdzzC+Hu+g+dk1UclUAV0XnJ qhoA== 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 f16-20020a056402195000b0046799762e48si4090430edz.437.2022.11.18.16.16.22; Fri, 18 Nov 2022 16:16:46 -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 S237910AbiKSAPs (ORCPT + 99 others); Fri, 18 Nov 2022 19:15:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237813AbiKSAPa (ORCPT ); Fri, 18 Nov 2022 19:15:30 -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 E20D8F5A16 for ; Fri, 18 Nov 2022 15:35:02 -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 1owA8k-0002kv-A1; Fri, 18 Nov 2022 23:47:18 +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-0058Vd-Vz; Fri, 18 Nov 2022 23:47:16 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8h-0000B6-S6; Fri, 18 Nov 2022 23:47:15 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Antti Palosaari , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 299/606] media: dvb-frontends/af9013: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:33 +0100 Message-Id: <20221118224540.619276-300-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?1749881461058705906?= X-GMAIL-MSGID: =?utf-8?q?1749881461058705906?= 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/media/dvb-frontends/af9013.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/af9013.c b/drivers/media/dvb-frontends/af9013.c index d85929582c3f..206758a73ae2 100644 --- a/drivers/media/dvb-frontends/af9013.c +++ b/drivers/media/dvb-frontends/af9013.c @@ -1430,8 +1430,7 @@ static int af9013_regmap_read(void *context, const void *reg_buf, return ret; } -static int af9013_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int af9013_probe(struct i2c_client *client) { struct af9013_state *state; struct af9013_platform_data *pdata = client->dev.platform_data; @@ -1564,7 +1563,7 @@ static struct i2c_driver af9013_driver = { .name = "af9013", .suppress_bind_attrs = true, }, - .probe = af9013_probe, + .probe_new = af9013_probe, .remove = af9013_remove, .id_table = af9013_id_table, }; From patchwork Fri Nov 18 22:40:34 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: 23125 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488301wrr; Fri, 18 Nov 2022 16:45:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf4hgEBRn7UG4+pL4MKo3D5bRwIBN3JLzsTwskNFuQBAWSns/5MJa8wYi+OKpOrA+Su/NVwv X-Received: by 2002:a05:6402:5:b0:459:cdb:92ad with SMTP id d5-20020a056402000500b004590cdb92admr8147286edu.77.1668818616568; Fri, 18 Nov 2022 16:43:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818616; cv=none; d=google.com; s=arc-20160816; b=PtD+jfRuO7rxqr6cHialFDzd0/TlUjTLd4AaKH+jswPwyPMHnpHE4fYv1CYbCZKK8K qDTSeDNdp3jsYTwu2eW1erZoeHOmbXCXRGU5S9aSe35t2frghUUHPHAR/1zUyjYyClDa 1vpwG/fW1aBv8b++tRHdcYLr12T+9eA93xNXHVcEVTDMKiJUyfNBj/GJHqrOJWVliAs+ ARJfsbqIJUzNwWmb8jctFZ1qBcnFHGquGQ2iI7/OTa/Ptde5F279vO6SNjUrAlEmZGsO 38RAKF2Y4LhArHwFnzXqU0BLm+D3yRnKM63+B8kHGtRr+xWtZGDPGbxJxE5a6WNJqx1P gB9g== 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=0LneK1b7iFk92U2p/R0mQSEKaII29IAduceO0QSn+Sg=; b=WJYF3/YVBRRlsqpXbyGRFs0/kppzvdFscDlfVJpow2QNHXd/8W90xT0hKVXyQbEY2t GiWOj7zhYMy7SK43TcEPJGFItGu1GzVo2yi7Owd3eHiym0jki+RibEVRyoXMewG7aZO4 oZYCE2STYSpDyFM3UvMW3k4vUWTkDQs3UamuXv6sJDcxGHaU8kO+ujW9RHd+6j7ZT7VG 8tBhooyzm0V2Cl0lu8F0Xj//y4XNwcMO1qFto6pi5ZB0ati8vxhhQASQQdrWV44A4H84 cKm2VrTvi50ZgGoUk/r8+BgQJNdWVL9StgK6sUqfY50fDy9H06yhgj3hm/W8aHJXhzVe F+Hw== 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 h10-20020a05640250ca00b0045dc9b4c034si4590353edb.582.2022.11.18.16.43.04; Fri, 18 Nov 2022 16:43:36 -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 S231790AbiKSAb2 (ORCPT + 99 others); Fri, 18 Nov 2022 19:31:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235679AbiKSAbD (ORCPT ); Fri, 18 Nov 2022 19:31:03 -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 F1B1711658B for ; Fri, 18 Nov 2022 15:41:22 -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-0002ny-Is; Fri, 18 Nov 2022 23:47:19 +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 1owA8j-0058Vz-3V; Fri, 18 Nov 2022 23:47:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8i-0000B9-3A; Fri, 18 Nov 2022 23:47:16 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Antti Palosaari , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 300/606] media: dvb-frontends/af9033: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:34 +0100 Message-Id: <20221118224540.619276-301-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?1749883149528811734?= X-GMAIL-MSGID: =?utf-8?q?1749883149528811734?= 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/media/dvb-frontends/af9033.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/af9033.c b/drivers/media/dvb-frontends/af9033.c index 808da7a9ffe7..a30773f62006 100644 --- a/drivers/media/dvb-frontends/af9033.c +++ b/drivers/media/dvb-frontends/af9033.c @@ -1049,8 +1049,7 @@ static const struct dvb_frontend_ops af9033_ops = { .i2c_gate_ctrl = af9033_i2c_gate_ctrl, }; -static int af9033_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int af9033_probe(struct i2c_client *client) { struct af9033_config *cfg = client->dev.platform_data; struct af9033_dev *dev; @@ -1184,7 +1183,7 @@ static struct i2c_driver af9033_driver = { .name = "af9033", .suppress_bind_attrs = true, }, - .probe = af9033_probe, + .probe_new = af9033_probe, .remove = af9033_remove, .id_table = af9033_id_table, }; From patchwork Fri Nov 18 22:40: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: 23014 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp478203wrr; Fri, 18 Nov 2022 16:13:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf6TA7ExpSX2G5/ZXAWw7690eIPP2jwb9uJhWd5G+mdrCgfiUW5ob4TbUeIR7tl+pXWZAXkz X-Received: by 2002:a63:1b60:0:b0:46f:b2a5:2e2d with SMTP id b32-20020a631b60000000b0046fb2a52e2dmr8644884pgm.400.1668816815222; Fri, 18 Nov 2022 16:13:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816815; cv=none; d=google.com; s=arc-20160816; b=VmaIj5crDxa6N0VLwZnvpfwAS1KIILdJ6SqMkCIJ/l7bCxNW1C1+4kASA9dlHb0qcv IGw7i6xwWPOfw8y0eVBYlhd8csFVIynEPPvExX+uEqqfx23Goo7PXUgP6WhXG+C0ST+K l5WwV8RoOlGVawdnRX7WUza365bhvvmhDhGEoluSdHKXm4qujfCT8RimNxCg+fSxYFAo p98yPdEUOyq/ZYTrXnr90MC5VKj4CefymhdQ7iAOXZOg+2IQszNc6q0bW0ZMecDHBjI7 zwCJQcP0Ui1VmBtjo+iaIjVOoA7M/Yet8q7bfD88Ntg0vzD22MCfxn3Q9IHM4O+AZIG8 L5fw== 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=FQaxBCaiOx+PaYTP1hXlA++8K2BCutz1+Vs60FiPmFs=; b=qFHwTS3Xz0QpLgw4bU6sNt1L2jrF4dubFDpwlxilCqn+zQOXIlLg2yPrKxmU1z71C3 iFAxLUlN0BCm4+Ft4vj2wZv4js7m9gGnf4eRzrwX8Gb7/hpE3bsIeCFf4wrfnN1JWqc5 qZF22Fwu3NcriivMBaqIREPscx8ry5GWr2/ICQ1qfafA8brV+7si6v100wKrVCL8YwhL eWjdpgqqGyh9jPoeHoYt/zwvlqbczaIlGTCzfMszrC/xM+qamCqENIRGuXP7EKmLG1vy BVvCkMtAazXt6K/kgJhCojOgeazxTqxF5xKOPRqdBISpfMF9/P67+R4LxK1dgWG2jWbF Uw6g== 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 m3-20020a170902db0300b00188c5696683si5664151plx.188.2022.11.18.16.13.22; Fri, 18 Nov 2022 16:13: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 S237680AbiKSALH (ORCPT + 99 others); Fri, 18 Nov 2022 19:11:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237536AbiKSAJx (ORCPT ); Fri, 18 Nov 2022 19:09:53 -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 446CC7DEDA for ; Fri, 18 Nov 2022 15:33:17 -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 1owA8k-0002li-QA; Fri, 18 Nov 2022 23:47:18 +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 1owA8i-0058Vh-CR; Fri, 18 Nov 2022 23:47:17 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8i-0000BE-An; Fri, 18 Nov 2022 23:47:16 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Andy Shevchenko , =?utf-8?q?Marek_Beh?= =?utf-8?q?=C3=BAn?= , Heikki Krogerus , Peter Senna Tschudin Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 301/606] media: dvb-frontends/au8522_decoder: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:35 +0100 Message-Id: <20221118224540.619276-302-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?1749881260897017180?= X-GMAIL-MSGID: =?utf-8?q?1749881260897017180?= 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/media/dvb-frontends/au8522_decoder.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/au8522_decoder.c b/drivers/media/dvb-frontends/au8522_decoder.c index e4f99bd468cb..0f748cf46089 100644 --- a/drivers/media/dvb-frontends/au8522_decoder.c +++ b/drivers/media/dvb-frontends/au8522_decoder.c @@ -669,8 +669,7 @@ static const struct v4l2_ctrl_ops au8522_ctrl_ops = { /* ----------------------------------------------------------------------- */ -static int au8522_probe(struct i2c_client *client, - const struct i2c_device_id *did) +static int au8522_probe(struct i2c_client *client) { struct au8522_state *state; struct v4l2_ctrl_handler *hdl; @@ -777,7 +776,7 @@ static struct i2c_driver au8522_driver = { .driver = { .name = "au8522", }, - .probe = au8522_probe, + .probe_new = au8522_probe, .remove = au8522_remove, .id_table = au8522_id, }; From patchwork Fri Nov 18 22:40:36 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: 22765 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465830wrr; Fri, 18 Nov 2022 15:38:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ZUzo19CIVJiQMvVaFIzDzsFFQeYyrEnxfJ5OWAFprYpKy6iDpfR1xw/QAw21h/iY7dCgD X-Received: by 2002:aa7:d88c:0:b0:468:ffca:6982 with SMTP id u12-20020aa7d88c000000b00468ffca6982mr5583642edq.282.1668814715194; Fri, 18 Nov 2022 15:38:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814715; cv=none; d=google.com; s=arc-20160816; b=stPza9NW+V6txyQE4v0RPHL3bLRw5lq2WYVe+KVLL8y3dj75ke2JuBMxVASp7Y5JTw VNrnHSCwkARlEU5uuH1LVdBqL8wsV8TgicOIju4LQP1nV54aAzAPPnAlJMZTzqcK7ge3 8NMpxyTX82W6/W+7Wmno9VMM/ygkyP2k+IvMP+2hLK+1NOLiA/hpGvpZM0F0VG/W1xWM tan65zUYj9vp1v7cRojS053vsscYhQbCamHM9I/ArCj0bYAVUlKXdXP7V4vV5fymq1jy epRsY8V4oNkAfS5Zh7Z8mCx+tpDJV2XIlzX44Udlw78I9JShJ95NIu5boOnUooPp/oAX PNNA== 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=FtN3iM7SFuvGVyBj2wT0eX+I/Qd17a/usaLj3mkJVr4=; b=v/uLEd6AfDQ9Y/i96tWabaPdE+uNXK6BiNJB1m+iEScUFLvMJqXcV7kVXCunZpv+SF bICveJCNyVemEJKIGtE52TK43Aq7wvpEb8huOjdmAsumAQY3PkGH0ATMlp9dT9x5wdWw q/VNTMfgBZuoT33uo++hQ+gpJWaNSUe+64DPIDRDTBHsGFNfDKPde4LgS49UtKd6wScD lsALzRP2bpYMv3NpDGnAhSxLYCmPkeQ2BnNzQhx/cJ8oz+C+mT+76Z478CGcWjASxHcT 8rccSCA6M9wounLIWSLtE5mHplwrb8Yrk1Sd2Q+PoaiMBEahMJzor+unkoukovcXmoXB WfeA== 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 sa24-20020a1709076d1800b007a39ad3da43si4440565ejc.714.2022.11.18.15.38.11; Fri, 18 Nov 2022 15:38: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 S236426AbiKRXgd (ORCPT + 99 others); Fri, 18 Nov 2022 18:36:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236382AbiKRXcu (ORCPT ); Fri, 18 Nov 2022 18:32:50 -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 B719397ED8 for ; Fri, 18 Nov 2022 15:20:30 -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 1owA8m-0002nr-14; Fri, 18 Nov 2022 23:47:20 +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 1owA8j-0058Vv-27; Fri, 18 Nov 2022 23:47:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8i-0000BJ-Hd; Fri, 18 Nov 2022 23:47:16 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jasmin Jessich , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 302/606] media: dvb-frontends/cxd2099: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:36 +0100 Message-Id: <20221118224540.619276-303-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?1749879058927552568?= X-GMAIL-MSGID: =?utf-8?q?1749879058927552568?= 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/media/dvb-frontends/cxd2099.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/cxd2099.c b/drivers/media/dvb-frontends/cxd2099.c index fbc666fa04ec..c0967ad95220 100644 --- a/drivers/media/dvb-frontends/cxd2099.c +++ b/drivers/media/dvb-frontends/cxd2099.c @@ -598,8 +598,7 @@ static const struct dvb_ca_en50221 en_templ = { .write_data = write_data, }; -static int cxd2099_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int cxd2099_probe(struct i2c_client *client) { struct cxd *ci; struct cxd2099_cfg *cfg = client->dev.platform_data; @@ -682,7 +681,7 @@ static struct i2c_driver cxd2099_driver = { .driver = { .name = "cxd2099", }, - .probe = cxd2099_probe, + .probe_new = cxd2099_probe, .remove = cxd2099_remove, .id_table = cxd2099_id, }; From patchwork Fri Nov 18 22:40:37 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: 22846 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471976wrr; Fri, 18 Nov 2022 15:58:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf6s7Q5TaYk/MBhrRDJtI6SQN32fhRSlaTEtV8Yu1figiWfExKIX4ZlZaxurTifVU7784VG8 X-Received: by 2002:a17:906:480b:b0:78d:9f25:6103 with SMTP id w11-20020a170906480b00b0078d9f256103mr7945653ejq.168.1668815937078; Fri, 18 Nov 2022 15:58:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815937; cv=none; d=google.com; s=arc-20160816; b=PCD+rYZpXwIMXT5hNeyOekkdUtyrl8vtJRO4qqYZrP20cmbSnnku9xKAwQpYKicybt wUTSHUQ3bG7G+nI6L532R21WsqKZNI0ot3mcT0MNPZLNnzEzdVLoTuqi04MUFTD81dm8 yC2Xrbdqrb1uyMXfcPQN2IxIiO4Egq+f1PTbJIYyNS6o/TIX9s7Dlyy6erE2LPIVj5Cz arWTnTzfol3WJTYz/M1DWT4rfLcnNEn04AZzSNAfzE0OYR9u0MhqZDShJSWR2SX0CbgF 9RhhkxJL3pdA4xWV2+pSoakL3hNpylIilVsppsGmSOnYXs5+O8r2P5L/D5hyIe/LJG6N eVzA== 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=HzbbQ6zfvwr9XVOc9Px4NpSqtEF+LDxBOrSnzpADVPE=; b=OIdSCRTMjtd8ZZEDGgDHRvG42+9HxbqWnpDTva7rvFiV+vrFR3cJHA3mZv9jNPmX4B qWbnqLxXWR61dsczqkRyfZ2l3SvafEp8x+Zzus6L4OJdT2wmBPPOe9bUg0rl/LErgU/u KS1U7bJhtkhMImH17q/bUFCeTw/ZYAkxy+rHq5B7XjRSHhO7IU5sky59HOjitNSfAQCr 6IVcGsY0Ija8faXsWj2EADKIeVbRjwVpKBWD5eSnf6N+9zSNcGzF6jAYtJOSSrLkApZc BeZrjoiL560PvdrWQW/YYSfFpTMEnKm3E6mZf/zcDxBoqXsmFT5gIS6vf5J5wTH4rBuY SCpA== 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 h11-20020aa7c60b000000b0045cea9cf231si3838598edq.566.2022.11.18.15.58.32; Fri, 18 Nov 2022 15:58:57 -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 S233271AbiKRXtv (ORCPT + 99 others); Fri, 18 Nov 2022 18:49:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236844AbiKRXsz (ORCPT ); Fri, 18 Nov 2022 18:48: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 4E79FEC08A for ; Fri, 18 Nov 2022 15:26:27 -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-0002nP-DE; Fri, 18 Nov 2022 23:47:19 +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 1owA8i-0058Vr-VT; Fri, 18 Nov 2022 23:47:17 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8i-0000BM-PV; Fri, 18 Nov 2022 23:47:16 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Antti Palosaari , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 303/606] media: dvb-frontends/cxd2820r_core: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:37 +0100 Message-Id: <20221118224540.619276-304-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?1749880340309821539?= X-GMAIL-MSGID: =?utf-8?q?1749880340309821539?= 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/media/dvb-frontends/cxd2820r_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/cxd2820r_core.c b/drivers/media/dvb-frontends/cxd2820r_core.c index 5d98222f9df0..b8d5cb3a269d 100644 --- a/drivers/media/dvb-frontends/cxd2820r_core.c +++ b/drivers/media/dvb-frontends/cxd2820r_core.c @@ -547,8 +547,7 @@ static struct dvb_frontend *cxd2820r_get_dvb_frontend(struct i2c_client *client) return &priv->fe; } -static int cxd2820r_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int cxd2820r_probe(struct i2c_client *client) { struct cxd2820r_platform_data *pdata = client->dev.platform_data; struct cxd2820r_priv *priv; @@ -734,7 +733,7 @@ static struct i2c_driver cxd2820r_driver = { .name = "cxd2820r", .suppress_bind_attrs = true, }, - .probe = cxd2820r_probe, + .probe_new = cxd2820r_probe, .remove = cxd2820r_remove, .id_table = cxd2820r_id_table, }; From patchwork Fri Nov 18 22:40:38 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: 23129 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488372wrr; Fri, 18 Nov 2022 16:45:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ihhghfS0hteIqeN9mqr0zzekNgRuFP4Qa8x8vxFwDhli8LmP6o9om1Cod95ItXe5Lj0rx X-Received: by 2002:a05:6a00:1a14:b0:557:ef5e:6db3 with SMTP id g20-20020a056a001a1400b00557ef5e6db3mr10371010pfv.13.1668818747073; Fri, 18 Nov 2022 16:45:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818747; cv=none; d=google.com; s=arc-20160816; b=iR02qApf8FCZxmOaUyP5Bi8JmNAUFwa6VMCENe/s1j8g7/6x15gUm0mJ9HoTI3MnwI PsOAP6BMvNZVLqNEmpn2WKN06bqDj8kQt/ILXOoSIRGD7zB3MuuqfhjlTS6MaIgN0sMm vW4kq9Vq8MxX/ypnjnXJdUBp17HPOpXQh3GpyeuTOGFPRWxAR3vuE3tAoxsD02fiminW PNF1EWlPNcMcEJ/6Cqf/WDVIyzJvY6qL1RRtcRX6RMBaPMoAss5k9kg/m2ic6OHqf9Rd 6gpozLXxRlTQYbvJ7XkOzNcv6Rpk8wLYDROHtfG/WdpAbLvUIbaYAMc599fPNAQMf76v fj/w== 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=hMEDbOzPCI2kdJk85VZEolBHh1RkH6g7rLIA9N7EPF8=; b=t5jtTtaFv5X4kcwN445hg4I4+VlLIw5tA42JPlinH0vh2+Lw8iVUy0B0SQ1/uZNKuT KZqWluEaxA0qplmqDwH3kRfcs9dSWwsIM0uRII05sIu/zhRJKqPT4xY34XyWzz7ZtPqY Pu+Z0/LXnkJyuFw6mkkNdbOoIPAjP7bEUMYGoyuJbd4RLPvVGtX4XroaHR1AjPMxCD2t dDzMXYBKaMeXpYs5Ssjob5hjuu3jJHmfRheCIzcTDuByHqW6KWwlQS8UGuOsj6w2stEK DeFM+9ktITh6UK/yvF/nVfDTm+Dl1so2hVzYTonitbhhaYPVLnFJpcLVsYTnQcGKOGJQ dAzw== 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 j14-20020a170903024e00b0017ae43612d9si5736097plh.324.2022.11.18.16.45.27; Fri, 18 Nov 2022 16:45:47 -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 S237086AbiKSAnY (ORCPT + 99 others); Fri, 18 Nov 2022 19:43:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236314AbiKSAkf (ORCPT ); Fri, 18 Nov 2022 19:40:35 -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 9F8B0D919B for ; Fri, 18 Nov 2022 15:44:53 -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-0002n9-90; Fri, 18 Nov 2022 23:47:19 +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 1owA8i-0058Vn-U4; Fri, 18 Nov 2022 23:47:17 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8j-0000BQ-21; Fri, 18 Nov 2022 23:47:17 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Sebastian Reichel , Corey Minyard , Petr Machata , Vladimir Oltean Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 304/606] media: dvb-frontends/dvb-pll: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:38 +0100 Message-Id: <20221118224540.619276-305-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?1749883286328518894?= X-GMAIL-MSGID: =?utf-8?q?1749883286328518894?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/media/dvb-frontends/dvb-pll.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/dvb-frontends/dvb-pll.c b/drivers/media/dvb-frontends/dvb-pll.c index baf2a378e565..e35e00db7dbb 100644 --- a/drivers/media/dvb-frontends/dvb-pll.c +++ b/drivers/media/dvb-frontends/dvb-pll.c @@ -870,8 +870,9 @@ EXPORT_SYMBOL(dvb_pll_attach); static int -dvb_pll_probe(struct i2c_client *client, const struct i2c_device_id *id) +dvb_pll_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct dvb_pll_config *cfg; struct dvb_frontend *fe; unsigned int desc_id; @@ -941,7 +942,7 @@ static struct i2c_driver dvb_pll_driver = { .driver = { .name = "dvb_pll", }, - .probe = dvb_pll_probe, + .probe_new = dvb_pll_probe, .remove = dvb_pll_remove, .id_table = dvb_pll_id, }; From patchwork Fri Nov 18 22:40:39 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: 22637 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460070wrr; Fri, 18 Nov 2022 15:23:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf6FytE3mHbDPX1bu/m21WpcYC263DWHdcdEEqOT5ZJZtAe8t7SNnTj2EcsRTln2WnVJEDUU X-Received: by 2002:a17:902:e3ca:b0:189:870:ef5d with SMTP id r10-20020a170902e3ca00b001890870ef5dmr1669012ple.28.1668813792748; Fri, 18 Nov 2022 15:23:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813792; cv=none; d=google.com; s=arc-20160816; b=oeYUwWYyGpLXOWqv3Brq3pDNQXIu74jILnCA8wExwGPc75usGORtxLUYyNcMkfCG67 uvU42iY1L4OJDEZN3HyhMHwtdIbikTk0vDzI6g9VF7Y2RIlAtYk1Z4ndSysrQVYiN6t2 XGCdeTfdHnRU12zY6bzj9oI8u/1q01CQ7yTesofDE3biFn55AcHkg9ChQ3mW+hfH7fzH exBpyXL4byNLGfA4Wn8v0yDAE7ZTT4QgbbEb0I371s1y7wJYLx2sb6V8YezxHPenPdRM mo9suowjqeKoSfuRzDva+Ldnmr/2nmWhlJIoM34shWZzpAuJ6XtgT1I4ks/D2wjI+Emt gk1w== 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=JGOFBgscmO92VwImt2lKPnKHjxgGpqDgoMBE4W7JAXY=; b=0qbY4RAydns9P57QD07Ghckk3eqdqF8VAEsU/F2gfG0QJbtSzgP8iGi+X1bzHsRgq0 OnlTAYfuWDCq/fGHnNHI8U3Bcz1YCS94ROBl/u9+4+NVFwMvyz4k+CEMysqkY8tzkuPe 2ZWSq1370PyeGpLVwiaghnfAX0zV0j/NloDadhY2zgBYvgEtoAuVhnKjGb1IAEPKlkdJ Z3ZrmETW4Cr7sy392IQqgOuuIPoZ3NMFcSJ7bOhb6GRwComZKo6D94RaVYhyUS8GTYN2 UDm4CJLC8oBis0ytgGdieta6WtGqyVgnic63XjvFdrrIhA3M0DB8HT/wi8cY7gxU2MrC WkBA== 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 g12-20020a63520c000000b00476a48051edsi5161168pgb.476.2022.11.18.15.22.59; Fri, 18 Nov 2022 15:23: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 S235597AbiKRXWM (ORCPT + 99 others); Fri, 18 Nov 2022 18:22:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229920AbiKRXVI (ORCPT ); Fri, 18 Nov 2022 18:21:08 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E8A85214A for ; Fri, 18 Nov 2022 15:12:09 -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 1owA8m-0002p7-KH; Fri, 18 Nov 2022 23:47:20 +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 1owA8j-0058WA-Jx; Fri, 18 Nov 2022 23:47:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8j-0000BT-Bo; Fri, 18 Nov 2022 23:47:17 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Abylay Ospan , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 305/606] media: dvb-frontends/helene: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:39 +0100 Message-Id: <20221118224540.619276-306-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?1749878091488670481?= X-GMAIL-MSGID: =?utf-8?q?1749878091488670481?= 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/media/dvb-frontends/helene.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/helene.c b/drivers/media/dvb-frontends/helene.c index 8c1310c6b0bc..e4bbf6a51a2b 100644 --- a/drivers/media/dvb-frontends/helene.c +++ b/drivers/media/dvb-frontends/helene.c @@ -1063,8 +1063,7 @@ struct dvb_frontend *helene_attach(struct dvb_frontend *fe, } EXPORT_SYMBOL(helene_attach); -static int helene_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int helene_probe(struct i2c_client *client) { struct helene_config *config = client->dev.platform_data; struct dvb_frontend *fe = config->fe; @@ -1111,7 +1110,7 @@ static struct i2c_driver helene_driver = { .driver = { .name = "helene", }, - .probe = helene_probe, + .probe_new = helene_probe, .id_table = helene_id, }; module_i2c_driver(helene_driver); From patchwork Fri Nov 18 22:40:40 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: 22704 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462845wrr; Fri, 18 Nov 2022 15:31:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf7LDTNb9dxPF/Lkbauf/DHrnojjoWVB1kRT9UUvLPMXgzHOkOwpRiPt4za7FrWn8knAlU1e X-Received: by 2002:a05:6402:3644:b0:45f:c7f2:297d with SMTP id em4-20020a056402364400b0045fc7f2297dmr8125159edb.266.1668814266024; Fri, 18 Nov 2022 15:31:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814266; cv=none; d=google.com; s=arc-20160816; b=Q7oVv7+R/a9jA4NaC1JdsB8oymhQd+JUZoGA9eP2+jPXHiEtAIpIGtfGA+VAaABkFO AKLZsSHcBVPPSQrJGE9K8VWCs6dHvnyX+U7prFC4VoEqcu68U7RF06OVQkEOpKRDC476 51MZ+GiYaylaT/a9NPNFRXq7pgTLffH1Y60QCLT0jgi9AB9hPRe7THhDHn7X13DYYAny IjGr2nLrx8Q9KMhRQsc8SFfTlIPG8ijWrhia8kP7WMWmwGe/sBlXg1ngFE6xAAvAYfCP fK56XTv1BtwNoshXj4/vXE89Cw1E1nnM4tSpL6RgaTMN/7Nteb88gUQLoQK8iILuzPpn f/1A== 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=UNgp+IjQalQ6xtw1iBpC1qhLH9eI6rxXb6I+aOFycj0=; b=fVPgZiT2x1Qh4uWVZmRUduIOKYAQL0g1vnlkxhCEaYpC5YXdsfzLDJI3vEYH0u4VN0 6JycIrcp3ZLULZ7oPUZOLsiFDt/iiNqtgOme/bCHA+uHMrq8c1VasRHle/o0szNrmIvr YsPcPd7YD6awvLDsu35GhlhjAMFMsdEydp5rmb3zVG916Sr687BxfuXXJouFBzTOxfVw uDPre0xdcmeYX07L4I3feYgqiYO8xB8uxCo6HZMV+D4iM6U6dNg3H8/FHRgQommKTRvG YhTVgQLiiZKm1YFxLz9m7H4E1Le1HldlqBFPFWSF9Qj4O5851NsHyHfdHydPfW72XQEj Krtg== 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 d30-20020a056402401e00b00458e87a1d83si4049309eda.54.2022.11.18.15.30.41; Fri, 18 Nov 2022 15:31:06 -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 S229774AbiKRXaL (ORCPT + 99 others); Fri, 18 Nov 2022 18:30:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229720AbiKRX27 (ORCPT ); Fri, 18 Nov 2022 18:28:59 -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 C98997463E for ; Fri, 18 Nov 2022 15:17:05 -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 1owA8m-0002pO-Cy; Fri, 18 Nov 2022 23:47:20 +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 1owA8j-0058WD-MX; Fri, 18 Nov 2022 23:47:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8j-0000BX-JQ; Fri, 18 Nov 2022 23:47:17 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Sebastian Reichel , Greg Kroah-Hartman , Benjamin Mugnier , Jean Delvare Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 306/606] media: dvb-frontends/lgdt3306a: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:40 +0100 Message-Id: <20221118224540.619276-307-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?1749878588050021579?= X-GMAIL-MSGID: =?utf-8?q?1749878588050021579?= 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/media/dvb-frontends/lgdt3306a.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/lgdt3306a.c b/drivers/media/dvb-frontends/lgdt3306a.c index 424311afb2bf..6bf723b5ffad 100644 --- a/drivers/media/dvb-frontends/lgdt3306a.c +++ b/drivers/media/dvb-frontends/lgdt3306a.c @@ -2169,8 +2169,7 @@ static int lgdt3306a_deselect(struct i2c_mux_core *muxc, u32 chan) return lgdt3306a_i2c_gate_ctrl(&state->frontend, 0); } -static int lgdt3306a_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lgdt3306a_probe(struct i2c_client *client) { struct lgdt3306a_config *config; struct lgdt3306a_state *state; @@ -2250,7 +2249,7 @@ static struct i2c_driver lgdt3306a_driver = { .name = "lgdt3306a", .suppress_bind_attrs = true, }, - .probe = lgdt3306a_probe, + .probe_new = lgdt3306a_probe, .remove = lgdt3306a_remove, .id_table = lgdt3306a_id_table, }; From patchwork Fri Nov 18 22:40:41 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: 22803 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466856wrr; Fri, 18 Nov 2022 15:41:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf7I0TA+4GgtEr4MWzDkw4P2GAo4RHBItO8xqIspjowa7b+oj7LtBOd2C2q4A6WEAGK2BuBW X-Received: by 2002:a05:6402:43cb:b0:468:f0f5:72c1 with SMTP id p11-20020a05640243cb00b00468f0f572c1mr6942968edc.391.1668814875988; Fri, 18 Nov 2022 15:41:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814875; cv=none; d=google.com; s=arc-20160816; b=QOwdsTmKKbKhk93daX/A/zBdKTIb9yAeRWxC4TON18dqwxhdW3GgZpmPuixBdLYrBv Zhes6PN4zEp0PqX3rGiLtR83lFBo7ksi+RL/bXyu7kxGEbwiFX2750a4n7WzDx4C96uu TiaGOH90Q4Wqxwml4QzZgzwBA1Z6o1VYD/D2d4UKgKSMgkQB6Sa9NO64CTDjf4Riphtb fBTQz39hAdqgKc0bAEodPTTnXm5RLY4aPrxPWXbt0lpFdzhhEejLCuM5a/wajiTqcmKS AjqgJyJCQWaXSEoboxPVHdomjuXuQlLhYV7O83p6WrXYHBpScHTAJ+Fn2Dr1ssKysmlJ qe4g== 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=w/jztV52k9Z2KD3QHVmjdRrphTcoHsSZ1qLnry822Xk=; b=bmR3ynKsmX4Ru2+e4isLvcdNJWdjjX3UJdmObgh71yxSWmtpcmP5QzXnhZYlRf0WjU IV1UARa+WNasyysx/GVtB+/U14TS44IBb3TTI+WiqgaGTTmeFdD4JYb+qA+IrJe68UrD TyXFx4qtFCh7ZMH0VIodAd4AMSJt3MSNQmuHC3BmOlaDZSBT1P8bYgSbtcDsqvuEw3Ry j56y++KRIKO+/jja7XqS3vYsGP7D1dWoIVMVxrj86Ib4XB3xIBiP72y3ozk4Z90a2gwW i3L7iTEILoWkAwuOg5658ItSyc3wTqndSinno3LSVTaleKYtmKB43JPtjsLgUqkd16XI aeMg== 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 d7-20020a056402400700b004676b9092e0si4025335eda.408.2022.11.18.15.40.51; Fri, 18 Nov 2022 15:41:15 -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 S236658AbiKRXkC (ORCPT + 99 others); Fri, 18 Nov 2022 18:40:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236776AbiKRXhx (ORCPT ); Fri, 18 Nov 2022 18:37:53 -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 2D7C95215F for ; Fri, 18 Nov 2022 15:22:32 -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 1owA8m-0002ph-FG; Fri, 18 Nov 2022 23:47:20 +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 1owA8j-0058WH-Qn; Fri, 18 Nov 2022 23:47:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8j-0000Ba-SY; Fri, 18 Nov 2022 23:47:17 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Sebastian Reichel , Maximilian Luz , Vladimir Oltean , Adrien Grassein Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 307/606] media: dvb-frontends/lgdt330x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:41 +0100 Message-Id: <20221118224540.619276-308-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?1749879227095455041?= X-GMAIL-MSGID: =?utf-8?q?1749879227095455041?= 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/media/dvb-frontends/lgdt330x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/lgdt330x.c b/drivers/media/dvb-frontends/lgdt330x.c index ea9ae22fd201..1d6932d8e497 100644 --- a/drivers/media/dvb-frontends/lgdt330x.c +++ b/drivers/media/dvb-frontends/lgdt330x.c @@ -857,8 +857,7 @@ static struct dvb_frontend *lgdt330x_get_dvb_frontend(struct i2c_client *client) static const struct dvb_frontend_ops lgdt3302_ops; static const struct dvb_frontend_ops lgdt3303_ops; -static int lgdt330x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lgdt330x_probe(struct i2c_client *client) { struct lgdt330x_state *state = NULL; u8 buf[1]; @@ -994,7 +993,7 @@ static struct i2c_driver lgdt330x_driver = { .name = "lgdt330x", .suppress_bind_attrs = true, }, - .probe = lgdt330x_probe, + .probe_new = lgdt330x_probe, .remove = lgdt330x_remove, .id_table = lgdt330x_id_table, }; From patchwork Fri Nov 18 22:40:42 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: 22881 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472226wrr; Fri, 18 Nov 2022 15:59:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf4DQY46LNudIBzOse4qhQuB2Ip4gR6hKrZ1HBGDDdID313rzAkEgQkagNiM40oAKbybJQQx X-Received: by 2002:a17:906:a259:b0:7ad:ccae:a30d with SMTP id bi25-20020a170906a25900b007adccaea30dmr8050528ejb.704.1668815985816; Fri, 18 Nov 2022 15:59:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815985; cv=none; d=google.com; s=arc-20160816; b=CTCh12RprPAEDf15shQLdVAzBCadQOFZrKLFfAjtbZkrLBXgMnJO7+nr3KIlMXRNWg Aw0oqG68aopgj44B6wzG5KHGCeVq/H8uxP45rxGBuIw5CaZ1JVv8WX6XbGjNMI/D1+lk IEf6Z3gCF29vzUv0694/Es//bV5SpbnuQHBa89Zg6EoKIkJC2bXY/843nN/jvEINqVyr D+seJym8Ko0ECDb2qydUvsHBOblH5aatsvCd7yjylTAgP94jQyv4GbHNE015leptYHPy YacHo9LiI8nyxRiB6NctwcAXJrsR6h1z3uRZcBHfW/+/B0UQx/hGnfkCkv4ghgfs5mJG ckiw== 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=Qan7++3xOa2pE/EJU6hF17mvqDeA/WL4ebdSuLwYxEE=; b=0Q3i8OEJbWsE2wg6yZhWkHL40YolUaIdVKatlkYdE1Ed8G8+608Z+t404Y9UvrWTDx vJubXsKlkyOrlzTRWyJ3YD88ckr1T5i7uGfEi//DKEZupULnLbwS0znnf4TeU8kLPd9i loZj15x/2K25yYlOWjImRlp6cUIFOebbCQiSb2ib1QNnxBWhQ7Xk0DmllZFim0FcuFwn QBD8L9zO4mpQYIRB+TdptiogwO8RQGQTRSAypjucl5ITCoc+OzHCZeKUvzTO+BhgqwZh Ibj2cpe3QUEDB6n+w7PY34Xwq81//f4WNJDfe05lqpbHhP6zXsY+Vu1eZJ4/Dj9Kx6mn xUdg== 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.59.21; Fri, 18 Nov 2022 15:59:45 -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 S230035AbiKRXw6 (ORCPT + 99 others); Fri, 18 Nov 2022 18:52:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233122AbiKRXvl (ORCPT ); Fri, 18 Nov 2022 18:51:41 -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 42335D08A8 for ; Fri, 18 Nov 2022 15:27:07 -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 1owA8m-0002pm-2m; Fri, 18 Nov 2022 23:47:20 +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 1owA8j-0058WK-SU; Fri, 18 Nov 2022 23:47:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8k-0000Bg-4d; Fri, 18 Nov 2022 23:47:18 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Antti Palosaari , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 308/606] media: dvb-frontends/m88ds3103: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:42 +0100 Message-Id: <20221118224540.619276-309-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?1749880391253294018?= X-GMAIL-MSGID: =?utf-8?q?1749880391253294018?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/media/dvb-frontends/m88ds3103.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/m88ds3103.c b/drivers/media/dvb-frontends/m88ds3103.c index 4e844b2ef597..f26508b217ee 100644 --- a/drivers/media/dvb-frontends/m88ds3103.c +++ b/drivers/media/dvb-frontends/m88ds3103.c @@ -1760,9 +1760,9 @@ static struct i2c_adapter *m88ds3103_get_i2c_adapter(struct i2c_client *client) return dev->muxc->adapter[0]; } -static int m88ds3103_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int m88ds3103_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct m88ds3103_dev *dev; struct m88ds3103_platform_data *pdata = client->dev.platform_data; int ret; @@ -1941,7 +1941,7 @@ static struct i2c_driver m88ds3103_driver = { .name = "m88ds3103", .suppress_bind_attrs = true, }, - .probe = m88ds3103_probe, + .probe_new = m88ds3103_probe, .remove = m88ds3103_remove, .id_table = m88ds3103_id_table, }; From patchwork Fri Nov 18 22:40: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: 22875 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472198wrr; Fri, 18 Nov 2022 15:59:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf7304hBd6DYhFqPfXcfUHnp8tmEVYxDwkhcqV+lxk/VM6iLTMDBmUg31/04XRkTubsmPOON X-Received: by 2002:a17:90b:154e:b0:216:bd62:8e69 with SMTP id ig14-20020a17090b154e00b00216bd628e69mr15543017pjb.205.1668815980965; Fri, 18 Nov 2022 15:59:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815980; cv=none; d=google.com; s=arc-20160816; b=NcASpp/q2SqlJBukKF1umZMdbSYx94Ushwec47QLMvPkQFKGz33pcz9/n6jpHrUtN9 4nNvMi9K1bHLVE8JTH7OJQopuQby1v1vjhXFSnzdmTBYzNvnwH+N0PH6wxQlCl5A8m70 /6BA5MbwJNAM06OSAww+gD7Fc0tizz2Z+toWF5koqHYU9W4jJeU8TWB3nLC1J3iTDmmT ZOmt057QhXjRHTHN8rhZD3PtEw1Lx7Vv89uSPi3yKFiTzXmzHs58FN3plZs0ksnVyEP2 TEhMPYT3hfAYx1NKPJZ3kMUfI9ZPVNXgUHcYa511N0vHnAFVbqoTxkEAdgE5LkGAOdYa PfFw== 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=5uAtxbNCWNwfV8c5YPc+b+yZrYaWZ2WmfX5XluyN58s=; b=iwG6ZS9Pyv7NKxCTfGMJdUdMvYh9a4IMqCB1fFFzPAeCd/9B4tOXcLYt0Ak8yYs8m/ I91SLAEoDAihUws8nx8adbSdpP5WbNhCgGMIjxBCg2HMhoaBJZKjNCKcDI1tJLzSltTj NAAZw3fR5jMNyCQf00Xi26sG5SJvjkTTDveOZclyT627c7Pu4zBIdCpCzOBxkE/hMSqC U6tVnIDvxCvSIGeREEumOlZwqRVLBOxNNjj7Y27UEqDC+timMOEmWT7cQ/53/agLPa/S FRQ6dgGBTCYPV8Pcw/Ci+jEBFwGLtInsGVo3BEuFrs0F+qYW4rHh+vJnT7vpp8YC/ZIB 8tZg== 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 n27-20020aa7985b000000b0056353f0bd40si4524785pfq.29.2022.11.18.15.59.27; Fri, 18 Nov 2022 15:59:40 -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 S232620AbiKRXxG (ORCPT + 99 others); Fri, 18 Nov 2022 18:53:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236862AbiKRXvo (ORCPT ); Fri, 18 Nov 2022 18:51:44 -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 58858B9635 for ; Fri, 18 Nov 2022 15:27:11 -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 1owA8m-0002r2-WE; Fri, 18 Nov 2022 23:47:21 +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 1owA8k-0058WU-I9; Fri, 18 Nov 2022 23:47:19 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8k-0000Bk-Es; Fri, 18 Nov 2022 23:47:18 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Dmitry Torokhov , Maximilian Luz , Luca Ceresoli , =?utf-8?q?Marek_Beh=C3=BAn?= Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 309/606] media: dvb-frontends/mn88443x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:43 +0100 Message-Id: <20221118224540.619276-310-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?1749880386000918461?= X-GMAIL-MSGID: =?utf-8?q?1749880386000918461?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/media/dvb-frontends/mn88443x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/mn88443x.c b/drivers/media/dvb-frontends/mn88443x.c index 452571b380b7..1f1753f2ab1a 100644 --- a/drivers/media/dvb-frontends/mn88443x.c +++ b/drivers/media/dvb-frontends/mn88443x.c @@ -673,9 +673,9 @@ static const struct regmap_config regmap_config = { .cache_type = REGCACHE_NONE, }; -static int mn88443x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mn88443x_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct mn88443x_config *conf = client->dev.platform_data; struct mn88443x_priv *chip; struct device *dev = &client->dev; @@ -800,7 +800,7 @@ static struct i2c_driver mn88443x_driver = { .name = "mn88443x", .of_match_table = of_match_ptr(mn88443x_of_match), }, - .probe = mn88443x_probe, + .probe_new = mn88443x_probe, .remove = mn88443x_remove, .id_table = mn88443x_i2c_id, }; From patchwork Fri Nov 18 22:40:44 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: 23059 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486742wrr; Fri, 18 Nov 2022 16:41:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf7YAPO7FAfscg/4MANAQhjkUIEG/kxzH9NVQ4OQ/Pm0AyyBjwtVdmeNuvY7fp2zd2dJxSfc X-Received: by 2002:a05:6402:1386:b0:458:d7b5:9793 with SMTP id b6-20020a056402138600b00458d7b59793mr7969790edv.377.1668818464995; Fri, 18 Nov 2022 16:41:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818464; cv=none; d=google.com; s=arc-20160816; b=xR6aPSzSZ4k9/5Lz+sBffLs9c0wdnQzzxOrPAPKkG3dZUIslHVwIf15U7CYOXmevqT c2Z89VlHK4ql+FgbuvTmUicyMBc0ShuOh6M6jJAzsmDvkB9whtXq5foK1C5lybQqcF0e Bx42l+agNuuP6CZh2OZRj9E5t/Ui9VjSNGGWy+OsC7CNc5+3usw4rygkFeiODB9gupu/ 6C3GE6puPJPQrWOUgFsXtnrrnRjd8dJ+gM4IGb3H+nVuxcpIEVaDfy2spWC0eCv1Yoa6 qxJm9slFJKRXTgyEOHmSgaYUQyceJXo1eT3JiyOVwX0eBebqS2jlLceSNhiv5hA7sqgZ JPCA== 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=B+iD708vJkhoMMqktDvi/ACz9ZmmyH6zWSAfowy9Cyc=; b=hQ5KaDgvc91Ib0dLJTw0+Y+77XvpDsP0uD7I1XQGX4bKmsZHbM7BCNDGD0urIzbPWR HICSUzG8rp9wst9IRXqFp2IwBAvVKqFSqmUW5poHl00Sapxu2/wlrRgrArwUtHG6sSaS Uk2SrzC3/sEx/gSLUmpUEbquoFa9hwfRPyy7nib4SbX+qJWJ9G0pX+Khs6IPGJD4+KyY GdXf7X9u8Oj67QoPkGuia0RwwiwDPeljaKO4qZ/wFlpEIOaM4LczHBHTdW9bkNpqLhJB meerFDn1+1W0wnQmgh3l7wzkEoxvhfb2pAaz+FZn7ggElOQaBnQCQSZS1BDKPnbeS2v4 2hRA== 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 dz17-20020a0564021d5100b0045782fcb80asi4856311edb.225.2022.11.18.16.40.41; Fri, 18 Nov 2022 16:41:04 -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 S235489AbiKSAaa (ORCPT + 99 others); Fri, 18 Nov 2022 19:30:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235440AbiKSAaC (ORCPT ); Fri, 18 Nov 2022 19:30:02 -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 46A061122C3 for ; Fri, 18 Nov 2022 15:40:53 -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 1owA8m-0002qs-U2; Fri, 18 Nov 2022 23:47:20 +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 1owA8k-0058WR-GI; Fri, 18 Nov 2022 23:47:19 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8k-0000Bo-MP; Fri, 18 Nov 2022 23:47:18 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Antti Palosaari , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 310/606] media: dvb-frontends/mn88472: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:44 +0100 Message-Id: <20221118224540.619276-311-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?1749882990695649811?= X-GMAIL-MSGID: =?utf-8?q?1749882990695649811?= 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/media/dvb-frontends/mn88472.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/mn88472.c b/drivers/media/dvb-frontends/mn88472.c index 2b01cc678f7e..4a71f1c6371a 100644 --- a/drivers/media/dvb-frontends/mn88472.c +++ b/drivers/media/dvb-frontends/mn88472.c @@ -572,8 +572,7 @@ static struct dvb_frontend *mn88472_get_dvb_frontend(struct i2c_client *client) return &dev->fe; } -static int mn88472_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mn88472_probe(struct i2c_client *client) { struct mn88472_config *pdata = client->dev.platform_data; struct mn88472_dev *dev; @@ -719,7 +718,7 @@ static struct i2c_driver mn88472_driver = { .name = "mn88472", .suppress_bind_attrs = true, }, - .probe = mn88472_probe, + .probe_new = mn88472_probe, .remove = mn88472_remove, .id_table = mn88472_id_table, }; From patchwork Fri Nov 18 22:40:45 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: 22983 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476907wrr; Fri, 18 Nov 2022 16:10:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7QYE3JZDaWxQJjY9OygkbxqraNeiLVx6iU03HwijSQraeUa41WeyPnNUaYQXOVE8Lp5NtR X-Received: by 2002:a17:902:d711:b0:17f:52af:d035 with SMTP id w17-20020a170902d71100b0017f52afd035mr1842921ply.106.1668816612037; Fri, 18 Nov 2022 16:10:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816612; cv=none; d=google.com; s=arc-20160816; b=bHSItPPRCItKM3zFvzcBKyis9tvela7WbkiyHNh+T0uRUfKBveR855rRhB4HqQQhdi D4bpDPLcjbPVl6SjAmEdWlG9MGI2kCkx3jAof78D3Tt3dNXrWt/R4a0lEFO5uHntrKG2 JYt5+gFWB6A+9v6PYrTRhSYtDQv2I3CVx0mMba8Z6ymdrrDA2rQZe8MO5xXS9gY2Y3lp BdqKWC2fzLm6DWVIN1phGUt+qhFU2rEm5EahKeUEE1gdvwUcbvOr+TCplAfG40i2Bs3f GDMf7TqT+fpXvnhH5TsWMGh79vJ8/jA0i94FY8BEAk+eXAuKv1ZcgdzqCk8Xq2NogPTp DTdw== 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=5O+Tq79nGIL+eURptNiZ7BkHkN5M6ax2fkZzjYGoSo4=; b=SJFLZ+d9loUkmSIUgccg6eY/WFLWAJ6uNT84zXapgSLuXfEeJkGWbzHYXqYvtUstUr 8rE7UXvgt/NTCxXE2B9BE360d17AcYXeADWAI6jlF+iHlxlznw+LxeCNCM/pQ57txwgo CqesjaeS60g3wudW/JQ6o7Z7d/5f9ZJcP458bnxdT6cV6tb3UyqXeF1sSgleFBjSW+t8 P8az+/NQcZ26hOw1a59WR1fKgXHZ+0Gwk7Kg8rkHlCspou7aC4wAW2I7c3eGmJiBr6UY ujSSTH73FZhVAC8YrgM0anB+6+7xB85ukAQueun0AvbTYt5QRsWk15PrnzUcwtT2Wr7h DWFA== 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 d1-20020a170903230100b00176c9015627si4598814plh.94.2022.11.18.16.09.59; Fri, 18 Nov 2022 16:10: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 S237434AbiKSAEj (ORCPT + 99 others); Fri, 18 Nov 2022 19:04:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238036AbiKSADl (ORCPT ); Fri, 18 Nov 2022 19:03:41 -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 F3546E9141 for ; Fri, 18 Nov 2022 15:30:52 -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 1owA8n-0002rV-2s; Fri, 18 Nov 2022 23:47:21 +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 1owA8k-0058Wa-Q6; Fri, 18 Nov 2022 23:47:19 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8k-0000Bu-TP; Fri, 18 Nov 2022 23:47:18 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Antti Palosaari , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 311/606] media: dvb-frontends/mn88473: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:45 +0100 Message-Id: <20221118224540.619276-312-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?1749881048005096920?= X-GMAIL-MSGID: =?utf-8?q?1749881048005096920?= 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/media/dvb-frontends/mn88473.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/mn88473.c b/drivers/media/dvb-frontends/mn88473.c index f0ecf5910c02..205b14ae584e 100644 --- a/drivers/media/dvb-frontends/mn88473.c +++ b/drivers/media/dvb-frontends/mn88473.c @@ -606,8 +606,7 @@ static const struct dvb_frontend_ops mn88473_ops = { .read_status = mn88473_read_status, }; -static int mn88473_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mn88473_probe(struct i2c_client *client) { struct mn88473_config *config = client->dev.platform_data; struct mn88473_dev *dev; @@ -754,7 +753,7 @@ static struct i2c_driver mn88473_driver = { .name = "mn88473", .suppress_bind_attrs = true, }, - .probe = mn88473_probe, + .probe_new = mn88473_probe, .remove = mn88473_remove, .id_table = mn88473_id_table, }; From patchwork Fri Nov 18 22:40:46 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: 23066 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486890wrr; Fri, 18 Nov 2022 16:41:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf7F6NreldHLYsifHoP6LEvSakYlrdc9F5DdtDxhj6sgv/f5mXK67S8fdtpxkcU4uauvDUq7 X-Received: by 2002:a17:906:1c59:b0:7b1:6b94:129a with SMTP id l25-20020a1709061c5900b007b16b94129amr8049878ejg.328.1668818489359; Fri, 18 Nov 2022 16:41:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818489; cv=none; d=google.com; s=arc-20160816; b=iUxNKaBaYHaE5uMjMDSFUHO22+Y18AapTpc44UE+H5gEPC5/AaSM/0IbLcudQ5HwoM VzTQRD9pcUo/zn+GGpZihkFKclEt7rpoj7MAYAV72hFDpM1d1PZBMOH5iBKrJ30IIoM/ kWUfaQB4f4Kye7Llw2izwUECx5xEEqDFsp1MlWQ0Q1cuHaGpyKrLKZE4wR0fQVLh2tHv eDnJfcJSbAUJKsxC9eZ4cRi+MuB8BzODJ/N89NdlrKmfHxm6uzyBBybqlqheoTuGISr6 NVhOZz+QgNyQO1wbYNPx2xYvk3ovSYcKmIBhodONGuNCpuQozwp/ipr4xYAekPhuqk+r LviA== 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=zlNOAWdw6wYw4vfqmgV/dcsGYT0fhbDTJVK6haNaZUE=; b=uhQgtewcx8Ba6MUYUUPjp78UqQd2of3YVFNPuqjeGsNB/yi301Msw+KNGOf1TB6ICH EtvrHh7UVf7sxeukhMg9QDCEVCi7bayAicIip11MYSKIznD2QzmztpWwaakRFQ4RkJZd UTvb036xtavR4k5G+KhNWg0Gg8wPAsIb32hTbi1s6qAdqHzWlp+3RHH0R5yok8zE6UsQ bMuyA8tuOrHfbbDVUrjirMZQoImGi5tK+O6wSaBLqpk1wqnWwF9w871nEmcHWXIaM1CR tGM4qLrrKiNtnXcDYcrwP4x7nYkM/gpAz8ObbyhVavwb+RAvGTUtIae5uTTVo1ws6CWy lQ+g== 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 ne25-20020a1709077b9900b007418e87eea8si4526813ejc.770.2022.11.18.16.41.04; Fri, 18 Nov 2022 16:41:29 -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 S235585AbiKSAfw (ORCPT + 99 others); Fri, 18 Nov 2022 19:35:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232755AbiKSAfR (ORCPT ); Fri, 18 Nov 2022 19:35:17 -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 34511115D1F for ; Fri, 18 Nov 2022 15:43:08 -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 1owA8n-0002tL-Sn; Fri, 18 Nov 2022 23:47:21 +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 1owA8l-0058Wm-HC; Fri, 18 Nov 2022 23:47:20 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8l-0000Bx-4M; Fri, 18 Nov 2022 23:47:19 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Andy Shevchenko , Heikki Krogerus , Corey Minyard , Srinivas Pandruvada Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 312/606] media: dvb-frontends/mxl692: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:46 +0100 Message-Id: <20221118224540.619276-313-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?1749883016685830876?= X-GMAIL-MSGID: =?utf-8?q?1749883016685830876?= 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/media/dvb-frontends/mxl692.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/mxl692.c b/drivers/media/dvb-frontends/mxl692.c index 129630cbffff..9858e11943a0 100644 --- a/drivers/media/dvb-frontends/mxl692.c +++ b/drivers/media/dvb-frontends/mxl692.c @@ -1308,8 +1308,7 @@ static const struct dvb_frontend_ops mxl692_ops = { .read_snr = mxl692_read_snr, }; -static int mxl692_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mxl692_probe(struct i2c_client *client) { struct mxl692_config *config = client->dev.platform_data; struct mxl692_dev *dev; @@ -1356,7 +1355,7 @@ static struct i2c_driver mxl692_driver = { .driver = { .name = "mxl692", }, - .probe = mxl692_probe, + .probe_new = mxl692_probe, .remove = mxl692_remove, .id_table = mxl692_id_table, }; From patchwork Fri Nov 18 22:40:47 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: 22673 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp461357wrr; Fri, 18 Nov 2022 15:26:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf7UieK0R0yuMX2dP0mOAW/XCbAAohX6KjNoSufaTYIp2npToxoENtfEYbpY8ZYlh+DjLpGH X-Received: by 2002:a17:906:5db2:b0:7ae:d58b:30f8 with SMTP id n18-20020a1709065db200b007aed58b30f8mr7493315ejv.564.1668814017037; Fri, 18 Nov 2022 15:26:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814017; cv=none; d=google.com; s=arc-20160816; b=aZRT3tVhytkYAYdn1dKXYe1wo02E4Z0n3HVSCpSR+HOx0ZkHpB9r3qm7kC4w3YMwLq FYmi5+8+aFjnmTP3d7Lvkq5zk5swUnUF2YtLZGtiYufgLaBAEE3GHaWm5jFjCDIwnICM 1xM9SWlESgFnx3obpLY8yNPuhdLa2Pci4oxtfch78IzujxNERtr3Ppi+bWowWuKMO0Qt q0rAF+AVHWEXRyJVVwZ5xjGKl3i6EdtU+nd7HiIl81e4u9fMMGTfYZWeA0c6LgLj8kLd 29z879hEAQxgNcLoUD5fyVHUE+B1VqyJCNzR8zo60Vsq6QJe1XUrZW+Aor8V3x/oOZEE kCFA== 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=Ej7txlHpWKYPHgKBRkz45E7qvPEh/aGD00DlhOnm8/c=; b=HupbulrHNwO2MXOEDtJ5vOZNgZhbwHMrMWh00Ih8d7Od6Ac6dl4ys+YbRzKc6If7ND byD0qGuOb0neQ2lWNd6mp0Vxo3AQV4YFPKRt0J3jRjlUjhyS36mIprODo2GrpsSQ5aCw YhJb8EH6fseNhGqrTD4MRYwWRoYThsn114YaOqa0oHuEXkRQeMi8JrJ7AHjdKqyVR4Y4 s8f42DHhqP8tqojhtUpTzJ4e/soKeGha4KBpfMoDI+Jw4s3eNf+7oV8OYKrCyMJadD/E nIHd8bWHHHakdldS4Gi/Duq5MdDoolb64Ep5CIb8gdEvKhM1siHM3i1baYPLsvwUHYfE fKaw== 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 gt12-20020a1709072d8c00b007825bd02a6asi4664140ejc.54.2022.11.18.15.26.32; Fri, 18 Nov 2022 15:26:57 -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 S235682AbiKRXZY (ORCPT + 99 others); Fri, 18 Nov 2022 18:25:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231745AbiKRXWv (ORCPT ); Fri, 18 Nov 2022 18:22:51 -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 28A411EC78 for ; Fri, 18 Nov 2022 15:13:39 -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 1owA8n-0002t0-MZ; Fri, 18 Nov 2022 23:47:21 +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 1owA8l-0058Wi-EC; Fri, 18 Nov 2022 23:47:20 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8l-0000C2-Jg; Fri, 18 Nov 2022 23:47:19 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Antti Palosaari , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 313/606] media: dvb-frontends/rtl2830: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:47 +0100 Message-Id: <20221118224540.619276-314-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?1749878327206921268?= X-GMAIL-MSGID: =?utf-8?q?1749878327206921268?= 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/media/dvb-frontends/rtl2830.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/rtl2830.c b/drivers/media/dvb-frontends/rtl2830.c index e0fbf41316ae..db3254950147 100644 --- a/drivers/media/dvb-frontends/rtl2830.c +++ b/drivers/media/dvb-frontends/rtl2830.c @@ -768,8 +768,7 @@ static int rtl2830_regmap_gather_write(void *context, const void *reg, return 0; } -static int rtl2830_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int rtl2830_probe(struct i2c_client *client) { struct rtl2830_platform_data *pdata = client->dev.platform_data; struct rtl2830_dev *dev; @@ -887,7 +886,7 @@ static struct i2c_driver rtl2830_driver = { .name = "rtl2830", .suppress_bind_attrs = true, }, - .probe = rtl2830_probe, + .probe_new = rtl2830_probe, .remove = rtl2830_remove, .id_table = rtl2830_id_table, }; From patchwork Fri Nov 18 22:40:48 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: 23058 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486736wrr; Fri, 18 Nov 2022 16:41:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf6wbYu8D1cOfcyFfOdRue7/2jBJEf4AY6+2qN64KWjVrdnS4UmL0ks7x/Iu9af24LqUOvWq X-Received: by 2002:a17:906:3a10:b0:7a4:22c4:ade7 with SMTP id z16-20020a1709063a1000b007a422c4ade7mr8094122eje.722.1668818462201; Fri, 18 Nov 2022 16:41:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818462; cv=none; d=google.com; s=arc-20160816; b=ZJ03djpj+uUptCiXI5hbsum24OiGOSfhHMjFRsedQz4TKBcsy7FhCRV0/nuSNAFpTq xwHMm88pgO1JffOFkOFlea8H6zbyp5HtZHYyVahmHj88jXVn+nfHlAFqQk340e9F3j+C Faopnohu2Ej0HPVzjRhe8fK53PFci28eteuSl3ju5S4bvEVd2V1QopyGy01kv8sqOUj4 t35ezCtkOUuOOUf8nmQ7+UOegUUeBXKnaKXTF9X3E3Y+hqzFPdEziWVN12WKi5E2uqui yc4K3TR3KbSbKkKnF+xDG4pUQXykG4wAeZLzU9mrE/j9kz0rlmQ/jPpFFNYafTK7wQ7+ pbXQ== 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=Yl/4QZD+L+sDT1zWoGc83XapnkNTQ14fwSt0h0cG0J8=; b=JeX0ZTUh7XjFLPbaPxkJb0jgDhumRa6vyvi14RqTXVxM8dYuShz/2Pxf+SZwhsjfIV bIF9+fhWOeLujgqvEZL4WQf3S9SRfuJTzHWuakgxYI8qq7teuqOFtfxB6FaRy5KtXPE8 lRC1O9as+ZiJf3PkQxnYQcrT679qhmHpaxyo2hddnZEeRjwFxoh0QwcV+7R7TODpVEtt KVGXh4p3d37CXXkqIc+moHYpOnJcZPmLABqwTusXxZn88TjUTu6C4wjeF+gS0nmElyeh TwlpF/+HhaJrwQ1zdPahh9DcgiXe7yadIC5WS5YDT3kHI5MADGwFQKsePaGJD8Luu34m 7e/g== 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 y8-20020a056402170800b0046938445a51si882918edu.499.2022.11.18.16.40.38; Fri, 18 Nov 2022 16:41:02 -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 S236179AbiKSAaF (ORCPT + 99 others); Fri, 18 Nov 2022 19:30:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235466AbiKSA3q (ORCPT ); Fri, 18 Nov 2022 19:29:46 -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 28F3E110926 for ; Fri, 18 Nov 2022 15:40:39 -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 1owA8o-0002us-Ao; Fri, 18 Nov 2022 23:47: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 1owA8m-0058X0-1k; Fri, 18 Nov 2022 23:47:20 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8l-0000C5-PH; Fri, 18 Nov 2022 23:47:19 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Antti Palosaari , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 314/606] media: dvb-frontends/rtl2832: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:48 +0100 Message-Id: <20221118224540.619276-315-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?1749882987802144144?= X-GMAIL-MSGID: =?utf-8?q?1749882987802144144?= 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/media/dvb-frontends/rtl2832.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/rtl2832.c b/drivers/media/dvb-frontends/rtl2832.c index 4fa884eda5d5..900d4db8b922 100644 --- a/drivers/media/dvb-frontends/rtl2832.c +++ b/drivers/media/dvb-frontends/rtl2832.c @@ -1021,8 +1021,7 @@ static int rtl2832_pid_filter(struct dvb_frontend *fe, u8 index, u16 pid, return ret; } -static int rtl2832_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int rtl2832_probe(struct i2c_client *client) { struct rtl2832_platform_data *pdata = client->dev.platform_data; struct i2c_adapter *i2c = client->adapter; @@ -1136,7 +1135,7 @@ static struct i2c_driver rtl2832_driver = { .name = "rtl2832", .suppress_bind_attrs = true, }, - .probe = rtl2832_probe, + .probe_new = rtl2832_probe, .remove = rtl2832_remove, .id_table = rtl2832_id_table, }; From patchwork Fri Nov 18 22:40:49 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: 23010 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477946wrr; Fri, 18 Nov 2022 16:12:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Db4fL8CgVYYvOq4hbEp1rtzF3bu1/WFRrfd5hGou5LymaX0jGZ+s1IreFGH21JAIYZvy4 X-Received: by 2002:a63:d049:0:b0:470:71df:a6c3 with SMTP id s9-20020a63d049000000b0047071dfa6c3mr8626109pgi.447.1668816772321; Fri, 18 Nov 2022 16:12:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816772; cv=none; d=google.com; s=arc-20160816; b=qbypKEyY47UEgEykJ9FDs2y0NwtL8sGZu+tgX1uK47i2yCjyVmWrLUwvZ39WyI0dJG n5i0qKkBLDcFCF+SxH0Q1IdfmjdzLkP0C6PyWmndhRGKAQ9vjsqk9VK8h62CWP3t0QMA r7OF5L02oNglGCDWRiqEDUKjxWFGX1FdADijjzSbMFOvzB8uhtneady37Fu/8NM1xZ1+ bVoWC3+AtGc5Q2FKjqTwf0DrTzG/4+Y9GgiCIIvpw8dWTzefuCVkDz/o6KfsVlfJeWNc aD/2tS1oPHMuBXqbKQ9C+1a0KqQWtvhCIuH5GSya83Sz1mkWlXDMqewD1a2mljAO/sOJ VfZg== 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=NT65Qq4NpfVaJOCdu6AnDfgdaiDw1A31dD9px4R9fX0=; b=FNjxY2ENu77p6GZqeCA4ldfXNmJrcxPgLpKCUPcA5XZ4Pmrv2pf39uD3AzyZlv0C4X g75osoTunEblhCHW2oXfIhV20iawJ9q1Bb6v0rz3XBa91Z3A9piZr3KfVuI8WoIJTnp6 0LSMEEMUNesHb930rlnj0/d9fPAbXQUz1Egn/+KfiET/KZflGLojcmxSF76TL9TIEv/F m8og4SV88SIM7U0VKLZAnDRvmwmb57JJ9scrH81YUlpgZfuGAWE6IgWTXbYyFklQ7qvo avYNtOL0mFnMTXCeG/uZuGyIcA+uS1ye0CMgAqujGxuvnm1Ln/XisnqJXjGKSb8FN12O Dl0g== 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 k71-20020a62844a000000b0053e5ac66c3csi4820502pfd.38.2022.11.18.16.12.39; Fri, 18 Nov 2022 16:12:52 -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 S237741AbiKSALj (ORCPT + 99 others); Fri, 18 Nov 2022 19:11:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234048AbiKSAKJ (ORCPT ); Fri, 18 Nov 2022 19:10:09 -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 66614A198 for ; Fri, 18 Nov 2022 15:33:28 -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 1owA8o-0002u3-8Q; Fri, 18 Nov 2022 23:47: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 1owA8l-0058Wt-S5; Fri, 18 Nov 2022 23:47:20 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8l-0000C9-VJ; Fri, 18 Nov 2022 23:47:19 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Matthias Schwarzott , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 315/606] media: dvb-frontends/si2165: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:49 +0100 Message-Id: <20221118224540.619276-316-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?1749881215887989975?= X-GMAIL-MSGID: =?utf-8?q?1749881215887989975?= 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 Acked-by: Matthias Schwarzott --- drivers/media/dvb-frontends/si2165.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/si2165.c b/drivers/media/dvb-frontends/si2165.c index 86b0d59169dd..cc07e965c34c 100644 --- a/drivers/media/dvb-frontends/si2165.c +++ b/drivers/media/dvb-frontends/si2165.c @@ -1144,8 +1144,7 @@ static const struct dvb_frontend_ops si2165_ops = { .read_ber = si2165_read_ber, }; -static int si2165_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int si2165_probe(struct i2c_client *client) { struct si2165_state *state = NULL; struct si2165_platform_data *pdata = client->dev.platform_data; @@ -1293,7 +1292,7 @@ static struct i2c_driver si2165_driver = { .driver = { .name = "si2165", }, - .probe = si2165_probe, + .probe_new = si2165_probe, .remove = si2165_remove, .id_table = si2165_id_table, }; From patchwork Fri Nov 18 22:40:50 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: 22698 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462728wrr; Fri, 18 Nov 2022 15:30:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf4lgKHfLFXAKTG+QajF5Sw088cXLrz0c0SF53rvuN3FUJuvwM4DNUI6SDZuF9aMDrzOmIKQ X-Received: by 2002:a05:6402:2421:b0:461:524f:a8f4 with SMTP id t33-20020a056402242100b00461524fa8f4mr6273122eda.260.1668814251068; Fri, 18 Nov 2022 15:30:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814251; cv=none; d=google.com; s=arc-20160816; b=B+gnbIP/wfFX/VWcjW2sUmfl9vbwN1ehl0tjNhHl7CNqtTD/CZoH78mxKvjTUtYvCT qD2XR5vsBW9G0I+3pfQ8GJmLTEiU6nun0pKo8Xl+CLHW6zRb1aheg8ukwOyh/r7XLrK/ SYjj5leXNLcIFDsus/cMh2LT6WdY1hpxoFXoQJPoaFL5d18GQhbtHoBaVJ/boGsrgxop agTuHMMpL1/+lp64KLgv0YPtjGA7BHKcaMUGquXZyG2YygsiRIXKR48cdeeYBP/DRECj htD4cEl4l8YMDK3p/6cAGE1PCasaeJ2SOasp+l7j+uUrSjwDKBt9kRlRE/cHSXjsW2cj wzjQ== 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=EpIG+3nl9/mmluiy0LlMFeJfG4CerxOL7LWBhNWlZKA=; b=lTJ846SnHZIdNSZCJ0ZBXdQNVnzGaLxy/P08hEu5ENGMXnepDZ58/0u22IwRyOZHqb c8Yyck3//nQ3c1YRSHpElrE97eYwuZdTEFxwGjrjOg3NMcbvztYLHbk6ljq9vFYRTv01 q1O+PJxbiL/TDmiQy+wqSRVW+kbQg7jNZbHdD9Hdbe+R4ZM7OfAqzoA79nJWgZpJO+51 6SA5PCU6+1FpSZQVDznMxaV9v+HSAMYDTANX1clbLe6udCT5++2n4Wxg6VCxykubb6hI yaY06BWJ5TKHmToKQPbErmeqDJWWb0vwlZA46eRdtctGVTorvPMwKsjP20xcXLH5Fams K7wQ== 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 b17-20020a056402351100b0045cf2d0357asi4748343edd.34.2022.11.18.15.30.26; Fri, 18 Nov 2022 15:30:51 -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 S235743AbiKRX1k (ORCPT + 99 others); Fri, 18 Nov 2022 18:27:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235833AbiKRX1J (ORCPT ); Fri, 18 Nov 2022 18:27:09 -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 60386BCE7C for ; Fri, 18 Nov 2022 15:15:16 -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 1owA8o-0002uL-4Z; Fri, 18 Nov 2022 23:47: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 1owA8l-0058Ww-Ue; Fri, 18 Nov 2022 23:47:20 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8m-0000CC-5j; Fri, 18 Nov 2022 23:47:20 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Antti Palosaari , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 316/606] media: dvb-frontends/si2168: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:50 +0100 Message-Id: <20221118224540.619276-317-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?1749878572594373397?= X-GMAIL-MSGID: =?utf-8?q?1749878572594373397?= 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/media/dvb-frontends/si2168.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c index 8157df4570d1..2a0e108c5eb0 100644 --- a/drivers/media/dvb-frontends/si2168.c +++ b/drivers/media/dvb-frontends/si2168.c @@ -672,8 +672,7 @@ static const struct dvb_frontend_ops si2168_ops = { .read_status = si2168_read_status, }; -static int si2168_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int si2168_probe(struct i2c_client *client) { struct si2168_config *config = client->dev.platform_data; struct si2168_dev *dev; @@ -799,7 +798,7 @@ static struct i2c_driver si2168_driver = { .name = "si2168", .suppress_bind_attrs = true, }, - .probe = si2168_probe, + .probe_new = si2168_probe, .remove = si2168_remove, .id_table = si2168_id_table, }; From patchwork Fri Nov 18 22:40:51 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: 22953 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474912wrr; Fri, 18 Nov 2022 16:05:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ywUkwyXxFY9SM/96YqNhh5n7bm9iElBK7YZxehXNE7fkLyF2XQ/0PaZa+J6MixYT0rhPY X-Received: by 2002:aa7:cb96:0:b0:461:bacd:c85d with SMTP id r22-20020aa7cb96000000b00461bacdc85dmr7806423edt.278.1668816315618; Fri, 18 Nov 2022 16:05:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816315; cv=none; d=google.com; s=arc-20160816; b=VB4nE/1ofwDNV8klepdtbP+GgL6PMDKxoTjYgyGyo7tOPGbpWlUnvOhV+FuTEJXBWA fS0ZwcjUezRbAltnfIgwV1uqfdh4JMqaDWmaXE1D1n/Ptez39M56PlMFMMDHaGG7I1AP wQBAiobuPwN7ic5WKGd0ktqwgaz3z/gU/CwOTgCEpbT5dmzjSIG0HZf67ydJM4G54MNe IAixxk8Pzhpx/j8v31O3EgDdswR624iTY2vsf50RKP0sqwBA+w6ZUL9eR+KLqVFJPl3X WQH/CvhoXA4r6bpIf7c37wV19Ujli/loxpy5XRBdhcRWg1dbjOMAjpIRIMKzsGOSGo// cqxA== 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=kYwhGSgrKPl36Yt+k+SHm734mZm56cPvWwTt6svL8E4=; b=nO9VbBYpvygTcdXY0Texl6rB49No2P3zEp8gLq32A0Uhgo5xiD1YFWDF4hcnQKPcaZ jtoX4/0umTLVsnuzv42wYmDUEIKHiBnF2+lD4b7A5SbUTlalQIaaIQ4wb9TjZdHytWzF IW/TkMJggxMWJNHOe0VH/xcSxtS7wMRSr4aT8nJQ2hLV0nsAKYEXfnnGxAmRur17a7Yd geIEjZ+jGVr2JSFieaWQe8aERakPnz/jE2RGN72SYz8JAqeZUoV8C2Fw9t7TmNutjzhP zfOJ5j+XCEdBGL8hPwzroUIsoYUbbInSUx9KCPetVikucN/8w4uwAo7bbGPzL6dV7WqV NTew== 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 cw15-20020a170906478f00b0078e11a20640si4850422ejc.2.2022.11.18.16.04.47; Fri, 18 Nov 2022 16:05:15 -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 S236645AbiKRX4j (ORCPT + 99 others); Fri, 18 Nov 2022 18:56:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234198AbiKRXzJ (ORCPT ); Fri, 18 Nov 2022 18:55:09 -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 54A17CB6AA for ; Fri, 18 Nov 2022 15:28:07 -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 1owA8p-0002x4-KE; Fri, 18 Nov 2022 23:47:23 +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 1owA8n-0058XI-0h; Fri, 18 Nov 2022 23:47:21 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8m-0000CG-Eh; Fri, 18 Nov 2022 23:47:20 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Olli Salonen , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 317/606] media: dvb-frontends/sp2: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:51 +0100 Message-Id: <20221118224540.619276-318-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?1749880736845701530?= X-GMAIL-MSGID: =?utf-8?q?1749880736845701530?= 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/media/dvb-frontends/sp2.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/sp2.c b/drivers/media/dvb-frontends/sp2.c index 27e7037e130e..3395f6b5b948 100644 --- a/drivers/media/dvb-frontends/sp2.c +++ b/drivers/media/dvb-frontends/sp2.c @@ -363,8 +363,7 @@ static int sp2_exit(struct i2c_client *client) return 0; } -static int sp2_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sp2_probe(struct i2c_client *client) { struct sp2_config *cfg = client->dev.platform_data; struct sp2 *s; @@ -417,7 +416,7 @@ static struct i2c_driver sp2_driver = { .driver = { .name = "sp2", }, - .probe = sp2_probe, + .probe_new = sp2_probe, .remove = sp2_remove, .id_table = sp2_id, }; From patchwork Fri Nov 18 22:40:52 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: 22976 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476563wrr; Fri, 18 Nov 2022 16:09:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf58fIwSS6f3/FKnWRYdL8OQfWMzMAjcHLT2cqO7KPKRcfzPCcCDlYaRjeMTOMdv6j+e6gEV X-Received: by 2002:a05:6402:1744:b0:459:2d37:dfbd with SMTP id v4-20020a056402174400b004592d37dfbdmr8291134edx.336.1668816561161; Fri, 18 Nov 2022 16:09:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816561; cv=none; d=google.com; s=arc-20160816; b=opGTbycWsUwZTSIICvOvmlllDarnjZ3AFth1M9+zfxhkrp0K6RcCJr3rZnZY8/RTlJ mlTt1uVKAlocNq2NdVPoTEOkT2+FG5b4oOqVMhMoHSSyJ7J2dNfWKd8gDMtQZG5m9ifz 47Jm3S02H/ztozZL6cKuEkCrdgzxNQWFs+rzSEiUShjSyxXrJiZi3/Bxgc2RaoD0y36R hVBge7IzBGVCVs6bOJYl+Nqf39JoxUR9mTpNvJ9oezNz2fQlDL1sl5q4L2vTg0gzN3Y7 Z/5hIj/TCKAiR6541L3B3AMF0jByfofwErzZ5/idcp0JvtKzRL47bIjZfQMDgJ964CwC 7I/Q== 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=bVcYMZSbBgFavguagaowVDLviEYh5rf96ipYXVoBI+w=; b=wBK3tXte9hUltsEDyN8XW7ueQBgfGuuCN8ZyQLzLfHcpTgduuNWVm3/isskUcSO2Nn BqDKGCXO1oyDz1GsRGAAD0xX5gYirtSIxMKOPY/d1s3GKBk7NUB9hBZAYEJf8nLLk1AG H+CT4igp/ZWOnPuAvAq2yxWe7UH4q+exlwzUjkgc+D/1/td3VCZIwJVWquaK5/fk5cIP +1N5X2XbJrTAKy1qn1lKn/+clvCp4ksch7WJPg+JzzuI0sC74Uojb/OMO+GhABXea6FU FbVIc+teKY61RGPwUlgctFjghq2ffHksfbTpzjyLfHx76Ze6Vnip7/7NHGsinMCbaO6X alDA== 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 g38-20020a056402322600b00461c12f1f4csi4200781eda.478.2022.11.18.16.08.55; Fri, 18 Nov 2022 16:09:21 -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 S237467AbiKSAGp (ORCPT + 99 others); Fri, 18 Nov 2022 19:06:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237394AbiKSAGU (ORCPT ); Fri, 18 Nov 2022 19:06:20 -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 1F92EED735 for ; Fri, 18 Nov 2022 15:31: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 1owA8p-0002wl-GE; Fri, 18 Nov 2022 23:47:23 +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 1owA8m-0058XC-Sy; Fri, 18 Nov 2022 23:47:21 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8m-0000CK-M3; Fri, 18 Nov 2022 23:47:20 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Jean Delvare , Luca Ceresoli , Peter Rosin , Vladimir Oltean Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 318/606] media: dvb-frontends/stv090x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:52 +0100 Message-Id: <20221118224540.619276-319-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?1749880994437727417?= X-GMAIL-MSGID: =?utf-8?q?1749880994437727417?= 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/media/dvb-frontends/stv090x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/stv090x.c b/drivers/media/dvb-frontends/stv090x.c index 0a600c1d7d1b..9bde0ad6f26e 100644 --- a/drivers/media/dvb-frontends/stv090x.c +++ b/drivers/media/dvb-frontends/stv090x.c @@ -4990,8 +4990,7 @@ static struct dvb_frontend *stv090x_get_dvb_frontend(struct i2c_client *client) return &state->frontend; } -static int stv090x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int stv090x_probe(struct i2c_client *client) { int ret = 0; struct stv090x_config *config = client->dev.platform_data; @@ -5085,7 +5084,7 @@ static struct i2c_driver stv090x_driver = { .name = "stv090x", .suppress_bind_attrs = true, }, - .probe = stv090x_probe, + .probe_new = stv090x_probe, .remove = stv090x_remove, .id_table = stv090x_id_table, }; From patchwork Fri Nov 18 22:40:53 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: 22801 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466815wrr; Fri, 18 Nov 2022 15:41:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf4e0WCBNQA32d5z3mGtOuh9Vz26uPwZtkq7FOCFTI8wneM9h+4m1vltgaAuO4S6CU26qCIy X-Received: by 2002:a17:906:560c:b0:7ae:5884:81b1 with SMTP id f12-20020a170906560c00b007ae588481b1mr7777753ejq.155.1668814867956; Fri, 18 Nov 2022 15:41:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814867; cv=none; d=google.com; s=arc-20160816; b=xQ7E9zEJAvTnvjAYRqE0mbL9OgmFrFBiAJFFynT80/qPH/ORZS8TEFrdMbRZers0DV lm582wgkPFm7VcJTqBnY1RusDUYhkPlxVq3EtHMi00MdxjKNaShtJ48xhhhW/zJwlBZT bHZIQ9Kym2ud4mvMpxP+FLS0hM97FwMfOLwYEa+2X07WR95+WSGwG92lrTgcVa3xjV7g sy8f8ynwvzVUXrKgxLZRE/BIlLZfHPIF7vrBr5ZRyC+UqAebyqQI8eaKyIyQ40vhAauY vCYtmVptncUSDVvp98XRCQdqHfIKgyHXeirup0w0qfTNq00nVrS8oip/6b2E//NbB6Ab dq1g== 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=ak6hkxRwepZ1cqcMTJTna96DneAtBy2lN6dZ/XH8W4Y=; b=bmH0X+GxIJ/sVheNezvsKxJHfNIHLxtpcK38jiOTBvCuQ1nhqVkJ/EFUT2JDDRNx6j HH0NNlQ1m8FfgCpb3adxO9/584tPGexk7gHzAZJ0GQ1J+gm46DwKxjgUVQKXxqFjnq1S PF3dtMfxxlLTXQwhIUV6SGKK8D4AHWwcJauRPw8OXF5DhI+YdPjfJX6aoUHjunVCByrk QamoylYflbpF60ihFDRZoDyl7X/VsF3UWoWGPFKVQtFdtwzbm2RDtvaZWL2EUX9UAMp4 71NZ/2LpPFB/B0ezim8rFTXcHj0RmhAAH+2IGPprl6Z4fgoXzCagzo9XtDdH15d9DF2n GQlQ== 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 xf4-20020a17090731c400b00730a4246dd0si4967213ejb.593.2022.11.18.15.40.44; Fri, 18 Nov 2022 15:41:07 -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 S236525AbiKRXjx (ORCPT + 99 others); Fri, 18 Nov 2022 18:39:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236766AbiKRXhw (ORCPT ); Fri, 18 Nov 2022 18:37:52 -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 771DD6D96F for ; Fri, 18 Nov 2022 15:22:27 -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 1owA8p-0002wp-Kq; Fri, 18 Nov 2022 23:47:23 +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 1owA8m-0058XE-Uc; Fri, 18 Nov 2022 23:47:21 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8n-0000CO-03; Fri, 18 Nov 2022 23:47:21 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Dmitry Torokhov , Javier Martinez Canillas , Peter Rosin , Miguel Ojeda Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 319/606] media: dvb-frontends/stv6110x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:53 +0100 Message-Id: <20221118224540.619276-320-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?1749879218623113399?= X-GMAIL-MSGID: =?utf-8?q?1749879218623113399?= 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/media/dvb-frontends/stv6110x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/stv6110x.c b/drivers/media/dvb-frontends/stv6110x.c index fbc4dbd62151..b2f456116c60 100644 --- a/drivers/media/dvb-frontends/stv6110x.c +++ b/drivers/media/dvb-frontends/stv6110x.c @@ -406,8 +406,7 @@ static struct stv6110x_devctl *stv6110x_get_devctl(struct i2c_client *client) return stv6110x->devctl; } -static int stv6110x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int stv6110x_probe(struct i2c_client *client) { struct stv6110x_config *config = client->dev.platform_data; @@ -481,7 +480,7 @@ static struct i2c_driver stv6110x_driver = { .name = "stv6110x", .suppress_bind_attrs = true, }, - .probe = stv6110x_probe, + .probe_new = stv6110x_probe, .remove = stv6110x_remove, .id_table = stv6110x_id_table, }; From patchwork Fri Nov 18 22:40:54 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: 22647 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460546wrr; Fri, 18 Nov 2022 15:24:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf7RxOnBR8NegZPzFvp9WS8zMbSqUH8GS4SiQTcL785651n9b0hMAFNgcNR3KjYC1oFoG3cg X-Received: by 2002:a05:6402:5010:b0:467:60bd:41a1 with SMTP id p16-20020a056402501000b0046760bd41a1mr8165677eda.97.1668813875572; Fri, 18 Nov 2022 15:24:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813875; cv=none; d=google.com; s=arc-20160816; b=HEgynXXL5TZRSWC2jLixUVPNNdtoTmu27jOm9mhikmYkimiebo5sLdSTEjMeh51Gxg 2c6SbHeBV2ouxuT0yZjPqAvUziQziU82xaeQLzlz9irZESZHHhx8O5rX3masfP99rrlO lGHYV9VLxrA6dg88UtjyxZY9XpPSkna/vuaXEKCeHt/KLtDbP4rs9lwVLyTvyUfXUGFt TPmVK+eQBxV6GlSGhhT/S0aGd5ol35kTD9m1gPnA7l5R6WmS+sm9CAl7xY7UdTCevyus fUnauxZbvRg7zDSinP5rkr3LXimJA4yGL2l7j49MDnxTSujGh1/MaZoJ1S/hK/M9pkAX ezYg== 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=5VfW+zQqbam7tbxiohlluw/zU8xc1LGKEdwaxOfWJEk=; b=rvp6iFOfZuvFNbVWPQD7IlnSH+9R8vo4DVic9xrx8fzDz8tzQd7JB533noFhSQ+Qh7 UnaueI+BIpoWzf4o98FUAVYcw8pwCj/6GujYGq8Bku9VQgbp8PY4cocFwAbBoDtIr/M+ ZZ7AIbH4Fg/Nj/7b95WLJKVYcfrCzmhrVB1n7e7UI+pGW84oDkdHzoayqb9Du6y+9z1R ZEWI6w3KmAWBP6ZWSkuFILVXVimXFg9KcjLj3c+XFaL4vchmL+Ztrjr8kw5ZZM6oa60v nCdpe5u5CZyNRylbB5DQunGmSCxylyYo9LAAvIpHCd2AnNifm8JaKmVU1giD6lVeYA9/ h6cg== 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 t20-20020a170906179400b007ae86742c20si3067687eje.282.2022.11.18.15.24.08; Fri, 18 Nov 2022 15:24: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 S234810AbiKRXXI (ORCPT + 99 others); Fri, 18 Nov 2022 18:23:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230271AbiKRXVK (ORCPT ); Fri, 18 Nov 2022 18:21:10 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12B4752154 for ; Fri, 18 Nov 2022 15:12:24 -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 1owA8p-0002xX-Vo; Fri, 18 Nov 2022 23:47:24 +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 1owA8n-0058XN-6y; Fri, 18 Nov 2022 23:47:22 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8n-0000CT-AQ; Fri, 18 Nov 2022 23:47:21 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Akihiro Tsukada , Mauro Carvalho Chehab , Petr Machata , =?utf-8?q?Marek_Beh=C3=BAn?= , Andy Shevchenko , Jean Delvare Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 320/606] media: dvb-frontends/tc90522: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:54 +0100 Message-Id: <20221118224540.619276-321-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?1749878178091480082?= X-GMAIL-MSGID: =?utf-8?q?1749878178091480082?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/media/dvb-frontends/tc90522.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/tc90522.c b/drivers/media/dvb-frontends/tc90522.c index c22d2a2b2a45..77a991bf4713 100644 --- a/drivers/media/dvb-frontends/tc90522.c +++ b/drivers/media/dvb-frontends/tc90522.c @@ -779,9 +779,9 @@ static const struct dvb_frontend_ops tc90522_ops_ter = { }; -static int tc90522_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tc90522_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct tc90522_state *state; struct tc90522_config *cfg; const struct dvb_frontend_ops *ops; @@ -840,7 +840,7 @@ static struct i2c_driver tc90522_driver = { .driver = { .name = "tc90522", }, - .probe = tc90522_probe, + .probe_new = tc90522_probe, .remove = tc90522_remove, .id_table = tc90522_id, }; From patchwork Fri Nov 18 22:40:55 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: 23051 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486644wrr; Fri, 18 Nov 2022 16:40:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf6YG0ZOVKCwbxdndFfSOPbVjo47VJoDgPHOlapbTJ8JDIQCqfAWxdATVnu0oQiN5aevt5cj X-Received: by 2002:a17:906:e0d2:b0:7ad:b45c:dbe1 with SMTP id gl18-20020a170906e0d200b007adb45cdbe1mr8153618ejb.726.1668818444729; Fri, 18 Nov 2022 16:40:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818444; cv=none; d=google.com; s=arc-20160816; b=WriKA0v0844Aqvza/gNrC6L+izH7pWI7Gg6k/362NddGVfm1NiEMKwAJRufYcyZEfy s5KB+umKzFGQCafvClhV4DBWD12wlgoXsXUJ8BJc8EI8djDWpBYmJZHYDQHBw0AisJuB yhOX5aJu0cq9dW9wv59ZFv2yZZIBGpNWgUeqwSpu5JeLVCk3jopTnRWM91o77g1V3UNb G8CHvYFsrfQPNBmkR8wSJqPaYDHFSQVtxYDt2TCxkmQV3/ea8Gdf5WxL1F8cviQv2ABm D7MNg78uhjLsjI3O1x++9CtrcwPIKQ99n4QV/FCPHzKxpM9qJtBbA3gyjfu52N/71b2k RZjQ== 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=8O20JyyuY7+epeg4ad3Vk8kgpQU+R6/vKq84oGEBXIg=; b=VK+XVqH3bgArq5uyMbpu9s3p2BF+XRmB79WrN0nqAWBEvtAp9xAmuMDUFMTBvwHk51 /yAP4FvhzOCLl3vDYfJji2cwQGxy/OuUL7265thXyIIQIHy2NLp9/wU06xc5W2rt6hUP H7hDNVuwtfney1bj7ScqH/KlqB3pxPZhe+QHKiC7ocNfS3ozB7kgBgvbJzANFW5DhNAS 9qowiznVI2O1h6xlTGSktkLXBfaY3fYQgWVCV9ejSySrR4YHyFnx9RETLgZOVnRpgP42 8/bDuntBL/AoBBA6+99Rm5wi/NfRJZRdr5U/AAsiRyS6IlpVHg8m6OMlET5RiFZKKmFt viEw== 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 js13-20020a17090797cd00b0078e1e77f443si4845061ejc.418.2022.11.18.16.40.21; Fri, 18 Nov 2022 16:40:44 -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 S232912AbiKSAYz (ORCPT + 99 others); Fri, 18 Nov 2022 19:24:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235298AbiKSAYW (ORCPT ); Fri, 18 Nov 2022 19:24:22 -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 20DB7D13B9 for ; Fri, 18 Nov 2022 15:38:11 -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 1owA8p-0002yA-W9; Fri, 18 Nov 2022 23:47:24 +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 1owA8n-0058XT-Db; Fri, 18 Nov 2022 23:47:22 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8n-0000CW-HA; Fri, 18 Nov 2022 23:47:21 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Antti Palosaari , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 321/606] media: dvb-frontends/tda10071: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:55 +0100 Message-Id: <20221118224540.619276-322-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?1749882969374555227?= X-GMAIL-MSGID: =?utf-8?q?1749882969374555227?= 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/media/dvb-frontends/tda10071.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/tda10071.c b/drivers/media/dvb-frontends/tda10071.c index d1098ef20a8b..c8e5617d08c0 100644 --- a/drivers/media/dvb-frontends/tda10071.c +++ b/drivers/media/dvb-frontends/tda10071.c @@ -1145,8 +1145,7 @@ static struct dvb_frontend *tda10071_get_dvb_frontend(struct i2c_client *client) return &dev->fe; } -static int tda10071_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tda10071_probe(struct i2c_client *client) { struct tda10071_dev *dev; struct tda10071_platform_data *pdata = client->dev.platform_data; @@ -1241,7 +1240,7 @@ static struct i2c_driver tda10071_driver = { .name = "tda10071", .suppress_bind_attrs = true, }, - .probe = tda10071_probe, + .probe_new = tda10071_probe, .remove = tda10071_remove, .id_table = tda10071_id_table, }; From patchwork Fri Nov 18 22:40:56 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: 22777 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466070wrr; Fri, 18 Nov 2022 15:39:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf5XG4l+dRkK8UdmOdLwTMLleXlN5yw85/Z443/VwklrAfgcEoP+WEO9FhYCSk5iAeWD6MvY X-Received: by 2002:a05:6402:1045:b0:461:68e1:ced5 with SMTP id e5-20020a056402104500b0046168e1ced5mr8344866edu.142.1668814743916; Fri, 18 Nov 2022 15:39:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814743; cv=none; d=google.com; s=arc-20160816; b=j/9VJinFZqJYkTR8Il0971Y+WHreePjxbmBSHxhOCOIuIIawSseUPgoeDfEASfKofe u7Bpv1EVSo16Hbh8bqHbWSB8spp71mTRp5S79Y7WHwPcwSPDhGAGIn8UW73TU468BhNC 6PeW151eZUuzw8DTnMdkAcuEfhQDpGD0/wuGw6OfBjou8abMDCJyL721daqLdOJjxyS9 9aimTqyR7cz/d604batjsFJUfJg3C+XDZrd45r4NYJQdO1jMYBiZ9olK26QvbaS7rTjH eY5YgTAzsOmt0EFiKgtwcLYv1oaeasXmjMdGmG/TRhyavuyjJpCo+rfNrP/pCAoc2c+T c8Pw== 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=H8tjAoJM695dqga+YR324v9ffnJ8lPFKQvRFuRgxNhQ=; b=t9pvQ9wHkHM0BCVbyNIJptuDNOgfH/TneQB7sTGP8RUhMu+u4ffm0oJp7IbVcUZzNK 5DdPK1aJ4oH9AHyXIkSaXATQCQn7Rn+dDz8PriMrPWupJ0udU5TDdrtJoY0tQat7Eg9o siMS1cfzXm2xfXtAjimxTJ3Nb/zm0+9jSZphPfQ+/Crm7np8up/grZKjRhn+X5DVk86K AdVISjc4UA7EqAlAGEVqrZTkD3OK9YDJI24kIwnZEXjdE8uViZJPzzAijv6UIr1AvC0C ofYnnhQ63nUA1w8xNCnEtBK4XQQQTvgHHUtgleFd1vZOlCFl/bh5u+3Ctbb3JM/8vZoQ nDfg== 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 17-20020a170906059100b0073d710fec77si3384142ejn.251.2022.11.18.15.38.37; Fri, 18 Nov 2022 15:39:03 -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 S236584AbiKRXhT (ORCPT + 99 others); Fri, 18 Nov 2022 18:37:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236464AbiKRXdC (ORCPT ); Fri, 18 Nov 2022 18:33:02 -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 4E70A1106 for ; Fri, 18 Nov 2022 15:21:07 -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 1owA8q-00030E-Oi; Fri, 18 Nov 2022 23:47:24 +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 1owA8o-0058Xm-Dx; Fri, 18 Nov 2022 23:47:23 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8n-0000CZ-ON; Fri, 18 Nov 2022 23:47:21 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Jeremy Kerr , Heikki Krogerus , Adrien Grassein Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 322/606] media: dvb-frontends/ts2020: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:56 +0100 Message-Id: <20221118224540.619276-323-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?1749879088908047141?= X-GMAIL-MSGID: =?utf-8?q?1749879088908047141?= 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/media/dvb-frontends/ts2020.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/ts2020.c b/drivers/media/dvb-frontends/ts2020.c index 02338256b974..c28fee7509cd 100644 --- a/drivers/media/dvb-frontends/ts2020.c +++ b/drivers/media/dvb-frontends/ts2020.c @@ -550,8 +550,7 @@ static void ts2020_regmap_unlock(void *__dev) mutex_unlock(&dev->regmap_mutex); } -static int ts2020_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ts2020_probe(struct i2c_client *client) { struct ts2020_config *pdata = client->dev.platform_data; struct dvb_frontend *fe = pdata->fe; @@ -721,7 +720,7 @@ static struct i2c_driver ts2020_driver = { .driver = { .name = "ts2020", }, - .probe = ts2020_probe, + .probe_new = ts2020_probe, .remove = ts2020_remove, .id_table = ts2020_id_table, }; From patchwork Fri Nov 18 22:40:57 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: 23138 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488473wrr; Fri, 18 Nov 2022 16:46:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf5hFKoVEa7/gMwWv8NY15eOqjd+hbu+sLyq8gyOz4UUMdS2QUnlzmEss6GQRCN37N7NUSnU X-Received: by 2002:a17:907:393:b0:78d:f308:1cd with SMTP id ss19-20020a170907039300b0078df30801cdmr7947851ejb.754.1668818763825; Fri, 18 Nov 2022 16:46:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818763; cv=none; d=google.com; s=arc-20160816; b=SeRrs/5TskcPDEu6qOPZZG4vkI3MQiU/7Mf4Kn995/vfICiioVwmHfWeZ7Z/T71S1U SZQEig/FjkHl84AydzSdU6GMs9PQaYFsDisGYRcutsdxkpo5HommgIJmEL7L0z2HnX3d oyJgGn10vd5bzWTU6E4Ld+rygzKkmPum5dg0Lz7u9Ml2bqJbv/ZTheD/pD9UESYgq+72 1E8cm85+flrKHEUAKCA4v8iWVIDwlc1970XQOOsJwfkB9M8yAmJSwqrYndwohAFI3vNc 35rYvbCbXm4Fp2/KhTLbLCoT4H/4JB1cwxpbvS3LP/JH7qdk94ZYdaEtHRkKKME17Fha KENA== 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=sHolrMwmGZgj3XfIY5m+76tO0zsGIjAhiY+vtTy9qDM=; b=k03HKJSGGqbwYVJ2Ir4NowSMbocqofct1VlK9eehnr2KN5lwoF0sCp2zJtooc4u7XW P+LEur5X3QS+ano39MfCBwF87LRzoIOvHmiZ1lQiFtNUL1q+C+27qp9I0xUhx2GOgjxZ poVKBx0cdftAypE4CIXddevcmUj2hLCeZv1OMfB6WbIy5VAFmhAiyQneOzja2cNH+UoR nsYtmaTIgfe7J9z4vR1I8olWZphtz0zlh+Q70pnUZ19ngnN9Px4/acKiBAuXxtDM7WJa e1NkigRuu5rWHnKiNFxp+1EVua2hq+ud+pC+HmwNTqX+TVqmA1VwK1M/Hilo+A0l7Mxq nD1g== 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 h12-20020a05640250cc00b004537a3c4982si5071437edb.601.2022.11.18.16.45.32; Fri, 18 Nov 2022 16:46:03 -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 S237312AbiKSAnw (ORCPT + 99 others); Fri, 18 Nov 2022 19:43:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236889AbiKSAlE (ORCPT ); Fri, 18 Nov 2022 19:41: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 28C18C80C0 for ; Fri, 18 Nov 2022 15:44:56 -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 1owA8q-0002z3-9R; Fri, 18 Nov 2022 23:47:24 +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 1owA8n-0058XZ-Rw; Fri, 18 Nov 2022 23:47:22 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8n-0000Cf-V2; Fri, 18 Nov 2022 23:47:21 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Pavel Machek , Sakari Ailus , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 323/606] media: i2c/ad5820: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:57 +0100 Message-Id: <20221118224540.619276-324-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?1749883304497936137?= X-GMAIL-MSGID: =?utf-8?q?1749883304497936137?= 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/media/i2c/ad5820.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/ad5820.c b/drivers/media/i2c/ad5820.c index a12fedcc3a1c..9945d17fadd6 100644 --- a/drivers/media/i2c/ad5820.c +++ b/drivers/media/i2c/ad5820.c @@ -290,8 +290,7 @@ static int __maybe_unused ad5820_resume(struct device *dev) return ad5820_power_on(coil, true); } -static int ad5820_probe(struct i2c_client *client, - const struct i2c_device_id *devid) +static int ad5820_probe(struct i2c_client *client) { struct ad5820_device *coil; int ret; @@ -377,7 +376,7 @@ static struct i2c_driver ad5820_i2c_driver = { .pm = &ad5820_pm, .of_match_table = ad5820_of_table, }, - .probe = ad5820_probe, + .probe_new = ad5820_probe, .remove = ad5820_remove, .id_table = ad5820_id_table, }; From patchwork Fri Nov 18 22:40:58 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: 23136 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488436wrr; Fri, 18 Nov 2022 16:45:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf52aBqreldan3HEMRAk+YrD71BMymVuq6PRnXjeH4SGVsa603f3wZl69/NA4TtEucUgqhAH X-Received: by 2002:aa7:d998:0:b0:463:a4a7:d3f1 with SMTP id u24-20020aa7d998000000b00463a4a7d3f1mr8297073eds.299.1668818759820; Fri, 18 Nov 2022 16:45:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818759; cv=none; d=google.com; s=arc-20160816; b=qyjMhV5nIvAFyuYYwgIuedsXnjmLmQ2bZW+slfv3Jbncy/jYPq3pNqTDsZps72lAZ9 iipFe10i/hbAzReaes6HUjjPnSlTHehlanAco/zupw+9/S0DPgXNS9SmaKHCiUTAGDpi gmQSxDytQIzuUr3IydxJQzDvkNjNcdtpkANzN7No53g8Dt8MN0zbMRvHqLg4uPelHAuU 6iDoX4tAVzi0P5+zP3vm8Zm0ZNjdRqG68zwyycA9xjL3aXF0GmOVgsTJcATL8QoUaUUk KTk4uMwoNMMwhTgJ00xpitokQZCZGW4tmeLz1JGVpa1jTYxGiVvDRtlUNgsoEGqn/Ms7 ZnQg== 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=SIF0+WZGNMXYsgbHNM5DAQyPa1mK4/s0UEv3EqdplvM=; b=OUic9UFeojJ9rePCTvGOtAeVr+AF1jH5at62WRCmYMzi2rHYuAZRx0afC+bxXIoNEa LPv3TjnXq2xD8PD/Cyjwf3Ab/8Oai4HLtvs6cmPDUmm/4NHps5i2W+6fI1NGrKJZgMAV z3NhXszan1XP8TZKhnYmke4vP9E5BPofvwGEg7aSXwVJRddAQB2Z4VrGxJrN0QOAQVrB eTt6UXLvJTCjIRrkx/Zq6nqxKADPBlQOse41LEjB5B+gmY3sH9TnndKZuJ6whF1PZ6Fp UnijK/38vDVozpZ9MN7idfg99v32CvolZB8uv2UAGVa8y8pNtLQXF2QWPdVEMFGjTzNY FQIA== 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 u23-20020aa7d997000000b00458d2bdcb30si3885494eds.96.2022.11.18.16.45.28; Fri, 18 Nov 2022 16:45:59 -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 S235783AbiKSAjv (ORCPT + 99 others); Fri, 18 Nov 2022 19:39:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233750AbiKSAio (ORCPT ); Fri, 18 Nov 2022 19:38:44 -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 CB376118643 for ; Fri, 18 Nov 2022 15:44:16 -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 1owA8q-0002zN-KR; Fri, 18 Nov 2022 23:47:24 +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 1owA8o-0058Xd-0C; Fri, 18 Nov 2022 23:47:22 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8o-0000Cj-63; Fri, 18 Nov 2022 23:47:22 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Hans Verkuil , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 324/606] media: i2c/ad9389b: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:58 +0100 Message-Id: <20221118224540.619276-325-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?1749883300139155102?= X-GMAIL-MSGID: =?utf-8?q?1749883300139155102?= 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/media/i2c/ad9389b.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/ad9389b.c b/drivers/media/i2c/ad9389b.c index 4a255a492918..ad17097a2d25 100644 --- a/drivers/media/i2c/ad9389b.c +++ b/drivers/media/i2c/ad9389b.c @@ -1080,7 +1080,7 @@ static void ad9389b_init_setup(struct v4l2_subdev *sd) ad9389b_set_isr(sd, false); } -static int ad9389b_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int ad9389b_probe(struct i2c_client *client) { const struct v4l2_dv_timings dv1080p60 = V4L2_DV_BT_CEA_1920X1080P60; struct ad9389b_state *state; @@ -1207,7 +1207,7 @@ static struct i2c_driver ad9389b_driver = { .driver = { .name = "ad9389b", }, - .probe = ad9389b_probe, + .probe_new = ad9389b_probe, .remove = ad9389b_remove, .id_table = ad9389b_id, }; From patchwork Fri Nov 18 22:40:59 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: 22753 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465145wrr; Fri, 18 Nov 2022 15:36:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf6bhomoYXJRRtxsMXaIRETN507TU/8bl7i3hGLKFGP2zEe1z9zqcKM85IidDQuf4Gkaocqi X-Received: by 2002:a05:6402:3203:b0:467:b8c9:a7fa with SMTP id g3-20020a056402320300b00467b8c9a7famr8344906eda.25.1668814605963; Fri, 18 Nov 2022 15:36:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814605; cv=none; d=google.com; s=arc-20160816; b=Ej1NNunYou1PSQlZj+K2O3wYR0P8gReRtwUS3VI5QzcwoMfXDBR1OOanBmhFJ/lA5T ECwA0wOaJ8Q6a5y6DEmvSSF8EI1jIZi++y8IdGNU8avxDJZ76kvk7tuWYW8FpHDRwHm8 9UZ7CVCaJlEO9IwvRmr9IH4O04t87Zmoll0Jt5SMlu+CkzrYE5kicJls0AITo42bvWEt TQANThVL/Xo9QOY4fmRkvMwgNO666bpxuC0UINf09Sx0qiWkyXGnsxDeMAqotQBSz6DN c/u/9Oy36naiWSqfw35TtLz32gw+Kvc7WKu4MurpQJbNKSIVtrOVSfoQZ5aT9phqlOiw HR1A== 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=LNqqmuR0JZat0FokzXRTFUdfpLVA1gm7UwVtUhHddX8=; b=0iiGSO3WUE0dP5kYxrcx7Pi+UUdkyE8b/Xrq1wv4/iMYeBraykxQP2FGWju04Zn7Dr plI560d8KIXVCoBKlxkssHc2Fs7K4K0+IbTKvB5Um5PgqXpwkZEwSsgjX7MxFxpvE2Ta d5Rz5K+QNuDr4UD10d/xv2YkS2anrG7b7zQaGj3MO0861xvhkn4T7F/2/uJ8qwgiCnLF PyUcvaKzxYo8Gj62C5qRXpyP5qMlK/MUQLiPMLAadrAigEQppwaq1gpWMouemNBFD2sX Y9Sw3tevWdDIs271EyEh186uUZig8he6onV5BI8ulD4L1DiQ8fbthRgqTkm0/DnN9Ayt 1AgA== 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 f8-20020a05640214c800b0046771defe07si3888194edx.529.2022.11.18.15.36.22; Fri, 18 Nov 2022 15:36:45 -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 S236240AbiKRXfp (ORCPT + 99 others); Fri, 18 Nov 2022 18:35:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236178AbiKRXcK (ORCPT ); Fri, 18 Nov 2022 18:32:10 -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 A19DF97EFA for ; Fri, 18 Nov 2022 15:19:51 -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 1owA8q-0002zw-9s; Fri, 18 Nov 2022 23:47:24 +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 1owA8o-0058Xh-AX; Fri, 18 Nov 2022 23:47:23 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8o-0000Co-Ew; Fri, 18 Nov 2022 23:47:22 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sakari Ailus , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 325/606] media: i2c/adp1653: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:59 +0100 Message-Id: <20221118224540.619276-326-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?1749878944381251543?= X-GMAIL-MSGID: =?utf-8?q?1749878944381251543?= 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/media/i2c/adp1653.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/adp1653.c b/drivers/media/i2c/adp1653.c index 1f353157df07..a61a77de6eee 100644 --- a/drivers/media/i2c/adp1653.c +++ b/drivers/media/i2c/adp1653.c @@ -463,8 +463,7 @@ static int adp1653_of_init(struct i2c_client *client, } -static int adp1653_probe(struct i2c_client *client, - const struct i2c_device_id *devid) +static int adp1653_probe(struct i2c_client *client) { struct adp1653_flash *flash; int ret; @@ -536,7 +535,7 @@ static struct i2c_driver adp1653_i2c_driver = { .name = ADP1653_NAME, .pm = &adp1653_pm_ops, }, - .probe = adp1653_probe, + .probe_new = adp1653_probe, .remove = adp1653_remove, .id_table = adp1653_id_table, }; From patchwork Fri Nov 18 22:41:00 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: 23131 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488370wrr; Fri, 18 Nov 2022 16:45:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf62E4hMYCrmq14nhzt3aaTCMGlDXEKyTJWQ5fsSLCWadhg+lzTinS2DoTTaRKMXN9BIdQJz X-Received: by 2002:a17:902:ead1:b0:188:f461:800f with SMTP id p17-20020a170902ead100b00188f461800fmr1962808pld.56.1668818747012; Fri, 18 Nov 2022 16:45:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818747; cv=none; d=google.com; s=arc-20160816; b=nczsu03FvxCIfwVKIsUqQcryFDzf5svwcFkk2xcc1ixRzkM4IDHUjuwLEePRa9UaFs gYYl51cou79p+cGCcELVRgC8jwqb2ZcTLOzczrU9hIFs6VLsuxPLL3dlYBj2fcAQPZzX yaXIP6XxlV3nS7+AziY/KCiXGyZ95KMmy6aQ9oJ5RbeoaLmhECf6npoTVj1ObX+lHXKn IgpxjL4uOqXxFG66D63WXSqGArPBCq0yUfiVTUovVLdEThqQ391fmIVxufxTsVkloaJh 8MHk2ZBiCGSNZFdZyC2F61dkaaeIN9KYCQZytC93lCYvTS2swhWVnnSL6BZ3Mge5xAPr twBw== 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=c3r8THfXNOLJpgUYM06ILCm3bIAOF7sPVtzj4E0oIsc=; b=bkorHPVO/b9VXJ88rEMdw0i7cJEPMBxPT1lEWG2SqNdSEb+SXTr4HGQmbNLM1O0xEI 854P0caEA9ESI5OTPOMSIG7cd6IOY5kFB7+WTwgeNs+tlGYdtbPkBgWqhstqNdkVVQgY 0WhzrsY901/G8+HamtfQhPLESG5ngngHOnjmE7hrQfe2+/ykt3LmeV2TorOj4jvbaVWu jyPqEw1+gBaXdPUGe89OQ/1bjdGtO5uFBIZeIvfaNEzmCW7QxzwxAellwJS1eYxE+D2t GLiQQfmNNTDLtmunGPZBZMI8nlzIruvJ2vvooXsfN5C9FjAHu33rpCgM8F5w2v7Uvoj0 FlvA== 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 t8-20020a635348000000b0047704a39c4asi5273920pgl.504.2022.11.18.16.45.26; Fri, 18 Nov 2022 16:45:46 -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 S236195AbiKSAkQ (ORCPT + 99 others); Fri, 18 Nov 2022 19:40:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234268AbiKSAjE (ORCPT ); Fri, 18 Nov 2022 19:39: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 0F0E311866A for ; Fri, 18 Nov 2022 15:44:22 -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 1owA8q-00030B-OX; Fri, 18 Nov 2022 23:47:24 +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 1owA8o-0058Xk-Cq; Fri, 18 Nov 2022 23:47:23 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8o-0000Cr-LG; Fri, 18 Nov 2022 23:47:22 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Ajay Gupta , Andy Shevchenko , Peter Senna Tschudin Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 326/606] media: i2c/adv7170: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:00 +0100 Message-Id: <20221118224540.619276-327-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?1749883286440379775?= X-GMAIL-MSGID: =?utf-8?q?1749883286440379775?= 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/media/i2c/adv7170.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/adv7170.c b/drivers/media/i2c/adv7170.c index 61a2f87d3c62..aa0f80e299b3 100644 --- a/drivers/media/i2c/adv7170.c +++ b/drivers/media/i2c/adv7170.c @@ -334,8 +334,7 @@ static const struct v4l2_subdev_ops adv7170_ops = { /* ----------------------------------------------------------------------- */ -static int adv7170_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adv7170_probe(struct i2c_client *client) { struct adv7170 *encoder; struct v4l2_subdev *sd; @@ -388,7 +387,7 @@ static struct i2c_driver adv7170_driver = { .driver = { .name = "adv7170", }, - .probe = adv7170_probe, + .probe_new = adv7170_probe, .remove = adv7170_remove, .id_table = adv7170_id, }; From patchwork Fri Nov 18 22:41:01 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: 22907 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472793wrr; Fri, 18 Nov 2022 16:00:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf7KRUEbN+g7kZ+Cin0LWqAmrlvoaUuqVCJLSp7uzsiSRwybb8vzBUrntzVs9IsZSOvNNxaj X-Received: by 2002:a17:906:fc9:b0:7ae:ef99:6fb2 with SMTP id c9-20020a1709060fc900b007aeef996fb2mr7659256ejk.761.1668816055991; Fri, 18 Nov 2022 16:00:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816055; cv=none; d=google.com; s=arc-20160816; b=A09obM4ZpNx2LNBRtKx0OEsCGaDFfQgWZzGa7yaIGIbPO0Ijq8N4p5pNJpdYBRcIKN Zgqk3lMT+gG1xoWq8uQ4j8YVIlwhrxcHX6dNFGFXLdccbEDE19inoU61W0WDqgNX/Y5I gjcTMkS106bSVJypx7DoC+YfMQTnIQF1izTOZHiMq2FBGaNtf8g0zvIg04ss/kVt+856 ZbylwPT6SJ++PioH0KXF+5C4Y5WtmLmDTh7XFlfU0mfHbAqrqoZ8wrt/SXP8FOYfszRX LOLYCKplnE4ajNF/ibLJM2wMGj7K7ZYkqrcjK1np2lfTY6iGfgz+6HN1zkneS9fqOyNf yodA== 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=mojPiR/Z6F8aAOz7xGP7QfPGWsjHQyRntcG8FrYjZ6I=; b=CBKTwnC9gPICq/ryJKL+PRT8RkjbUo3FuyDl4QzIR6209VjC24LQ9mBKZbnK9D0V6a PzKCkpcuXpiVuD0h0SgkubzRE/t37YJ7Qdbbzw7NmS3rTIC/b5t1iRrRI2sVoS5iV4pm EQS4D5DTuwM0gwV/lI0qVbOmBwVcytcZQ/+/igv349Awfl9NfsPLu5hhHnRiyJLRyIck RgdBbzvdfFIjWK/Pm27ZpVEud38uZ8Kxh26AOQybrRL5en3u+4+9zb8dGdGCkIKjuFCK wdak+cvKWjty9+ySCzv/EOp2z7ZB9zd+wTX/xpV5oPyaeKt7kWRFbnI+kpHA1BKBVRUP ZXZQ== 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 j16-20020aa7c410000000b0045c13366de4si3943669edq.572.2022.11.18.16.00.28; Fri, 18 Nov 2022 16:00:55 -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 S234941AbiKRXzX (ORCPT + 99 others); Fri, 18 Nov 2022 18:55:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231491AbiKRXxl (ORCPT ); Fri, 18 Nov 2022 18:53:41 -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 3AD87D2DE8 for ; Fri, 18 Nov 2022 15:27: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 1owA8r-000321-8x; Fri, 18 Nov 2022 23:47:25 +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 1owA8o-0058Xw-VZ; Fri, 18 Nov 2022 23:47:23 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8o-0000Cv-U6; Fri, 18 Nov 2022 23:47:22 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Peter Rosin , Dmitry Torokhov , Greg Kroah-Hartman , Peter Senna Tschudin Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 327/606] media: i2c/adv7175: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:01 +0100 Message-Id: <20221118224540.619276-328-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?1749880464536252233?= X-GMAIL-MSGID: =?utf-8?q?1749880464536252233?= 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/media/i2c/adv7175.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/adv7175.c b/drivers/media/i2c/adv7175.c index b58689728243..d9bea2b9ec33 100644 --- a/drivers/media/i2c/adv7175.c +++ b/drivers/media/i2c/adv7175.c @@ -389,8 +389,7 @@ static const struct v4l2_subdev_ops adv7175_ops = { /* ----------------------------------------------------------------------- */ -static int adv7175_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adv7175_probe(struct i2c_client *client) { int i; struct adv7175 *encoder; @@ -443,7 +442,7 @@ static struct i2c_driver adv7175_driver = { .driver = { .name = "adv7175", }, - .probe = adv7175_probe, + .probe_new = adv7175_probe, .remove = adv7175_remove, .id_table = adv7175_id, }; From patchwork Fri Nov 18 22:41:02 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: 22857 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472016wrr; Fri, 18 Nov 2022 15:59:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Ag5rv33mpbxVL9khKOuEglTIHJKFmsaSk5kC7k+wyWr1R/ptfs93NjuMblQHsaRZgHCb8 X-Received: by 2002:a17:90b:3d0a:b0:213:3521:f83a with SMTP id pt10-20020a17090b3d0a00b002133521f83amr9894913pjb.84.1668815943539; Fri, 18 Nov 2022 15:59:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815943; cv=none; d=google.com; s=arc-20160816; b=yM4WoiQ1NZK8tYWftpJoqCuidPg+vqcLCI1k8HhAo56KgvGp5H66xAb3foSD2wMBv2 dt6Cuygw0izOiqmN5xAe+yy+yLrYNNbyrQInkCqEZA4THxrrgNa73PFGgbV7A8g/I/Th 1uz5mVmAbd+QbOKOn0WLzWaXte+tZd1Bz30ifZwo5asIm1xFLh5VHVXYjEzgtJIi2Osx uXLU+rwQ5STWetPxODYAnl1PJzMYfHOQ+o9IX7EaBEOwCtTj5UZUtkQIksI1ym4CMIPe rW+2X2fWxtEwm9YVSEs46q7GqPigEzu22YpXB+LfvVo/nseb0a36T02fSQRh8KecQQOU Re0Q== 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=/DsOJEbFJs7zp/UapmzL9q/Gnnsx7QHGEjHMlnEGrj8=; b=g6gdV9njlRtpj+jHPOcDjeEhmE4bbAXuHIV83Dm65umeKaK3wN2EW/U3W5nSfwLw8E 9glHbUofjMU6XAL0wRJAnXLYFGcxJ5xTM6aDEp07Do3vMrQepHyjW8glCCAkEu0L7Thw aGWeXVaYWeXyhBZP9iD8o/J8wwmsyyVaB95meHyMVbn7Z3yMrplv01DvUXTYLfsdSqp2 RwjxH2u4VBKqyneKFpsvb+kXyoQ8sF/u/X1zjYcv7pY9m3uZlZoZAiye+319CzOb42B3 ocUMIceiB4WoVawBNwmmPlEw6hbzxFQiiz/7TKQLyuflYuDgUqZTbBhtRuDi6/WY+gL8 XW7Q== 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 s11-20020a65584b000000b00476eab03fbasi5362779pgr.865.2022.11.18.15.58.51; Fri, 18 Nov 2022 15:59:03 -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 S233478AbiKRXvm (ORCPT + 99 others); Fri, 18 Nov 2022 18:51:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232732AbiKRXuf (ORCPT ); Fri, 18 Nov 2022 18:50:35 -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 74138C6629 for ; Fri, 18 Nov 2022 15:26:50 -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 1owA8r-00032i-OZ; Fri, 18 Nov 2022 23:47:25 +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 1owA8p-0058Y2-8y; Fri, 18 Nov 2022 23:47:24 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8p-0000Cz-4x; Fri, 18 Nov 2022 23:47:23 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lars-Peter Clausen , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 328/606] media: i2c/adv7180: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:02 +0100 Message-Id: <20221118224540.619276-329-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?1749880346690133702?= X-GMAIL-MSGID: =?utf-8?q?1749880346690133702?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/media/i2c/adv7180.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c index 216fe396973f..a22402b7acff 100644 --- a/drivers/media/i2c/adv7180.c +++ b/drivers/media/i2c/adv7180.c @@ -1393,9 +1393,9 @@ static int init_device(struct adv7180_state *state) return ret; } -static int adv7180_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adv7180_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device_node *np = client->dev.of_node; struct adv7180_state *state; struct v4l2_subdev *sd; @@ -1610,7 +1610,7 @@ static struct i2c_driver adv7180_driver = { .pm = ADV7180_PM_OPS, .of_match_table = of_match_ptr(adv7180_of_id), }, - .probe = adv7180_probe, + .probe_new = adv7180_probe, .remove = adv7180_remove, .id_table = adv7180_id, }; From patchwork Fri Nov 18 22:41:03 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: 23152 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp489016wrr; Fri, 18 Nov 2022 16:47:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf43z82wQLq+CCtlcdVFPvilKGLULmKtyMf9uvpVGux8+TdhczWbGauUa6Q4q8ncOTl19Ihf X-Received: by 2002:a17:906:8994:b0:7ae:ea4:583c with SMTP id gg20-20020a170906899400b007ae0ea4583cmr7800373ejc.587.1668818864448; Fri, 18 Nov 2022 16:47:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818864; cv=none; d=google.com; s=arc-20160816; b=LKauJ0DkuaNkGcsWAd+fkViRmK49TjEBEKkMw68uu4RdkA1dkqOknHOZ6nDWwBoglx n4khXrsxqrOSed3f9+PrOwb6cY3l4OSZCvYeqZ0jHx48LgGAUbnRylRW19uHoMlygXwd F8aqvbakrSfyKU+izKHGdzn7rsOsOryejAFs1JAoN6gyWrwj3tan8z08LApJiWgQSaez MOWfXIcciljLM5Nb8EVacRxcqOTNelzhgpgb6jdxhbl/DRbEQfi+soainLNgUyaKs0OK zZZBWtqBuq3bz4twYRGwIV6gKRZJZayHG9m/BUDAvZW2ZFifQiXvuEbgDwgW/jcM2yEe CtBg== 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=PQ/9IWoipKuPd5qMnA8hLbTq321gNd73CRo70v5RJm0=; b=o4c8SINj/+Tc3J0uU8VmZ03pdIyEvR6WsBERhuj1vRTv2FuPg9q2YQJzOIcQWyJvFY mkGrEMEijxzTMoVDZ1AXyE9b/RZ3E35zULQF0cFR9N5YmpgaclwGO/Q6nHjMeLv5Gl7p A8A64ZEMU3iq8d/c5h75YHhHJ+tH4Jyfz6h8o3vFximpAsvI2Y1Vm1ez1pNOZ74dOmdz RGMHh1e3679jryVYzVi6tHJ0il3KmxAzl77kla9Op3JPJaj5YI7wvhqPWTe+j81SkiET Ro0fexH2/4Z4r3RW0C/yzshjMQvYXjkfoP1Wf1PlzENjvT/S2wfpr90GOD8ZvIIFliAc rhBQ== 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 qw3-20020a1709066a0300b0078ca7bbf616si4272793ejc.746.2022.11.18.16.47.20; Fri, 18 Nov 2022 16:47:44 -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 S237330AbiKSAlx (ORCPT + 99 others); Fri, 18 Nov 2022 19:41:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236379AbiKSAkR (ORCPT ); Fri, 18 Nov 2022 19:40:17 -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 C01588E08E for ; Fri, 18 Nov 2022 15:44:44 -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 1owA8r-00033I-HM; Fri, 18 Nov 2022 23:47:25 +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 1owA8p-0058YA-Fk; Fri, 18 Nov 2022 23:47:24 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8p-0000D3-C0; Fri, 18 Nov 2022 23:47:23 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Luca Ceresoli , Benjamin Mugnier , Peter Senna Tschudin , =?utf-8?q?Marek_Beh=C3=BAn?= , Linus Walleij Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 329/606] media: i2c/adv7183: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:03 +0100 Message-Id: <20221118224540.619276-330-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?1749883409365071298?= X-GMAIL-MSGID: =?utf-8?q?1749883409365071298?= 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/media/i2c/adv7183.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/adv7183.c b/drivers/media/i2c/adv7183.c index 313c706e8335..98b63d79d33d 100644 --- a/drivers/media/i2c/adv7183.c +++ b/drivers/media/i2c/adv7183.c @@ -521,8 +521,7 @@ static const struct v4l2_subdev_ops adv7183_ops = { .pad = &adv7183_pad_ops, }; -static int adv7183_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adv7183_probe(struct i2c_client *client) { struct adv7183 *decoder; struct v4l2_subdev *sd; @@ -632,7 +631,7 @@ static struct i2c_driver adv7183_driver = { .driver = { .name = "adv7183", }, - .probe = adv7183_probe, + .probe_new = adv7183_probe, .remove = adv7183_remove, .id_table = adv7183_id, }; From patchwork Fri Nov 18 22:41: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: 22717 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp463357wrr; Fri, 18 Nov 2022 15:32:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf4dEhmhTBdf9yctXUQQ8yaS1nRQ+i9tNqqnze4QDseiAkoaI/QifkEajALiZ/oNHEQPfqEs X-Received: by 2002:aa7:d896:0:b0:461:e0b5:8402 with SMTP id u22-20020aa7d896000000b00461e0b58402mr8144386edq.189.1668814334241; Fri, 18 Nov 2022 15:32:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814334; cv=none; d=google.com; s=arc-20160816; b=FrlKQboojOnhHvr//CTEOobP5X+/UFPOwimeTY4FO1oKb8EwTjaQ6bRH9rqRghvN5D KhgQRoaS8gehqBRqGP4mZc8nZuCe3R8zCQ9YGKnmcoJ53ysP2SWtBOW6ODoeCAt3yXpX RkBUzxqm1ox9GzU6aJbkk74gbO9SqNikHyO3v3hxXEQJ/2Unt1iAVe5iNRkCsYNc4nID 1crqviLrENyPhhiq+e1uvHgrpBXDffZ5N8eavyX53PtSgIEVkEQRs/+Ha99S3X3xGPLA AKp3juH9XjsxOolZR1ZNC5yL3egJXhzNTpho/mjWSRwLjriQhtR9IlTLN6xQHqbKR3bS 5diA== 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=opkKIHbFkzCkKtoh0Bhk8gJLcv6kTkd/U6pwoFUO9UM=; b=JsIPfr/Qzf6We8Le/3A9tE2gTQC/NBF91rPkL/cPi4eZckYai4KjkP4Uow0UTS01zT MT0qFF6/wuba0qhJz/8TjTA+ZJWdsDOA6IKDBedfuvw86auVKpzebCZ4XhiDb6DqWTpk RzcFW/b5Qt5JkTcIpcGgrpy67DQQltIhw7cj4zyAsPzOv/GBzig4r4il0CPo3Xs86iTw +4zXLmC2mkK4Ow+p3g1FNHhhaacf1p8owfTi5QURU255vqtIM4buqCoVKacmV9sCqUVU +V+YxIfWF3RpAzibD7p7gaZ2H8xNX0X7qq6nBsxk+PnH8slcWI9BR9HLs8yar4Mf9yp/ Voqw== 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 hd10-20020a170907968a00b007aeebbe2ec4si4467773ejc.784.2022.11.18.15.31.50; Fri, 18 Nov 2022 15:32:14 -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 S235889AbiKRXao (ORCPT + 99 others); Fri, 18 Nov 2022 18:30:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235758AbiKRX3Q (ORCPT ); Fri, 18 Nov 2022 18:29:16 -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 11846C1F47 for ; Fri, 18 Nov 2022 15:17:29 -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 1owA8r-00033A-UH; Fri, 18 Nov 2022 23:47:25 +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 1owA8p-0058Y6-ER; Fri, 18 Nov 2022 23:47:24 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8p-0000D8-JD; Fri, 18 Nov 2022 23:47:23 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Crt Mori , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Sebastian Reichel , Miguel Ojeda Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 330/606] media: i2c/adv7393: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:04 +0100 Message-Id: <20221118224540.619276-331-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?1749878659490141419?= X-GMAIL-MSGID: =?utf-8?q?1749878659490141419?= 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/media/i2c/adv7393.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/adv7393.c b/drivers/media/i2c/adv7393.c index fb5fefa83b18..61e916cbe651 100644 --- a/drivers/media/i2c/adv7393.c +++ b/drivers/media/i2c/adv7393.c @@ -381,8 +381,7 @@ static int adv7393_initialize(struct v4l2_subdev *sd) return err; } -static int adv7393_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adv7393_probe(struct i2c_client *client) { struct adv7393_state *state; int err; @@ -456,7 +455,7 @@ static struct i2c_driver adv7393_driver = { .driver = { .name = "adv7393", }, - .probe = adv7393_probe, + .probe_new = adv7393_probe, .remove = adv7393_remove, .id_table = adv7393_id, }; From patchwork Fri Nov 18 22:41:05 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: 22817 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp470728wrr; Fri, 18 Nov 2022 15:54:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf4z3RL4cHA1a6Zb9u61Jit71s19E2glcM+Qr6UW9FxM8CBGGvEumXB6BE9pkE7P1qA771t9 X-Received: by 2002:a05:6402:3707:b0:467:6847:83d3 with SMTP id ek7-20020a056402370700b00467684783d3mr7971696edb.247.1668815667582; Fri, 18 Nov 2022 15:54:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815667; cv=none; d=google.com; s=arc-20160816; b=XL3TKiFCzW8Se7lmAkGxG5ZcwH5h7H44tqMNA5jRuJa+AcjT8RxXI7QHIJO4P7pdTn DW9JAFWpLf3LrDqKaoazWdTTEtNJlfSmwmKZHVc0MfTJVoqtzssgOhxEEo+sx6hPVzWO L+7vcKpmMHoqv0X8+MDPHSogHY3nE/Lixfb7ytCTd+Q7eraNJyxiXiBVRnIQspru1aYW nsweeEoR1F9lrpLu60auqhlCHMYOhtrRiAGJaxlxphhIpR1n8P0U2FBFhrQkFXwNFWVx Rap3X5RosJC+lcnmgZGnz1gUxEL5mMStri7rgzmKpgfUNqLlmVBqQ9CijJD5HWUqcasF J0jg== 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=thATSGpYuKNDE/l1NPJgO09d7MaKCW3b2pL5Hw+y02k=; b=FZZV/pAISGQcw0/Sj/a4BOqKiRwWKNPTX5Mo4YQdDe+7XLUrxFMvw3Pg2fSOTo/ONd X1JDzK9NWXX5DhrRZvoxNmY0TvJ6jcWLK4JU4NuSAZdkg0C/bk5TR/K5LRpm0Uu1W5rc mUNPC/QNoDz68BXE4nIgdZP4m7fH+/+2lN43wSuHzmc8HY2Q20Iad1Sw7VKyoiYCUHct QTHeckr+rDmI+pR/D2RM5VmwHROQrclKL1WjVlMO3rzy067EVtvHMnZlDeKfw1xEhzG7 cpyMaZbeSQPK1ZjZM1fExcM9uRU8JT1af7jk/ErY9pibGZP9luRL7WnDNXu03uPR3Nm3 o5qg== 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 dr22-20020a170907721600b00780488c11bbsi4391471ejc.388.2022.11.18.15.54.03; Fri, 18 Nov 2022 15:54:27 -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 S236572AbiKRXk5 (ORCPT + 99 others); Fri, 18 Nov 2022 18:40:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236880AbiKRXiE (ORCPT ); Fri, 18 Nov 2022 18:38: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 6330EC5602 for ; Fri, 18 Nov 2022 15:22:53 -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 1owA8r-00033M-Tf; Fri, 18 Nov 2022 23:47:25 +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 1owA8p-0058YE-H7; Fri, 18 Nov 2022 23:47:24 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8p-0000DY-Po; Fri, 18 Nov 2022 23:47:23 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Hans Verkuil , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 331/606] media: i2c/adv7511-v4l2: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:05 +0100 Message-Id: <20221118224540.619276-332-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=ham 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?1749880057349788174?= X-GMAIL-MSGID: =?utf-8?q?1749880057349788174?= 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/media/i2c/adv7511-v4l2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/adv7511-v4l2.c b/drivers/media/i2c/adv7511-v4l2.c index 0d5ce69f12e7..3999fa524cab 100644 --- a/drivers/media/i2c/adv7511-v4l2.c +++ b/drivers/media/i2c/adv7511-v4l2.c @@ -1763,7 +1763,7 @@ static void adv7511_init_setup(struct v4l2_subdev *sd) adv7511_cec_write(sd, 0x4e, ratio << 2); } -static int adv7511_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int adv7511_probe(struct i2c_client *client) { struct adv7511_state *state; struct adv7511_platform_data *pdata = client->dev.platform_data; @@ -1957,7 +1957,7 @@ static struct i2c_driver adv7511_driver = { .driver = { .name = "adv7511-v4l2", }, - .probe = adv7511_probe, + .probe_new = adv7511_probe, .remove = adv7511_remove, .id_table = adv7511_id, }; From patchwork Fri Nov 18 22:41:06 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: 22786 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466537wrr; Fri, 18 Nov 2022 15:40:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf6+MQy1jMnsUv561KqALemxJdanFDxlFFwZzmoadb8HJEvAil2Q1ily0gijzw6y8Y/qKL0K X-Received: by 2002:a17:906:3109:b0:7a0:b505:cae5 with SMTP id 9-20020a170906310900b007a0b505cae5mr7920850ejx.648.1668814816187; Fri, 18 Nov 2022 15:40:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814816; cv=none; d=google.com; s=arc-20160816; b=d5a9tK/KrSjUaspU60aM7Ou/OZgt4F5vqtTqXmSMloWJpk8nKIGnqXbxLg6TUiS18r XlabH/rNkjO6wcvsS6eB6/iSE+3E29FVgK2Jtm5grvr+XV5WEOQFGQgl8kBCOt9fZB8U fw5LOtRGGwUph8wt2QafEeDw1bJ+g0FYTwMpveeGY0fat5VrQOoucUUwKnNY5XaqvSGq uR3v2PazuZKwnY7DjuL55wAm6nateIAlL14LT1dYdk2jWkPXPTkUnP/BbBld/cTPtlXt SqdjHNd1mXdaUXQMFDOHAPvySnlYHFwOXJeIfgAfKbljqaeY8U5MuF47raammDlIUu/e 4Uqw== 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=k3Ncl+h/nGaLpb4eH9tYrW65GNEsFFth+Bd4/hOxTdg=; b=H2Y+z28HXzZAEmSLEMFHyWfmqOP90vsjXqPKDHWp2vb9rt7wACTj2+ltvlXf0Z3mt9 2yzCznY53T3DysWcY16WF8vDmtLvpr0lEC/AdKNPJDOUdaOlj/6tC0FkR4omtMIOhn7V CGoOTwn+CA202Zjihe9QoRk3K8ItXlYYhTaN83FwNZ+UnUmRbCnPkcskMu8URi3iHwa9 ANCpLtFDELaejWbIpSYSnFvJTsL8TulaLAxnAPYJeaSHm1I9vnw2uyAk2+KJqOA7tsfC vPwNyNC+34QJACOSY2mVBCPHLn1U5YQ2ScAw4UO8a0YuszewSJfml0S71hhmlmVieddF PgeQ== 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 h12-20020a056402280c00b0045cecdc1fbcsi4701696ede.9.2022.11.18.15.39.49; Fri, 18 Nov 2022 15:40:16 -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 S236496AbiKRXip (ORCPT + 99 others); Fri, 18 Nov 2022 18:38:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236402AbiKRXcy (ORCPT ); Fri, 18 Nov 2022 18:32:54 -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 C15721E721 for ; Fri, 18 Nov 2022 15:20: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 1owA8s-00033q-8K; Fri, 18 Nov 2022 23:47:26 +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 1owA8p-0058YJ-PR; Fri, 18 Nov 2022 23:47:24 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8q-0000Dg-0t; Fri, 18 Nov 2022 23:47:24 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Hans Verkuil , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 332/606] media: i2c/adv7604: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:06 +0100 Message-Id: <20221118224540.619276-333-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?1749879164376605815?= X-GMAIL-MSGID: =?utf-8?q?1749879164376605815?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/media/i2c/adv7604.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index bda0c547ce44..9d218962d7c8 100644 --- a/drivers/media/i2c/adv7604.c +++ b/drivers/media/i2c/adv7604.c @@ -3401,9 +3401,9 @@ static void adv76xx_reset(struct adv76xx_state *state) } } -static int adv76xx_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adv76xx_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); static const struct v4l2_dv_timings cea640x480 = V4L2_DV_BT_CEA_640X480P59_94; struct adv76xx_state *state; @@ -3686,7 +3686,7 @@ static struct i2c_driver adv76xx_driver = { .name = "adv7604", .of_match_table = of_match_ptr(adv76xx_of_id), }, - .probe = adv76xx_probe, + .probe_new = adv76xx_probe, .remove = adv76xx_remove, .id_table = adv76xx_i2c_id, }; From patchwork Fri Nov 18 22:41:07 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: 22971 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476444wrr; Fri, 18 Nov 2022 16:09:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf6GTnAYeq3wz7qm24cPYuhz+sHbo2U+aF/F9N5ulSxallsrP8m9Xp12XX2gVnTwV0optoZg X-Received: by 2002:a17:906:9485:b0:78d:48ac:9041 with SMTP id t5-20020a170906948500b0078d48ac9041mr7808494ejx.361.1668816544690; Fri, 18 Nov 2022 16:09:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816544; cv=none; d=google.com; s=arc-20160816; b=Nf1LtQRreXnQn5q81TSg3+vanijU3/Nfm5NZkNurha9mctPbzywoEc4MczPMKG6Coo 4UYT1am3mBMr3eMBi1tqBZu0svsQAIn588BnIF1sH7R0ESUb4FqK6ahqKGMSNCwxt2uN nSwZrOmq3buNQvK0iW1QhYnKQgGzKiIreB8MO7ynUn+kcDdc5WS+b/72zqF7X84jU2Dh +4jnvrF0OwYZCHB89Axmvm/dZ2SrMCL637sKHSYcYg5PZ1Yf5UfWgiEFk1Bz+EfjRGyj ctkLqustrNd0CW3r0tKT/UTFV7Ppwk93ZVsEoprkK+m7hpnbaykKqRRbBYC5m6ZR7DMn szEw== 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=NWqrjPDKM9WqzQI/jgzFA9aBQt8rmYaUcT8Zmd2HuoY=; b=J15yAckXA5lKZ2OQxALhsvZqLGxW7QTJZqX0ZIAhWmxqiTY2QgL7LiO1vLb1eAM4FN z/YNYIBjWKngp7/ZR+3QPWxucuo8ecIevYBuOCMUG9wMlm1R44l62ndHrIROj0F7XAaa VIzFloki5K7Ivp81TaiRSNPcxUJdp1fvD42YPupoaB80wvYw3rASDzu0/nSNj4MyOZkU 0VkEIXa6Joid4RBHsgQBABbfSNPpoaAxiFDrGLBz8q0BoofTZ6/m8xM6ujKG2bED75CV q2K+udICZbqo/WWmmq3+jDwRgTxtQdCE+VV+L+FXxYR8cYfmzWEA3VtVa0H3wb6qzou9 XxIg== 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 s11-20020a170906a18b00b007806a130086si3218750ejy.302.2022.11.18.16.08.36; Fri, 18 Nov 2022 16:09:04 -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 S237328AbiKSAEJ (ORCPT + 99 others); Fri, 18 Nov 2022 19:04:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237115AbiKSABs (ORCPT ); Fri, 18 Nov 2022 19:01: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 CE691E0B61 for ; Fri, 18 Nov 2022 15:29:50 -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 1owA8s-00034N-Bb; Fri, 18 Nov 2022 23:47:26 +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 1owA8p-0058YP-UI; Fri, 18 Nov 2022 23:47:24 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8q-0000Dm-AS; Fri, 18 Nov 2022 23:47:24 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Hans Verkuil , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 333/606] media: i2c/adv7842: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:07 +0100 Message-Id: <20221118224540.619276-334-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?1749880976735674061?= X-GMAIL-MSGID: =?utf-8?q?1749880976735674061?= 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/media/i2c/adv7842.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/adv7842.c b/drivers/media/i2c/adv7842.c index 7731cc1887e6..cb8655574119 100644 --- a/drivers/media/i2c/adv7842.c +++ b/drivers/media/i2c/adv7842.c @@ -3441,8 +3441,7 @@ static int adv7842_register_clients(struct v4l2_subdev *sd) return 0; } -static int adv7842_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adv7842_probe(struct i2c_client *client) { struct adv7842_state *state; static const struct v4l2_dv_timings cea640x480 = @@ -3620,7 +3619,7 @@ static struct i2c_driver adv7842_driver = { .driver = { .name = "adv7842", }, - .probe = adv7842_probe, + .probe_new = adv7842_probe, .remove = adv7842_remove, .id_table = adv7842_id, }; From patchwork Fri Nov 18 22:41:08 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: 22732 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464500wrr; Fri, 18 Nov 2022 15:35:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf6x7S6bnlbz+uR3DwsscQQPpGwkdkJ8wSfuOGR7IPdJZ8hsvuONsq/HYcnO+hGLUM9f82dh X-Received: by 2002:aa7:dd43:0:b0:467:4595:fc5c with SMTP id o3-20020aa7dd43000000b004674595fc5cmr7897005edw.114.1668814505899; Fri, 18 Nov 2022 15:35:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814505; cv=none; d=google.com; s=arc-20160816; b=r4rMpW6iaz6BC/NWXZSl1eaNIHApBk69sXKF2GSPVtczAucsLP8F7m5Ygv4dsyb9Ye gFCVPrA2rDxUBe5jU11d8Mzzi9nJI/RA8oMhYTFhC2RZxMVKsxHgoApk4o1bsI0cCPg+ XFJ2SNNZldZpMg10lUH6IH8UUUdsnvYPFSC4P6L98Zq68hw8OVTRoaw4Xf4AQgw3Q3eu QS2vPy0ZIqyydQbdIgMNekdTxUUJ07fDbKPpt6m0POgv3X3CC4fsVceDZEhGrSPWd2ZW ayEOY+OXZdukxYMs6EokPeG6NWHvM98nSwUAT8HLwwEyPfPZXHOvQW5EMZ4rmkzTfyRS f5oA== 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=YwqMZzE3L7fQt7MnCgThrZ1bT8Ta2EALU03CEAhXEIY=; b=Ka3lcOZ832M8AGB1B5U1+tlu2dEjpzujCUPrPc+OQFRXa4pnjs5Pb1Gy/xvn8Qr5Wn sYawVtjyTnDf47M9IPLgBuq6vVbuebdq2c+FwQprp7oK2Xspe7fZFn3YmAweeXXFXWCM LZgvqC/5VxmoiS+oYFLYTXkV6Pk88jRKxc/T9FfYdTAoQR16yPc69RTRVMqFsyv2NZAw 66JRlBe5BknV9ZGeobMfy2q6YiFFVds/LCM7F5Py4OhZv4JY0LtzbgLD79pQtGwM4Czp yIlqoz5pg9Z2ClbWiTX2pm/08eTI8bTI34BsxmlGrhm5sJgD13hsDUAodC3mq8XzSb0Y 7HYg== 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 xc1-20020a170907074100b007ae0e8f697fsi4503758ejb.652.2022.11.18.15.34.42; Fri, 18 Nov 2022 15:35:05 -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 S236225AbiKRXeL (ORCPT + 99 others); Fri, 18 Nov 2022 18:34:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235949AbiKRXbI (ORCPT ); Fri, 18 Nov 2022 18:31:08 -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 27C3A2C65A for ; Fri, 18 Nov 2022 15:18: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 1owA8t-00036m-Dk; Fri, 18 Nov 2022 23:47:27 +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 1owA8q-0058YZ-T2; Fri, 18 Nov 2022 23:47:25 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8q-0000EM-Hv; Fri, 18 Nov 2022 23:47:24 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Luca Ceresoli , Jeremy Kerr , Corey Minyard , =?utf-8?q?Marek_Beh=C3=BAn?= Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 334/606] media: i2c/ak881x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:08 +0100 Message-Id: <20221118224540.619276-335-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?1749878839128998449?= X-GMAIL-MSGID: =?utf-8?q?1749878839128998449?= 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/media/i2c/ak881x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/ak881x.c b/drivers/media/i2c/ak881x.c index 0370ad6b6811..7c9ab76e2448 100644 --- a/drivers/media/i2c/ak881x.c +++ b/drivers/media/i2c/ak881x.c @@ -226,8 +226,7 @@ static const struct v4l2_subdev_ops ak881x_subdev_ops = { .pad = &ak881x_subdev_pad_ops, }; -static int ak881x_probe(struct i2c_client *client, - const struct i2c_device_id *did) +static int ak881x_probe(struct i2c_client *client) { struct i2c_adapter *adapter = client->adapter; struct ak881x *ak881x; @@ -315,7 +314,7 @@ static struct i2c_driver ak881x_i2c_driver = { .driver = { .name = "ak881x", }, - .probe = ak881x_probe, + .probe_new = ak881x_probe, .remove = ak881x_remove, .id_table = ak881x_id, }; From patchwork Fri Nov 18 22:41:09 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: 22912 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472923wrr; Fri, 18 Nov 2022 16:01:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf6+D93ZilRrInqReEpRWsoaFIOlh4oFrNO2vUwsA3r5TXIUIwzUC64Qe3xfDnibDXdy97fm X-Received: by 2002:a05:6a00:1941:b0:572:6e9b:9fa2 with SMTP id s1-20020a056a00194100b005726e9b9fa2mr10124144pfk.8.1668816069234; Fri, 18 Nov 2022 16:01:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816069; cv=none; d=google.com; s=arc-20160816; b=USWHNcKW0OImlLsnCjirU5QOoQUYOBEr9ZLOeq4/MnvQA5D/fwClKh0WkHuDvyJric mdNXlmGwSMnUWicWVVWXq3sxt8lPdgSnSANoRa2GKAepq6lK5m2+Wj+UZ3n41C9gWnHc ZlxYS4y2IrvNGrztFm500KqYwu0eeGu7NFenyJFYRmk1XgRxz9Di9SWhDjQH8Dm/EtNb P12txgfc8473D7qVDG863buroJk1nEvyRcmC7Pmp84+znHTpPRuWEYiQOp//dYreFk+s qzctuvFcStUYktVE9JGCzm7W6UlLFoJv27gCJuMhak5F9hSP93wG4yZEnhDAC1rIQIQx SNAA== 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=k6og7QkN15/uxCTMNZl4ueyjK9uJXOIltCSDbriNuDk=; b=XolmxBi2uCQahWH31FmJF1IV2HVdF5S0AK2R2Mvkh19cgXn3+4eBVryHDk5maAwaXd 1KadejldY14GyVRrU64G9LS28mzGEtgJZ9+43ziKJy/w/8wWy9Ur03SrlD5TA5CC3GFz lr1NhffnZv3OcSnUw8W9Ck8eR5QJgcVefP2Syw/ZSWTxtyaIdMuVJSxkXEkCc3AmnoFY 9QE4DhnhXxC3R61oWLbssOjb5YyWKq2uTQY7OrTGdMIoT9UE+dxniFZ1vO4ze94yJFia eOSXrhdj/MiqbAT2d5x5bwXAkz32gPKiJnMtrbc+Mk9S49n9m6X9aAJy59A0Abvpd5nj mSgg== 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 me18-20020a17090b17d200b00213cb58e47bsi1363076pjb.8.2022.11.18.16.00.56; Fri, 18 Nov 2022 16:01:09 -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 S236984AbiKRX4K (ORCPT + 99 others); Fri, 18 Nov 2022 18:56:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236935AbiKRXy5 (ORCPT ); Fri, 18 Nov 2022 18:54: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 735F6BE274 for ; Fri, 18 Nov 2022 15:27:59 -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 1owA8t-00035O-4Z; Fri, 18 Nov 2022 23:47:27 +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 1owA8q-0058YU-Gh; Fri, 18 Nov 2022 23:47:25 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8q-0000ER-Q3; Fri, 18 Nov 2022 23:47:24 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Ajay Gupta , Petr Machata , Peter Rosin Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 335/606] media: i2c/bt819: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:09 +0100 Message-Id: <20221118224540.619276-336-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?1749880478545020231?= X-GMAIL-MSGID: =?utf-8?q?1749880478545020231?= 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/media/i2c/bt819.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/bt819.c b/drivers/media/i2c/bt819.c index 4d9bb6eb7d65..39f8a5361166 100644 --- a/drivers/media/i2c/bt819.c +++ b/drivers/media/i2c/bt819.c @@ -380,8 +380,7 @@ static const struct v4l2_subdev_ops bt819_ops = { /* ----------------------------------------------------------------------- */ -static int bt819_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bt819_probe(struct i2c_client *client) { int i, ver; struct bt819 *decoder; @@ -469,7 +468,7 @@ static struct i2c_driver bt819_driver = { .driver = { .name = "bt819", }, - .probe = bt819_probe, + .probe_new = bt819_probe, .remove = bt819_remove, .id_table = bt819_id, }; From patchwork Fri Nov 18 22:41:10 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: 23099 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487633wrr; Fri, 18 Nov 2022 16:43:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf7KfYMvyNDb0loigiSY/zEnprl4bgqVrPRuVyB9RL0VByJPhZPdDzzCfAjWkBCy1xg2pld+ X-Received: by 2002:a17:906:88d:b0:783:978:b39d with SMTP id n13-20020a170906088d00b007830978b39dmr7958285eje.349.1668818615940; Fri, 18 Nov 2022 16:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818615; cv=none; d=google.com; s=arc-20160816; b=PGkXD3RFBxx4p3TaFAtzrmRo6c9itqkzhQVdJtRGX97GN8ygj9CTz1ESpOH6ZSBFET XRu/bhC2HomX9tbijpfmKAsZmW35v4+WfuscqvJ7TL8NEf+HE7ib9Q4gG9xFvq1Wq4QO RxvBCJ2dHFQu+THqwX6w80jgiO1cadR1/tSrflV0v8q0lBaECc1ykmbQTzlRZUOjutI2 DliZ/Qx4W+K05Ds1MiGg3leCvvidS7/ist/FXxNgs9ZKQ5mTL2luvct1ICYHK/gBHaMg sen8gMuOQeN1nZ+r7BzkhNpdYJSJsMF8hTNG0tE/w1UuoG5A0w1Jcw3Med0UdEb8LOSi Lsdg== 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=6U2hA641fwkYuUt6fZHrk+KchRu8Ns31Ut44pOPbP/0=; b=C4uEm08p3ZuYPpgAu4193Tzzqvgrs40gyisDqAz5C/YCnAM71TfjXbPs6v54771T6r ln5JnhTD+tE9PfyP6G+eOmDbV1RsBWLnwcKsZKYgTr0pGfSZA8S+JMA5zgzlQSiHcWDh o+m2HY8qTKIO/ALHFEmRGypvl6Cj7Gqid+FEmT7jYP0XrcNzhIAA+BEMlxrVXzBCt7cH dxvDgXvqZ6IY9alUXnMcGsJuIlnLcKQPmciAcc+V1f/1+NzmVqVBPrBpLDc1LpHn8CVP 0c9tYa+UWEKZ2C51IC68Fs49TBGm0lItmiFnZUZnEP1QrLunhlDYL6BIyWnytZgPaWYW 5pRw== 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 g17-20020a056402321100b004622c1b8597si4180298eda.407.2022.11.18.16.43.04; Fri, 18 Nov 2022 16:43: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 S235382AbiKSA2d (ORCPT + 99 others); Fri, 18 Nov 2022 19:28:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237425AbiKSA2H (ORCPT ); Fri, 18 Nov 2022 19:28:07 -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 C894F10CEBB for ; Fri, 18 Nov 2022 15:39:57 -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 1owA8u-000380-1P; Fri, 18 Nov 2022 23:47:28 +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 1owA8r-0058Yh-85; Fri, 18 Nov 2022 23:47:26 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8r-0000EV-CA; Fri, 18 Nov 2022 23:47:25 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Jonathan Cameron , Javier Martinez Canillas , Vladimir Oltean , =?utf-8?q?Krzysztof_Ha=C5=82asa?= Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 336/606] media: i2c/bt856: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:10 +0100 Message-Id: <20221118224540.619276-337-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?1749883149344703196?= X-GMAIL-MSGID: =?utf-8?q?1749883149344703196?= 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/media/i2c/bt856.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/bt856.c b/drivers/media/i2c/bt856.c index 70443ef1ac46..d1d397b15b85 100644 --- a/drivers/media/i2c/bt856.c +++ b/drivers/media/i2c/bt856.c @@ -181,8 +181,7 @@ static const struct v4l2_subdev_ops bt856_ops = { /* ----------------------------------------------------------------------- */ -static int bt856_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bt856_probe(struct i2c_client *client) { struct bt856 *encoder; struct v4l2_subdev *sd; @@ -240,7 +239,7 @@ static struct i2c_driver bt856_driver = { .driver = { .name = "bt856", }, - .probe = bt856_probe, + .probe_new = bt856_probe, .remove = bt856_remove, .id_table = bt856_id, }; From patchwork Fri Nov 18 22:41:11 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: 22671 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp461271wrr; Fri, 18 Nov 2022 15:26:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf66NQn4zXZzXmAa4/gRro6q+lC+4CrCLppGiQvB4PEQczf41Jfav/zaB1HL2xhwrxXqAwqV X-Received: by 2002:a17:902:cccd:b0:186:fd58:c706 with SMTP id z13-20020a170902cccd00b00186fd58c706mr1781338ple.4.1668814001040; Fri, 18 Nov 2022 15:26:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814001; cv=none; d=google.com; s=arc-20160816; b=WQY8cejNPqv9uqXeGXRgNvjA0L1ragc9dXK1kLW+w95ocnLT61v5vMcQvw4ZLXLLaF cFDTAuZTf/9sGBJHp9kC9WNhyrfm3Xd8mgBFJVxZ4xP8A+milHAF1kO5TUwUDo4stbUQ 8IywRyPLGkHtslnwlmw7MChBn2+MCovx4rXzwFlPPzxB8eLxHQyOebjnJ2ln11bSDgP3 u/MLI0D60AaYJTPqPxFwtZO24nAtc+7yMuKZUGCx/ScjemI6KpWxdcK/jWW79VFWAhyb Fw180el0RkmPt3ygndmqpFngageuFZjDHNhAFUbgAWlh7Mbz/FhLuuZGReOcS8I+4hh1 tmZw== 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=4pInvEfj0tgqM++XWl1iGEXC9QdZVhTFdQ0tlTLwZTU=; b=xolOzW60eS8bYvy3Gk6zKBwKfvo8mBaaxIOZGyfYOjxZShmz87Gpxb/aL7ZdRRajm7 cEJhQLn0W8yqg8UxCrG1i3XBiLy+4XOSS8vPWmc4n6ALdtbq1nrg1lVvb3Hl743DLHFO ssz/3I/X3bN5tu2E/O2fIjomQDh78E9YQIBiku3n1M7/REkJ9DLvRFrJ4gaHd+9GZj5E xPwrYEF2fXAE9EpgOGnXwslKWZVix9ep793ApcrzdoytoAa8B7mtYlM4iC5PCHV0nQxy HzCtANIg1/vhPQ8mOpoNn2e128qdiRdYMQWfAwoOFwVc9ELs9vvnUiATylSXtIo58BNK V53w== 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 73-20020a63064c000000b00462f77bcd1esi5024154pgg.90.2022.11.18.15.26.28; Fri, 18 Nov 2022 15:26:41 -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 S235676AbiKRXZT (ORCPT + 99 others); Fri, 18 Nov 2022 18:25:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235748AbiKRXWn (ORCPT ); Fri, 18 Nov 2022 18:22:43 -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 23EDB24BFB for ; Fri, 18 Nov 2022 15:13:28 -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 1owA8u-000388-6c; Fri, 18 Nov 2022 23:47:28 +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 1owA8r-0058Yl-AY; Fri, 18 Nov 2022 23:47:26 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8r-0000EZ-Jc; Fri, 18 Nov 2022 23:47:25 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Petr Machata , Andy Shevchenko , Greg Kroah-Hartman Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 337/606] media: i2c/bt866: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:11 +0100 Message-Id: <20221118224540.619276-338-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?1749878310044152054?= X-GMAIL-MSGID: =?utf-8?q?1749878310044152054?= 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/media/i2c/bt866.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/bt866.c b/drivers/media/i2c/bt866.c index c2508cbafd02..d632d9a07f04 100644 --- a/drivers/media/i2c/bt866.c +++ b/drivers/media/i2c/bt866.c @@ -173,8 +173,7 @@ static const struct v4l2_subdev_ops bt866_ops = { .video = &bt866_video_ops, }; -static int bt866_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bt866_probe(struct i2c_client *client) { struct bt866 *encoder; struct v4l2_subdev *sd; @@ -207,7 +206,7 @@ static struct i2c_driver bt866_driver = { .driver = { .name = "bt866", }, - .probe = bt866_probe, + .probe_new = bt866_probe, .remove = bt866_remove, .id_table = bt866_id, }; From patchwork Fri Nov 18 22:41:12 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: 23018 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp478394wrr; Fri, 18 Nov 2022 16:14:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf7XAaZi+IR9fitcecE1wMyPaWtIfHAc8R6MRSgHFezVr3X44aT1X0oUICq4J/GAoe5406ht X-Received: by 2002:a17:903:120c:b0:188:fc5f:84f3 with SMTP id l12-20020a170903120c00b00188fc5f84f3mr1908168plh.2.1668816848234; Fri, 18 Nov 2022 16:14:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816848; cv=none; d=google.com; s=arc-20160816; b=Wd9XDyCto/5wkU8Dmau7N1/9rq3vSSOAAPky9sZV4cn7Tdtavj6jkLeacSym2UL+04 MbV7U3viW++uN9GrJlpnFBJ7b/oQg2srnqoYZEKbXr+UjwWFagidIXjoQ0IVS+HZe+Qw AZpqqW8TTBgpbLsa6Uix//JSAHlPq22Rj5Jv3rCS6dGPbNlcnArXX7xdw+gEHZjpEdWx S/SUm70Yk1nSRxFe2a0bddgsLi3LyeSZdcS5BFB2mENy/RjodnmfOcRdRFEcCORQEXKY oD53qGV+qWVE2H48SwQGZlzzKAv5t2Oy8SxswJUz+7CNkVyey+2Zd7Y5OBKo9aRXtx6D Nl9Q== 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=Cfwsbusv2SBXV7l6jvKRHa4WC05GO5FUe9/vDeg6qlg=; b=k8c9bmgoI+92nTKjZwF7v04/lNSBxgC/R8TpO7RV3ohtoAU34NyPeqj4qBmO0ufqld mg1DO9U6Gx+4nA0kJ+1p7o3Ah/jY2A33DSpgu51CF6ECKuq1qbAH9xeX7zAlMebl6GCy XTHX9enUmCbJixV2qnD/TrxADpjXHONFAejXaStKgqrl8ltuhtgwcdoYEi85+hd+amXK rHvf+aIG3mUTepI81iDcXn89G39Ub+8IaTHLRXPZqD5Q5rP97TVNxLBfl+RCjTuCnxSw MeUv8JO7ZCNbyi8J5jdx9+OtmRAaBl+gL+OxTTvuADOFy6TrSy5JRcPvdZzHzjbdasF2 NC1g== 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 on14-20020a17090b1d0e00b0021414ac5cc2si8382195pjb.131.2022.11.18.16.13.55; Fri, 18 Nov 2022 16:14:08 -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 S237792AbiKSAMy (ORCPT + 99 others); Fri, 18 Nov 2022 19:12:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238004AbiKSAM0 (ORCPT ); Fri, 18 Nov 2022 19:12:26 -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 ACFF3B4043 for ; Fri, 18 Nov 2022 15:34:11 -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 1owA8t-00038s-VZ; Fri, 18 Nov 2022 23:47:28 +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 1owA8r-0058Ys-Pk; Fri, 18 Nov 2022 23:47:26 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8r-0000Ec-QU; Fri, 18 Nov 2022 23:47:25 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Hans Verkuil , Mauro Carvalho Chehab , Petr Machata , Crt Mori , Javier Martinez Canillas , Vladimir Oltean Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 338/606] media: i2c/cs3308: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:12 +0100 Message-Id: <20221118224540.619276-339-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?1749881295439216590?= X-GMAIL-MSGID: =?utf-8?q?1749881295439216590?= 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/media/i2c/cs3308.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/cs3308.c b/drivers/media/i2c/cs3308.c index d901a59883a9..a0b66c04fe25 100644 --- a/drivers/media/i2c/cs3308.c +++ b/drivers/media/i2c/cs3308.c @@ -64,8 +64,7 @@ static const struct v4l2_subdev_ops cs3308_ops = { /* ----------------------------------------------------------------------- */ -static int cs3308_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int cs3308_probe(struct i2c_client *client) { struct v4l2_subdev *sd; unsigned i; @@ -119,7 +118,7 @@ static struct i2c_driver cs3308_driver = { .driver = { .name = "cs3308", }, - .probe = cs3308_probe, + .probe_new = cs3308_probe, .remove = cs3308_remove, .id_table = cs3308_id, }; From patchwork Fri Nov 18 22:41:13 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: 22701 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462771wrr; Fri, 18 Nov 2022 15:30:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf5LVoWcZnWaO4ujYMIyvmYrGKT2JNAMXS+dmvzesv1DOXgzVqegq9muMg0+1UQLlnNu8SbV X-Received: by 2002:a17:906:bf2:b0:7ac:a2b7:6c97 with SMTP id z18-20020a1709060bf200b007aca2b76c97mr7422932ejg.497.1668814255860; Fri, 18 Nov 2022 15:30:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814255; cv=none; d=google.com; s=arc-20160816; b=BsIUys+/ps50iv0+Buei0DkWPXKYIAAL8mKbC6hki2AT9NvsjpRUkNM/8uZ7qBTFwX +2gUFLn1fcshdUjPPpTIZ3VIo79xebe09rq0b0AWqyth143aPU765ynFTyLfI9GeV8nR 5tZBaVSrES6FDiHU1yZukc4gGIwlPYhcDxWa+iiPrmr5QbYkl86RhSWdF6LxyF4DBeGA KnPNEP5ruyzjzk6wQHBwzO+pT0gRKO2YxYth026Fklq675X97//wYqFaIzjw91TNhTOW mjK8VdrKp/C9jewl1hhiiNIk4PARx/Tulf3aaRLTni3FjGm5Z5q/rfaTbPdSmMBQ/aB1 dKhA== 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=Hc2bTlkp6qJ/JeBlVcqCSctla8jMTZkhAxUlu87FDRM=; b=hMz8dqWtyMoWOxfSwNWGpkMdYgxw/JZ+lkZVi7dap7lAQHBKbZ5xZwfXqh0aq4T0zR O+M64PE8QyrjIa58WKXml0h5YxtrNwZ13uUNwg0865Exm1TpyyifeRpvT5blA4iOoimJ f5jfcMcpxoTmjZclsRWrlZ4Qvu9qYj2uFLlWixz/TbKT3+5IG8zJhBxiuaJjqa9BLBCH 6KXdN7/HPFjCnIVviTYvK+sx0BP7cDua3be1O008D4VUFa5ZbLy/pRZSKxcsaF5Xgmog tbIg5OUTv7r8uYzQCj1IVWxYccXpjQ4zkikUyn1JWlsRP8cDKzza3to3Fm7HkaNE2x57 C05w== 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 v4-20020a056402174400b004617f587912si3925231edx.279.2022.11.18.15.30.32; Fri, 18 Nov 2022 15:30:55 -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 S235923AbiKRXaB (ORCPT + 99 others); Fri, 18 Nov 2022 18:30:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235813AbiKRX25 (ORCPT ); Fri, 18 Nov 2022 18:28: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 151BBB9627 for ; Fri, 18 Nov 2022 15:16:58 -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 1owA8u-00039l-KT; Fri, 18 Nov 2022 23:47:28 +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 1owA8s-0058Yz-4p; Fri, 18 Nov 2022 23:47:27 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8r-0000Eg-Vj; Fri, 18 Nov 2022 23:47:25 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Peter Senna Tschudin , Maximilian Luz , Jean Delvare , Jeremy Kerr Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 339/606] media: i2c/cs5345: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:13 +0100 Message-Id: <20221118224540.619276-340-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?1749878577076019571?= X-GMAIL-MSGID: =?utf-8?q?1749878577076019571?= 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/media/i2c/cs5345.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/cs5345.c b/drivers/media/i2c/cs5345.c index 591b1e7b24ee..ac4b5632fc46 100644 --- a/drivers/media/i2c/cs5345.c +++ b/drivers/media/i2c/cs5345.c @@ -136,8 +136,7 @@ static const struct v4l2_subdev_ops cs5345_ops = { /* ----------------------------------------------------------------------- */ -static int cs5345_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int cs5345_probe(struct i2c_client *client) { struct cs5345_state *state; struct v4l2_subdev *sd; @@ -199,7 +198,7 @@ static struct i2c_driver cs5345_driver = { .driver = { .name = "cs5345", }, - .probe = cs5345_probe, + .probe_new = cs5345_probe, .remove = cs5345_remove, .id_table = cs5345_id, }; From patchwork Fri Nov 18 22:41:14 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: 22650 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460592wrr; Fri, 18 Nov 2022 15:24:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf62Yn0zSVTLltEbymI9DL+hk+MfX8WZzpkrYI6n2sBnfAvT9gq7L2qun3GuNA/5+bSoI6k/ X-Received: by 2002:aa7:8d5a:0:b0:560:eec2:d0ab with SMTP id s26-20020aa78d5a000000b00560eec2d0abmr9948546pfe.43.1668813884335; Fri, 18 Nov 2022 15:24:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813884; cv=none; d=google.com; s=arc-20160816; b=iH+2JjETOhrGybC4iWcxS8ZmgSQbJQhphZRfP52+eA4EyWiiXAUlVqxwlS0rs6gUYn PwujAbHyJETQcWu/FfRMA4aL3X25qgW720opNaN7D3l9vAk88feCMtvysb20tpq9ajBW 4KOGhJHQl1/aCRrUlo5GtrmN8DR+jmMY32i9Ns+AS0wEFXp2xg0g5laIpKDRc5ZDolkk ffeU+cwbfcp8A4BaGryW726OZDg4ngR6u5rwO7AgKjOoI1V/zwgYa61Jf9A1F/ZjjgXu ezUJs603dPkof7p3j9JlR9HsvdK0RSk4A6hino37ZGtMvXG0gzjQHtlu17JOH0RlKj0D SKbg== 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=i7jDJkH/8WTuxBh206f/gmBOo5E0qMg0hSoGUEYJa0g=; b=m+9UBmIj8NGEgUs1yeWdCC27aHb/Y5PKBt5OENabVprqLq+Xo3pMb5SymeV/K2CsJZ y3EgzgIHdIFdwJRu+ShVsiu0akeYdv29LkkaYlZ+f+xSo281WZl/cBbz/O8B3ndQ2MSR nX5YtOsMbyGLo1CUdwno448BoIFxJNWE0rgf1sm/kJI5m7oRlo5OqH5RhRrRfNUNBKHc 8I0gIXsVzHhMnnEHgEZbAPQDd8kCWMVOB2KN71Wf8kcRktsVi72YOySCcDL0k4rwdk4a PyEoOYv7NvFemzMegllgAFlRZDmr7pTES0h7pAGIkys0gP0oIB1coWAOYF/NVEVYhbIh OAKQ== 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 p1-20020a056a000a0100b0056dde9895e1si5186957pfh.46.2022.11.18.15.24.30; Fri, 18 Nov 2022 15:24:44 -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 S233954AbiKRXX2 (ORCPT + 99 others); Fri, 18 Nov 2022 18:23:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235400AbiKRXVT (ORCPT ); Fri, 18 Nov 2022 18:21:19 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F9C953EC7 for ; Fri, 18 Nov 2022 15:12: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 1owA8u-00039E-HB; Fri, 18 Nov 2022 23:47:28 +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 1owA8r-0058Yw-VY; Fri, 18 Nov 2022 23:47:26 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8s-0000Ej-57; Fri, 18 Nov 2022 23:47:26 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Greg Kroah-Hartman , Andy Shevchenko , Luca Ceresoli , Miguel Ojeda Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 340/606] media: i2c/cs53l32a: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:14 +0100 Message-Id: <20221118224540.619276-341-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=ham 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?1749878187593998484?= X-GMAIL-MSGID: =?utf-8?q?1749878187593998484?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/media/i2c/cs53l32a.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/cs53l32a.c b/drivers/media/i2c/cs53l32a.c index 9461589aea30..670f89de32d4 100644 --- a/drivers/media/i2c/cs53l32a.c +++ b/drivers/media/i2c/cs53l32a.c @@ -128,9 +128,9 @@ static const struct v4l2_subdev_ops cs53l32a_ops = { * concerning the addresses: i2c wants 7 bit (without the r/w bit), so '>>1' */ -static int cs53l32a_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int cs53l32a_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct cs53l32a_state *state; struct v4l2_subdev *sd; int i; @@ -209,7 +209,7 @@ static struct i2c_driver cs53l32a_driver = { .driver = { .name = "cs53l32a", }, - .probe = cs53l32a_probe, + .probe_new = cs53l32a_probe, .remove = cs53l32a_remove, .id_table = cs53l32a_id, }; From patchwork Fri Nov 18 22:41:15 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: 23094 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487619wrr; Fri, 18 Nov 2022 16:43:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf48q11x4keTTMPGUgKCs0+wuKcj5UgFA6DkMDyazjiIcVOKtBjuDsl+iE4Y8kFXNdeYIX23 X-Received: by 2002:a17:906:ce4a:b0:7ae:5ad1:e834 with SMTP id se10-20020a170906ce4a00b007ae5ad1e834mr7870895ejb.312.1668818614764; 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=igzerkKQ0xiCRtoYQq4IfEKLwS7vdGe7Jkp2ViwqBCG8L4bXGdH6jnKEgkIc2G2LY/ m+vJqchDtl1J+2j+QnDdV4u2z95RN1nLTPG4iCvvBh5NjUpQYrit/q+ccATINoTI6AIW dmMqiNQDO5Lb1aPzRn9fsoOFiCQR6GkUUKGptJPcfKa4L3Gd2wK5rQcK6Yjpvvhd4dOg KlM2cC1o/k12/bOKdc12u6iwTNThcEa9d5kM93Z4oj178X+C7uyczN5vIluaOFeS6mEm 7Fus8jcAesK7iLfMAmk7EHqCdrk82jtuntXrjoDUPNrE+Yl6712U1vIH+ARkm7Zcf9vG FHkg== 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=EVyXe9qOU5W9nTs6LSf9L2seCkI8pkpvVGzRS5lPxnc=; b=uIirx3ezR/s4K+lrIUoICyivqgq7Re75+tWbfqeo0Gz5WL9j7tHGRg2TyfqLYUPwun sgm3HOnS2OASQuwTAvJ7NzXlg9/7SaruzLyGdz/hYLegfyuLV04MlEQF2XLI7hiMj8kh fJPjOFrobaQHbf+1yERBJyUklgt4XF9awIHWktB5mh1J5VqWmKzUjW7Y2+NNNMgWdjOK pvg0/VmB5BTE36aCYrwi+cRaiyW5lKRAULlXf5UrcaKsJTFJvGQbF5oY5n/W5QLFxlK+ 2LG6/EiUXwy+TNM/V3jYkDN1iBBhnxxddFi0Oo5LpCxatmnA21GGQW+X9ZnQdCmmHq0s lUhA== 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 k13-20020a170906970d00b007a45e4f4ff2si3501183ejx.853.2022.11.18.16.43.04; 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 S236157AbiKSAfH (ORCPT + 99 others); Fri, 18 Nov 2022 19:35:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235115AbiKSAeY (ORCPT ); Fri, 18 Nov 2022 19:34:24 -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 22C081150E5 for ; Fri, 18 Nov 2022 15:42:51 -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 1owA8u-0003Ar-Or; Fri, 18 Nov 2022 23:47:28 +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 1owA8s-0058ZC-LG; Fri, 18 Nov 2022 23:47:27 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8s-0000Eo-Cp; Fri, 18 Nov 2022 23:47:26 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Miguel Ojeda , Hans Verkuil , Srinivas Pandruvada , Jean Delvare Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 341/606] media: cx25840: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:15 +0100 Message-Id: <20221118224540.619276-342-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?1749883147681395110?= X-GMAIL-MSGID: =?utf-8?q?1749883147681395110?= 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/media/i2c/cx25840/cx25840-core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/cx25840/cx25840-core.c b/drivers/media/i2c/cx25840/cx25840-core.c index f1a978af82ef..46cf422270b2 100644 --- a/drivers/media/i2c/cx25840/cx25840-core.c +++ b/drivers/media/i2c/cx25840/cx25840-core.c @@ -5825,8 +5825,7 @@ static u32 get_cx2388x_ident(struct i2c_client *client) return ret; } -static int cx25840_probe(struct i2c_client *client, - const struct i2c_device_id *did) +static int cx25840_probe(struct i2c_client *client) { struct cx25840_state *state; struct v4l2_subdev *sd; @@ -6046,7 +6045,7 @@ static struct i2c_driver cx25840_driver = { .driver = { .name = "cx25840", }, - .probe = cx25840_probe, + .probe_new = cx25840_probe, .remove = cx25840_remove, .id_table = cx25840_id, }; From patchwork Fri Nov 18 22:41:16 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: 23019 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp478526wrr; Fri, 18 Nov 2022 16:14:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf7G7q5CvLEpo0jtmR9ElTodBeGquLuU9Qus4bmvXyaGpVi/4tybIUkU4VegAZNyb2AnVGpp X-Received: by 2002:a17:906:d0da:b0:7ad:9891:8756 with SMTP id bq26-20020a170906d0da00b007ad98918756mr8043081ejb.203.1668816872421; Fri, 18 Nov 2022 16:14:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816872; cv=none; d=google.com; s=arc-20160816; b=sGv4qPWwu6+E5XWe+JCpuyTan3VvdI9mwspwxgjdBkGy9dL1rgC2rQU1QL8AY2q/xO sWe+JdiOfNckyl0Etajepxfvo0M8NU6u6eNHuyLV8EFlVasR27nCosiHgHmT3oDhPidh NYBxBte6CjlByZVTB4GoTkck+EEwZ8W2SQf1y1vYJP/k4MGpYnVc0W6hvqme3F3j1UDg v/++UEAHOKC0x1DJdAi/OA+38v+zKUB1tkIPM012uuGkdJMw7uVitPSAW0ZVsy6BowwU iJXvPApd3nRWvpl0bRrBIuOiZ4J8fNPo8hm6qi4rVdxhytCg9oywS6khybrPqciKDkbi nQAA== 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=8mBQq973zDvFCEGRpVkE46Klyzqt5MCyepWwkbeYyW0=; b=kR2tyu79gzpSGHwBtXJvALYgIKu9YzE79dYNfFGwVsYp7ybjhPkDfWTp60SBWsHNzx eZ8wRVjnfjnPijxyxBy6NncqQhotQ0KXWnvPYXkgsteU3oyrxEqqQuFiWe0psOGk3LIu zO5KzknClmbYnvyeDuTBj7NqkaWhcQTvUdVPOAZV9fhPvRWmMaWoG5JbsrC8fE4GDrr5 6AqNALTGgyrlp3HtZOEXH4FyI4DXoC+7nJrNx7hBh5RjnEc/CFbKm/aQR3tPqbkaxFfM jt4b1MEdDBevJIld3c7m7O09gbICISoqkDaQOz5J5RMZHqLRdKZzJ6FR3sAeCzWLpX9i klMg== 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 xg12-20020a170907320c00b007b27afde85csi4573033ejb.707.2022.11.18.16.14.08; Fri, 18 Nov 2022 16:14:32 -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 S237824AbiKSAM5 (ORCPT + 99 others); Fri, 18 Nov 2022 19:12:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237708AbiKSALQ (ORCPT ); Fri, 18 Nov 2022 19:11:16 -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 F0D2943845 for ; Fri, 18 Nov 2022 15:33: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 1owA8u-0003AM-TW; Fri, 18 Nov 2022 23:47:28 +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 1owA8s-0058Z5-EW; Fri, 18 Nov 2022 23:47:27 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8s-0000Er-KH; Fri, 18 Nov 2022 23:47:26 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Sebastian Reichel , Jonathan Cameron , Miguel Ojeda , Jeremy Kerr , =?utf-8?q?Daniel_Gonz=C3=A1lez_Cabanelas?= Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 342/606] media: i2c/ir-kbd-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:16 +0100 Message-Id: <20221118224540.619276-343-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?1749881320529498717?= X-GMAIL-MSGID: =?utf-8?q?1749881320529498717?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/media/i2c/ir-kbd-i2c.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/ir-kbd-i2c.c b/drivers/media/i2c/ir-kbd-i2c.c index 25bf1132dbff..51921068931d 100644 --- a/drivers/media/i2c/ir-kbd-i2c.c +++ b/drivers/media/i2c/ir-kbd-i2c.c @@ -757,8 +757,9 @@ static int zilog_tx_duty_cycle(struct rc_dev *dev, u32 duty_cycle) return 0; } -static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int ir_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); char *ir_codes = NULL; const char *name = NULL; u64 rc_proto = RC_PROTO_BIT_UNKNOWN; @@ -987,7 +988,7 @@ static struct i2c_driver ir_kbd_driver = { .driver = { .name = "ir-kbd-i2c", }, - .probe = ir_probe, + .probe_new = ir_probe, .remove = ir_remove, .id_table = ir_kbd_id, }; From patchwork Fri Nov 18 22:41:17 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: 23073 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487017wrr; Fri, 18 Nov 2022 16:41:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf53Z6dHRFOTSHhmGgXTCP3Wqpigv9+QYkX2NdLCh7iW8V6vfPCzq7ccjaEAx96kNcqO/AN/ X-Received: by 2002:a17:907:b686:b0:78d:f796:c00d with SMTP id vm6-20020a170907b68600b0078df796c00dmr7814850ejc.251.1668818510245; Fri, 18 Nov 2022 16:41:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818510; cv=none; d=google.com; s=arc-20160816; b=ExQDfp6dGYWUR82MKgAcobwJLt9bfuEK5QZaMXVrpjdRqwtD8MZ4MWfu67WloX4Tj9 WEIeETefOeguXpycwG+33h+os4LwlmwdYHLlnO8SWvBa0tQXSSzTYl+fsttSVvpT7ElP dT+OjDs9xmT79hQjckDr7VlYR/s+6+5c70iwi59G7V6GUcIPLSmDofFeNm+vlNwQG6MO 1be7AIkEEy21PDCMdcFK5eTcXv1j1K8Ps/wtvzMiQDjTHLd3YKVFFumEFufDQKIXqAtj fTNfObJuyywdSiUjJgDMfO/o5E1FfB7/TrVk5eL+kMAvL0IdKZTMd4qZVJclTrRlDgyN mTDQ== 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=s75VgR/G2fvFdDcMuDuxk5HjBqC2wXHqw1lE8GkcUwg=; b=k5flrYWo4kLkF5a5KJ1F+8QEUpvx1PEUJcJMakgMkE0fD/J2WOczLjMj8zjeehD70u z6TA7rPrQRxFW+WtrhSWl0AcfxeVb/rr8gAKlEEGOZhTVs1w9WVz1AkMolrcbrUKi9/k BaWmF3TR6785cZWp+uegCnfB6DQQNZ171VU6Sfq7jl/xI9pJXbl1f9vBYiEvF6w9jJwW x81P3XvR4qxUrmwIds60C3yM5bVkhiSX4WzvXL6UzovAfvN7ddzXKdVQ7OH4zcGy7R46 p3y/ituydlmYk4BbX9HPOsF1C6okwnFaDNGcIjYQ8Zl/7tR+pdWrpCTTChHPDSC2srSZ Wsjg== 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 ia19-20020a170907a07300b007ae754729d1si3154899ejc.883.2022.11.18.16.41.23; Fri, 18 Nov 2022 16:41:50 -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 S235589AbiKSAhY (ORCPT + 99 others); Fri, 18 Nov 2022 19:37:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236088AbiKSAgF (ORCPT ); Fri, 18 Nov 2022 19:36: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 B1BFFB870 for ; Fri, 18 Nov 2022 15:43:23 -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 1owA8v-0003Ah-45; Fri, 18 Nov 2022 23:47:29 +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 1owA8s-0058Z8-Ig; Fri, 18 Nov 2022 23:47:27 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8s-0000Ev-RI; Fri, 18 Nov 2022 23:47:26 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Vladimir Oltean , Benjamin Mugnier , Sebastian Reichel , Ajay Gupta Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 343/606] media: i2c/ks0127: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:17 +0100 Message-Id: <20221118224540.619276-344-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?1749883038084450703?= X-GMAIL-MSGID: =?utf-8?q?1749883038084450703?= 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/media/i2c/ks0127.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/ks0127.c b/drivers/media/i2c/ks0127.c index 215d9a43b0b9..0d86f2db7ad2 100644 --- a/drivers/media/i2c/ks0127.c +++ b/drivers/media/i2c/ks0127.c @@ -650,7 +650,7 @@ static const struct v4l2_subdev_ops ks0127_ops = { /* ----------------------------------------------------------------------- */ -static int ks0127_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int ks0127_probe(struct i2c_client *client) { struct ks0127 *ks; struct v4l2_subdev *sd; @@ -696,7 +696,7 @@ static struct i2c_driver ks0127_driver = { .driver = { .name = "ks0127", }, - .probe = ks0127_probe, + .probe_new = ks0127_probe, .remove = ks0127_remove, .id_table = ks0127_id, }; From patchwork Fri Nov 18 22:41: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: 22993 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477235wrr; Fri, 18 Nov 2022 16:11:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf6qYkOPAuUqORt/BDFffUSvk6r3dGfD+vkqpuR5yj5m7WSJkWlKZUZjqHUBwtmSdD0esX1R X-Received: by 2002:a62:1b0b:0:b0:56d:384:e13a with SMTP id b11-20020a621b0b000000b0056d0384e13amr10085970pfb.75.1668816660523; Fri, 18 Nov 2022 16:11:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816660; cv=none; d=google.com; s=arc-20160816; b=Kw2FPf7A79YW0WLFFzVZtRR55bEfVTPh2T3mNM7kH+cMuBRABpYRuMxMaBN/TKjb8f e02TQ7EvO9GShidQUY81Ub/BRPXkk9rfp09d59ZorWBIfQeJFqmjn344pgNuyowfSNJ0 Nf1tGE7cWrceqd2eDtVDF9UD1/IZ0wVgYUVXImYnHobIMkxWnL8ySRCq26lfVG86IkPQ qWFJKQl4TtfgLu/LHfuT1mzyCJzEWDlGOtfzCOYFb+ioODu4vIGdapJwgxZQQ96uO51H iKhTsSaHEllWYW5/fYwDcvFXPuOe7PuxTGJk3SAotP7843bNFUNYXeMRUBWGQwFWw0wE 3wsA== 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=UWMt40D2I6qdXFP9saktPq2AfJIP4GdeEOpbgGhQHqY=; b=iJhOr6trEVJcLE4p6pr0JRvvDy/nQa3hEnOkDhuQGGsAFfyV1t2UciwOUGnAObdi12 uGletWA/sO0ZrOJd7j3SDuK4xzOIEUwPvF+kn3Q4NVTzwgKhfNbNx1h2ig6F4KyoY0Km t7ORGgOs+qFiNs2vbnyJ0yHK2W7lbTav4bHOIBZhmNIsoFGMR8iWW/WKjy4hfhAXMRJk G5uSj6+oZzprftknN2+8mqvsRz+P5Ys59CgxrR9184M9E9KJyyECoZwSWb6hctKW5Y+7 AzkS9KZBWxQVxDQFE2rrvSpk/Oc+J2O87fhpEc7nvC9bLHLQsAsZOdg8ztd+/3gdMXyN M4eA== 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 n1-20020a170902e54100b001865d74328esi5427822plf.312.2022.11.18.16.10.46; Fri, 18 Nov 2022 16:11:00 -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 S237423AbiKSAKL (ORCPT + 99 others); Fri, 18 Nov 2022 19:10:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237402AbiKSAJm (ORCPT ); Fri, 18 Nov 2022 19:09:42 -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 713A2A5727 for ; Fri, 18 Nov 2022 15:33:00 -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 1owA8v-0003B8-2y; Fri, 18 Nov 2022 23:47:29 +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 1owA8s-0058ZG-PC; Fri, 18 Nov 2022 23:47:27 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8t-0000Ez-2H; Fri, 18 Nov 2022 23:47:27 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Andy Shevchenko , Maximilian Luz , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 344/606] media: i2c/lm3560: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:18 +0100 Message-Id: <20221118224540.619276-345-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?1749881099039618154?= X-GMAIL-MSGID: =?utf-8?q?1749881099039618154?= 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/media/i2c/lm3560.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/lm3560.c b/drivers/media/i2c/lm3560.c index edad3138cb07..5ef613604be7 100644 --- a/drivers/media/i2c/lm3560.c +++ b/drivers/media/i2c/lm3560.c @@ -391,8 +391,7 @@ static int lm3560_init_device(struct lm3560_flash *flash) return rval; } -static int lm3560_probe(struct i2c_client *client, - const struct i2c_device_id *devid) +static int lm3560_probe(struct i2c_client *client) { struct lm3560_flash *flash; struct lm3560_platform_data *pdata = dev_get_platdata(&client->dev); @@ -468,7 +467,7 @@ static struct i2c_driver lm3560_i2c_driver = { .name = LM3560_NAME, .pm = NULL, }, - .probe = lm3560_probe, + .probe_new = lm3560_probe, .remove = lm3560_remove, .id_table = lm3560_id_table, }; From patchwork Fri Nov 18 22:41:19 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: 22761 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465379wrr; Fri, 18 Nov 2022 15:37:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Q9NLqDC2Fw/ctNWMyJl9yt/a0CBmEFk5QP0IoQ8eOqJrWVThDIhvceQ8pjxr5CnAK5D00 X-Received: by 2002:a17:906:14c2:b0:78d:554f:fb16 with SMTP id y2-20020a17090614c200b0078d554ffb16mr7850118ejc.151.1668814639426; Fri, 18 Nov 2022 15:37:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814639; cv=none; d=google.com; s=arc-20160816; b=J//qU/hXJNeEqW0E4nzGnC7oJSFRw/XLeTEM0A7SU2Hk1p6jLmKzJoPnie+O+c6EFH XWawXmMUiV0pKjHSaj1U/poLeMIRH5W1WaXU5bcKgJ+oLzhNwlFQNK1+I+Cw1a9gQk2i 9kgVtINycGsQbsu/jQ62GW9s5XtJMfqJNVQHwz6B00AxIaS5hqDzF8RpEZJH28lRN0fY hq+YcU3s0PFN2ehFSIcCWWAjFmtU8NIYIfJl/OhwOW5WrgiPkQnvKVKiRzOu4vJTWh5P AxMEQhhRGltQRRQCXRSh41UEshZfD/nMnDKH3jrn71v471q5iPtFZz3kFJ6vInxFoY8z 1uMw== 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=nz6QFpFFsckBWYISZNOOaVkzAzGhIHSxksCfS3pb1Zk=; b=Dy8sxLfljYW5g4SwKCtp+U895DYxMMtHAD4tLM9aGwik9kSVeOx+lFKj3s46Od+oyq NWprrylqNKC856bsuojSvoF8+uWhDD853P8bbyORIo+6EJnVTZHjBH0jI5M55PZE6TRB HEfeTUgGzszLOUeWGe2GW57isUKioKGlYkY8ERalxYcKTdSTg65jdX+sQyK+WfUNZAbE kA+y1V/DCdBnyYv+pye5fhsGWl4jDPrcXfJ4vmAOiloB4hSgVxFz9DqdHSoVysUMZGit T5/JTgQHxT+QrbuEbjM5rTu6DZNVgnUpRhdL7aZzmyIvyRZvcfOOoxwDXm7QPE0y+thf USkA== 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 xe8-20020a170907318800b007adf3067a4esi4463601ejb.490.2022.11.18.15.36.55; Fri, 18 Nov 2022 15:37:19 -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 S236396AbiKRXgR (ORCPT + 99 others); Fri, 18 Nov 2022 18:36:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236366AbiKRXcs (ORCPT ); Fri, 18 Nov 2022 18:32: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 A6C4C1DDD8 for ; Fri, 18 Nov 2022 15:20:19 -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 1owA8v-0003C6-Kx; Fri, 18 Nov 2022 23:47:29 +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 1owA8t-0058ZQ-7a; Fri, 18 Nov 2022 23:47:28 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8t-0000F3-Ba; Fri, 18 Nov 2022 23:47:27 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Jean Delvare , Benjamin Mugnier , Maximilian Luz , Greg Kroah-Hartman Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 345/606] media: i2c/lm3646: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:19 +0100 Message-Id: <20221118224540.619276-346-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?1749878979081184778?= X-GMAIL-MSGID: =?utf-8?q?1749878979081184778?= 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/media/i2c/lm3646.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/lm3646.c b/drivers/media/i2c/lm3646.c index 0aaa963917d8..2a0cf74d2bed 100644 --- a/drivers/media/i2c/lm3646.c +++ b/drivers/media/i2c/lm3646.c @@ -334,8 +334,7 @@ static int lm3646_init_device(struct lm3646_flash *flash) return regmap_read(flash->regmap, REG_FLAG, ®_val); } -static int lm3646_probe(struct i2c_client *client, - const struct i2c_device_id *devid) +static int lm3646_probe(struct i2c_client *client) { struct lm3646_flash *flash; struct lm3646_platform_data *pdata = dev_get_platdata(&client->dev); @@ -397,7 +396,7 @@ static struct i2c_driver lm3646_i2c_driver = { .driver = { .name = LM3646_NAME, }, - .probe = lm3646_probe, + .probe_new = lm3646_probe, .remove = lm3646_remove, .id_table = lm3646_id_table, }; From patchwork Fri Nov 18 22:41:20 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: 22930 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474525wrr; Fri, 18 Nov 2022 16:04:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf7WMmhPjb/BpLo8u7UYm73pYAIF5AAKp1osLsICetzsZdmH6sEYk2gdwPeVockuYJ3rHH02 X-Received: by 2002:a05:6402:399a:b0:468:fdf2:477f with SMTP id fk26-20020a056402399a00b00468fdf2477fmr5760986edb.329.1668816265470; Fri, 18 Nov 2022 16:04:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816265; cv=none; d=google.com; s=arc-20160816; b=TATPg4l2/2PTsbnuRszBCmNMfPPXaKIaQ3M9iIUVz40tf88wyqQCm8BcVgDA/06mg+ tz2BhBmsZjoOhhqgWsSSgXOyg0voaw51heN5GhEAot2OAe2FCCz8y/Zu6ZzlcbTE2gRH OyA9XhgrhqIrKXSHSeIroxe2EOoPWSQtSttgQNLyKVQiS5grS3Fav+4H32r4pa9IOfoe hUW6Mk/3RhjDAu+nI0K9JQ+DQUn1a6RypNX5MSVyEv8TzaFCF422EFIAQz2c/O6gnHA+ FGR67q+i0Bnb3f1xlxT9KMZza7QUm2veDNmveHz2h3uPcVsEUYDSfRTUFwF/1CqUcMoP p+0A== 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=qJDj7Qe9fQFPZLYoD8Sl2uaztXQU2bYUpAi3iShm7uU=; b=GFyq+uu4yBs5SIUY+GS6pPQ/4xRixlga96N9RaySVyb7fUXMMXkcZnLPSvxo8AyCVh muDgkZUinzrrgt8yvzmyHUEgfZLAidGYqVjHlCkJ6dZrEzhV1ifJ38SuAZHaU7ZaXrFG Qzln8/6VhR5byaqJ6O7evDWMnNV2CwYRghJLw2jGRzrbsJ6z26Fukjf/vzNc7NPY3zZZ 4kKEff1mMPdjIMltDD8kldaby9LcJZDpJZAIHqEj4M3wNcNzcEKrd8zee9NJan/i1DWP JUbdlSoyX5G4Q6U0hCRFWgGU7lCr3V03y6iGwUrkCVVtsF+kufHMf4jnqrxgVXtSIzQB IIyw== 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 i34-20020a0564020f2200b0045d5ba4c3cesi4275513eda.47.2022.11.18.16.04.00; Fri, 18 Nov 2022 16:04:25 -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 S237182AbiKRX7H (ORCPT + 99 others); Fri, 18 Nov 2022 18:59:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237079AbiKRX4W (ORCPT ); Fri, 18 Nov 2022 18:56:22 -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 D4859CDFC0 for ; Fri, 18 Nov 2022 15:28:23 -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 1owA8v-0003Ca-MF; Fri, 18 Nov 2022 23:47:29 +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 1owA8t-0058ZV-Em; Fri, 18 Nov 2022 23:47:28 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8t-0000F7-Ip; Fri, 18 Nov 2022 23:47:27 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Dmitry Torokhov , Srinivas Pandruvada , =?utf-8?q?Krzysz?= =?utf-8?q?tof_Ha=C5=82asa?= , Peter Senna Tschudin Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 346/606] media: i2c/m52790: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:20 +0100 Message-Id: <20221118224540.619276-347-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?1749880684643023613?= X-GMAIL-MSGID: =?utf-8?q?1749880684643023613?= 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/media/i2c/m52790.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/m52790.c b/drivers/media/i2c/m52790.c index 2ab91b993c33..0e6507ab7e08 100644 --- a/drivers/media/i2c/m52790.c +++ b/drivers/media/i2c/m52790.c @@ -129,8 +129,7 @@ static const struct v4l2_subdev_ops m52790_ops = { /* i2c implementation */ -static int m52790_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int m52790_probe(struct i2c_client *client) { struct m52790_state *state; struct v4l2_subdev *sd; @@ -173,7 +172,7 @@ static struct i2c_driver m52790_driver = { .driver = { .name = "m52790", }, - .probe = m52790_probe, + .probe_new = m52790_probe, .remove = m52790_remove, .id_table = m52790_id, }; From patchwork Fri Nov 18 22:41:21 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: 23106 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487795wrr; Fri, 18 Nov 2022 16:44:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf5PZVR0qBU9VaqyvLvwMlHAQ17O85554R5BmdPe/H9TaCcCpWsCVDVkBKWiootWU3Jxqlvj X-Received: by 2002:a17:906:edbd:b0:783:5326:90e5 with SMTP id sa29-20020a170906edbd00b00783532690e5mr7800650ejb.374.1668818645238; Fri, 18 Nov 2022 16:44:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818645; cv=none; d=google.com; s=arc-20160816; b=P9Tp5bN2o1dzhyWjB4/fFnSK6qZiJLz+ymRjdxfcD8akx1V8mhgcNsD4zuxLPvPzOS Cz/tfzaEojFjPUO0n0ZMZrsUFmS2MU/ghi/EKSvI+jB86l6FVZpQPDtwe9mT7uZYqCtA Etejwzxs456DcvM2JD6uZ5rHf8x+JS86RDrhTh5QjUyXWe9Jpm0dGOJq+eO3n2YN5+rp mGaq6GEhb2rCvhbGOP614UVnMms8G4AVtSNd7EAAjiZQJgUOCKzJX0DaZFbYM0+Eiswl IvAQSEhKP/051gbEBD++RIy6M5CNOPjwjwy/YKTwckut3QjonTNpciTk/4MmCvsJ8uuN esFg== 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=g064A7ZshK+qMwj8sDrKjA3nGkG1mslpsz6oxoZq8EM=; b=bmWwo9u7tYOW1Ap0kVo+ryaCyUzM0+yTqZb/C3eApsI1mO1pNI7u96WltH8jTE6773 wHxES9phvoTzQ8J/bjICPGmMa68PCBJt/JADTTECRA3o+lfEf8Ly0iK7bkqYmEs78ESb C6ZUyB0AfnKR7qJaXt72bT2I4Ors+JAYH1/AejjxBH+suDDI156jmx3/dUOU8R7t9qKE bzn9D0LPHgZAB9aHzRmolVZ5yP9g4UcOmynRkUWGPaVdtVWthu3h8EZV8ewggzTEVkfN vc7nPSEl999MevDdRR/L0F8IZrzId4q1Hfg5BdzkG11xFfUjdctTfSmz7uAzHeERyeYt Vtdw== 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 xg12-20020a170907320c00b007aeff3b0b17si4611852ejb.674.2022.11.18.16.43.35; Fri, 18 Nov 2022 16:44:05 -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 S235337AbiKSAgP (ORCPT + 99 others); Fri, 18 Nov 2022 19:36:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235152AbiKSAff (ORCPT ); Fri, 18 Nov 2022 19:35:35 -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 1C957116079 for ; Fri, 18 Nov 2022 15:43:13 -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 1owA8w-0003D2-5M; Fri, 18 Nov 2022 23:47:30 +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 1owA8t-0058ZZ-MA; Fri, 18 Nov 2022 23:47:28 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8t-0000FD-QP; Fri, 18 Nov 2022 23:47:27 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Kyungmin Park , Heungjun Kim , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 347/606] media: m5mols: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:21 +0100 Message-Id: <20221118224540.619276-348-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?1749883179492686401?= X-GMAIL-MSGID: =?utf-8?q?1749883179492686401?= 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/media/i2c/m5mols/m5mols_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/m5mols/m5mols_core.c b/drivers/media/i2c/m5mols/m5mols_core.c index 2201d2a26353..2b01873ba0db 100644 --- a/drivers/media/i2c/m5mols/m5mols_core.c +++ b/drivers/media/i2c/m5mols/m5mols_core.c @@ -939,8 +939,7 @@ static irqreturn_t m5mols_irq_handler(int irq, void *data) return IRQ_HANDLED; } -static int m5mols_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int m5mols_probe(struct i2c_client *client) { const struct m5mols_platform_data *pdata = client->dev.platform_data; struct m5mols_info *info; @@ -1039,7 +1038,7 @@ static struct i2c_driver m5mols_i2c_driver = { .driver = { .name = MODULE_NAME, }, - .probe = m5mols_probe, + .probe_new = m5mols_probe, .remove = m5mols_remove, .id_table = m5mols_id, }; From patchwork Fri Nov 18 22:41:22 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: 22797 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466754wrr; Fri, 18 Nov 2022 15:40:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf4eCkHWRXLhZbGKa+tWi6dA1yERYi5ItWjY8yH5yYODbwwdOeI7OOQj14HijVv4Y50VNqJX X-Received: by 2002:aa7:cb49:0:b0:468:f307:3014 with SMTP id w9-20020aa7cb49000000b00468f3073014mr6981851edt.321.1668814855083; Fri, 18 Nov 2022 15:40:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814855; cv=none; d=google.com; s=arc-20160816; b=ej0JjXzdP6wyffO9diOQe4u+GWtgT0d7+u43rIMuDpL1bqfOoB94OnH9IUMP4ZNF6h 1lscp7FHkt9arMHM/8Rg0yE3rA5Bo0rUbbjZN3CE9p4n8761XR9iPdX0mavukEdRfon+ 1ZhIojQ8HsbfhE7AzWDaQ+F9dDDSx0Ttae6aBYB87u++vKwpaLoDEILaJLBfhpYuQo1J 9Y186EzGdg8rtCs1tVK4cCMW/4fwZfOIfTtvO+yyzl0/oUrR1VIUpPhApEV+Q6LuWIE7 pGab79pgmM1EDhFn0/R5lr51ecGhevOjJ+mxwp1wGuIks3jVDYJw7wg5MyQNUY3S7qoD V2lQ== 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=wPUtrbeenQMeYhcvVYEIENLUfxA/TvaizTVHDx9FkiQ=; b=OgsG+UtCQ/Sv46SYdLOpl20W/koKWitU8IpjX4qXyt8SDI+630iZw1C2twNmVoERF6 icN0GvMAsSislVG/2xOSQtKRSy9O0lPEAHvnnTxZMbLPO3COq0aO6VgfXRchvYAZJzt1 9PHIoM8+bIPFCIpWwAyS3XM25GxDf7OgqBWSo9jEtUJPzGtzIwCE/yz5Ff2jrCba4U3Z Aimb4IyOVph7tiFGNmiXX+xJ12JecH7Kg4HCZVMf+rhH79hQmT52wwlLpd1/z1RfTjUl HF283MV2HtOguwC381J7efsir6kMDRNhLaaTxxfH8nOUQ60wt72cjWD/BMjpRVEfknl1 T4qw== 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 dn14-20020a17090794ce00b0077d854aa10dsi4453396ejc.57.2022.11.18.15.40.31; Fri, 18 Nov 2022 15:40:55 -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 S236666AbiKRXha (ORCPT + 99 others); Fri, 18 Nov 2022 18:37:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236489AbiKRXdF (ORCPT ); Fri, 18 Nov 2022 18:33: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 46DE125F0 for ; Fri, 18 Nov 2022 15:21:15 -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 1owA8w-0003D4-0x; Fri, 18 Nov 2022 23:47:30 +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 1owA8t-0058Zb-Mf; Fri, 18 Nov 2022 23:47:28 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8u-0000FG-1N; Fri, 18 Nov 2022 23:47:28 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Peter Rosin , Heikki Krogerus , Greg Kroah-Hartman , Laurent Pinchart Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 348/606] media: i2c/ml86v7667: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:22 +0100 Message-Id: <20221118224540.619276-349-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?1749879205039262192?= X-GMAIL-MSGID: =?utf-8?q?1749879205039262192?= 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 Reviewed-by: Laurent Pinchart --- drivers/media/i2c/ml86v7667.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/ml86v7667.c b/drivers/media/i2c/ml86v7667.c index 49ec59b0ca43..dbd2f0bd3651 100644 --- a/drivers/media/i2c/ml86v7667.c +++ b/drivers/media/i2c/ml86v7667.c @@ -359,8 +359,7 @@ static int ml86v7667_init(struct ml86v7667_priv *priv) return ret; } -static int ml86v7667_probe(struct i2c_client *client, - const struct i2c_device_id *did) +static int ml86v7667_probe(struct i2c_client *client) { struct ml86v7667_priv *priv; int ret; @@ -434,7 +433,7 @@ static struct i2c_driver ml86v7667_i2c_driver = { .driver = { .name = DRV_NAME, }, - .probe = ml86v7667_probe, + .probe_new = ml86v7667_probe, .remove = ml86v7667_remove, .id_table = ml86v7667_id, }; From patchwork Fri Nov 18 22:41:23 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: 23146 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488614wrr; Fri, 18 Nov 2022 16:46:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf5psibUD9rklsCU3oftMe2qJm4CdxORfVPCafengrIsSxILXF3Ob1/wF6pTUpuUSJaUJ19p X-Received: by 2002:a65:68da:0:b0:477:4a00:6ce8 with SMTP id k26-20020a6568da000000b004774a006ce8mr881697pgt.502.1668818788150; Fri, 18 Nov 2022 16:46:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818788; cv=none; d=google.com; s=arc-20160816; b=A2kApnGDaTXFfgxrY4aIRHaP5MmBBvELgHNRfmLrGQKXHSfcksleUBmLm6KEuUxDkd 3hwWQRL3Ptdsv0PsGzvJCK/NgMFMLkgBmXyrNEsYMCBka/FsGQBLpvcntdVtZuauI40B 1TonEr4w7RQyh3kxeOmJT0e2KZtoCnKAeJlRBjNbErheLQ3+LjRVUPHT4w7tKr9Gtu+f H7hDZBqRODSR2x77n5HrGtNri9jjVXYvaXJcvpiTkTmOHqRY55B/o4EaPripE39ZLBk/ qysDiDUqczDmPOsbld6kvnz+6cZGXonaMBzH4WsXIz86Le2o2OmnALESW0JrZWLHVS2c hz0g== 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=Ta1GyclG7ij2TZjggZntdvqMc7BR8jo1Tu9JeZTeN+s=; b=z0NBxWcnyD4q7hC/jWEvzISQlsIOvowHytPYehki3NMR7YmbhsIFFN4adVxgB/BxlU 29VaRDZ+roHvSqDCYWSpnIBW9orvPgelWSL01HCRR3nqtaigWh8kP737NtGqZ0HcjqD8 Gli7V/XTdQfpYDYmfSt02ZTOUwfH0Q4ejcdyJYj4nFo47DVsL1xyrkjbgyCoTVjJfujT z670ezbAFvicIiNPGfNL+S4PJfS15qprUaBN8jyrEVc0ksXMfECXQuauBSrrHSsX3gKB YAJL1rZDGl2USsCTvbSpO169TSyua2asLOZCqAhIpa125xs6GAX6Z1JAL2AQ97Ra95Ka JiNQ== 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 f12-20020a170902684c00b00188f9534a59si3915722pln.306.2022.11.18.16.46.08; Fri, 18 Nov 2022 16:46:28 -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 S237996AbiKSAo3 (ORCPT + 99 others); Fri, 18 Nov 2022 19:44:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238039AbiKSAmK (ORCPT ); Fri, 18 Nov 2022 19:42:10 -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 BE3A1C8450 for ; Fri, 18 Nov 2022 15:45:09 -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 1owA8w-0003E6-T6; Fri, 18 Nov 2022 23:47:30 +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 1owA8u-0058Zp-6m; Fri, 18 Nov 2022 23:47:29 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8u-0000FJ-6c; Fri, 18 Nov 2022 23:47:28 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Vladimir Oltean , Corey Minyard , Javier Martinez Canillas , Srinivas Pandruvada Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 349/606] media: i2c/msp3400-driver: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:23 +0100 Message-Id: <20221118224540.619276-350-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?1749883329327730946?= X-GMAIL-MSGID: =?utf-8?q?1749883329327730946?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/media/i2c/msp3400-driver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/msp3400-driver.c b/drivers/media/i2c/msp3400-driver.c index 4ce7a15a9884..12032e28b428 100644 --- a/drivers/media/i2c/msp3400-driver.c +++ b/drivers/media/i2c/msp3400-driver.c @@ -663,8 +663,9 @@ static const char * const opmode_str[] = { [OPMODE_AUTOSELECT] = "autodetect and autoselect", }; -static int msp_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int msp_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct msp_state *state; struct v4l2_subdev *sd; struct v4l2_ctrl_handler *hdl; @@ -891,7 +892,7 @@ static struct i2c_driver msp_driver = { .name = "msp3400", .pm = &msp3400_pm_ops, }, - .probe = msp_probe, + .probe_new = msp_probe, .remove = msp_remove, .id_table = msp_id, }; From patchwork Fri Nov 18 22:41:24 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: 23113 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487969wrr; Fri, 18 Nov 2022 16:44:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf5el7nWc5nXm9li1/ib5Jphm2E1wnxP05LpapeQFH7Sj6pPb/DMyh91yGYgkDCA009GfCSu X-Received: by 2002:a17:907:8dcc:b0:7b2:b5aa:f1e0 with SMTP id tg12-20020a1709078dcc00b007b2b5aaf1e0mr4435235ejc.54.1668818676618; Fri, 18 Nov 2022 16:44:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818676; cv=none; d=google.com; s=arc-20160816; b=uCPP4RQE9ulnjrmg9x4sBELxqn0xsbeuzkRL0c4Hjvo9lLuAtwsZgZ1MY3EgvMsp45 yEbU9aPURcuWUkCpOgBddBI0SFhpgwDYnbNXr88evWAigqUSwjeOsvPphZFBoWDrlBKt DVUkQlGf5JdpB4HBL8m6+8RcZBOb+YPs/ICcJ5m53ku5XV9hv17HtQPOYY6QylKruX1m sJoLTMga18PkdaPWp8qUJpJ5LTLbNMuUzVz24p/88yzLtLBo6js+sLCDFoTiqASqd3Ky 7rWj/7Ecm7Bg+p6olNUT+9GH1IBRUKRrawreOWb8MGSTNJEyLa09/1IvGlCoVX4qVbdP AfEg== 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=HD2iKNsr+UULsDOnsj1yPIxzW4wYwmENe2Gff6swMBw=; b=03gbTI7Ymxnid8eqxfBsIsUZDM8z7YE+hWWyuQgXEAT13Vvk6V0OL69AvogdDQfor3 gFhO3qaNijNDHonlAZdH6AJEDJAOMbXCbJn6n3+Yr9QRhivi4V7TCfYSymoK9BOCbrfh O0LesqRsaMoe7BS33LIGoovq/PN9ntK0Xhnj7oL9McbjMHaFbss0PHmbyStxsYRhiy2c /mzh2dxVY3QP27Yd7XZlmZ00axISTJs7ahYvD7SZ+izFPvzIycVoERU3+T/gBv1rzpmi Exz/a6y7IvNI0bXOB+vgtnrW6MjNGDpBDO0ho3u4hxPfLZc2G4SwK5q373Y023qUCyYd 4szA== 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 xb14-20020a170907070e00b007b28c6790edsi4384572ejb.205.2022.11.18.16.44.08; Fri, 18 Nov 2022 16:44:36 -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 S236818AbiKSAiH (ORCPT + 99 others); Fri, 18 Nov 2022 19:38:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237898AbiKSAhK (ORCPT ); Fri, 18 Nov 2022 19:37:10 -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 21CFDBA68B for ; Fri, 18 Nov 2022 15:43: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 1owA8w-0003Dq-MI; Fri, 18 Nov 2022 23:47:30 +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 1owA8u-0058Zl-30; Fri, 18 Nov 2022 23:47:29 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8u-0000FN-Dg; Fri, 18 Nov 2022 23:47:28 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Laurent Pinchart , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 350/606] media: i2c/mt9m032: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:24 +0100 Message-Id: <20221118224540.619276-351-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?1749883212704702707?= X-GMAIL-MSGID: =?utf-8?q?1749883212704702707?= 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 Reviewed-by: Laurent Pinchart --- drivers/media/i2c/mt9m032.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/mt9m032.c b/drivers/media/i2c/mt9m032.c index 76b8c9c08c82..958cfdd73d57 100644 --- a/drivers/media/i2c/mt9m032.c +++ b/drivers/media/i2c/mt9m032.c @@ -701,8 +701,7 @@ static const struct v4l2_subdev_ops mt9m032_ops = { * Driver initialization and probing */ -static int mt9m032_probe(struct i2c_client *client, - const struct i2c_device_id *devid) +static int mt9m032_probe(struct i2c_client *client) { struct mt9m032_platform_data *pdata = client->dev.platform_data; struct i2c_adapter *adapter = client->adapter; @@ -880,7 +879,7 @@ static struct i2c_driver mt9m032_i2c_driver = { .driver = { .name = MT9M032_NAME, }, - .probe = mt9m032_probe, + .probe_new = mt9m032_probe, .remove = mt9m032_remove, .id_table = mt9m032_id_table, }; From patchwork Fri Nov 18 22:41:25 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: 23067 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486892wrr; Fri, 18 Nov 2022 16:41:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf72blt57aU0+PDJ8uN35VtOyejWQiyJb86sNckFSD5ES+6bK8e6jj2jC5N9apMTyMXhI29l X-Received: by 2002:a05:6402:a41:b0:462:273b:6b5c with SMTP id bt1-20020a0564020a4100b00462273b6b5cmr7968431edb.57.1668818490652; Fri, 18 Nov 2022 16:41:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818490; cv=none; d=google.com; s=arc-20160816; b=VYaYK6RRD1kP3sWyMBvZ/SJ008Y7on5QTctsorFMxvx73YWlejGMCrQNGVOAmoUBvH MxugQzTalKnVTB+7PQZ1ihD5ZoY7IYy0K+7wvYiP4xHtFd9x3y/apn4pYn4gxLEEsh5e xM5tHZA2L0HCKOrt5gcq4qOfKJbzDrrqE6YQqT0dxT1tapm5CkmWrWvlQULqogCqkDeC +bpfRRGO3zwnS79Jj+OrZS/0ZUZdtSoFNPFCZZoOUB+vlDjtGYGFLcJDUneqf1n1C1FB IL9z/aj+SEGcLzDcJL5xHSlHO7Su5c6f4QcvR2zTfXfnuW7VWlLr7fvvW7hAaY8d8MsV skOA== 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=V1jBij/Rjh6eB8bqHAm8iG4e7nnkJ0040sgOdjBVxhc=; b=RISuj9TDTgxu3R1iVGfrcuWIubmgHIpOx5XCJe9wsfETRgvl3RgTnf64Wg3H4o2iME uV0BVtGoCTaVV1eRhBxbpLUH0aYJCR5ngFhWPBryiIxi/quYiYPfReqXfWCdw15vq2w4 6mFqC91SDCH1TgGwR2X6CMXoAjg8o8hLD1ijB1ca1F2kELiWJ26uK9lSAgVa7pbVdNWx mWgJ0AIXpojhio9YaJTlm5rAod9FSfCbsX3okUlWnK61aD6KaY8Hh4H9YTT2WZkHREHs nkgTVWfPjHknLOUauvWIRromLHF4iWTyecPdHHlbPSMPjwnSde8kz2hSotXUOQ/xvBXN JPuw== 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 n6-20020a056402060600b00459a0a21965si4213852edv.516.2022.11.18.16.41.06; Fri, 18 Nov 2022 16:41:30 -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 S233963AbiKSAgB (ORCPT + 99 others); Fri, 18 Nov 2022 19:36:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234813AbiKSAfc (ORCPT ); Fri, 18 Nov 2022 19:35:32 -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 75A0232058 for ; Fri, 18 Nov 2022 15:43:11 -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 1owA8x-0003Ey-B3; Fri, 18 Nov 2022 23:47:31 +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 1owA8u-0058Zw-IX; Fri, 18 Nov 2022 23:47:29 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8u-0000FR-J8; Fri, 18 Nov 2022 23:47:28 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Laurent Pinchart , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 351/606] media: i2c/mt9p031: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:25 +0100 Message-Id: <20221118224540.619276-352-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?1749883017555904699?= X-GMAIL-MSGID: =?utf-8?q?1749883017555904699?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Reviewed-by: Laurent Pinchart --- drivers/media/i2c/mt9p031.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/mt9p031.c b/drivers/media/i2c/mt9p031.c index 45f7b5e52bc3..ecee8a58d930 100644 --- a/drivers/media/i2c/mt9p031.c +++ b/drivers/media/i2c/mt9p031.c @@ -1097,9 +1097,9 @@ mt9p031_get_pdata(struct i2c_client *client) return pdata; } -static int mt9p031_probe(struct i2c_client *client, - const struct i2c_device_id *did) +static int mt9p031_probe(struct i2c_client *client) { + const struct i2c_device_id *did = i2c_client_get_device_id(client); struct mt9p031_platform_data *pdata = mt9p031_get_pdata(client); struct i2c_adapter *adapter = client->adapter; struct mt9p031 *mt9p031; @@ -1243,7 +1243,7 @@ static struct i2c_driver mt9p031_i2c_driver = { .of_match_table = of_match_ptr(mt9p031_of_match), .name = "mt9p031", }, - .probe = mt9p031_probe, + .probe_new = mt9p031_probe, .remove = mt9p031_remove, .id_table = mt9p031_id, }; From patchwork Fri Nov 18 22:41:26 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: 22935 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474669wrr; Fri, 18 Nov 2022 16:04:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Zx5QtcpeUf0h/UaBymM4rslrhZR2Ym4KUdA4Zw5b7+bUW3oZzE0MV0LuvKJTxvbZp/vJZ X-Received: by 2002:a17:906:cd09:b0:7ad:d11e:a2c2 with SMTP id oz9-20020a170906cd0900b007add11ea2c2mr7962855ejb.473.1668816284005; Fri, 18 Nov 2022 16:04:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816284; cv=none; d=google.com; s=arc-20160816; b=sceswXGilrXBhfitF1cxXWQ712D8jv4Y2CieMrt4hSsMXR5H4tsmRqCj/DeOFyatGc x83Aza/oPflW87BeZD64kuq069Zgt7pukKyehpEZ6LRNOaIj0M+P4vBEYgtSE5rnZBtE 7aO5JpOWBWYHCUSDyr7WEMZKGnIgo2HQ4CRAgzKGhJX9r87l4rz3oueFJZUNox/wP8jA Y4NKBsht+Hd2N2lqFjPp5dTidP3NYMJRwMvixBl5/4nxVLmREw8NWMA3DSbEpVPMM4K+ tmztKkaozJwZp1IiilVPKhniPMOXNU7giGtRO0f9N5FOX1CidqtFR4t5ygFaAXJjq1P5 ghbw== 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=3K8eMu4ENXw0uMd0tW7vy+5SKmODDZ3x2hfy4tICNYk=; b=MSlwXIdbOlEpc3gR2W9B+D/S7cj9FjD7IeXIQ6p2jcNn4V6r5/BFjxLDzJL9KvN7Jy AQ0opCPSf4v9UXG5AASMuls7VvRefSuYFrb5CFESK6nebdG7eRVJWLLqxfuFm8GBerPM R2SmdgH+p0A34mgitutPKUDt3xmfXI+bgzNiTBRtdBudDIJmrudmsQZv2Hdwxxk/qq6G f96B3Q/Cude7ZFKSlH5V3QHXTkeuTWAfjUsRpqVw/CQe08s35hMUeWsJrD4dA5O/jVNf Mt8SKbBmwHwqDWrBiP0wVjNEEjKJuDZl5qiZcB64F3f5BkuoHQ9qkF5FUiNIDXdqEc2d 6meQ== 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 l18-20020a170906795200b007aed5ffeffbsi4403489ejo.78.2022.11.18.16.04.19; Fri, 18 Nov 2022 16:04:43 -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 S237281AbiKRX7u (ORCPT + 99 others); Fri, 18 Nov 2022 18:59:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237173AbiKRX5B (ORCPT ); Fri, 18 Nov 2022 18:57:01 -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 F07DDBE5 for ; Fri, 18 Nov 2022 15:28: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 1owA8x-0003FU-Jl; Fri, 18 Nov 2022 23:47:31 +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 1owA8u-0058a1-Qf; Fri, 18 Nov 2022 23:47:29 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8u-0000FW-Ok; Fri, 18 Nov 2022 23:47:28 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Laurent Pinchart , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 352/606] media: i2c/mt9t001: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:26 +0100 Message-Id: <20221118224540.619276-353-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?1749880703885845427?= X-GMAIL-MSGID: =?utf-8?q?1749880703885845427?= 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 Reviewed-by: Laurent Pinchart --- drivers/media/i2c/mt9t001.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/mt9t001.c b/drivers/media/i2c/mt9t001.c index d5abe4a7ef07..c635ed11388a 100644 --- a/drivers/media/i2c/mt9t001.c +++ b/drivers/media/i2c/mt9t001.c @@ -856,8 +856,7 @@ static const struct v4l2_subdev_internal_ops mt9t001_subdev_internal_ops = { .close = mt9t001_close, }; -static int mt9t001_probe(struct i2c_client *client, - const struct i2c_device_id *did) +static int mt9t001_probe(struct i2c_client *client) { struct mt9t001_platform_data *pdata = client->dev.platform_data; struct mt9t001 *mt9t001; @@ -981,7 +980,7 @@ static struct i2c_driver mt9t001_driver = { .driver = { .name = "mt9t001", }, - .probe = mt9t001_probe, + .probe_new = mt9t001_probe, .remove = mt9t001_remove, .id_table = mt9t001_id, }; From patchwork Fri Nov 18 22:41:27 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: 22859 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472026wrr; Fri, 18 Nov 2022 15:59:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Tgmvj19CwFk4/DjzB+7G2swnyh7FN31prHdmaGgCBfC2ufoVRGrc5IqkIB5FoxEIfKue0 X-Received: by 2002:a05:6402:2409:b0:45c:935b:ae15 with SMTP id t9-20020a056402240900b0045c935bae15mr7910965eda.357.1668815947349; Fri, 18 Nov 2022 15:59:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815947; cv=none; d=google.com; s=arc-20160816; b=G5mGf8iJy/rkT1fG8ZtWIhlQ+4R8ENCRg3XgJZtmJVkYOmx5cdiO0Ku9SgEvtFBJQ1 DIQvFLHVphvYkuViwvI3vdEVLjollSEs6K7iQzXXTjNLDWHeF5DPpYbo/+i+xg88Jy0P HkyJ0cUnMA9h+JFl9EJw9rTquhAU1Tyb0nVhw3FH0Qe7gGvN5AKgv0kSqAEuIeLDjO75 WYcB7TOlK6A5nYR1adIDSRVredoOZCgEjTdKrLh5A5CIN9/K2H6TNIHNjgJ11eKew4I/ 3PrzjULycLJf/OOwN1NWQrLEJNCHzAChoqI9w3Cs/TQUdr1rRx238IwepTSj33ucekyH xnJA== 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=CVOnXmYvh3/Qd1FmDVrEbfv5ksGGUdiYamzjtkpj0yQ=; b=DcUzkjT7CszuL76Vc+4o9eNRx42paiF8n8vODSYs1YNYbhuZn/NFtJtQuQqVo0zTEK HfB+Ca/RE2rOJf7mwbGD/ZooKNM41PiyivFkjXbRs/87RBieIJVB1TGqO1k9PWGS5vJx O5iK6fW2k/U9KpN0DQCgEh6prD7Jv4klUtOl/PSzPqd7lznmzHs+vWd1dVdKJy7GLIVe U8TQpjDq30dh2nY2JG+yzywt4xVx7HhcJHd0kQZhglqVcGon6XUUcJnqW9d9WvtjpSvX RyJ9wSyUlYE4fJkModg5qKgl6hboCJ13sdv7DPJmOO9nibFdGfyQg4U3UljBSEhGiPgZ HKLg== 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 g12-20020a056402090c00b0046777d0ad16si4480306edz.394.2022.11.18.15.58.43; Fri, 18 Nov 2022 15:59:07 -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 S233927AbiKRXvA (ORCPT + 99 others); Fri, 18 Nov 2022 18:51:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233765AbiKRXuB (ORCPT ); Fri, 18 Nov 2022 18:50:01 -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 376DED08AD for ; Fri, 18 Nov 2022 15:26: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 1owA8x-0003Fp-Oz; Fri, 18 Nov 2022 23:47:31 +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 1owA8u-0058a5-Ue; Fri, 18 Nov 2022 23:47:29 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8u-0000FZ-U3; Fri, 18 Nov 2022 23:47:28 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jacopo Mondi , Mauro Carvalho Chehab , Jean Delvare , Ajay Gupta , Hans Verkuil , Miguel Ojeda Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 353/606] media: i2c/mt9t112: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:27 +0100 Message-Id: <20221118224540.619276-354-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?1749880350946552465?= X-GMAIL-MSGID: =?utf-8?q?1749880350946552465?= 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 Acked-by: Jacopo Mondi --- drivers/media/i2c/mt9t112.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/mt9t112.c b/drivers/media/i2c/mt9t112.c index ad564095d0cf..a82f056787b8 100644 --- a/drivers/media/i2c/mt9t112.c +++ b/drivers/media/i2c/mt9t112.c @@ -1060,8 +1060,7 @@ static int mt9t112_camera_probe(struct i2c_client *client) return ret; } -static int mt9t112_probe(struct i2c_client *client, - const struct i2c_device_id *did) +static int mt9t112_probe(struct i2c_client *client) { struct mt9t112_priv *priv; int ret; @@ -1120,7 +1119,7 @@ static struct i2c_driver mt9t112_i2c_driver = { .driver = { .name = "mt9t112", }, - .probe = mt9t112_probe, + .probe_new = mt9t112_probe, .remove = mt9t112_remove, .id_table = mt9t112_id, }; From patchwork Fri Nov 18 22:41:28 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: 22723 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464036wrr; Fri, 18 Nov 2022 15:33:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf6zb0T2gvg9CGKo107LDaTqVR5YhXDZlJ9s4pMbg5ocAaihmy6rSpJVR/nOAplUjw8OGakt X-Received: by 2002:a17:906:af65:b0:7ae:41e6:9076 with SMTP id os5-20020a170906af6500b007ae41e69076mr7927929ejb.321.1668814434291; Fri, 18 Nov 2022 15:33:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814434; cv=none; d=google.com; s=arc-20160816; b=d9ae4XWjXAlDocKOwK6hqo4VvLVjnJIeRXpjU19ix6M1yCTNE2oUz0ZFhYJ2Vrxxw3 u0O9zMKCXIKQpci41SqVt0XW+BcXGNd0kfiiobHE5twqGwG6SyrX//AtOy/Bh7hoiaOl RdaMi2AeenVa7xbHjtDGT8bY1MveD8XfeE0STLbEWHofazKzE899AosPwLlL6zRq1Y1E mBdQbijHY4oTfS35iclfdCfOoIlPgH742jb1gO/JrRRhsMDTC8Z0Ccs3nNhlBZtUgV+J kwYeuP0p0RSe5UlIUf1Jy6mQzp/NMhdo6lJP6CTyXp6E5kG1p54bOoUXwsGC8Rh65khe EMVg== 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=rrRZj9bqEUTMX7p0P+7OhnhLhTPuHcu849hSEUarVfc=; b=XU5Nzz0cZBuTQluXrQBmsrBvRnrYWv6O9QI5NPmiuQOGsktfaYyVvxhYcStvirmg93 qO/sMxU0AMBrsLJUmChw+OkXurO0807/Y94Am58SouvQlYmb36cWseqv6OU6kgUmgEkc QZFjIdjhYqi1URo5Ar5D1p+UxIVJY1rVxwv3yWJ8oUx09cVVeRpnO1QHtUKmXr4FZkcm g0zOlOfhIvlan7wfYWbbXdwDhr4Cib81YxVfFaC9pF4cIXvDZ3dwuQEXHSMj8VF2fsl3 OaG/1Qhez0q02mpYEV24yms4nh0eAML07Dd8LbQ5OczcsNSQN2HAEfaY/qK7PxSEe6TN 5/Wg== 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 t18-20020a1709063e5200b0073c14b6560bsi3407077eji.177.2022.11.18.15.33.30; Fri, 18 Nov 2022 15:33:54 -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 S235836AbiKRXbl (ORCPT + 99 others); Fri, 18 Nov 2022 18:31:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235831AbiKRXaT (ORCPT ); Fri, 18 Nov 2022 18:30:19 -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 AE5CD75D91 for ; Fri, 18 Nov 2022 15:18:08 -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 1owA8x-0003Gc-UO; Fri, 18 Nov 2022 23:47:31 +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 1owA8v-0058aD-7W; Fri, 18 Nov 2022 23:47:30 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8v-0000Fc-39; Fri, 18 Nov 2022 23:47:29 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Petr Machata , Miguel Ojeda , Andy Shevchenko , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 354/606] media: i2c/mt9v011: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:28 +0100 Message-Id: <20221118224540.619276-355-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?1749878764262474955?= X-GMAIL-MSGID: =?utf-8?q?1749878764262474955?= 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/media/i2c/mt9v011.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/mt9v011.c b/drivers/media/i2c/mt9v011.c index 9952ce06ebb2..c54c7fbf0963 100644 --- a/drivers/media/i2c/mt9v011.c +++ b/drivers/media/i2c/mt9v011.c @@ -478,8 +478,7 @@ static const struct v4l2_subdev_ops mt9v011_ops = { I2C Client & Driver ****************************************************************************/ -static int mt9v011_probe(struct i2c_client *c, - const struct i2c_device_id *id) +static int mt9v011_probe(struct i2c_client *c) { u16 version; struct mt9v011 *core; @@ -586,7 +585,7 @@ static struct i2c_driver mt9v011_driver = { .driver = { .name = "mt9v011", }, - .probe = mt9v011_probe, + .probe_new = mt9v011_probe, .remove = mt9v011_remove, .id_table = mt9v011_id, }; From patchwork Fri Nov 18 22:41: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: 22984 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476906wrr; Fri, 18 Nov 2022 16:10:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf4dKwDGCrz6RxMdfv2TEm/BgZZHVixABCfuMsQTAngfFFSd8/eQic6P5l9OsWb0vUgUvHxt X-Received: by 2002:a17:903:252:b0:189:d3b:6201 with SMTP id j18-20020a170903025200b001890d3b6201mr1387802plh.153.1668816612045; Fri, 18 Nov 2022 16:10:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816612; cv=none; d=google.com; s=arc-20160816; b=ak0dbZv7Ak6/5hyVGfEGHlZ43F207VA+mAz5eGISl22wSbmDQiW0hbWImu/K89dkoj 9BthcBuie0GNqamg84kNWZ0p2/GWqDJf+t3wNPgXcuAhLsZuldi7kKByPI9KLiGHc5Uj GLImwSSLunINvHub6FUMZiEA2p3kb5iqs60C8heORp4GrGGZ+yvv3nTV3liGLbV2+K4B IoSjYTcgQMDW+Y72YjHQLNzB+T95QSOgbTh7wcSRJ0hLvv/jXf/S+uQCzVZR3M2talej r9rnSrlTy1D1vSGuOluDqL8j+3nUXDKVPiFnV5x1T6N1fB0r6e2qEoxf5Gq6kJ7WiN1t 2esQ== 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=GXG1hQHmWmYJ4w+RvUTHubmsIaB12MMmFB4AYzIsUeo=; b=mZZMLhvd6sfH4DdeHZHMGLmIV/JDGJV1mHugLkk2sA++JkR1RcdRXDa/v7ayrHHzN7 XXQNL1fNep4T6BQAVP/plzzDfNaoSUUTSvrYxLfEtSvpMmq64D5wFL76kZdziKNJ7JEI 4izFomGEE+Vpfazpt6nFCnQwATyHPL/W9/bYyqDcU74Cvvc1eTJ0nPaD9XKjVRe8nbCa prhBQe9rqijDADgN8Dj68W1AxP5syeoyMACJ+9CpGdMbbC3SK3BTsnUtw7tK5Zl3RMpR cXHQajxO55bHF1GSXx49wY3IMzVUF68y8xYXEVkW6kOjWyrCkq+GZyDFBdCAAe1Cv9rv cXBg== 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 w190-20020a6382c7000000b004774a855372si465329pgd.694.2022.11.18.16.09.59; Fri, 18 Nov 2022 16:10: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 S237440AbiKSAEm (ORCPT + 99 others); Fri, 18 Nov 2022 19:04:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238108AbiKSADp (ORCPT ); Fri, 18 Nov 2022 19:03:45 -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 A720574624 for ; Fri, 18 Nov 2022 15:30:54 -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 1owA8x-0003GL-Ob; Fri, 18 Nov 2022 23:47:31 +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 1owA8v-0058a9-4B; Fri, 18 Nov 2022 23:47:30 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8v-0000Fh-9n; Fri, 18 Nov 2022 23:47:29 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Laurent Pinchart , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 355/606] media: i2c/mt9v032: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:29 +0100 Message-Id: <20221118224540.619276-356-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?1749881047770642000?= X-GMAIL-MSGID: =?utf-8?q?1749881047770642000?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Reviewed-by: Laurent Pinchart --- drivers/media/i2c/mt9v032.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/mt9v032.c b/drivers/media/i2c/mt9v032.c index bc4388ccc2a8..7cfd4ebdd2e6 100644 --- a/drivers/media/i2c/mt9v032.c +++ b/drivers/media/i2c/mt9v032.c @@ -1044,9 +1044,9 @@ mt9v032_get_pdata(struct i2c_client *client) return pdata; } -static int mt9v032_probe(struct i2c_client *client, - const struct i2c_device_id *did) +static int mt9v032_probe(struct i2c_client *client) { + const struct i2c_device_id *did = i2c_client_get_device_id(client); struct mt9v032_platform_data *pdata = mt9v032_get_pdata(client); struct mt9v032 *mt9v032; unsigned int i; @@ -1296,7 +1296,7 @@ static struct i2c_driver mt9v032_driver = { .name = "mt9v032", .of_match_table = of_match_ptr(mt9v032_of_match), }, - .probe = mt9v032_probe, + .probe_new = mt9v032_probe, .remove = mt9v032_remove, .id_table = mt9v032_id, }; From patchwork Fri Nov 18 22:41:30 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: 23053 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486658wrr; Fri, 18 Nov 2022 16:40:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf6U94AZCV45ST3/sId3MfKYReABeyFIdN1GPeuTOscrVcUuvdLnr9ZXj4L6pA0j9NKMe7Ib X-Received: by 2002:a05:6402:3642:b0:459:53dc:adc9 with SMTP id em2-20020a056402364200b0045953dcadc9mr1937777edb.166.1668818446954; Fri, 18 Nov 2022 16:40:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818446; cv=none; d=google.com; s=arc-20160816; b=lNbNemZygwNlgow2xfEliIFX/qkgurBICcvyBvdf+FwA2LaYgH0XM7LQmqYrQamUJH 3RTeLonENzQFiyPZEf1BBr6+TsDMQtiJWdJRRd0GN2WlIMwc2hkEhhKXJhJpnQ+rfBRp qiReSOz8hbR83QyTNUywbgSqmCQqP23Kv3Fh3WG63U6547/fLeNgUhTK6B4+FiP1JyjD 7sS/ZJAO7D43qu525iiElKgMX5ZD2iQD8EVFKUhNgOP6thfSoSvYDl1+ZxLM2FvkDAZr TOL/77wDdmD45wX4ArijF5LwGFsMoGt6MFIPvvU50uUhHxwkgoZxs4WXfc8O+CjKYxDT tfiA== 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=ED1wWzt7TTgK6hF22QV59lhxptECe2Ga+mCGUy/+u4s=; b=HzJxZ6wLU+r4l59pdjyIv+rvAfEoPRmJBAOZ1j/Mhv5JX8bj3+bkLpAf1NOK1Rl+0V QX7hbQ+f383lKQKMHONMdHssK77rm8+nBV2i8WfCbdJpGtrlKBokwOL6n9KRNTJGEbUn CHnBIxHwGhhSIYxUZhY2qRFJyczG/RUAkFA2qnpKOISRyR81nX0slC+dEC4Rld7vnczA 5oV/ZuA3DRJzsY5B+PFB1LLbskwVJBMr8LtHk058ifaHynCLDUCHIleqzBBD/IkhewKD Qd+IOE6AOKTubHkPdPDMFCkNypwpZBIL99zHt3x1upwxfhQSL+SL0Vb42SlKusrk48vB /uvw== 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 jg8-20020a170907970800b007aea2b23905si4250667ejc.812.2022.11.18.16.40.23; Fri, 18 Nov 2022 16:40:46 -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 S235398AbiKSAZW (ORCPT + 99 others); Fri, 18 Nov 2022 19:25:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232171AbiKSAYy (ORCPT ); Fri, 18 Nov 2022 19:24:54 -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 7D8711B8 for ; Fri, 18 Nov 2022 15:38:27 -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 1owA8y-0003Hn-8D; Fri, 18 Nov 2022 23:47:32 +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 1owA8v-0058aI-M2; Fri, 18 Nov 2022 23:47:30 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8v-0000Fk-MX; Fri, 18 Nov 2022 23:47:29 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Petr Machata , =?utf-8?q?Marek_Beh=C3=BAn?= , Corey Minyard , Linus Walleij Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 356/606] media: i2c/noon010pc30: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:30 +0100 Message-Id: <20221118224540.619276-357-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?1749882971969427329?= X-GMAIL-MSGID: =?utf-8?q?1749882971969427329?= 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/media/i2c/noon010pc30.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/noon010pc30.c b/drivers/media/i2c/noon010pc30.c index ecaf5e9057f1..144bef2835f7 100644 --- a/drivers/media/i2c/noon010pc30.c +++ b/drivers/media/i2c/noon010pc30.c @@ -702,8 +702,7 @@ static int noon010_detect(struct i2c_client *client, struct noon010_info *info) return ret == NOON010PC30_ID ? 0 : -ENODEV; } -static int noon010_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int noon010_probe(struct i2c_client *client) { struct noon010_info *info; struct v4l2_subdev *sd; @@ -810,7 +809,7 @@ static struct i2c_driver noon010_i2c_driver = { .driver = { .name = MODULE_NAME }, - .probe = noon010_probe, + .probe_new = noon010_probe, .remove = noon010_remove, .id_table = noon010_id, }; From patchwork Fri Nov 18 22:41:31 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: 22782 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466331wrr; Fri, 18 Nov 2022 15:39:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf5GdNlZ0F6gSUQ78HNVd6A1BugReZSCjeUYdDCZYGbFWBVUUjAY/0vBYvmS2bvvQo0uI0BC X-Received: by 2002:a17:906:b804:b0:7ad:90dd:4af with SMTP id dv4-20020a170906b80400b007ad90dd04afmr7800329ejb.488.1668814783255; Fri, 18 Nov 2022 15:39:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814783; cv=none; d=google.com; s=arc-20160816; b=sBzPeYZBqIyFcAfLgTfk8kGMeJi6qATNMqWiPKyEANvVUX35MrpOih8FsiRBkudJa4 Ymed0e9YgwY03fhGWr6NMafQ6LfUWagx8i8m+x9O5Qc4ahavu6LuLV7hfW1o4DfdQyjD Ev0BdmzpZ19mqKGve3lEi24x8MH5QoeaUqflr4DKE1CeRfI00cZs6gDBo4a0FBODrd1z eIggKr7Pd/YgThreGd0zwvwx3lz9fM06pPdOmiGLvGkFW1GTrKFjN5HbNnomLLDwsxce LBT+IVGU92azreOS5jr/aZB6190R1++g7Mim2W3pg41UE6FlDkCkpWLZyYrf9uR0JzTI L4Uw== 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=U85gpbqNNPmoYIr8TgXQJUIFA4VrS/+D6w+GW1yZaHQ=; b=shkA11t8sFCXLR+jAru5q5cqZCv9BUCpSzkFi3urkAPxMFKUI6wY39gqsATnpztp2N tytsRvcOSAz+W8P5AYjENobUaCPYhSFQLyW48dWg8NVvP++uLDwZz9YZQ1m43BFBHS0/ 77OvIuUIlnhzfGppaj1jI/kGTc0l+r+6952hl0RY4AP/PSk/Jly+aHrxsGiPBfhn8BsR 6JALN0uEFoOYwJDcfXaTXRRN6D7qfZ+1o7XAP4YPjXybwahjtxyyPN6BhK9bi1meO+PF xvDdOVep2pWExTf9ugoHKFOEjXWKZBvxa1C7XIFswoVX6MGnXNZSAVAiozNiVVBYlnN+ HnBQ== 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 u5-20020a17090657c500b00782161b3422si3376064ejr.914.2022.11.18.15.39.19; Fri, 18 Nov 2022 15:39:43 -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 S236333AbiKRXiZ (ORCPT + 99 others); Fri, 18 Nov 2022 18:38:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236132AbiKRXcE (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 0F89397ECD for ; Fri, 18 Nov 2022 15:19: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 1owA8y-0003It-HM; Fri, 18 Nov 2022 23:47:32 +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 1owA8w-0058aO-3q; Fri, 18 Nov 2022 23:47:31 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8w-0000Fq-1p; Fri, 18 Nov 2022 23:47:30 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sakari Ailus , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 357/606] media: i2c/ov13858: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:31 +0100 Message-Id: <20221118224540.619276-358-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?1749879130223532874?= X-GMAIL-MSGID: =?utf-8?q?1749879130223532874?= 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/media/i2c/ov13858.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/ov13858.c b/drivers/media/i2c/ov13858.c index e618b613e078..69a7a2c590db 100644 --- a/drivers/media/i2c/ov13858.c +++ b/drivers/media/i2c/ov13858.c @@ -1698,8 +1698,7 @@ static void ov13858_free_controls(struct ov13858 *ov13858) mutex_destroy(&ov13858->mutex); } -static int ov13858_probe(struct i2c_client *client, - const struct i2c_device_id *devid) +static int ov13858_probe(struct i2c_client *client) { struct ov13858 *ov13858; int ret; @@ -1807,7 +1806,7 @@ static struct i2c_driver ov13858_i2c_driver = { .pm = &ov13858_pm_ops, .acpi_match_table = ACPI_PTR(ov13858_acpi_ids), }, - .probe = ov13858_probe, + .probe_new = ov13858_probe, .remove = ov13858_remove, .id_table = ov13858_id_table, }; From patchwork Fri Nov 18 22:41:32 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: 22702 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462790wrr; Fri, 18 Nov 2022 15:30:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf77jkpTwZ9aA+PPqIBh3dkR+QFbNtuqklVYGnkuE9D5qPZBf4u+f6GRR1NN12YGL67wSfRZ X-Received: by 2002:a17:906:805:b0:78d:8267:3379 with SMTP id e5-20020a170906080500b0078d82673379mr7634978ejd.415.1668814258932; Fri, 18 Nov 2022 15:30:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814258; cv=none; d=google.com; s=arc-20160816; b=qu1+52GjxISAbyvXNwA10OyX+K6EanvvDnYom0VKAPPXAQ11qQmgqaHjoc5A124cDD PSB5qWXbWGknTOnRc/MvjpBnsj6FjaFCALONwfWHJYSjDnz1DCylb0WlZOfa66xMx9wF xp8NqGOi6PqpQYerLLt9h+FeZUsdBNE0eZh464jTicb3pRNV9BelbJroC1pSU5lh5anY nREKWC+8zbc1UeUBugfZnUma67DB+nvSoC7NAhkwNTmXUmI57lStp5bQLS5AuzrOeiHo g4rPTPr46K8Kt4UGTGnKb3iT5nxhpSVh98Lmfr9/AaM2T3qOnyT2LLZpNrvHig7E9E+C srvw== 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=WSE7vqT1xkeu2wJsdll0+eLhmjsIrss2pMqy0gBPlZI=; b=FAvrnLeMEESyzB7xpK+L4Y71sTBDZQL/d5o5FzsW2FZPSNcS4CyBWpPYSXmmaJ3UHE 4H91uuyvXMZ+QBPvJYTXezbRM3r2cKm7yBXGODzNEh+IqHLTA9xgj4vv5w2qUOx3HMFS gRSOO2lREfWzclti3zPCmw8ZSI61HfpbOtCFW3R+PaxHnVBwHH4rGWZAPH0SlTNSgo9w ayx5RO/gjOdEBVgXixsE4mo7vrElwzVrcP8rTJz/NUazzM7Iz0OrXgf0/V6IyhfqaYjJ UptwajptJ1eJwlC5N3C56ZHs+T3TzHuCOB3BrBMvwRQkScGbWjC96yJk0cpdigAwawcD ZegQ== 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 hp36-20020a1709073e2400b007add8160fd4si3995931ejc.766.2022.11.18.15.30.35; Fri, 18 Nov 2022 15:30:58 -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 S235932AbiKRXaD (ORCPT + 99 others); Fri, 18 Nov 2022 18:30:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235814AbiKRX25 (ORCPT ); Fri, 18 Nov 2022 18:28: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 3A970BAE81 for ; Fri, 18 Nov 2022 15:17:01 -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 1owA8y-0003Jh-NZ; Fri, 18 Nov 2022 23:47:32 +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 1owA8w-0058aS-Bc; Fri, 18 Nov 2022 23:47:31 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8w-0000Fv-Fj; Fri, 18 Nov 2022 23:47:30 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Sakari Ailus , Janusz Krzysztofik , Laurent Pinchart Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 358/606] media: i2c/ov6650: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:32 +0100 Message-Id: <20221118224540.619276-359-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?1749878580284053864?= X-GMAIL-MSGID: =?utf-8?q?1749878580284053864?= 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 Acked-by: Janusz Krzysztofik Reviewed-by: Laurent Pinchart --- drivers/media/i2c/ov6650.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/ov6650.c b/drivers/media/i2c/ov6650.c index 18f041e985b7..4c0ea2ae671b 100644 --- a/drivers/media/i2c/ov6650.c +++ b/drivers/media/i2c/ov6650.c @@ -1025,8 +1025,7 @@ static const struct v4l2_subdev_internal_ops ov6650_internal_ops = { /* * i2c_driver function */ -static int ov6650_probe(struct i2c_client *client, - const struct i2c_device_id *did) +static int ov6650_probe(struct i2c_client *client) { struct ov6650 *priv; int ret; @@ -1114,7 +1113,7 @@ static struct i2c_driver ov6650_i2c_driver = { .driver = { .name = "ov6650", }, - .probe = ov6650_probe, + .probe_new = ov6650_probe, .remove = ov6650_remove, .id_table = ov6650_id, }; From patchwork Fri Nov 18 22:41:33 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: 22918 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472999wrr; Fri, 18 Nov 2022 16:01:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf68tcuZYOdP9MArq9MhTBLZqbkmGgPlfRztdft21kLHjrw+DQjJgVTLhgUd/uhL40OvFLNs X-Received: by 2002:a05:6a00:1d21:b0:56e:d7f4:3c49 with SMTP id a33-20020a056a001d2100b0056ed7f43c49mr10135379pfx.50.1668816077694; Fri, 18 Nov 2022 16:01:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816077; cv=none; d=google.com; s=arc-20160816; b=o0lWmUr5rQYuwm6gO19FpQvIdWZgPClWAee/ZR7R1UPgLT9Z1H8d5wCqkZ2tVLH0LJ tUXoIEX9uyRR3QBqsLXs0v6/abJixIh7v9SYZo5I3cIhqkPWknW0Cy6IEQF5bICkzcBM ub3MEtd/OjyVVhvYY9FnHF0xh3N87RC3GM/WoKvkFoG+ys7UfIOSfXNTvBEUyTemkIGk CBPRz+zjecFHZdcumJc6Nw9v2TBm29AC39nGanyHTj6GS/Xrj+Yh/hwzcAFMN3UAbjO7 TNE18/M77LBtKcmKkvL9spMC7Mk6UE+k3n3L7WjTputpKoM8DFBOCQpbAvv+xGekf9zt kYjA== 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=uQ65UjusNS+7wflQfrYoaoVIPIa9TvcfhuRi+MfS8YE=; b=RjFS7dI3Wc2PIzHOBQfjmcWs7V4CTAkUHUkYXieTw0x9D7J1Tss57UMGUueVgHCnnb eElGxroYfMMSHxVc3J7MuRpzMeGx+YzZQIUJeocN1bd9t9X3eNtMlH9sMDBVCLQgqJm6 /fnYt2sgZanBEb+Zpci3w0CAJps3De3lzBZx3WuFHvmvnMXuUY6aHEIamgLW0DqyDhI0 /0+iqyy3y1YvRuD8X+8jvYDr6yAmMPwZRJIre1cja0PypxL2zrZDhZn4rou8rNlBraWq NgBEt+DN6agZfA7iiMvd4xkDNakKFC2Pv5AIImP0U/xX20cLQY+ywCtdN1oLExRUr68x UX0g== 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 c3-20020a17090a558300b00213cdfa8abasi4219924pji.173.2022.11.18.16.01.04; Fri, 18 Nov 2022 16:01:17 -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 S237076AbiKRX4W (ORCPT + 99 others); Fri, 18 Nov 2022 18:56:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236997AbiKRXzE (ORCPT ); Fri, 18 Nov 2022 18:55: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 5C70ABE276 for ; Fri, 18 Nov 2022 15:28:04 -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 1owA8z-0003Le-GI; Fri, 18 Nov 2022 23:47:33 +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 1owA8x-0058ae-30; Fri, 18 Nov 2022 23:47:32 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8w-0000Fz-Rr; Fri, 18 Nov 2022 23:47:30 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Adrien Grassein , Peter Rosin , Maximilian Luz , =?utf-8?q?Marek_Beh=C3=BAn?= , Moses Christopher Bollavarapu Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 359/606] media: i2c/ov7640: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:33 +0100 Message-Id: <20221118224540.619276-360-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?1749880487572380075?= X-GMAIL-MSGID: =?utf-8?q?1749880487572380075?= 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/media/i2c/ov7640.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/ov7640.c b/drivers/media/i2c/ov7640.c index 5e2d67f0f9f2..e6751d5cc64b 100644 --- a/drivers/media/i2c/ov7640.c +++ b/drivers/media/i2c/ov7640.c @@ -42,8 +42,7 @@ static int write_regs(struct i2c_client *client, static const struct v4l2_subdev_ops ov7640_ops; -static int ov7640_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ov7640_probe(struct i2c_client *client) { struct i2c_adapter *adapter = client->adapter; struct v4l2_subdev *sd; @@ -87,7 +86,7 @@ static struct i2c_driver ov7640_driver = { .driver = { .name = "ov7640", }, - .probe = ov7640_probe, + .probe_new = ov7640_probe, .remove = ov7640_remove, .id_table = ov7640_id, }; From patchwork Fri Nov 18 22:41:34 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: 22868 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472091wrr; Fri, 18 Nov 2022 15:59:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf4RDpCXM/P0XbwozBRS8028+q3MPL/Zr1YplFf56CS+PaYdE6bfhfzbc/QSiaJOrSDhSi+q X-Received: by 2002:a17:906:950a:b0:7ab:2559:8bc4 with SMTP id u10-20020a170906950a00b007ab25598bc4mr7484384ejx.682.1668815960686; Fri, 18 Nov 2022 15:59:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815960; cv=none; d=google.com; s=arc-20160816; b=qBI/txGbHrGnRtg8f9QOuA87G7dPAsp4+Jr/jJBQICKKPAzMCS6CAyBs7ULlsMBoPT 3nfZDo1XxG+XsNjdfL6l8djCLdY7CxmwpHflQe5bHBXCs/w4d6qPU0BX7CJhsIDCxiBO VY6f2vQ3VauZp00+SOT6eqdJ0+37d4+bj93j6KQnxEwX2yiWyC/3y+0iVI5t4SJvlwwf 2VwHmyJ68hBgzhQGcAkJ75s+l4I3/+PiHHzcTwT81er7rn/7+kHhITqXorK7CbnkDQjD e35t0MUiTRBajEm1H1jD2aNQCwrEz+Oq+V3UfitTFdwuUKZSy6zEl4MM/m+VJH/ZmW5B puYQ== 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=+NdwJvRtVlm+6SvRgCUJ3AAW7aYnEoYDAShgIKdDK94=; b=H4dFSsIHUmChN3uus4rff4jBFb9nfFqA05TUwVOLZBnQ/oFxi2nJTvcrfk2+lhpaMN nMJ53yMUwO3XYA9OdJB1QsWuQughQBkqnUZONxV7yH3rEYWvMKBGW6o1XVWnrQjgWuQO iSQN3NnUVLUYPXKysQjQdWlFQ4682/SKJYvg0hbgU+0tQjJBQhpJUf8PZfiat56mA0/B hMKv12iUJi6RIjRjyTqmlAHqt0yAZ/f5u0jifXVKDWEdpRTqT4iDNrSukBCawWR94KB9 uB9wRf1K4Z5lBNS40jy4hL9+15J7048UwrHikfOr5yjxlpDihDLi/c8cntuwMcCe8ue6 DGkQ== 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 m11-20020a170906258b00b0078adad5930esi3130708ejb.255.2022.11.18.15.58.56; Fri, 18 Nov 2022 15:59:20 -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 S232201AbiKRXna (ORCPT + 99 others); Fri, 18 Nov 2022 18:43:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237102AbiKRXmi (ORCPT ); Fri, 18 Nov 2022 18:42:38 -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 2947A43ACF for ; Fri, 18 Nov 2022 15:23:49 -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 1owA8z-0003LS-91; Fri, 18 Nov 2022 23:47:33 +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 1owA8x-0058ab-0G; Fri, 18 Nov 2022 23:47:31 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8x-0000G3-4P; Fri, 18 Nov 2022 23:47:31 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Sakari Ailus , Dmitry Torokhov , Linus Walleij , Benjamin Mugnier , Dongliang Mu Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 360/606] media: i2c/ov7670: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:34 +0100 Message-Id: <20221118224540.619276-361-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?1749880364930197652?= X-GMAIL-MSGID: =?utf-8?q?1749880364930197652?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/media/i2c/ov7670.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/ov7670.c b/drivers/media/i2c/ov7670.c index 11d3bef65d43..27db0a07de1f 100644 --- a/drivers/media/i2c/ov7670.c +++ b/drivers/media/i2c/ov7670.c @@ -1847,9 +1847,9 @@ static int ov7670_parse_dt(struct device *dev, return 0; } -static int ov7670_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ov7670_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct v4l2_fract tpf; struct v4l2_subdev *sd; struct ov7670_info *info; @@ -2038,7 +2038,7 @@ static struct i2c_driver ov7670_driver = { .name = "ov7670", .of_match_table = of_match_ptr(ov7670_of_match), }, - .probe = ov7670_probe, + .probe_new = ov7670_probe, .remove = ov7670_remove, .id_table = ov7670_id, }; From patchwork Fri Nov 18 22:41: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: 22943 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474781wrr; Fri, 18 Nov 2022 16:04:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf4G1Ad2UGW6qQ1UD5nywclXN45ZnTJPP6UZDA9aZnu7qP2RR2Kqjk5x4GIMnfLNzae+OlP4 X-Received: by 2002:a17:906:bc97:b0:7a5:f8a5:6f81 with SMTP id lv23-20020a170906bc9700b007a5f8a56f81mr7324327ejb.570.1668816298093; Fri, 18 Nov 2022 16:04:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816298; cv=none; d=google.com; s=arc-20160816; b=vnSQFmMn/LO+T8Ejxregz+aB7xRdZDa46JSnyeOMbY2IcsPNkeOU143vWGt7id6tuc HwzMngYGcjfK/yBIMG3NfHWAZrtFS6v3LuMkDwK101xrrZsXeBpU2pW3kBtKVN3H0Zqp 6i1CKGsVxShgnSpFOQXlqEZGG6cGDj3lNcSymVSq9w7dhboFNvU9kZjcL6Mdy0PfGLIS X/InIApfSGJKppqLkHjl3GMb7mxoAL9P5i3g+kt8BsZLXtf1+GZ8dpalWSMEPKdvMWrb nA5O3rByyeOu9qQqrg7QuSYrPdq0aHWFrZOCsmeO+XeoVIaMUyUfkID4mysUo5dq/oOo llOA== 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=uNlf7SNsbebnWaRlzrMpiBDHwBFa11FkywvHYAGVElE=; b=q2qEkvsqJXcZWQI9V+SEuxn+zh7n+EVIKrleb1qkut4hM+1Z6X2zxvTZudaeiFYW0e hZqun+7s6eGtGLpxs/5/kbsWEWTiy2PLpVGJ652PM8cAzArXIkVxJa3FTFye5pbdVRcy SyvKpvkTqq6ntJOXatuZMxnFt9W7ayN3kHTfhN5iPT+wW1ABmtF0PX6VFlIR3JfI+pUW GxbkNPCx0v0PIv1xiS4ORaMXF88eCPh2nuEejv/zeipfc01HBaZuOilqRgAkBRY8Gq8r q1npimUG3RipBoMp2SnUk4Ny4pfaIW6K/z+mr8D2OnMU6W39P+nTbcsApU2tJRKiJIec pQTw== 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 xe8-20020a170907318800b007adc8c49d83si4540107ejb.477.2022.11.18.16.04.32; Fri, 18 Nov 2022 16:04:58 -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 S237147AbiKRX66 (ORCPT + 99 others); Fri, 18 Nov 2022 18:58:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237037AbiKRX4D (ORCPT ); Fri, 18 Nov 2022 18:56:03 -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 7B2A8BFF5D for ; Fri, 18 Nov 2022 15:28:21 -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 1owA8z-0003Mq-Px; Fri, 18 Nov 2022 23:47:33 +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 1owA8x-0058ak-Hw; Fri, 18 Nov 2022 23:47:32 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8x-0000G7-GT; Fri, 18 Nov 2022 23:47:31 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Petr Cvek , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 361/606] media: i2c/ov9640: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:35 +0100 Message-Id: <20221118224540.619276-362-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?1749880718652942135?= X-GMAIL-MSGID: =?utf-8?q?1749880718652942135?= 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/media/i2c/ov9640.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/ov9640.c b/drivers/media/i2c/ov9640.c index 8b80be33c5f4..a80fa59bf2ae 100644 --- a/drivers/media/i2c/ov9640.c +++ b/drivers/media/i2c/ov9640.c @@ -682,8 +682,7 @@ static const struct v4l2_subdev_ops ov9640_subdev_ops = { /* * i2c_driver function */ -static int ov9640_probe(struct i2c_client *client, - const struct i2c_device_id *did) +static int ov9640_probe(struct i2c_client *client) { struct ov9640_priv *priv; int ret; @@ -763,7 +762,7 @@ static struct i2c_driver ov9640_i2c_driver = { .driver = { .name = "ov9640", }, - .probe = ov9640_probe, + .probe_new = ov9640_probe, .remove = ov9640_remove, .id_table = ov9640_id, }; From patchwork Fri Nov 18 22:41:36 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: 22854 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472000wrr; Fri, 18 Nov 2022 15:58:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf4CJsF/DAiO2GUlEkmbjXyj/L23r0ZOyYy09LOhtTkFtogMPhPHBLo4NMYB5LVqoo5Ix2Wv X-Received: by 2002:a17:906:3914:b0:7b2:7e90:53e4 with SMTP id f20-20020a170906391400b007b27e9053e4mr7917353eje.645.1668815939691; Fri, 18 Nov 2022 15:58:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815939; cv=none; d=google.com; s=arc-20160816; b=PCdthPi+VqRYrFUovkuHFIX9GSZOTnS3x5/bczlZQnE2ZQ2M368/6MV03uHZzVUZrD pMy7TB/u8rhuMxPfB0BetshQdRdq4y1CxbsxOvnKXZS+43NXPpnCasZ4ZaoNymc3XNO3 vorjmXydtH/a0DkxtvE72vVu7RX7rTQsJ9KuIRQKxEFbbkZIP1JPMn3vGV1Q2zpAUyIu lQIrAWQ/Gz9Co/54QgjLmZ+Ra3cNuoHLXoTl+DkyeVhzn+/nOAqLFhrxwbBjY/ukpgWq 4cOn+nT37lbH35QedgTa2b64aLgosXv2TTyQLX57OFwY8r12gaMa+FttObv7tYd7Jmo7 GLXA== 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=kKZH09n9177NMpat8JMMUH0j7jrgHSKOh7k8986SWfE=; b=bDI7rIQ5qmKBG0hTfqbpeYjbdJ0qIV+Jdhrc/XCCw9+cocue8P223al41IHLzZ+wS1 i8ZrTXNDE5ORn1OtQymahaX5vcdjJdnqbCen8k1vMp5i7mcMGpiw47RWQk1JKPQ7ocfv 1zg00WxiuTyAk6KNPL6hlVbM4aoHl6nQm/vHsZgTxn1Nrv9BlguTLNBZpP39oZ3jMhhb 6QQn6Mb+2J1njm572618ea8Qna2OO+X7eUBc/3cles8v0v1iDfOvehidStPc2f+l+q+s B04vvCWfRioSpMKiCGkdi41AmLIfEBrs5HUdLtWxtuHgCUofK6vbNF/kQGF6oZYeaJZs XgLQ== 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 hp14-20020a1709073e0e00b007ae29da29b3si4569752ejc.731.2022.11.18.15.58.36; Fri, 18 Nov 2022 15:58:59 -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 S232774AbiKRXu0 (ORCPT + 99 others); Fri, 18 Nov 2022 18:50:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236806AbiKRXt0 (ORCPT ); Fri, 18 Nov 2022 18:49:26 -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 25C5A82BCC for ; Fri, 18 Nov 2022 15:26:35 -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 1owA90-0003NU-10; Fri, 18 Nov 2022 23:47:34 +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 1owA8x-0058aq-T5; Fri, 18 Nov 2022 23:47:32 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8x-0000GA-Sc; Fri, 18 Nov 2022 23:47:31 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jacopo Mondi , Mauro Carvalho Chehab , Javier Martinez Canillas , Greg Kroah-Hartman , Crt Mori , =?utf-8?q?Marek_Beh=C3=BAn?= Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 362/606] media: i2c/rj54n1cb0c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:36 +0100 Message-Id: <20221118224540.619276-363-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?1749880342728000037?= X-GMAIL-MSGID: =?utf-8?q?1749880342728000037?= 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 Acked-by: Jacopo Mondi --- drivers/media/i2c/rj54n1cb0c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/rj54n1cb0c.c b/drivers/media/i2c/rj54n1cb0c.c index 1c3502f34cd3..9db5473daba0 100644 --- a/drivers/media/i2c/rj54n1cb0c.c +++ b/drivers/media/i2c/rj54n1cb0c.c @@ -1297,8 +1297,7 @@ static int rj54n1_video_probe(struct i2c_client *client, return ret; } -static int rj54n1_probe(struct i2c_client *client, - const struct i2c_device_id *did) +static int rj54n1_probe(struct i2c_client *client) { struct rj54n1 *rj54n1; struct i2c_adapter *adapter = client->adapter; @@ -1422,7 +1421,7 @@ static struct i2c_driver rj54n1_i2c_driver = { .driver = { .name = "rj54n1cb0c", }, - .probe = rj54n1_probe, + .probe_new = rj54n1_probe, .remove = rj54n1_remove, .id_table = rj54n1_id, }; From patchwork Fri Nov 18 22:41:37 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: 23084 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487205wrr; Fri, 18 Nov 2022 16:42:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf598lmtrCCgOAgX9dcpsykp2uA4CPF4wH7JsOaLrxkhFg0WTiiFfov4VxTjMq2eDHmhjvXv X-Received: by 2002:a50:ed90:0:b0:461:4e7b:9808 with SMTP id h16-20020a50ed90000000b004614e7b9808mr8524119edr.198.1668818534784; Fri, 18 Nov 2022 16:42:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818534; cv=none; d=google.com; s=arc-20160816; b=JfZ6eBFdZ9IEogAPTel78iMN0EwqXyN5YAfadCiZeVLa5pv+y3vjev6EqFQ4hzYXRZ RIhHKg6UIVt43I4T9a/S/kydD6gzldjjLG8amx2oyihxhsqBNKt8ihaN+QXUVBwB99hB h+MgoTBYxco2gCjk4cJqt9iDLRwQkvze8aLUZYdn0mhG/Zk3UDJQp3qNu3Ki6IkBoiVL ZzbouwbX/fKhHuhha173iH7hhNLdlAo837+JqaLqmyNfQwE/P4vib18cZAeqH+/tVFy/ DutZYF0pthWeXCVUrsgBiF5qlZELuNs97aUjtktJDgV+wHdSUTEipFNy3LbAu2pkEL9O 8dvQ== 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=MnlirunBjN7UPO5cO2vwZZtjlko/o2P7SKczHHVUipo=; b=R2JfGrHkqodsIiWpC+D5ClGdW3tBYlY0ncwWBYKasfRT+WHze+wv0jAskXRql69aJf g8O2eUsLNSROaub+4vFLmvW2B2KsEGP7bOqCCOC49mwJ4g1IUVpMTiscPBvWVGo55iuz J7MCc3ZnN7fgcWblQXvtU/t0SdZqOVryj1oC3zM1zPAYbrRfu6iAeajWvtiDmJg7BX1n +sUiGTZovoKDjxNgtWa6qxsRBTKto/bhyqRCnEiN+1vIDtz99dPwhzAcP8zLu1BQTNJq jZK2kmVKilfjjXOr8vtk74QRLsFSEDxOjU7VPu2Ih1lfWQi41n+MlHkBfv+3UdrRRcDY 6QGw== 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 d13-20020a05640208cd00b004680dc9f654si4031213edz.266.2022.11.18.16.41.49; Fri, 18 Nov 2022 16:42:14 -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 S231308AbiKSAix (ORCPT + 99 others); Fri, 18 Nov 2022 19:38:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234909AbiKSAiS (ORCPT ); Fri, 18 Nov 2022 19:38:18 -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 E2259C76A4 for ; Fri, 18 Nov 2022 15:44:01 -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 1owA90-0003P0-OM; Fri, 18 Nov 2022 23:47:34 +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 1owA8y-0058aw-Ec; Fri, 18 Nov 2022 23:47:33 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8y-0000GF-9d; Fri, 18 Nov 2022 23:47:32 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Maximilian Luz , Adrien Grassein , =?utf-8?q?Krzysztof_Ha=C5=82as?= =?utf-8?q?a?= Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 363/606] media: i2c/s5k4ecgx: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:37 +0100 Message-Id: <20221118224540.619276-364-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?1749883064036022811?= X-GMAIL-MSGID: =?utf-8?q?1749883064036022811?= 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/media/i2c/s5k4ecgx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/s5k4ecgx.c b/drivers/media/i2c/s5k4ecgx.c index 3dddcd9dd351..f266e848f52b 100644 --- a/drivers/media/i2c/s5k4ecgx.c +++ b/drivers/media/i2c/s5k4ecgx.c @@ -929,8 +929,7 @@ static int s5k4ecgx_init_v4l2_ctrls(struct s5k4ecgx *priv) return 0; }; -static int s5k4ecgx_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int s5k4ecgx_probe(struct i2c_client *client) { struct s5k4ecgx_platform_data *pdata = client->dev.platform_data; struct v4l2_subdev *sd; @@ -1018,7 +1017,7 @@ static struct i2c_driver v4l2_i2c_driver = { .driver = { .name = S5K4ECGX_DRIVER_NAME, }, - .probe = s5k4ecgx_probe, + .probe_new = s5k4ecgx_probe, .remove = s5k4ecgx_remove, .id_table = s5k4ecgx_id, }; From patchwork Fri Nov 18 22:41:38 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: 22845 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471977wrr; Fri, 18 Nov 2022 15:58:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf7PZt+/AwJl4RGkV/o2IW2WM1Xr5brCuSNiw+hQt5Q4QEykagcGNPhTh0hZHrgqbmjOTLmJ X-Received: by 2002:a17:906:f843:b0:78d:b819:e0e7 with SMTP id ks3-20020a170906f84300b0078db819e0e7mr7964138ejb.83.1668815937005; Fri, 18 Nov 2022 15:58:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815937; cv=none; d=google.com; s=arc-20160816; b=ftI9hnF3ZAYRvqoXVvAtLX+I+ZQlkYovFYl9Ncp/7z4HkYiWviHwcHaMGbjfw3ZsYQ uhqRlZlXBCUwJtFrhAbCWLjruW7zrXNwIGhlXzPsZsxX031pRzGJQMHV6Xvmv99xdWch 4NnjWlLTToDiCXX3ZMgAFhzjcMMZTvlKrFQb3rwx70wn7rBmiosWLeBbZqI2RRosr8hW 7/j9wSm/AW978IVtSDCKN43YMwaD3XBWWVOSUzirYjwSPhC67/g22NSTFscaUuxAPh7d kJjR/+cur3iEEZp7j3R1xNVydwbNz9KAkhLj0ATB6BrVIdOelQG6WhNmwenZ6UjKEVAx Q5nw== 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=lmiEq/mrROfSv//QqiatSZJTfNIfooa+SkwtMYiXNdI=; b=EnnCdl+86Nc2ApPX404n5nDtsGpq7vE5hibRKkrGymETdIBBn+s13ETZue4xms1GaD 4poT7ooroQ+7p7+yWliBQzzTsl7woNtamLXDl9hAeBeb0DPGpz/6ScnPju8LhKtUi8Gg jCLD6hBjnSR8ieh0xY7K7BPvCfUsKFIzpm6nKLY46VRxL6MzD6ZTTnxlQtPqi2qT+m0a TBgpb/o1TLPF4RFqjK9Pr6tQ5pIOolFkfPOxn2mmwxKM0kK79qY1FVrxmlyajkGkDpas Oyro/NlN8tWh5BhTPU6kwgFi+t1ocYFujGYns004Nj6R5eztthMaYiNmMvPUFT7+zKs7 m84g== 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 e17-20020a17090658d100b0078def76da94si4473486ejs.437.2022.11.18.15.58.32; Fri, 18 Nov 2022 15:58:56 -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 S231171AbiKRXta (ORCPT + 99 others); Fri, 18 Nov 2022 18:49:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236838AbiKRXsm (ORCPT ); Fri, 18 Nov 2022 18:48:42 -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 1E94FE931B for ; Fri, 18 Nov 2022 15:26:25 -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 1owA90-0003Ow-Pw; Fri, 18 Nov 2022 23:47:34 +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 1owA8y-0058au-E9; Fri, 18 Nov 2022 23:47:33 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8y-0000GJ-O1; Fri, 18 Nov 2022 23:47:32 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Javier Martinez Canillas , Adrien Grassein , Peter Senna Tschudin , Srinivas Pandruvada Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 364/606] media: i2c/s5k6aa: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:38 +0100 Message-Id: <20221118224540.619276-365-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?1749880339968271400?= X-GMAIL-MSGID: =?utf-8?q?1749880339968271400?= 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/media/i2c/s5k6aa.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/s5k6aa.c b/drivers/media/i2c/s5k6aa.c index 059211788a65..5996153371fc 100644 --- a/drivers/media/i2c/s5k6aa.c +++ b/drivers/media/i2c/s5k6aa.c @@ -1544,8 +1544,7 @@ static int s5k6aa_configure_gpios(struct s5k6aa *s5k6aa, return 0; } -static int s5k6aa_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int s5k6aa_probe(struct i2c_client *client) { const struct s5k6aa_platform_data *pdata = client->dev.platform_data; struct v4l2_subdev *sd; @@ -1641,7 +1640,7 @@ static struct i2c_driver s5k6aa_i2c_driver = { .driver = { .name = DRIVER_NAME }, - .probe = s5k6aa_probe, + .probe_new = s5k6aa_probe, .remove = s5k6aa_remove, .id_table = s5k6aa_id, }; From patchwork Fri Nov 18 22:41:39 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: 23042 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp485914wrr; Fri, 18 Nov 2022 16:38:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf7kLNfcLd5jxot13VXk0Q62PlPAF4W573ysyJI6DMv554c88YEp/YMTOceyRVauTO5PrGqb X-Received: by 2002:aa7:c54c:0:b0:469:10c6:19d2 with SMTP id s12-20020aa7c54c000000b0046910c619d2mr4258615edr.243.1668818284280; Fri, 18 Nov 2022 16:38:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818284; cv=none; d=google.com; s=arc-20160816; b=sUjkH5TKm/vBOSo5YnLZcRqNgz+vwfTG0pxHbQapJe7LlFna8OtB0xWbztvoxcqIM3 okmf/hibjX8uwp40Rrs/qNCPwM7JHN1cjNB9FQ1jNO2blzvoL5SY+7pNlMda129HyMuF Ok98441d16rEz7cQmDzZyb0BI/lj33V9I/ef93SCyb/UaSo7b2/aVCbYWfIQMIkzZ6Kv 9lS5+vbdjH0MbJL6Ud8fKJ13WpF9Y+sCIaPuIr4ceS+n2k5Sqrsu3jq02daDdOpjciuJ 48LC+0y2bWqh/Zr6qAKuR3igZDjM55IUjPho/wx1Zofi4TeJYyLKiRN+DqkqKuIoP28W kASQ== 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=FdtnixnzVnVhTzVRYAnhIe38irIEKW5/Um5Z6UubNUU=; b=PSG29SbV6o6xpxm3vvRom0/Fk7tPQIHPZfVWXYrkei4cndKa8TmRrUIhEafjkktke6 S6HF+D1Bqg5IfjnaCHnliavXcuD6G+EznCEqRMUzBe4xEEBYxjGWbHQOOFwX3LCFBEgb Gv0NefKOdi4eA1WZEoE8OyYUkyncPb0MXv2b9EN8phQji04c0FlMmBTxlMFDF2n/70rd BvoqJ1/Retnzy94SmePKqeP2thTr8JvKNxdNeeart3VFIAujX730ocGPYCUsvqc+VV3S fYpb0LSq1dqoWoTR2Nt0NpSnfA9MP9+ie2dEV3f0H6tlr+XWWGzjgTnQxZz6Xf4fur49 0Sew== 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 o3-20020a170906974300b007811ace1701si4460084ejy.445.2022.11.18.16.37.40; Fri, 18 Nov 2022 16:38:04 -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 S234038AbiKSATK (ORCPT + 99 others); Fri, 18 Nov 2022 19:19:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239433AbiKSASU (ORCPT ); Fri, 18 Nov 2022 19:18:20 -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 16F0CFCDC0 for ; Fri, 18 Nov 2022 15:36:04 -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 1owA91-0003QP-35; Fri, 18 Nov 2022 23:47:35 +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 1owA8y-0058b4-RY; Fri, 18 Nov 2022 23:47:33 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8z-0000GN-5C; Fri, 18 Nov 2022 23:47:33 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Hans Verkuil , Mauro Carvalho Chehab , Javier Martinez Canillas , Heikki Krogerus , Vladimir Oltean Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 365/606] media: i2c/saa6588: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:39 +0100 Message-Id: <20221118224540.619276-366-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?1749882801118959878?= X-GMAIL-MSGID: =?utf-8?q?1749882801118959878?= 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/media/i2c/saa6588.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/saa6588.c b/drivers/media/i2c/saa6588.c index d6a51beabd02..8752f7cff611 100644 --- a/drivers/media/i2c/saa6588.c +++ b/drivers/media/i2c/saa6588.c @@ -448,8 +448,7 @@ static const struct v4l2_subdev_ops saa6588_ops = { /* ---------------------------------------------------------------------- */ -static int saa6588_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int saa6588_probe(struct i2c_client *client) { struct saa6588 *s; struct v4l2_subdev *sd; @@ -506,7 +505,7 @@ static struct i2c_driver saa6588_driver = { .driver = { .name = "saa6588", }, - .probe = saa6588_probe, + .probe_new = saa6588_probe, .remove = saa6588_remove, .id_table = saa6588_id, }; From patchwork Fri Nov 18 22:41:40 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: 23005 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477579wrr; Fri, 18 Nov 2022 16:11:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf6c6qdZV9WVCxycgVZYAcu+HWJjCccjwVfPeXOUtUPNL91BPUcF/750ZTJCvclNceDCaeGe X-Received: by 2002:a17:902:b7c4:b0:186:8568:be82 with SMTP id v4-20020a170902b7c400b001868568be82mr1810763plz.110.1668816715607; Fri, 18 Nov 2022 16:11:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816715; cv=none; d=google.com; s=arc-20160816; b=MtkaYLhPJNVEiJI8Y45UjNlhfadKQ3wYtrDKM+9Y7vC3u1vnR79IjbMd7umsOLG57f hjIx03YwNe2VVhFxcBq3vGQHqb5Tc96hFSwfdetsS9ORPWfZg+Sus3ZPvLzehduMKXRV VBr6/8W49oJvFbz4xyUoLBl7+NQIYgv5ZXVTv2AJ6u8m8KwLcXBp53E1MHgFnZ8OZje3 ThwiTn4c2F3/3cpOcdQja3rycJHTxwv4zAWdHxnTKG4uLgHnUtpchh957l53HAU/r393 TfZss+41SeXnipMrbjTFNqNGkP/e/WKC6p0a1sLf8dy4bs2HPucBxuIgdU+hQh3M3bzx lZlg== 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=mdXa543aQmF56I7OZyGnPsksx/teQX8/w3MKrCuXBJI=; b=hYmDYYMuUNUqA0W0fzOt99FMzRx6fbf/Xwr5zMUZJfNC91vnwzE+a2XFNUPvPzDeCW fxyx4QDPBn04w9u3ly02eZyp2N5kEmFmyMgUieedBb/4MpSurBl25lmnf6Kf/VVw+4Ds pkxhVM3GcHDb3DmZPqUzgeWGx5H96FvKgzxGgZv2aSWNzy4sKfUqWHvvoJXWsAPDiCQc rbjUTrzeZvEaJQKtTCxwpvtJoHzTNkQxgW161rDlJpG89nhw6dFe/cQOG1NuKK6a1nZ6 4L7Je9qjSvOixtVWi4rkv3jF1SFT7lbrnuJw5btZdrSu8lsxqWe5gOPlR2dmwsnvQvcE CEyQ== 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 bt7-20020a17090af00700b0020d9c20092fsi4258369pjb.181.2022.11.18.16.11.43; Fri, 18 Nov 2022 16:11:55 -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 S237574AbiKSALT (ORCPT + 99 others); Fri, 18 Nov 2022 19:11:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237551AbiKSAJ6 (ORCPT ); Fri, 18 Nov 2022 19:09:58 -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 32254100A for ; Fri, 18 Nov 2022 15:33:21 -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 1owA91-0003Rw-A6; Fri, 18 Nov 2022 23:47:35 +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 1owA8z-0058bB-EV; Fri, 18 Nov 2022 23:47:34 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8z-0000GQ-Gw; Fri, 18 Nov 2022 23:47:33 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Heikki Krogerus , Jean Delvare , Miguel Ojeda , Petr Machata Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 366/606] media: i2c/saa6752hs: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:40 +0100 Message-Id: <20221118224540.619276-367-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?1749881156497451598?= X-GMAIL-MSGID: =?utf-8?q?1749881156497451598?= 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/media/i2c/saa6752hs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/saa6752hs.c b/drivers/media/i2c/saa6752hs.c index 5928cc6f4595..892d64fe6e81 100644 --- a/drivers/media/i2c/saa6752hs.c +++ b/drivers/media/i2c/saa6752hs.c @@ -659,8 +659,7 @@ static const struct v4l2_subdev_ops saa6752hs_ops = { .pad = &saa6752hs_pad_ops, }; -static int saa6752hs_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int saa6752hs_probe(struct i2c_client *client) { struct saa6752hs_state *h; struct v4l2_subdev *sd; @@ -782,7 +781,7 @@ static struct i2c_driver saa6752hs_driver = { .driver = { .name = "saa6752hs", }, - .probe = saa6752hs_probe, + .probe_new = saa6752hs_probe, .remove = saa6752hs_remove, .id_table = saa6752hs_id, }; From patchwork Fri Nov 18 22:41:41 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: 22633 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460004wrr; Fri, 18 Nov 2022 15:23:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf4OT3kMFKqa5mXhThV1JJ9UArMARrObqBr7J4GoeSzhKTT1Z1cteS+vAQxGwY29LIgQ/GoG X-Received: by 2002:a62:5b05:0:b0:562:c9d0:2c8c with SMTP id p5-20020a625b05000000b00562c9d02c8cmr10094159pfb.44.1668813780110; Fri, 18 Nov 2022 15:23:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813780; cv=none; d=google.com; s=arc-20160816; b=LUB238GBxPj/8neDKnUrf/Y+RTft+VriA8P/nEdULdusvU8mRf17Zc/9AVG87K6zf3 GpgNDuWDknPoGJdFq61iW+XrcjmzzD7LIldoykEMU1mZCVEeacx1w5z4s8ySY6cefZK2 ItSZXFvxHbCuEED9hSudgqOwn88On9EG983sNkqtD23rtzOlLZNqiDt1+xgzXE/sQLGv hb1Afda5C/sz2P3kdwA0WGjkgQdZV21+8vePqRx0UfOLjJ8swkvzWISFkslpgr8kOab0 0sGxlqo59FzQtkfsyOlFLphmW0ZXyBWiMMhpWQmlaiGGFB5HeqWnWZzdhiPVv2fAis3M KIRg== 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=ZfRjQp7LHBns6sMyWOB6rQyCMh9QdA/Kju0XEt/IBzI=; b=NHyHUzxZw6g8r7uCFsy9ty2cuNcY9hCn+DIcwdx7z1hIJSFTG+sGHaAoG9T6MxX4kR gsBtgCfheL/dkwDVSZ1/2GcVd++nYmIzeKXiZmFrX2sPzHyIVPEq7f2gbBrukRhxMIcU E7fLIHVVfFEKz0uowDN0DgoQZ/5FSSEAqgNCxAJGtX2q7fzZBatMZzXKBdP5YzwFx/pU VEi1X1yQFeKTEXvUGvA9llY1cU0ti9yrJqgWcsx5GH96e6se2F3wu6Jl/wU/XDISdYPh 50wprasovFQFS/9z3L5+DrDWNqvtzfq90qCMNOFxFxAmyS5szKcAgiSMsnLtM93B+EIf 8duw== 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 h8-20020a170902f70800b0017d9b373175si4808909plo.415.2022.11.18.15.22.45; Fri, 18 Nov 2022 15:23:00 -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 S235478AbiKRXVj (ORCPT + 99 others); Fri, 18 Nov 2022 18:21:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231283AbiKRXVB (ORCPT ); Fri, 18 Nov 2022 18:21:01 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6EB14F1A9 for ; Fri, 18 Nov 2022 15:11: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 1owA91-0003SB-Do; Fri, 18 Nov 2022 23:47:35 +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 1owA8z-0058bF-I6; Fri, 18 Nov 2022 23:47:34 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8z-0000GV-Pd; Fri, 18 Nov 2022 23:47:33 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Greg Kroah-Hartman , Vladimir Oltean , Miguel Ojeda , Jeremy Kerr Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 367/606] media: i2c/saa7110: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:41 +0100 Message-Id: <20221118224540.619276-368-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?1749878078477246096?= X-GMAIL-MSGID: =?utf-8?q?1749878078477246096?= 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/media/i2c/saa7110.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/saa7110.c b/drivers/media/i2c/saa7110.c index 5067525d8b11..b58e71517376 100644 --- a/drivers/media/i2c/saa7110.c +++ b/drivers/media/i2c/saa7110.c @@ -358,8 +358,7 @@ static const struct v4l2_subdev_ops saa7110_ops = { /* ----------------------------------------------------------------------- */ -static int saa7110_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int saa7110_probe(struct i2c_client *client) { struct saa7110 *decoder; struct v4l2_subdev *sd; @@ -449,7 +448,7 @@ static struct i2c_driver saa7110_driver = { .driver = { .name = "saa7110", }, - .probe = saa7110_probe, + .probe_new = saa7110_probe, .remove = saa7110_remove, .id_table = saa7110_id, }; From patchwork Fri Nov 18 22:41:42 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: 23118 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488123wrr; Fri, 18 Nov 2022 16:45:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ZCYJhQZ3gQ/zdMYdgCUEAaYUrT0bgJV+U5gwsiZmtVO4oTH5KQXj/Mfu5nB4a70e6W1Fd X-Received: by 2002:a05:6402:5413:b0:458:211d:cbe4 with SMTP id ev19-20020a056402541300b00458211dcbe4mr8306285edb.11.1668818615547; Fri, 18 Nov 2022 16:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818615; cv=none; d=google.com; s=arc-20160816; b=J+y713Lh5O4BN1aOpzGw+zzpybPm0B9qMMa9xB70HqovXeK3GTP0i4c2jBFi05d5Sx rRGkEFysi31om34TAu3uWboZcMQPL0cNm0N3ZMb/qH6ikNcCuGs8jd5RuHKFgsho/Jx3 gS7N71p34sj+GY2dsmE83RA2Abupu03QomAZofFZUGVy+ConcYcIF9ZML7DDauqxD/E2 BgDNzWlx+1b7pdMdsWxhS/QdbC8qT7IszW2ZnvtqSaHg6UsLyqBfZwtw07J2JqxRu9vW A03Di418R7evh2I7jXuokbPyDiXShdRH6DM4H9syPFIDcYH6Zg+fQ8/1dhqMO4S7N5q/ gBUQ== 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=/f49d2Hv4Ja8e4oVsGf/CgsTWgXJntUrNibuTeexg7Q=; b=EnjsxxZS7mVu6ayf0C+hWZxen6R3H0WC+Qo940y0l4uO1PPIosfHyIYXOoiBGYwJZv lG5Lr4Fvs89hrHjF2Or2mWOD8A9IAvfcoRnWC9enPY1/xyNu38kQqmlNSn/tmrEpFeC+ 1e5/yluhNSOLEeXNzX6qh847bjwkKztbxepshdOYlEkKgehE0yWvwiGtkz0cdYa02cL1 vRvJtMfEwJmkRkPKGfDM8QF6Ia254opoaPoBBj2zCh/yALuqLxvUMCGmoRVH5ub0jK2h BtC6EIH5gpNNmX3nVVUIXDHyV3CPHOBX0kALVYInYIPZcJ4Q4PTLnmuJCEkwWxzljr3n DU8g== 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 z16-20020a056402275000b00462d53d6de6si4628335edd.10.2022.11.18.16.43.04; Fri, 18 Nov 2022 16:43: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 S233369AbiKSAeo (ORCPT + 99 others); Fri, 18 Nov 2022 19:34:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233147AbiKSAeM (ORCPT ); Fri, 18 Nov 2022 19:34:12 -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 B41A911448A for ; Fri, 18 Nov 2022 15:42:47 -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 1owA92-0003Ty-DH; Fri, 18 Nov 2022 23:47:36 +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 1owA90-0058bQ-5x; Fri, 18 Nov 2022 23:47:35 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA90-0000GZ-1R; Fri, 18 Nov 2022 23:47:34 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Hans Verkuil , Srinivas Pandruvada , Miguel Ojeda , Adrien Grassein , Colin Ian King Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 368/606] media: i2c/saa7115: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:42 +0100 Message-Id: <20221118224540.619276-369-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?1749883148454759788?= X-GMAIL-MSGID: =?utf-8?q?1749883148454759788?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/media/i2c/saa7115.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/saa7115.c b/drivers/media/i2c/saa7115.c index 86e70a980218..efeda3956f81 100644 --- a/drivers/media/i2c/saa7115.c +++ b/drivers/media/i2c/saa7115.c @@ -1804,9 +1804,9 @@ static int saa711x_detect_chip(struct i2c_client *client, return -ENODEV; } -static int saa711x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int saa711x_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct saa711x_state *state; struct v4l2_subdev *sd; struct v4l2_ctrl_handler *hdl; @@ -1951,7 +1951,7 @@ static struct i2c_driver saa711x_driver = { .driver = { .name = "saa7115", }, - .probe = saa711x_probe, + .probe_new = saa711x_probe, .remove = saa711x_remove, .id_table = saa711x_id, }; From patchwork Fri Nov 18 22:41: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: 22791 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466659wrr; Fri, 18 Nov 2022 15:40:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf7KUJFjLYzudg6AB8S5RaDP0h0VTtAgtcTC0a+REqLsto2XxCTlJHc3WWV00f2ZD6WXfL2n X-Received: by 2002:a17:906:43d0:b0:78d:a01b:b474 with SMTP id j16-20020a17090643d000b0078da01bb474mr7908936ejn.8.1668814839955; Fri, 18 Nov 2022 15:40:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814839; cv=none; d=google.com; s=arc-20160816; b=mCPIdtPPOxbx2/p/f4sCIrv25pJxpibqbx0kdnum9zKlZBeUe1JBcwNiZ9w8/6ZaGn SjoRVrpW7Wucbna30DodEWRXEZhYf+kWcshqYhi7x49j1LRWX0GH4HIyExu17o555f2Y to2rw740ST+dtMM/uVeDUoMuOeLtjNna7i8UxUYZ9Pmcsr60j65XTQFun3B9NFcdzTb1 Hcjxqnnju29c55CuO/oMq7oYWrXdm3lHqARrJuSdqcjjpNhzByzh6Vief3ZCkd2ZoKDK n83siBpxJM0Uinx8VrZDrR2Zl6iOKnaj9IKPjgh8dTbfwRKAwk9gU8B6qiXJoF3qBm3R 7abQ== 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=NonN5dtwUtAVefMDcc8Zb2uCqxu2gzVSs1CZ/KTbKHc=; b=PoDrxOW20BQMl2SKJwy+hpPSMb3MQwCejRFLYDo33W2rqBTUEmZMaxubPdEbW+bZHj 802SSfSEGevgvhq19xgV9yc36dh25RYcS209FOPkhAwHiyZylewLpA0nBogc2+ll3484 pnmtBqJPAY3lnIqh5a8drbqEXuM/Cp55NwuV5/d7Mzf6UjsJJ2xPJyQ1aXov8jTiqEBD qBQDLB52k6NIra0N5xsZiPebErohZXqiq3rsDFR/XwcAjviNxBqG0wa69nEr8Idyjvh6 05hicC7vSv67Dn/+Uf2EzyGL1ZfOaLoRTmu/M7DFr+JMMpto0sB566BQwqB2bDBMHNSI EH1w== 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 z1-20020a05640235c100b00458264c2df2si4848501edc.164.2022.11.18.15.40.16; Fri, 18 Nov 2022 15:40:39 -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 S236581AbiKRXjK (ORCPT + 99 others); Fri, 18 Nov 2022 18:39:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236242AbiKRXdm (ORCPT ); Fri, 18 Nov 2022 18:33:42 -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 6EF5AAF088 for ; Fri, 18 Nov 2022 15:21:39 -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 1owA92-0003Tf-99; Fri, 18 Nov 2022 23:47:36 +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 1owA90-0058bM-0v; Fri, 18 Nov 2022 23:47:34 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA90-0000Gc-71; Fri, 18 Nov 2022 23:47:34 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Maximilian Luz , Jean Delvare , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Corey Minyard Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 369/606] media: i2c/saa7127: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:43 +0100 Message-Id: <20221118224540.619276-370-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?1749879189621050509?= X-GMAIL-MSGID: =?utf-8?q?1749879189621050509?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/media/i2c/saa7127.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/saa7127.c b/drivers/media/i2c/saa7127.c index 78c9388c2ea1..f98f3a1c38a9 100644 --- a/drivers/media/i2c/saa7127.c +++ b/drivers/media/i2c/saa7127.c @@ -708,9 +708,9 @@ static const struct v4l2_subdev_ops saa7127_ops = { /* ----------------------------------------------------------------------- */ -static int saa7127_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int saa7127_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct saa7127_state *state; struct v4l2_subdev *sd; struct v4l2_sliced_vbi_data vbi = { 0, 0, 0, 0 }; /* set to disabled */ @@ -810,7 +810,7 @@ static struct i2c_driver saa7127_driver = { .driver = { .name = "saa7127", }, - .probe = saa7127_probe, + .probe_new = saa7127_probe, .remove = saa7127_remove, .id_table = saa7127_id, }; From patchwork Fri Nov 18 22:41:44 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: 22745 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465001wrr; Fri, 18 Nov 2022 15:36:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf4uI8UaXRv0X/xyLzQHer6ITkHfn/QWSltlELF0zFiWX6TOiTeUcSA9ON75xgt4ARZWE3Pg X-Received: by 2002:aa7:cad7:0:b0:459:443a:faf4 with SMTP id l23-20020aa7cad7000000b00459443afaf4mr8124320edt.297.1668814579105; Fri, 18 Nov 2022 15:36:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814579; cv=none; d=google.com; s=arc-20160816; b=X5UoNe4Vr1F9uSbBs/Bx8abin7AUf4FjDFfmyaRK5D2uSq1+dKFWZMjvyTrzazN/yN 8VRc2jKMt3qpNEpyT5xl94DBVCDCt/km11dt9yB93bsFVS9NVmGs5eoy9+hZGYFXbp0o pwi0AUo8JXGOb1mjumfQKq0HdBpQVGmXRf6cxm1c220fFBCASjLTJC9lXWiWOqQpwC9T zyDc+ypT1dile1Iasdzfz5icmr8MU8+zmhf11bgAS/1RfiL/EHkHUwOXqgE3fgLGUfkP kikbsVCm+iS87eA+SZhW+hp7nYIp9EjAkJQ9n93BWt+cetnmERA+q9Z+O0L4YGdbnxCC yKjQ== 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=bz+X1Yfr9NtJDRDaFYYv4vpmWsdYny5yFV3VnO7NcUo=; b=qa0ryEWLLiKFHpjDq8DZp2vr2YyBthViHL2QDbgVISEjCNssXyHJ24wfatrGZPSSlW 9x0WzT8phxjR/jopLMwNTtEu3GSvN9nIj0WfFdY6XXbmF6UD8PDIHt+QYiJB+BFwfIGO UAmTRQ8mp0m5+kft3GsOAL5U6lwUt++1GFNv1akEoM2C+MtupNisTKPo+2ju46C9i+aE hRmoC5CEd09pIuUMBAqvndnF+j9PSeLBD3fGfvr41DAOZH6WmfQrMC5mVGigQQAtmxpm kfMXnO6/fDwt7+OB9bAdFPujeSwQBf1A6bEspBbc1YsV/yNwvRh1jRZvaPQ88TMvUoEJ VI1g== 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 qf39-20020a1709077f2700b0078d9c0e8971si4549205ejc.752.2022.11.18.15.35.55; Fri, 18 Nov 2022 15:36:19 -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 S235083AbiKRXfH (ORCPT + 99 others); Fri, 18 Nov 2022 18:35:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236090AbiKRXbv (ORCPT ); Fri, 18 Nov 2022 18:31:51 -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 3E63224966 for ; Fri, 18 Nov 2022 15:19:25 -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 1owA92-0003UI-FU; Fri, 18 Nov 2022 23:47:36 +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 1owA90-0058bV-AS; Fri, 18 Nov 2022 23:47:35 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA90-0000Gt-Eb; Fri, 18 Nov 2022 23:47:34 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Andy Shevchenko , Jonathan Cameron , Hans Verkuil Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 370/606] media: i2c/saa717x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:44 +0100 Message-Id: <20221118224540.619276-371-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?1749878916007675598?= X-GMAIL-MSGID: =?utf-8?q?1749878916007675598?= 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/media/i2c/saa717x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/saa717x.c b/drivers/media/i2c/saa717x.c index 4f3d1b432a4e..df01059076fa 100644 --- a/drivers/media/i2c/saa717x.c +++ b/drivers/media/i2c/saa717x.c @@ -1228,8 +1228,7 @@ static const struct v4l2_subdev_ops saa717x_ops = { /* i2c implementation */ /* ----------------------------------------------------------------------- */ -static int saa717x_probe(struct i2c_client *client, - const struct i2c_device_id *did) +static int saa717x_probe(struct i2c_client *client) { struct saa717x_state *decoder; struct v4l2_ctrl_handler *hdl; @@ -1344,7 +1343,7 @@ static struct i2c_driver saa717x_driver = { .driver = { .name = "saa717x", }, - .probe = saa717x_probe, + .probe_new = saa717x_probe, .remove = saa717x_remove, .id_table = saa717x_id, }; From patchwork Fri Nov 18 22:41:45 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: 22951 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474909wrr; Fri, 18 Nov 2022 16:05:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ZlsrCkDnHtkL5YLsf8bPhGkTIjH+ePl1OCyqRoq0eql/imoJAOAhnQZH/hDwkEpA582kD X-Received: by 2002:a17:906:925a:b0:7ad:8bc6:48e1 with SMTP id c26-20020a170906925a00b007ad8bc648e1mr7985748ejx.673.1668816315404; Fri, 18 Nov 2022 16:05:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816315; cv=none; d=google.com; s=arc-20160816; b=Sjuv1LmF9XDp6vChbstnvJsHufEUAZ31bMniYHtFMfRycZAObl5UzpaA4bMWfb0osT 1TgN4FzHVK3Ya/d0GRQRSW2tQ6BRRCwZvMMRie8I5V1kSrjY5O+w7vA8cezc/XpQ5Kvi sBZzHQ3Wuh3ZDpVUx22icQnCSVUNoH9Y2t/PzRkyQ/FokFnwXkxldSKKBaFWDUSJLyj6 LEUuFU++qGTzgJIHSbxDU/DnId0Lyvqk8oD9mbUWJpvVaflKWnvtbuyOEFHOR/ULA3Rr fp5LmgdAlkZUXadq92jjx3sOfWIIFjWWUTXjrxX2PwLjQoy5IlInuTBU+O68Ry1nUroc lzdg== 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=0lQ/XqoxvjKe73SRL3KEO+BF6qaWjCl9SpoCXFc46dA=; b=GEPjR972Kf230O1ibGK1e2UYwwwKKdU5Hf+gPy3YFpQgeO7J1mczIX0/uZAD2F3OfI Vh9l6T9OfF105W5g7VsEqTB72xQh94eYj/aIAqbpPVl5aFBme5i8NpAnNPQfVdRrrdRN Vv+T+vAPWDYPhFzEyxtUzzFE2/vZZH5kifZvC0TDgwaozA/EUUK3aYj4lUAu3G/KGAWU jfwxRNCPc0fqNSvrBjOuzMtJkYfO0woqDaxuHyw+ENMNN4Pa/Zov+1fkSbU4z4LOxWZQ oj6X9B5FQv1uj8gxdWt8071YERRRJ4u5IL6JsR/qYevrJLKNJy2LVAWbAzk1pYwRyELA eVuA== 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 xh1-20020a170906da8100b00779e6c93108si4808019ejb.598.2022.11.18.16.04.47; Fri, 18 Nov 2022 16:05:15 -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 S234568AbiKRX41 (ORCPT + 99 others); Fri, 18 Nov 2022 18:56:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235125AbiKRXzF (ORCPT ); Fri, 18 Nov 2022 18:55: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 A8B9ABE270 for ; Fri, 18 Nov 2022 15:28:04 -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 1owA93-0003Vu-5p; Fri, 18 Nov 2022 23:47:37 +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 1owA91-0058bl-0y; Fri, 18 Nov 2022 23:47:35 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA90-0000Gy-K1; Fri, 18 Nov 2022 23:47:34 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Petr Machata , Dmitry Torokhov , Corey Minyard , Miguel Ojeda Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 371/606] media: i2c/saa7185: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:45 +0100 Message-Id: <20221118224540.619276-372-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?1749880736758987767?= X-GMAIL-MSGID: =?utf-8?q?1749880736758987767?= 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/media/i2c/saa7185.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/saa7185.c b/drivers/media/i2c/saa7185.c index 266462325d30..c78f2e95ba37 100644 --- a/drivers/media/i2c/saa7185.c +++ b/drivers/media/i2c/saa7185.c @@ -290,8 +290,7 @@ static const struct v4l2_subdev_ops saa7185_ops = { /* ----------------------------------------------------------------------- */ -static int saa7185_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int saa7185_probe(struct i2c_client *client) { int i; struct saa7185 *encoder; @@ -344,7 +343,7 @@ static struct i2c_driver saa7185_driver = { .driver = { .name = "saa7185", }, - .probe = saa7185_probe, + .probe_new = saa7185_probe, .remove = saa7185_remove, .id_table = saa7185_id, }; From patchwork Fri Nov 18 22:41:46 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: 22799 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466779wrr; Fri, 18 Nov 2022 15:41:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ABN4z/lT4u6zKTIqo+B3zG5kgECFmwtVe83c4uux4uGOfkIcpKoA7WcKvMJBcuEB5zotX X-Received: by 2002:a05:6402:2409:b0:45c:935b:ae15 with SMTP id t9-20020a056402240900b0045c935bae15mr7876565eda.357.1668814861591; Fri, 18 Nov 2022 15:41:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814861; cv=none; d=google.com; s=arc-20160816; b=atAOo7i3Gzm+Vzduzvzg5yJXoyaRC74yUUV9Prdnm7GwXMbUjRwYcbOyCwKxx0ec3v czycORkbXA19jlp1yzDAyjHtUHU8CD91U2eYYEeUjosIdQ+yoaDtRk3UcaZUqhGLGtUZ s11FHPOzdI9NxmUYdVxJEXI+UVMRay8K+4uDqX39hqWqV6sFrr5C1dDdAX1Nq3VkbnbI mwyY4TZdQG7K7sjiQyRYOTHAmQ5oIxq9ye8ZxcQAx69EYBgHpVr5N2fKL/hnV8vUMXKt UNH8qJ9MNcuEbVnYyBtHeCEEzU6xJF1DBiEzFiaP0B89zCY+Cw+ka+HEhL8PE41XZ+Q3 W08A== 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=KbfUpxKYTpwTUlkek3+HR+yZUo+XFJQqp6mwEIkTvkE=; b=mCE7ld2/7Lmiqkzx+l97P3N5nf4cUJlEoPZVtKvTOre56SaMlzrgR3ubGnJCiepxhR IyFstp9MkhjfZBWLuWCYPbXJ3gLdy8sIMPS9/J2xNxnUvaOSgstbTr1BDUf2eaR9a4rm X9jSSzb6rCkUB/ZjMu3CQSLZktbYWO/k6CTNxj/FtCc6FrWLhX9r6cGBanDr/3PKD5BQ WEEhYJG24P9k73LEE1NHuIAxWSRrmgYFgv9lsq9zSfHf1dyGQ+zSNDKx21L6qNyDlckM BsWiNqNZn1dXxMzt4nrD9qUNSSoEtkYYUMLacmeDBIovBsrdbSM33myYa/foNiyRUjxm 5F1Q== 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 sb21-20020a1709076d9500b0078c8dadd4bbsi4347241ejc.742.2022.11.18.15.40.38; Fri, 18 Nov 2022 15:41:01 -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 S229893AbiKRXjp (ORCPT + 99 others); Fri, 18 Nov 2022 18:39:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236743AbiKRXht (ORCPT ); Fri, 18 Nov 2022 18:37:49 -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 2BF11C4C18 for ; Fri, 18 Nov 2022 15:22:21 -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 1owA92-0003Uh-HK; Fri, 18 Nov 2022 23:47:36 +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 1owA90-0058ba-Fc; Fri, 18 Nov 2022 23:47:35 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA90-0000H1-PW; Fri, 18 Nov 2022 23:47:34 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Hans Verkuil , Greg Kroah-Hartman , Peter Senna Tschudin , =?utf-8?q?Krzysztof_Ha=C5=82a?= =?utf-8?q?sa?= Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 372/606] media: i2c/sony-btf-mpx: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:46 +0100 Message-Id: <20221118224540.619276-373-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?1749879212191102386?= X-GMAIL-MSGID: =?utf-8?q?1749879212191102386?= 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/media/i2c/sony-btf-mpx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/sony-btf-mpx.c b/drivers/media/i2c/sony-btf-mpx.c index 927a9ec41463..eef6c8a7c9c9 100644 --- a/drivers/media/i2c/sony-btf-mpx.c +++ b/drivers/media/i2c/sony-btf-mpx.c @@ -331,8 +331,7 @@ static const struct v4l2_subdev_ops sony_btf_mpx_ops = { /* --------------------------------------------------------------------------*/ -static int sony_btf_mpx_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sony_btf_mpx_probe(struct i2c_client *client) { struct sony_btf_mpx *t; struct v4l2_subdev *sd; @@ -376,7 +375,7 @@ static struct i2c_driver sony_btf_mpx_driver = { .driver = { .name = "sony-btf-mpx", }, - .probe = sony_btf_mpx_probe, + .probe_new = sony_btf_mpx_probe, .remove = sony_btf_mpx_remove, .id_table = sony_btf_mpx_id, }; From patchwork Fri Nov 18 22:41:47 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: 22893 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472448wrr; Fri, 18 Nov 2022 16:00:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf5P+CcAHG+n44X1qDn6/BWyhlS/0lEBjcAc2u6rGl9t1b0+djx2BxxuKMYV/Bgag6TGngkj X-Received: by 2002:a17:906:4e04:b0:78d:9b4f:44ee with SMTP id z4-20020a1709064e0400b0078d9b4f44eemr7876989eju.679.1668816013926; Fri, 18 Nov 2022 16:00:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816013; cv=none; d=google.com; s=arc-20160816; b=OP581/CufNZRd1EnHKn2CM6QumSUtdMJcRGOA079PPACh5FOfW5Cd+RHnGq1vYlRx/ sNKVhkKa9JTKngvqMtk/Gwjqg20GEBn6pxQFWqzSqiDAHTypT3EVzB9o6QkbFBmJjeKE txiDCcK/p4y5+29e61UubsAJWMlRL+v+VdgfRXi+lQtjFb0tbfDmDIVjFkB2ci/+uaqP 5iXk1N/r8UqqWSzn0+S6OMbQgUnxzdZdOAZW2HPxBzPWTkzwWH+cTnbBHGbVRanyWT+7 Y2s2TbFVENTCU+RUsEZ6uQA1cPilNbKYcj4pj+txe8lYxt7Rpy8vrGuih+9SB8hFhsFw 7DOA== 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=p3KWHKwHEAk9lqmNth7tmnuh1NrOuBMRWyJtViK0oBI=; b=VzxkKuhpOnEBbxN6UoiaV8juJNX4BqPIIvMbnNHyOSCuxJJ9RhL/GtTBh0z6MA09Op WemCqtnm9Z0zb3hMn0gjdU+XiV+spjkw6VyL19TyhpOnXTE7bwXFy1wvvTmRP01jmAGi d2svI9zX88j7bx0msZrQlZKdRi6lT9ef4Eu6PLjoWjKAstVUKSyToJxAeOPa8Al+k08B DlhgSzchuPAiqHmF79HPf+B+wl4QRFZo4VPtSNeXM6+FNibgVuxLTypfSpKjeDqv0P2u GEA/T/hlHiRByd0mm0Bpp/caecSeqX8/G+p0690ts4nXGhjYKIUrR7VmvF+J50OHb9/N pBLQ== 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 ae3-20020a17090725c300b007ae37a89b5bsi4582637ejc.601.2022.11.18.15.59.44; Fri, 18 Nov 2022 16:00:13 -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 S235039AbiKRXxw (ORCPT + 99 others); Fri, 18 Nov 2022 18:53:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234467AbiKRXvh (ORCPT ); Fri, 18 Nov 2022 18:51:37 -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 99244B9B99 for ; Fri, 18 Nov 2022 15:27:04 -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 1owA92-0003V8-VX; Fri, 18 Nov 2022 23:47:37 +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 1owA90-0058bf-MJ; Fri, 18 Nov 2022 23:47:35 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA90-0000H4-Vb; Fri, 18 Nov 2022 23:47:34 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Dmitry Torokhov , Crt Mori , Andy Shevchenko Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 373/606] media: i2c/sr030pc30: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:47 +0100 Message-Id: <20221118224540.619276-374-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?1749880420537392432?= X-GMAIL-MSGID: =?utf-8?q?1749880420537392432?= 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/media/i2c/sr030pc30.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/sr030pc30.c b/drivers/media/i2c/sr030pc30.c index ff18693beb5c..a83c8bf1c5dd 100644 --- a/drivers/media/i2c/sr030pc30.c +++ b/drivers/media/i2c/sr030pc30.c @@ -675,8 +675,7 @@ static int sr030pc30_detect(struct i2c_client *client) } -static int sr030pc30_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sr030pc30_probe(struct i2c_client *client) { struct sr030pc30_info *info; struct v4l2_subdev *sd; @@ -751,7 +750,7 @@ static struct i2c_driver sr030pc30_i2c_driver = { .driver = { .name = MODULE_NAME }, - .probe = sr030pc30_probe, + .probe_new = sr030pc30_probe, .remove = sr030pc30_remove, .id_table = sr030pc30_id, }; From patchwork Fri Nov 18 22:41:48 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: 22962 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp475325wrr; Fri, 18 Nov 2022 16:06:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf72rV6Vr/+NE62EawM/0MFTb9V98/1QaPs5ePasaZ6MquV/hyXOwxa7qAONnIpK0J892aV4 X-Received: by 2002:a63:180a:0:b0:470:63e5:5c59 with SMTP id y10-20020a63180a000000b0047063e55c59mr8578838pgl.172.1668816367412; Fri, 18 Nov 2022 16:06:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816367; cv=none; d=google.com; s=arc-20160816; b=l8JkJJWuhwsbmGPMGH8jjMDjrZATNqqx6xrtU1ncC3nokjZN8pF28BQWNbSnXgt0iE D+f/J2suJQJA7GLfsQZqybOHPVzh0UIbUZdueKo8oUcPy3jG1fym05EipYfg5pM4IuoV O5SmsxTWcC3mFBK10aiE9llqxolKyRd0JhNiLI5L8q6EIGD2Rvj3eLaWelyHMWzoQ1mV hhWouXibTmxs2NbLJGDpZ2HbYaUauDpBQRDCjSqRuczdqOgr3Lq4kltSH4Xlp0Vf9jAP 5nm1exeWgzoMXFiaBIAM6DvBXacuB99TNC1VNaHPKdRq626Z37Mzk2IwVSzo0OtDSfYR cmDA== 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=FW7hZtUIis+GEgmUl6Ze77bSaIswtylwoNb5QH9EKRU=; b=fWyanvDEw+TUWMZwtWFcRDIy8dUkQHE8BMhFHWZorJsrO5idQOBaqeg0WyqPCCuP+k sm9gBo8KVv3sbtd5jlQQjhQ0wBTf3tdOmjUKRHFSXc7geX27CSa6+YzyJKhy8h62ZRsY VeOlFLRlqwEVkNGVq1v4bs7utrZ1Gf+ksMZ8N8Eb426ZERpWyNGbrs7NKlxLR1GsJBXh /a+37z7hpw7LAfIdqQP0nOJGyUOh+CaeDbCQDJWGkODwFd3MuRtU6RrRX8drwBdB7Jgw eD+I8/IWaOaWugbLmns+quf+hC1DT1uizo/pKtAQurbs3/uRjIl6fvDeYwX9Nfeax8Es WB2A== 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 f34-20020a635122000000b00477055c8479si4999658pgb.525.2022.11.18.16.05.46; Fri, 18 Nov 2022 16:06:07 -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 S237317AbiKSAAn (ORCPT + 99 others); Fri, 18 Nov 2022 19:00:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237480AbiKRX5y (ORCPT ); Fri, 18 Nov 2022 18:57:54 -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 7BDDEBEB41 for ; Fri, 18 Nov 2022 15:29:16 -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 1owA93-0003Vt-2V; Fri, 18 Nov 2022 23:47:37 +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 1owA90-0058bk-WD; Fri, 18 Nov 2022 23:47:35 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA91-0000H8-4W; Fri, 18 Nov 2022 23:47:35 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Tim Harvey , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 374/606] media: i2c/tda1997x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:48 +0100 Message-Id: <20221118224540.619276-375-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?1749880791057869253?= X-GMAIL-MSGID: =?utf-8?q?1749880791057869253?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/media/i2c/tda1997x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/tda1997x.c b/drivers/media/i2c/tda1997x.c index 83931826cf6f..27f6393dc327 100644 --- a/drivers/media/i2c/tda1997x.c +++ b/drivers/media/i2c/tda1997x.c @@ -2519,9 +2519,9 @@ static struct snd_soc_component_driver tda1997x_codec_driver = { .endianness = 1, }; -static int tda1997x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tda1997x_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct tda1997x_state *state; struct tda1997x_platform_data *pdata; struct v4l2_subdev *sd; @@ -2834,7 +2834,7 @@ static struct i2c_driver tda1997x_i2c_driver = { .name = "tda1997x", .of_match_table = of_match_ptr(tda1997x_of_id), }, - .probe = tda1997x_probe, + .probe_new = tda1997x_probe, .remove = tda1997x_remove, .id_table = tda1997x_i2c_id, }; From patchwork Fri Nov 18 22:41:49 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: 22708 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp463016wrr; Fri, 18 Nov 2022 15:31:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf7KO+h6XHKLVHaWpCDiOJ0lgpjEmEA22Fun6jWX6uAUUMUcsP8DZSLP2wQqJWuIAXRIdj6D X-Received: by 2002:a05:6402:10c4:b0:467:7827:232 with SMTP id p4-20020a05640210c400b0046778270232mr8329176edu.268.1668814289387; Fri, 18 Nov 2022 15:31:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814289; cv=none; d=google.com; s=arc-20160816; b=X8u2JC1kvdGaUtwrZJlssjCN16FFZR1LmusvmLUXpSL6snqJHQVzF/z88jIblLkSht 80dJBzJ72ROSL7nfmxMxkg6vsfXP9NJsDfqornyP5OLIzblsivv49btjy5VUmQ8eiKmx Jxzdm2j1z5lKgdTOqv141BTioKB9Wh/LsllWH20TXRv0b6dIault3H7gLR+Rg+Chb0RP rn8VularTW0mhqfX+f/DQylxvJhKi4aiAweLsPHHNRiGF1z+plMFjS8zajwBEdWcLK1v DpXWlQhlAKTmaERJhjDqC5tHLbXXDMWSaIKksAYOW4fgtC0oKghUOK9s7Av//G3mQ759 7ZTQ== 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=9obRaAneBdB5bZAIYa90d5Q7EkxEy/W1uNz2m4rApbg=; b=bKWgilujXLGJPjr5FEUDBbQckyDMfc4ecZa6Lh9YDNOFMAjy0r1Ra4XlUBKmulgnxJ qBms/YM+v+PlOj2qd7wBYE3cyAlprQ4udXBFhYbgq+Pw4SjA4pUvJv/ROn8qe/NFvg/C lUhoLOx4lGXIdZI8jOK1Z4DxqHqX/FKG9QhNHq9xjHJZe2CSGAJIFxMhOAJUckvbzmfA +vMlt0//GcaPJbDqt+ct1JDIIvLYhXw+fTPgdhsHzAZvJZ/PNag9lXoiEDmlTCSdSHXT z7RkjkLf5F16xJ+tkqsxDdWbsB/u8qgIpnc19RvbwDF5+Augth22IWfOw2dfnN6DrxfQ l+FA== 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 hp36-20020a1709073e2400b007ae0596231esi4398085ejc.789.2022.11.18.15.31.05; Fri, 18 Nov 2022 15:31:29 -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 S235841AbiKRXa0 (ORCPT + 99 others); Fri, 18 Nov 2022 18:30:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235577AbiKRX3N (ORCPT ); Fri, 18 Nov 2022 18:29:13 -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 0B609711BB for ; Fri, 18 Nov 2022 15:17:19 -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 1owA93-0003Wj-7h; Fri, 18 Nov 2022 23:47:37 +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 1owA91-0058bu-89; Fri, 18 Nov 2022 23:47:36 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA91-0000HC-A2; Fri, 18 Nov 2022 23:47:35 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Peter Rosin , Hans Verkuil , Srinivas Pandruvada , Maximilian Luz Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 375/606] media: i2c/tda7432: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:49 +0100 Message-Id: <20221118224540.619276-376-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?1749878611808159549?= X-GMAIL-MSGID: =?utf-8?q?1749878611808159549?= 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/media/i2c/tda7432.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/tda7432.c b/drivers/media/i2c/tda7432.c index 11e918311b13..bbceaac8e0b3 100644 --- a/drivers/media/i2c/tda7432.c +++ b/drivers/media/i2c/tda7432.c @@ -343,8 +343,7 @@ static const struct v4l2_subdev_ops tda7432_ops = { * i2c interface functions * * *********************** */ -static int tda7432_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tda7432_probe(struct i2c_client *client) { struct tda7432 *t; struct v4l2_subdev *sd; @@ -410,7 +409,7 @@ static struct i2c_driver tda7432_driver = { .driver = { .name = "tda7432", }, - .probe = tda7432_probe, + .probe_new = tda7432_probe, .remove = tda7432_remove, .id_table = tda7432_id, }; From patchwork Fri Nov 18 22:41:50 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: 23034 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp480019wrr; Fri, 18 Nov 2022 16:18:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ePBeQ7NK4ddpyrbS4RXKc11g8nutQpT9lMH/WjDKQimJbTzZIVSJWqzfe33ajoVKUUHf7 X-Received: by 2002:a17:902:bc86:b0:189:6ab:a97c with SMTP id bb6-20020a170902bc8600b0018906aba97cmr1841868plb.39.1668817139325; Fri, 18 Nov 2022 16:18:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668817139; cv=none; d=google.com; s=arc-20160816; b=E7mqpB+m87azq42s50lzRoLQ/TbeOKMkg+J8oO76HExftmPTwfmefnNEi3W7SvSH+5 td6g6Qq15GD5rQL7/vtG9VFnri1Z5oXfzV8p2s/87wQatOkSzaLdSeE25ua2RWQ7yWrr HnQBsSV8ZQ0BjWFo97qRBg9w/i5bsqiNEV1zRtb3yidnCExnjvkk6Vr134342brSMFSU 48N4xqGhy2+kOICVjTknyG1z2qCTJxOfQ54qFG9SfxmnPBgtq52VKYujDQkgnDyWl9qy xNR72INdrqPQiEjePzPEDPzUh3S63UxQjmVF2B5chz57Dc6Xh4jvI/XcyAEBM0Nwx4zh VdmQ== 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=iHFZ3G/CWGXxYbsrpRWIFD7uMMR6sB+SIln2AOe6/Ko=; b=GegqT9vQcQkbFQcPP8k+OTvq1KfAqaBsMZXYVcbc9tAkRTZW0oW1Bukw6rljHYTs47 89HkXaR/1GyInHo9zCDC3k69VZ0FxFaLI5GZzrBp7KARR4wPV0i6sfCDP9zKoLEAF0lZ oKFIlQ4JbJnat/nogZMFbLt+pA00Kx1EcU6NVpxAdsArWhsyuEa4DmPEEagMhgMx8lc2 aX0Mm6Bs18WjnGr5YMqAYMo5bD+Mhj6xE2rKk0Mdy4fwqO3eLH/vpl8AwSJKM+Ahcw8Q tju1hJFdXI+G3SUjXqGSnYgLfXKQzrGgulY4DI1CFHvdyFjTs3+xcmTq+dv7nU9etOqG mAbw== 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 6-20020a631546000000b0046fed3af6c9si5009101pgv.370.2022.11.18.16.18.46; Fri, 18 Nov 2022 16:18:59 -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 S237859AbiKSAQv (ORCPT + 99 others); Fri, 18 Nov 2022 19:16:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237696AbiKSAQ0 (ORCPT ); Fri, 18 Nov 2022 19:16:26 -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 B1B9DF8854 for ; Fri, 18 Nov 2022 15:35:29 -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 1owA93-0003WG-5b; Fri, 18 Nov 2022 23:47:37 +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 1owA91-0058bq-3v; Fri, 18 Nov 2022 23:47:36 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA91-0000HG-FD; Fri, 18 Nov 2022 23:47:35 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Hans Verkuil , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 376/606] media: i2c/tda9840: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:50 +0100 Message-Id: <20221118224540.619276-377-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?1749881600992013356?= X-GMAIL-MSGID: =?utf-8?q?1749881600992013356?= 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/media/i2c/tda9840.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/tda9840.c b/drivers/media/i2c/tda9840.c index aaa74944fc7c..25fbd7e3950e 100644 --- a/drivers/media/i2c/tda9840.c +++ b/drivers/media/i2c/tda9840.c @@ -149,8 +149,7 @@ static const struct v4l2_subdev_ops tda9840_ops = { /* ----------------------------------------------------------------------- */ -static int tda9840_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tda9840_probe(struct i2c_client *client) { struct v4l2_subdev *sd; @@ -192,7 +191,7 @@ static struct i2c_driver tda9840_driver = { .driver = { .name = "tda9840", }, - .probe = tda9840_probe, + .probe_new = tda9840_probe, .remove = tda9840_remove, .id_table = tda9840_id, }; From patchwork Fri Nov 18 22:41:51 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: 22796 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466746wrr; Fri, 18 Nov 2022 15:40:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf6W5OUOQH6HhYDrmGNlVzjP5sFZiEsgPs+bl/lycowNfvQH8aDCXDSMJ4XzSzwiTYx8NlwM X-Received: by 2002:a05:6402:1648:b0:458:dbc5:67c5 with SMTP id s8-20020a056402164800b00458dbc567c5mr8193293edx.214.1668814853928; Fri, 18 Nov 2022 15:40:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814853; cv=none; d=google.com; s=arc-20160816; b=PaZFdOdD5Oakvip4f45dhsYoSljApNdP+Evh6eqiYyHl6/EpJg+j4g1gTwITM3FOQd Vt/jUS8bcTLsFaUlpRoj9YN0ia315UN6X11wYMiiDqzlb5ZgwFHay0yPCtLhPR2/SjIE 5uuPa3iI3jGUW8PjYMi8ilfUmlWhrZMXv1kqL9RCQ751+ydxVMGVTzTV3QNCGtbjlJ3i N55zQ2YJzQlfCOiXh1mUwvWPMGWfhjMUxGd4ZIJHgUgM6JiOvXAkUWXl++u1HIqURB7H 7H6JVRnXQzd/JylOQDXY3LpvdLHkQL4RNSQ05DUsKMnqLP6nMt3swXGQLjTDjFdCk9PR bSzg== 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=B8CrSywKWkZK3YsBNFnBM/asTfjR3JvQzMQcHTrcCtw=; b=yOvzJFcZjLqDPmW+P3oo4P98ZdllcjB6Gkn/VxNDZ7mMTQjFf3KNwEK//ww+6Y3avv NDuOYYnJK2k0VC8jqXfq9sNcFtzlmQEUbujeUwfTQdU5hWC2v+hAisGZQot2Gn9uEwNN yxfkgFsNEdmHFWzmB7p+jMIfnzI1tiJTkinVZ125LY3m1d8/FHaDNTW3kgFodQsGLhVM osZ6mbrv33AWCEANudjBop9auNFGD8aosCamZNiQ4RrrcC2YeFVsjXi5qmZp477H+Hd8 v6aMAkHmwaZZZw02RE4/uNJa8mIZk+AwoPjll+3Garna8HMdrL/a1e+nUDbxeE7uppqC pm8w== 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 hw20-20020a170907a0d400b0077b6ecac099si3826775ejc.287.2022.11.18.15.40.30; Fri, 18 Nov 2022 15:40:53 -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 S236557AbiKRXj3 (ORCPT + 99 others); Fri, 18 Nov 2022 18:39:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236655AbiKRXh1 (ORCPT ); Fri, 18 Nov 2022 18:37:27 -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 BA6486D944 for ; Fri, 18 Nov 2022 15:22:14 -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 1owA93-0003XP-Hk; Fri, 18 Nov 2022 23:47:37 +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 1owA91-0058by-D2; Fri, 18 Nov 2022 23:47:36 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA91-0000HK-Km; Fri, 18 Nov 2022 23:47:35 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Hans Verkuil , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 377/606] media: i2c/tea6415c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:51 +0100 Message-Id: <20221118224540.619276-378-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?1749879204363386037?= X-GMAIL-MSGID: =?utf-8?q?1749879204363386037?= 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/media/i2c/tea6415c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/tea6415c.c b/drivers/media/i2c/tea6415c.c index 50e74314f315..d375d2d24354 100644 --- a/drivers/media/i2c/tea6415c.c +++ b/drivers/media/i2c/tea6415c.c @@ -116,8 +116,7 @@ static const struct v4l2_subdev_ops tea6415c_ops = { .video = &tea6415c_video_ops, }; -static int tea6415c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tea6415c_probe(struct i2c_client *client) { struct v4l2_subdev *sd; @@ -151,7 +150,7 @@ static struct i2c_driver tea6415c_driver = { .driver = { .name = "tea6415c", }, - .probe = tea6415c_probe, + .probe_new = tea6415c_probe, .remove = tea6415c_remove, .id_table = tea6415c_id, }; From patchwork Fri Nov 18 22:41:52 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: 22884 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472288wrr; Fri, 18 Nov 2022 15:59:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf4JYxhyM+DYcdIGJbofZP3yE3xqzaoeldilB92Ee/FCmv6Ze6/hcGOHv+QcvzJL6zJMFsXp X-Received: by 2002:a63:4201:0:b0:476:a862:5471 with SMTP id p1-20020a634201000000b00476a8625471mr8614441pga.498.1668815997545; Fri, 18 Nov 2022 15:59:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815997; cv=none; d=google.com; s=arc-20160816; b=pyCcv6cV9AZ7v2KztVT/R2Qg5zZ1taMzc+xkyKx1THQis/I2GshbeF9ZsqdXLLjOii q6VNtfHQVj7h9be/vmw04YLato1MUW62BETLuvQl7T2ZPY1PsEnhR3KpLKapBTVPwKTw RcFV9+CA8NNMchrDsdCFOXkSvkE0kG9GfkJN6WP0vbdqTWMjUUCio7wkb4RGBlLm6cxX TjYM7VG32G1A8iyVgg/VD29vIsTZUqWF7BAl/KVNjBpFx7hG7m7VIP4WsxrqDWt8ext9 zocuolot5kcS93eqoUfwvRIWhBm/FIZD77AKy+8NbLPcDNoORpyQQl7TwV8XlPMQQk1y rLOQ== 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=uy13oNOpin/XZHstkx3OewoA6igRlWjd4m/cVGdWQwc=; b=v2NF4EWR+xT1gsS0Yly9ywQbg8Cgp+E+0ruVP6ah/gOUZb/CkU80gC2HRnZTNsO5+W gW48ksvQIFwmtMpcQ1FJW1E4soh0s82pC6oaHk2pR4uELq/jovnA+PD8Wd7AKofNkdkP vnDUPDh8CnzlvxOMuMVZTejhE3BfeQGjk6BawXWcZGBJXSdMLoSlR+tuRLiCfXtlQhEj OAmj5H0rGqY3qRbmqD9pMaEgcHwO7sA6BluvS1TPR8L5lwb+PNFjVjuaVAI3Vs4T7rkx MdNxonJYa6rQAC+EwwbJqrR7k0ycd3596NCu8tbztyDWR/2VA5EZ+Y3jd4PJbXUQiqg5 wFsQ== 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 n6-20020a170902f60600b00187085e0aacsi5097026plg.549.2022.11.18.15.59.42; Fri, 18 Nov 2022 15:59:57 -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 S237111AbiKRXxo (ORCPT + 99 others); Fri, 18 Nov 2022 18:53:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237021AbiKRXwF (ORCPT ); Fri, 18 Nov 2022 18:52: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 52E44C759B for ; Fri, 18 Nov 2022 15:27:24 -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 1owA94-0003Y8-DK; Fri, 18 Nov 2022 23:47: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 1owA91-0058c5-LT; Fri, 18 Nov 2022 23:47:36 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA91-0000HP-Pp; Fri, 18 Nov 2022 23:47:35 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Hans Verkuil , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 378/606] media: i2c/tea6420: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:52 +0100 Message-Id: <20221118224540.619276-379-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?1749880403448367995?= X-GMAIL-MSGID: =?utf-8?q?1749880403448367995?= 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/media/i2c/tea6420.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/tea6420.c b/drivers/media/i2c/tea6420.c index 246f2b10ccc7..9da1f3b02c57 100644 --- a/drivers/media/i2c/tea6420.c +++ b/drivers/media/i2c/tea6420.c @@ -87,8 +87,7 @@ static const struct v4l2_subdev_ops tea6420_ops = { .audio = &tea6420_audio_ops, }; -static int tea6420_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tea6420_probe(struct i2c_client *client) { struct v4l2_subdev *sd; int err, i; @@ -133,7 +132,7 @@ static struct i2c_driver tea6420_driver = { .driver = { .name = "tea6420", }, - .probe = tea6420_probe, + .probe_new = tea6420_probe, .remove = tea6420_remove, .id_table = tea6420_id, }; From patchwork Fri Nov 18 22:41:53 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: 22747 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465029wrr; Fri, 18 Nov 2022 15:36:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf5zUm4Q6pQnmBsS7ubq41NSIwt8QbJGUj533JtFABdDHvO55wSpOwLecj0WhjpBXs+1hRh1 X-Received: by 2002:a17:907:774e:b0:7ae:39b4:7208 with SMTP id kx14-20020a170907774e00b007ae39b47208mr7633544ejc.766.1668814584203; Fri, 18 Nov 2022 15:36:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814584; cv=none; d=google.com; s=arc-20160816; b=aaB5Wv/qLiySAxmL5mqDj2MN9oGz8jnlFA30dQhbRpR3uPr6RUsZnEdDPZCo0pFEWR 6gkq61QYC/xaPD3RKlqNVCeyzg81Kc9W/NV/Zl4YtpYbG9jtPSE1sm6XAAW74S0SpucH DlPw3af2j4xLOGXlM0hZesiGptFF5F7AbZwBrTDshY62NAPe6pIJ3kqKcdwGrnKac1j+ euqtaCXCupFYJZE8L0oUbCGS7ItEjIjNsx+rGl6qQ84Sy8Ouh4sCgFzHbGbfosJlxFqv cFtlCS+NNhGqz/pkiFuhyyZoGaGHVNClAMKONoABTT5v3qYO49gnNtQYXGglOWS93wFR GUhA== 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=PXyVKn+bTUNqP+08MM/qT4/RJAXBXPIMtJfZ2ntZm9Q=; b=oyRVCSvixFnVTXlE1xDRAARpXlqlN+lP7vOOw9eFLcqMkKJoCEwNqjXAtmWJSHKcTN fpnhfzY7hac4i1ObIWug4vk4aVANBxG6u9iGC3YRCvEIfQM0y9EfbTtnhAZ5EMdTTeOA GhXAG+z40NbJe6MWi+zotYX1cehr3YgIiH3q5QPKWjTNxqhUwYD9ouETdA+si9lsZ8Y3 Xa2bh4fj8EqpSzEmOnedxC5XMqabu+DhKAENmJhORwIpPj8M2adp4jsXiL5BzZfvWelA JMkZF+vCvTc0DrHFSV9KsdzNqCvtY192jFySL+gvIkREuL+BGCJOnDWldFCGj6twlD7T N8Iw== 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 i9-20020a1709064fc900b007ae8b1704b1si4485097ejw.67.2022.11.18.15.36.00; Fri, 18 Nov 2022 15:36:24 -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 S236311AbiKRXfP (ORCPT + 99 others); Fri, 18 Nov 2022 18:35:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236099AbiKRXbx (ORCPT ); Fri, 18 Nov 2022 18:31:53 -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 694A575DB2 for ; Fri, 18 Nov 2022 15:19:34 -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 1owA94-0003ZG-8K; Fri, 18 Nov 2022 23:47: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 1owA92-0058cB-3N; Fri, 18 Nov 2022 23:47:37 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA91-0000HS-VR; Fri, 18 Nov 2022 23:47:35 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Heikki Krogerus , Adrien Grassein , Crt Mori Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 379/606] media: i2c/ths7303: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:53 +0100 Message-Id: <20221118224540.619276-380-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?1749878921264465653?= X-GMAIL-MSGID: =?utf-8?q?1749878921264465653?= 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/media/i2c/ths7303.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/ths7303.c b/drivers/media/i2c/ths7303.c index 2a0f9a3d1a66..67de90cf696e 100644 --- a/drivers/media/i2c/ths7303.c +++ b/drivers/media/i2c/ths7303.c @@ -322,8 +322,7 @@ static const struct v4l2_subdev_ops ths7303_ops = { .video = &ths7303_video_ops, }; -static int ths7303_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ths7303_probe(struct i2c_client *client) { struct ths7303_platform_data *pdata = client->dev.platform_data; struct ths7303_state *state; @@ -377,7 +376,7 @@ static struct i2c_driver ths7303_driver = { .driver = { .name = "ths73x3", }, - .probe = ths7303_probe, + .probe_new = ths7303_probe, .remove = ths7303_remove, .id_table = ths7303_id, }; From patchwork Fri Nov 18 22:41:54 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: 22955 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp475112wrr; Fri, 18 Nov 2022 16:05:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf4EYYHzf/d7h/wWRK8L5+vU8bsnKGUMzLYBem8IdscAyrtdIpTk2+yGoq+GTLz9+kUl68Pp X-Received: by 2002:a17:906:130b:b0:7ad:92c5:637a with SMTP id w11-20020a170906130b00b007ad92c5637amr7880644ejb.87.1668816340672; Fri, 18 Nov 2022 16:05:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816340; cv=none; d=google.com; s=arc-20160816; b=moqz3v74bv2SScgMCa6aNm/AAhLB3MtgzyOet9dL/RO8sLHgMcZJmoDPrR6t8ql3Rg a2fLqWOl3fZPFSSTWbtqIXhRccftuQwmDdHFhLPTB+qauOYwTRdceHtA0Amnfh2kN25O sORACxGhtjEfvBth5wrMLLFH5UAmxU0iY/rsz+FfQhpyyED/e0BAILunB3a3kzOs1/Vx Hc4DOyuq+ra7nY8gVNvDbMWBXpuJIRm82ABPAFolfG5GWMpcn1mRJMQwqjqP9wTYeiOE XYmKAA1KgYLYDqARjoqhvBgvJG1GpdwUlOe9JcH4TFGdwuPm7hJCYtBJd1plJtrb1qnq rBag== 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=aavwmctEnNuFAsDqwAufJsAQtWPG3eLCf1Vfyla7JV4=; b=VWze8GR0Oz38tpDE5eLsOJhzf76HwohZbZtsXgZzHIbRt05PXFanNRwP5GE3v2cIAQ OuVdls0aTfdCYrb0E+RE+T+EDri6zxtesW0cp67Avcw4Q8pcMkVZxkV/5qet+O1F/CLl eIZVO9t/sy8mT9xUEwtZ3lUcvc8NEJNfqrz1YgBMZfbm1XznibM7h44DTqW3tVJvtgBH qJnteStCs0jqr7Wej1yk+e3S0PorNKDh6opr4aDTlRch/2VeAEeVuISC6OFpvax6co1Y kag+jFBoP1nJs1XiLDINd0WT9yjgTcZpVspasOPaeeLrsOLm9gSf1pZEBWUGHFULo++a YZtw== 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 tl2-20020a170907c30200b00781599eb7dbsi3555566ejc.573.2022.11.18.16.05.08; Fri, 18 Nov 2022 16:05:40 -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 S237335AbiKSAA6 (ORCPT + 99 others); Fri, 18 Nov 2022 19:00:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237367AbiKRX5g (ORCPT ); Fri, 18 Nov 2022 18:57:36 -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 EC620C0510 for ; Fri, 18 Nov 2022 15:29:06 -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 1owA94-0003Zp-BD; Fri, 18 Nov 2022 23:47: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 1owA92-0058cH-8K; Fri, 18 Nov 2022 23:47:37 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA92-0000HY-4R; Fri, 18 Nov 2022 23:47:36 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Miguel Ojeda , Ajay Gupta , =?utf-8?q?K?= =?utf-8?q?rzysztof_Ha=C5=82asa?= , Adrien Grassein Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 380/606] media: i2c/tlv320aic23b: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:54 +0100 Message-Id: <20221118224540.619276-381-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?1749880763499410179?= X-GMAIL-MSGID: =?utf-8?q?1749880763499410179?= 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/media/i2c/tlv320aic23b.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/tlv320aic23b.c b/drivers/media/i2c/tlv320aic23b.c index 937fa1dbaecb..47198e803817 100644 --- a/drivers/media/i2c/tlv320aic23b.c +++ b/drivers/media/i2c/tlv320aic23b.c @@ -129,8 +129,7 @@ static const struct v4l2_subdev_ops tlv320aic23b_ops = { * concerning the addresses: i2c wants 7 bit (without the r/w bit), so '>>1' */ -static int tlv320aic23b_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tlv320aic23b_probe(struct i2c_client *client) { struct tlv320aic23b_state *state; struct v4l2_subdev *sd; @@ -198,7 +197,7 @@ static struct i2c_driver tlv320aic23b_driver = { .driver = { .name = "tlv320aic23b", }, - .probe = tlv320aic23b_probe, + .probe_new = tlv320aic23b_probe, .remove = tlv320aic23b_remove, .id_table = tlv320aic23b_id, }; From patchwork Fri Nov 18 22:41:55 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: 22816 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp470703wrr; Fri, 18 Nov 2022 15:54:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf6aTVSGguc8rRLAoZDvMLJdIfg21AxfoC0A6ojhO06//T00rIkXAc7akSjQ4BgUyWDKBCdj X-Received: by 2002:aa7:c9d0:0:b0:458:ed79:ed5 with SMTP id i16-20020aa7c9d0000000b00458ed790ed5mr8092310edt.374.1668815664240; Fri, 18 Nov 2022 15:54:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815664; cv=none; d=google.com; s=arc-20160816; b=nfHS58jRmiUkQP1tqTdS3FYAy6BQbTH4G2xSaK4lXiiegrL4NpR/gTM4mXE8tjK0vz UYq/VUR77U6H2AGkbYckPjVhuuQwt/7pRB4GD4fX+noAvwuqwovVvi1CHbNIYQud/Rd3 ucrtiXhLtVY//hNdhM+NTm5cnn6FvHoBYqui3l5+G7Vn/1TkXJIFeuaT+Vyo38zuZkyt wx16sfAnsFi5JgAnWDKhs8VGtPUJ4c6optAbX8xCOK+Fs+8eW4bnp3j7OTKbMwCjQev2 9ybAewymMzOlgNklaS5EYHL7RqvjHr7koFBrtRSA0fjR1QeFZ6fANimZ2IkzIw3d4k0A mYNA== 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=u18/IIinsdlmMNS253Y7TY8NYA0KIBgVBC9nvUGlu64=; b=ZpuEnGuEPovV2FK1b5Q9+pMYYnQxw/UDkO2r2jpaRdHYou6aiia/2sy71o3ASON5mw VEp+Wx/kaPOVG2AF2V3fJyFhQTczxf8oq3iz1+4y57+Z0g/2b+8VSx1euIDcWytu8ti6 iReng/bOuPb3zsB5mc/UV6sN+sXYoK/kloTRHi9O8WllkFDERHtkFB2kAI5YkSW5dran jKAt/sEi18THO3P038BvRhuDkhjRJjR7xg/4PDZyyl2gBTlHg6j5daqd3K7jz2byhJac XoDLdE3MKd0svUp5RBLf00o/K3bFD5263yOmHn7FlHl51wNvzbxbe4PtE8A1vXEoRyZ8 Bc9w== 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 g20-20020a056402321400b00458e689f41fsi3879573eda.415.2022.11.18.15.54.00; Fri, 18 Nov 2022 15:54:24 -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 S236712AbiKRXk2 (ORCPT + 99 others); Fri, 18 Nov 2022 18:40:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236789AbiKRXhz (ORCPT ); Fri, 18 Nov 2022 18:37: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 105E88E280 for ; Fri, 18 Nov 2022 15:22:36 -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 1owA94-0003Zs-HK; Fri, 18 Nov 2022 23:47: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 1owA92-0058cI-8u; Fri, 18 Nov 2022 23:47:37 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA92-0000Hc-BY; Fri, 18 Nov 2022 23:47:36 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Adrien Grassein , Jonathan Cameron , Crt Mori , Andy Shevchenko Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 381/606] media: i2c/tvaudio: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:55 +0100 Message-Id: <20221118224540.619276-382-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=ham 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?1749880054158400722?= X-GMAIL-MSGID: =?utf-8?q?1749880054158400722?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/media/i2c/tvaudio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/tvaudio.c b/drivers/media/i2c/tvaudio.c index 9f1ed078b661..a54c76d9e23b 100644 --- a/drivers/media/i2c/tvaudio.c +++ b/drivers/media/i2c/tvaudio.c @@ -1934,8 +1934,9 @@ static const struct v4l2_subdev_ops tvaudio_ops = { /* i2c registration */ -static int tvaudio_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int tvaudio_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct CHIPSTATE *chip; struct CHIPDESC *desc; struct v4l2_subdev *sd; @@ -2094,7 +2095,7 @@ static struct i2c_driver tvaudio_driver = { .driver = { .name = "tvaudio", }, - .probe = tvaudio_probe, + .probe_new = tvaudio_probe, .remove = tvaudio_remove, .id_table = tvaudio_id, }; From patchwork Fri Nov 18 22:41:56 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: 22913 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472932wrr; Fri, 18 Nov 2022 16:01:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf5GA+aoFDU+/Pg03s92TaTGicNH0OoLrgDdpMHGiS0AbfyaeTvBtcICViUb+Fp9LwgYYTVa X-Received: by 2002:a05:6402:520a:b0:459:4c7b:e852 with SMTP id s10-20020a056402520a00b004594c7be852mr8343169edd.347.1668816070204; Fri, 18 Nov 2022 16:01:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816070; cv=none; d=google.com; s=arc-20160816; b=ZKoTZ+dN23DhdbtYdk/gAYAMkZnOAYmhChggFYF58foM5tKUdGZ7X1KTKxSCoc/LBK yZ8CsLgZRqqeeFcm0pKrCv6Imz0Fc91mIkWmHQQDgNN308MQ1ajZ/EEMvKVAi5tO/rXO j4I6mLuLph1ykI8lGB6J5qujLMQoriZji1gmma3t73Q7oiKoJvxxBHQSdeqqutPiDwZD skkYZi7Mj8F1TECZozwm8ISjHp51/aNy3qRRA2xD6Vd3VLeeSH25gFZkmHcb3CmPfxOu z3fnwAGyNyegyNRUz6dMQCauohqnJIpSejKkRcEeZ4+Z/YYGlX0UEIQzLF0wGdYneh08 VWRw== 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=z7dqFTw5UKgUGCjvMkTXdna8uI73TA9Pta6n49rZ2tU=; b=Oe1OSW3Req3+dcNnlb037QwsKa/CzXQw/XWTvE2t2Ie7V/2yUhZ+6FuFjavZHAIvWO tcSwb7cklZEUxia9BLcOcJDfd3+r6toP97Zypu7pX3rF5kbz0z9Vi0WUeH9ypxZXgkQn ijdzFF4fIGy4FZy+GxYS+oMZOBaXD9Fp9t1nxl16GUvOnrL7KFBd9uOITB2xk9EOECD3 tdnjtS8BLZRml+4yTip+a5T1qW16wRTR5R7xk1RGn8qP7u+QXDMtI/zTDhXH30A/X73w qZyiw78pJPNEsEjpO7FtOaVeQffpwkFjtcj8TGF8dacexJDnmUg1vCDRuePNys6yKnnp K3/A== 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 p13-20020a05640210cd00b0046272b487cesi3468574edu.331.2022.11.18.16.00.45; Fri, 18 Nov 2022 16:01:10 -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 S233764AbiKRXt1 (ORCPT + 99 others); Fri, 18 Nov 2022 18:49:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233038AbiKRXsj (ORCPT ); Fri, 18 Nov 2022 18:48:39 -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 42C20E9330 for ; Fri, 18 Nov 2022 15:26:22 -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 1owA95-0003bj-DH; Fri, 18 Nov 2022 23:47:39 +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 1owA93-0058cX-3f; Fri, 18 Nov 2022 23:47:38 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA92-0000Hg-Jw; Fri, 18 Nov 2022 23:47:36 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Adrien Grassein , Peter Rosin , Hans Verkuil Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 382/606] media: i2c/tvp514x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:56 +0100 Message-Id: <20221118224540.619276-383-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?1749880479594768249?= X-GMAIL-MSGID: =?utf-8?q?1749880479594768249?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/media/i2c/tvp514x.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/tvp514x.c b/drivers/media/i2c/tvp514x.c index a746d96875f9..a2b58e3250a7 100644 --- a/drivers/media/i2c/tvp514x.c +++ b/drivers/media/i2c/tvp514x.c @@ -1023,8 +1023,9 @@ tvp514x_get_pdata(struct i2c_client *client) * device. */ static int -tvp514x_probe(struct i2c_client *client, const struct i2c_device_id *id) +tvp514x_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct tvp514x_platform_data *pdata = tvp514x_get_pdata(client); struct tvp514x_decoder *decoder; struct v4l2_subdev *sd; @@ -1208,7 +1209,7 @@ static struct i2c_driver tvp514x_driver = { .of_match_table = of_match_ptr(tvp514x_of_match), .name = TVP514X_MODULE_NAME, }, - .probe = tvp514x_probe, + .probe_new = tvp514x_probe, .remove = tvp514x_remove, .id_table = tvp514x_id, }; From patchwork Fri Nov 18 22:41:57 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: 23092 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487618wrr; Fri, 18 Nov 2022 16:43:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf6wEMmiJCLe+pmT8NymDasSwkhjknrnmFCjM/ZVXh/PJjf+f+SzZO5vCzaoMKyXRkJH+hg/ X-Received: by 2002:a50:ec89:0:b0:462:f136:d143 with SMTP id e9-20020a50ec89000000b00462f136d143mr8113151edr.418.1668818614674; 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=uJDtLeNXHitggvyvrowPV4me05pXAaS/nzSwVkEnJh9fTL+L9/QkBhA2ontaLE5x2K 5A8FD7A3iP3MW15+Mawgb0mid981FAxDyhClvC7E813NvD0NNSdyRo2QJ55LoZjaGBKG r4Al719cnvOWsELQvysUEklRAW6W0HELR4w62pFUGgA1qPwTb9uuYSJpx7FMgNBDv1Vd dWztvPDAmnAM0s+ZYnRXO80msuZQSej8a29op20V1SA8sG0itktz01T3DoyOZRUedC7q kYsrynThmy+NwuywgGFN6MTWOFh0ZJlusv/XjhAytASPM7szwy5lSM8rIlo+stH3UB6D pNpg== 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=TpcTFadRrMylaPVGyL/eWDkkB1f1oMm6CvK88sUpn10=; b=qkJClEkSN6O4a/TfcN94bzgd+O9jeWy2ZvvkWLlvzSuefcl9okmwCz3XpGHLDf3CuA V19GVbyFYHRxgB8//wtT7zcpnj13pEHOwO5OH+UYYKvnJ/enFpdWqUSoNS04wOzClte+ v210DVhBmwTffJtJQEmBfv7tWwNs2cHOqRgZ/tXYx/Cxra/LfQbzL5maQvFElxbKRSyd brntKJlnjjPcxQ547hNUNxNo0nk17dLpGjMSO209lNxFnae/vYj51VnMW7b5ZAYvXYVK MG7xtEAvCpyMzds5aH2ncvCuEUNRW362BqVXzcsKVZRNYuAIEgdf/cjmVV3qVN1WQrgP 9Ysg== 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 sh39-20020a1709076ea700b0077bd074d50bsi1331791ejc.105.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 S231475AbiKSAkI (ORCPT + 99 others); Fri, 18 Nov 2022 19:40:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236382AbiKSAi4 (ORCPT ); Fri, 18 Nov 2022 19:38:56 -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 0CC39118669 for ; Fri, 18 Nov 2022 15:44:21 -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 1owA95-0003bU-Am; Fri, 18 Nov 2022 23:47:39 +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 1owA93-0058cV-1x; Fri, 18 Nov 2022 23:47:38 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA92-0000Hk-Q0; Fri, 18 Nov 2022 23:47:36 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Greg Kroah-Hartman , Heikki Krogerus , Dmitry Torokhov , Jean Delvare Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 383/606] media: i2c/tw2804: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:57 +0100 Message-Id: <20221118224540.619276-384-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?1749883147313833837?= X-GMAIL-MSGID: =?utf-8?q?1749883147313833837?= 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/media/i2c/tw2804.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/tw2804.c b/drivers/media/i2c/tw2804.c index c7c8dfe8a8a8..710790ece11b 100644 --- a/drivers/media/i2c/tw2804.c +++ b/drivers/media/i2c/tw2804.c @@ -343,8 +343,7 @@ static const struct v4l2_subdev_ops tw2804_ops = { .video = &tw2804_video_ops, }; -static int tw2804_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tw2804_probe(struct i2c_client *client) { struct i2c_adapter *adapter = client->adapter; struct tw2804 *state; @@ -424,7 +423,7 @@ static struct i2c_driver tw2804_driver = { .driver = { .name = "tw2804", }, - .probe = tw2804_probe, + .probe_new = tw2804_probe, .remove = tw2804_remove, .id_table = tw2804_id, }; From patchwork Fri Nov 18 22:41:58 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: 23078 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487095wrr; Fri, 18 Nov 2022 16:41:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf7++4lNf0uUrTFqJRloWwkL6WsqP2wimoenZfCXUNNDIVd9ayrY83ZsyS2LeG6tsGE5aJw+ X-Received: by 2002:a05:6402:2a09:b0:461:30d8:6742 with SMTP id ey9-20020a0564022a0900b0046130d86742mr8134039edb.172.1668818514416; Fri, 18 Nov 2022 16:41:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818514; cv=none; d=google.com; s=arc-20160816; b=IXNfwj/Re0fk4Uqn3VgvL8y9FdEnDdnDB56SpaGZSHSFbvem6X4CzVe21h6gMm5P/7 jQl7MqCBpOEhyL4hWzw5xdN1UfB37j8JnOz06Tb1OSuYR5hpB/bwsdyEp4ly2zTj10L2 ZTxpTk1svDcZfLBLAnJRvlQxviLn8Zq8F8DWIQJVulDjP3oQ4O1rWlQ80hrxRH4gE6Rm LgxssHnuDz6WgWNMVjVhER2N/0kpyydDTF6LWOpoNp9bJHYNw+FtQRbOrk2XmZVcszJA knSatvbkMbxPpeKbF0SQNDtqcP0NaXNTNES+uBPlr1WqphvZ4xaYRApqC1k/HSq5xD5G 2qZg== 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=9aTtaCvzo17jC4B1UHRJFqKrAZnhX1q+74dmc8eHNVE=; b=AgL9Y14FyzI6YvQ7U3uCCG/GU8DbjfmO9UCqL24WJCLho4Xv2nJpZyK5I8YhmaLaNC g0wZGL8Dy6IFE+5e25++Ep3a8DpaD76wMHStTudFHLn7rgf+NIAPBPImLf0bZqAj4IIX rop5fJiCE4cqkRHr9iFaMrwRn54emkH66k5h+b4UpkhZTphrydMntWPg4HI/LQ6B7/vm K90YfMmUQCzVUpBSXEKnTWVDdN4nEFDCcVLelfWsJeACP14K+HIxhlu76xzKfouHLHje eljcwxzV71gwAxFmG06V5nPusc5lkLyYZmaz2b2IV+RzzajwznmAEXqNgmhsdAXF/t9a JXsg== 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 m9-20020a170906848900b007adf9d69424si3232537ejx.586.2022.11.18.16.41.28; Fri, 18 Nov 2022 16:41:54 -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 S236054AbiKSAhh (ORCPT + 99 others); Fri, 18 Nov 2022 19:37:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235348AbiKSAgs (ORCPT ); Fri, 18 Nov 2022 19:36: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 DA4BF7A360 for ; Fri, 18 Nov 2022 15:43:29 -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 1owA95-0003cW-Kn; Fri, 18 Nov 2022 23:47:39 +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 1owA93-0058cf-B2; Fri, 18 Nov 2022 23:47:38 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA92-0000Hn-VI; Fri, 18 Nov 2022 23:47:36 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Peter Rosin , Miguel Ojeda , Peter Senna Tschudin , Petr Machata Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 384/606] media: i2c/tw9903: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:58 +0100 Message-Id: <20221118224540.619276-385-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?1749883042305802553?= X-GMAIL-MSGID: =?utf-8?q?1749883042305802553?= 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/media/i2c/tw9903.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/tw9903.c b/drivers/media/i2c/tw9903.c index d7eef7986b75..428ee55787e1 100644 --- a/drivers/media/i2c/tw9903.c +++ b/drivers/media/i2c/tw9903.c @@ -189,8 +189,7 @@ static const struct v4l2_subdev_ops tw9903_ops = { /* --------------------------------------------------------------------------*/ -static int tw9903_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tw9903_probe(struct i2c_client *client) { struct tw9903 *dec; struct v4l2_subdev *sd; @@ -255,7 +254,7 @@ static struct i2c_driver tw9903_driver = { .driver = { .name = "tw9903", }, - .probe = tw9903_probe, + .probe_new = tw9903_probe, .remove = tw9903_remove, .id_table = tw9903_id, }; From patchwork Fri Nov 18 22:41:59 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: 23022 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp478705wrr; Fri, 18 Nov 2022 16:15:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf6H91DjU+lJeUQuO2XQHEELzVyBOp2yeNxzBH+Bf2HVceyb6KFQRHap3+dUw3do0Bk19lZH X-Received: by 2002:a05:6402:1f09:b0:462:6a0c:cfa with SMTP id b9-20020a0564021f0900b004626a0c0cfamr5055582edb.349.1668816904004; Fri, 18 Nov 2022 16:15:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816903; cv=none; d=google.com; s=arc-20160816; b=Pg76+nIEzFL41bmFuMHeWCF0jsGsFIhGu4cYv024uIt7DNi1c7Yq4KyesZYtjWym7o 02xJZiy6MJBsOeg8AJKPlBhJlBj/EAF0N6rDhdhuozqeA03aOKf0fE5rV6X7prBzXssq 45wnH9zqoFg/OjPKuyokshlhw4j/9UASK5A5g6JVqv3+G9ZgWVjTt6dBJZry0U7ZsX6J kKACsQWoFhi+Xc2RL7s95V+WaNFHR7SbFkYto2QSLGjrfMZPpMwNNhCqEgX6ZZRCDuEx EVV+UZYbKcMi13YrwbQUJLrvkOc9pfFARXhqexY9Jq5zkQtOHDVJwfzPul3rWXwzhN9/ FwpA== 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=XTfvojupRl89nCaXcY8m4W/+vbgigK1DwrFlQFtBoMI=; b=vojzv29RnfYDhsElMfT++s2EzosWP9UvBx0nAYHIwWNEGGjx85fpF0JbjD5GjGeQQ4 cfASk4HR3H1C5BkGTkxyiN4yWMpTjNmSNUbCOqJNmQR11KCtqy/SFNd7dZ7sCwcTfSBj McqDLCUQwvvciVFboftU2ygk98lSzF98SNva31osc1ZDuC4hbW5g3wIXBg3QvKKgwptF oCQjOFk9ImVpnqtfntdCMcZGaPsM+q4QnEdP7kQ0LdjOfgYwNd1FvG0OMZeHp1CSp9Jc EnYVn+7r8D2w3xT4wUg8/37zgjcTIA8l8Ii2BkYINHZwrU/UFb1QiCK6zyIaU2IyNWxc xzVg== 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 i3-20020a05640242c300b004573107a5basi4941600edc.352.2022.11.18.16.14.38; Fri, 18 Nov 2022 16:15:03 -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 S237806AbiKSAN3 (ORCPT + 99 others); Fri, 18 Nov 2022 19:13:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237820AbiKSAMz (ORCPT ); Fri, 18 Nov 2022 19:12: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 AE500B8FB8 for ; Fri, 18 Nov 2022 15:34:19 -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 1owA95-0003d4-Qb; Fri, 18 Nov 2022 23:47:39 +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 1owA93-0058ck-Fv; Fri, 18 Nov 2022 23:47:38 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA93-0000Hr-48; Fri, 18 Nov 2022 23:47:37 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Heikki Krogerus , Peter Senna Tschudin , Benjamin Mugnier , Peter Rosin Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 385/606] media: i2c/tw9906: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:59 +0100 Message-Id: <20221118224540.619276-386-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?1749881353995009930?= X-GMAIL-MSGID: =?utf-8?q?1749881353995009930?= 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/media/i2c/tw9906.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/tw9906.c b/drivers/media/i2c/tw9906.c index 549ad8f72f12..7824ed9b04ed 100644 --- a/drivers/media/i2c/tw9906.c +++ b/drivers/media/i2c/tw9906.c @@ -157,8 +157,7 @@ static const struct v4l2_subdev_ops tw9906_ops = { .video = &tw9906_video_ops, }; -static int tw9906_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tw9906_probe(struct i2c_client *client) { struct tw9906 *dec; struct v4l2_subdev *sd; @@ -223,7 +222,7 @@ static struct i2c_driver tw9906_driver = { .driver = { .name = "tw9906", }, - .probe = tw9906_probe, + .probe_new = tw9906_probe, .remove = tw9906_remove, .id_table = tw9906_id, }; From patchwork Fri Nov 18 22:42:00 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: 23043 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486473wrr; Fri, 18 Nov 2022 16:40:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf4IacB2RMsY6QJEmHoXVxoTrhMcMrsqJrLHi/xDpcfPJOKUqlrmDUlp/Nhg62aM9vNpfmV9 X-Received: by 2002:a17:906:6717:b0:78d:7a4c:13ea with SMTP id a23-20020a170906671700b0078d7a4c13eamr8033157ejp.471.1668818411868; Fri, 18 Nov 2022 16:40:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818411; cv=none; d=google.com; s=arc-20160816; b=E4fEr7kiUgmxgXRknGGMcN++tJkm+OMLWlvhaP2pzIQokLDmR/UH9828vtdZFF/3qo miz7cx1q/Cl/f0Ht/zGsZwoGq8OJcSGwxuWIIo79y9zo8ywX4sRAPFbf66of0nsEZFkN LyyJnCcXsG6Xy1QdFXgl8YwZs2jiG5yFH3beZQxYG4E6oxZ6BV9Sy90h/rNH0CMcIci0 a74oc2/OjSPCbUDM2WJdNmkJJWLWRv65QaqT4AgmC52aOzmzop3TaQzPNHXBCE/vni3D UoarOGpnuNAKcF7Ywxe/yAqryfPlWwCHBk4B5eAb7HR/qdB8NICGgX0uvOM0FH5xadgU WxMQ== 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=xnnKISNkZFVpUbDyUMay11pV3sxuz/8qNPMpD8LjiU8=; b=Bhie17f0rxqgSK4g0SXcP19wS5Ug0nvrFfbth1HPkOqiUD12JFBs4SW0SMFoXvKltB PfQDi6pfPc+tIqowdEsg8nT16OUpn9pgj9vY8gIK7bqIEq1XoXusbCZ6JYLdWwfz7OHI +vJHil2CEsPmxjK14DCpIwNyUJvsUd53UkDXQZXjNY8hkeBnUPWoEBJLCb/eOTkTURXj Iymn6jsxv8vYEKWwoM6lNLh3iGrVVrPYHyojkBGn5IGHOrDGxI9MBxxq6hrtojCYiUop /LixM7vj6RMSDceEdN9cfAH3pC0wlATmKph6UYyX/xNP/62nWM+e41VFVEOMS9NaRkC+ 9MYQ== 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 oz36-20020a1709077da400b007b2a8df055csi3678418ejc.217.2022.11.18.16.39.47; Fri, 18 Nov 2022 16:40:11 -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 S236091AbiKSAUI (ORCPT + 99 others); Fri, 18 Nov 2022 19:20:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237879AbiKSATj (ORCPT ); Fri, 18 Nov 2022 19:19:39 -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 11021FAE93 for ; Fri, 18 Nov 2022 15:36:26 -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 1owA95-0003cF-4g; Fri, 18 Nov 2022 23:47:39 +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 1owA93-0058cc-9I; Fri, 18 Nov 2022 23:47:38 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA93-0000Hw-Ct; Fri, 18 Nov 2022 23:47:37 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Corey Minyard , Jean Delvare , Hans Verkuil Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 386/606] media: i2c/tw9910: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:00 +0100 Message-Id: <20221118224540.619276-387-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?1749882934694774739?= X-GMAIL-MSGID: =?utf-8?q?1749882934694774739?= 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/media/i2c/tw9910.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/tw9910.c b/drivers/media/i2c/tw9910.c index 853b5acead32..459fa22f4341 100644 --- a/drivers/media/i2c/tw9910.c +++ b/drivers/media/i2c/tw9910.c @@ -928,8 +928,7 @@ static const struct v4l2_subdev_ops tw9910_subdev_ops = { * i2c_driver function */ -static int tw9910_probe(struct i2c_client *client, - const struct i2c_device_id *did) +static int tw9910_probe(struct i2c_client *client) { struct tw9910_priv *priv; @@ -1013,7 +1012,7 @@ static struct i2c_driver tw9910_i2c_driver = { .driver = { .name = "tw9910", }, - .probe = tw9910_probe, + .probe_new = tw9910_probe, .remove = tw9910_remove, .id_table = tw9910_id, }; From patchwork Fri Nov 18 22:42:01 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: 23120 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488185wrr; Fri, 18 Nov 2022 16:45:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf4CRTPMMV8unRcixRVdP/KBBbngi8QfUbPOmDL2CARzl0V0eU915+CzcU4B0O6o31pgew6y X-Received: by 2002:a17:906:b2c6:b0:78d:20f7:1294 with SMTP id cf6-20020a170906b2c600b0078d20f71294mr8264157ejb.442.1668818617283; Fri, 18 Nov 2022 16:43:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818617; cv=none; d=google.com; s=arc-20160816; b=T3tf4cg3M2FjOeoYmYVmJZ0VIzed5/zmT5Ef/kOAdBr4MGIlFFo3tv57x53ISMLSTR okriLOzdutxbPKg/A0F6ZnTW++cK41lVkkQtf0VsggN7oEdAatyhMUE38EfS96Qp8Z/h BWta4zqrUSOujWoFBOcFd0P2GVgVpblqa51AD5AYm3u0FoqrIaHrLOkwJimf/IMtLk1U tqa6p0TpkdX5pyhwE4kJzIAqr3rGPkatHSoFA9EfPnEDCc5HOQsjqvlHGVFKWTIs4+km ltEKsEyjFsQDMg62u9L/8RI0IKNeoASvWv43nlNgouuE5Nc8RUXPeXMUNGG5r+9WPvIr FXVQ== 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=DpFoMr5dvOCZxHHrjqzuB4qgP895rA4YdHdUYfGtRYc=; b=YX+rwCen1yOVeg++D9SseA88BPDeDO7p0NI3Efe76SHLtAMKjJGMXuPhLZYe2uD6jW HAPplLTOM2rhT7bksozF69ARcc23IDC0JsGp43iRuZLxwmtAVTCM6XAbyhMAOv8psFyP g4zmzc4hucEyWAXj2PETi9t4tjacjsa8HWKppJxDMXIbOleMdvKVzBXeQADAXbh7brKN zKvhFsNZ2hnH3VyD2QTFjYOq7knvfmZEbxjiFCUvS0iTvrxhxfEufXxs3hXiEEBcudlI lMVPnO+C7rp1kKG3BKcqciF3rHOo6Rw7M4atsiLbEb9gqKsU4QWrrxL7QCIVkY3v7b3S lJwQ== 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 w22-20020a05640234d600b0045b293121f1si4629518edc.12.2022.11.18.16.43.04; Fri, 18 Nov 2022 16:43:37 -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 S237005AbiKSAXw (ORCPT + 99 others); Fri, 18 Nov 2022 19:23:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237812AbiKSAXT (ORCPT ); Fri, 18 Nov 2022 19:23:19 -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 9A3CA5216F for ; Fri, 18 Nov 2022 15:37:50 -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 1owA96-0003dq-QS; Fri, 18 Nov 2022 23:47:40 +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 1owA93-0058cs-PJ; Fri, 18 Nov 2022 23:47:38 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA93-0000Hz-Je; Fri, 18 Nov 2022 23:47:37 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Jonathan Cameron , Luca Ceresoli , Srinivas Pandruvada , Peter Senna Tschudin Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 387/606] media: i2c/uda1342: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:01 +0100 Message-Id: <20221118224540.619276-388-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?1749883150060047814?= X-GMAIL-MSGID: =?utf-8?q?1749883150060047814?= 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/media/i2c/uda1342.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/uda1342.c b/drivers/media/i2c/uda1342.c index d0659c4392f2..b6873d866272 100644 --- a/drivers/media/i2c/uda1342.c +++ b/drivers/media/i2c/uda1342.c @@ -45,8 +45,7 @@ static const struct v4l2_subdev_ops uda1342_ops = { .audio = &uda1342_audio_ops, }; -static int uda1342_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int uda1342_probe(struct i2c_client *client) { struct i2c_adapter *adapter = client->adapter; struct v4l2_subdev *sd; @@ -89,7 +88,7 @@ static struct i2c_driver uda1342_driver = { .driver = { .name = "uda1342", }, - .probe = uda1342_probe, + .probe_new = uda1342_probe, .remove = uda1342_remove, .id_table = uda1342_id, }; From patchwork Fri Nov 18 22:42:02 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: 22921 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp473167wrr; Fri, 18 Nov 2022 16:01:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf4CSsHGH6oFloXyCnTYeu318Nfz3NFbYo7N8qIFKA2Eh/+US1sTbaS16nWkE5yueKRv2saW X-Received: by 2002:a63:5719:0:b0:476:ea7d:3ff6 with SMTP id l25-20020a635719000000b00476ea7d3ff6mr8864490pgb.73.1668816092418; Fri, 18 Nov 2022 16:01:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816092; cv=none; d=google.com; s=arc-20160816; b=OfBFhruvu0mt79u+SxHvTkP48HMQ+QKYwI3Eow+39TnHV/rSBct4MUw6QtG3MkotHs wXOcT1A/ZXQyqrr/SfLybgUYANVGTV07CCn9T//C/sDTA5E+wOk6gmW+dDHhucZUCIHF zOFztoD1xYBn2eqXg3u8XKFnqIiT3VG1rhoA0o9gBRJPokwl2VgkYjFHw2bheDiNcoLu 0yZHsSnV+n2XELhqF/83H1wqdHN+SN/+vyU4w77Rl0sbYL5m4upD3cDoA1jC+/OHe3Zn WT/FOcVM5MnRd1MjLW3I6UG9ktUI3urVoyqTP49xlUir+RB2EsLf+1EezRpEBGuVErZq nCfQ== 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=UarhUqsdojoSV6rJGtL/MAmY3xNf2aG/Evosx1jep+Y=; b=0OxZy7gmPoFA3hDpNCEtZVw6/W76jqEHtzA7DJ+qhEN1XcCD+mfwf2VERef9JV+0Dt 99aYPrsaiVIUOiwILmUo2IRGXm47HypDLhdsU1qeM1Yz4Bjn6kYSa67rDYBQknpQQ6xA XnRG1zn5els6v0UqNKADmXmec5e8KRRiXy+zeLdsacbrLSUET8zA+ALjB7iW3bdL/bO5 gjvZeutBcMZHxAuHmi5ouut6h0RaEisd/ExTcHBYEtLwhkZsUyFVmHe81f1PCTtco2pj 9rfN6I5I3O55ST3HR6t8UvGBAOiz1h69TpR1MS4ACV8AS1oEV2E2Fo8nTOmuYCIUlvVB IPxg== 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 s185-20020a632cc2000000b00476f0b9cc28si5045690pgs.57.2022.11.18.16.01.18; Fri, 18 Nov 2022 16:01:32 -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 S232291AbiKRX6e (ORCPT + 99 others); Fri, 18 Nov 2022 18:58:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234918AbiKRXzj (ORCPT ); Fri, 18 Nov 2022 18:55:39 -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 B0494BE854 for ; Fri, 18 Nov 2022 15:28:14 -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 1owA96-0003e7-MJ; Fri, 18 Nov 2022 23:47:40 +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 1owA93-0058cv-S2; Fri, 18 Nov 2022 23:47:38 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA93-0000I2-QH; Fri, 18 Nov 2022 23:47:37 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Jean Delvare , Petr Machata , Andy Shevchenko , Ajay Gupta Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 388/606] media: i2c/upd64031a: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:02 +0100 Message-Id: <20221118224540.619276-389-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?1749880502658703077?= X-GMAIL-MSGID: =?utf-8?q?1749880502658703077?= 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/media/i2c/upd64031a.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/upd64031a.c b/drivers/media/i2c/upd64031a.c index 4de26ed2ba00..47eed3aab060 100644 --- a/drivers/media/i2c/upd64031a.c +++ b/drivers/media/i2c/upd64031a.c @@ -183,8 +183,7 @@ static const struct v4l2_subdev_ops upd64031a_ops = { /* i2c implementation */ -static int upd64031a_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int upd64031a_probe(struct i2c_client *client) { struct upd64031a_state *state; struct v4l2_subdev *sd; @@ -229,7 +228,7 @@ static struct i2c_driver upd64031a_driver = { .driver = { .name = "upd64031a", }, - .probe = upd64031a_probe, + .probe_new = upd64031a_probe, .remove = upd64031a_remove, .id_table = upd64031a_id, }; From patchwork Fri Nov 18 22:42:03 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: 22639 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460119wrr; Fri, 18 Nov 2022 15:23:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Z+1wv2boQ56yYxL4jC5hnPaEpseRFKmBWjgnbobaNUeMMa/4MksuPGCkJiXIzGvwlofsm X-Received: by 2002:a63:fa45:0:b0:476:e63a:99b6 with SMTP id g5-20020a63fa45000000b00476e63a99b6mr8339229pgk.60.1668813801526; Fri, 18 Nov 2022 15:23:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813801; cv=none; d=google.com; s=arc-20160816; b=WJ9za8AJoKLoC1Bl0bt2P3Jv2wCmNARvXQVotQ241qNUmAHE5ojqN0hxdgm2aU/oS6 3JQ92cHUhdNas4hz1XAf6d5Hhp757Gd7UlgkBvWo3oZa35oXTUQtj+bGyV8t55ka8yrN wobhIy4f/6VWkZ6ap9Th0Ou6CkiKgzU9ue3UXutL6L+J36GQ2raz7LMvYUrek3eEkKvJ w/d+SrGZizF4DKNm2v3wjwjbPbsogECCYvZ8FEzbEcPh5v2AJgn81bIreYikZgfEWN/E Zh1XTsGIb0oSCg6Yx47EDf/EbarfNeMI3faKQlO3geeyFdXdznPQVAuD2PrF8+DzuxrO YNRA== 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=QpMZZ+rzCjAGBJez1wsronheLSjgc85zqxg+cuukHMM=; b=OdkSmP+m4goZpkSmUl55rHksHt1UzgSaJLioMHduNY1cPKXvdguIK1xh0m8kCtGJk/ E6j1G1bAq34Gtye97HdivtSZq4acEXvVY1npdhZfIlUSoFLkkY7bYikGqe/ERQv6sT1g D60m3zsRbIJ/nljZjjMZDnfbiWlT7MOgF7/zUVDiVXkT2tMA7+PPCh+wncwN3kVfOrG9 6HfIug79lgicPpDLCU+NLjHfPXUtFVmQIYBbl8eCbDfloHtdY5oGnuvwZJpoxGWjxfCz 7p8GEK2lOhfL+pMe+Wt5TSbr+bWfguez0ZdOL5UaIu2av5EE2IsctVumolnall+vPR29 TbpQ== 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 x24-20020a63db58000000b0046b1dabcb34si4780738pgi.765.2022.11.18.15.23.08; Fri, 18 Nov 2022 15:23:21 -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 S235623AbiKRXWR (ORCPT + 99 others); Fri, 18 Nov 2022 18:22:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230131AbiKRXVI (ORCPT ); Fri, 18 Nov 2022 18:21:08 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95EDD5214D for ; Fri, 18 Nov 2022 15:12:12 -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 1owA96-0003f8-FH; Fri, 18 Nov 2022 23:47:40 +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 1owA94-0058d4-8Z; Fri, 18 Nov 2022 23:47:39 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA93-0000I5-Vu; Fri, 18 Nov 2022 23:47:38 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Miguel Ojeda , Greg Kroah-Hartman , Adrien Grassein , Maximilian Luz Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 389/606] media: i2c/upd64083: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:03 +0100 Message-Id: <20221118224540.619276-390-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=ham 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?1749878101147386490?= X-GMAIL-MSGID: =?utf-8?q?1749878101147386490?= 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/media/i2c/upd64083.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/upd64083.c b/drivers/media/i2c/upd64083.c index 2bfd5443d406..3f5a7d4853a1 100644 --- a/drivers/media/i2c/upd64083.c +++ b/drivers/media/i2c/upd64083.c @@ -154,8 +154,7 @@ static const struct v4l2_subdev_ops upd64083_ops = { /* i2c implementation */ -static int upd64083_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int upd64083_probe(struct i2c_client *client) { struct upd64083_state *state; struct v4l2_subdev *sd; @@ -200,7 +199,7 @@ static struct i2c_driver upd64083_driver = { .driver = { .name = "upd64083", }, - .probe = upd64083_probe, + .probe_new = upd64083_probe, .remove = upd64083_remove, .id_table = upd64083_id, }; From patchwork Fri Nov 18 22:42: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: 22643 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460481wrr; Fri, 18 Nov 2022 15:24:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf4LgaXuss7wHiAz/1LvJneryvIILqUhYsvDFP4PnpKoKah8XzjeqV2ncZccxm6Y4FKPwrAr X-Received: by 2002:aa7:d74e:0:b0:469:1571:862 with SMTP id a14-20020aa7d74e000000b0046915710862mr3839895eds.318.1668813864165; Fri, 18 Nov 2022 15:24:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813864; cv=none; d=google.com; s=arc-20160816; b=j4Il/Yy6dLaE9nLrOidWYm8o2xR7LQjhEN0o8/ZcetcsDXO0SEh+cFmWk3JiQX5iId ivnuqlRtK+PFebMuOGCQDXGhRVVY2I/clSDH9uh5NuyL1XcyjlkSa1VUKcctLwE0RHTI a10TmUn9xxsgSaJrIVIcjTXLrcfbDPgX0yMxav4g9RW41WI6YOTli1h4xLryIZDJPHj1 bP/xUrxN+VmNcZDf+JnYxndc4ssnTsfHiBW39NCLlVpXTkmrF/IfoQ/1ULK+n6+9pRMg Srsql7gEwx0UCG/hnE6q4SwAbZEDQWh/DWVWdI9Wvz4ITNteXX9mNeebn5MX2i4yBxo1 1MYg== 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=K4xaP7qHKGpZQLqqSK38XtAbROy4OwkaVmFPAhvqQJo=; b=SYdsF5xJFnklSmPmozWYk11eFmXLK8Fge+eF56VdFOvO5SG0MLlxOiJVyVL4Q4nRXw CbQ1nG0PgCY/Vw5FmgOM0lLCox7VMYavxgSBQV7w+9vcak9KpZ3WPo7zCmpPfcNTHZDM 3PsMpCUEy6bh061yMqYvGVbfocp3hOtUV38W6WgHHjr/lfNosn08Yd0StLQMCUHs8Ffd yLgLjPrEKADZukRz5/OgMd0mSX0ejErXo3ycNotO2x5OoGgve9N7JYKFlpU3j+fnSvA0 fxH/w/Auejk2UCUMyqv/8S0cpT8NreVAB+GcEVO6hwZbufNTgfWB7Ov8aFEWgthbxj8H urJA== 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 qk10-20020a1709077f8a00b007ae8d01144dsi4554286ejc.717.2022.11.18.15.23.56; Fri, 18 Nov 2022 15:24:24 -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 S235573AbiKRXWK (ORCPT + 99 others); Fri, 18 Nov 2022 18:22:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234789AbiKRXVG (ORCPT ); Fri, 18 Nov 2022 18:21:06 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68B3052144 for ; Fri, 18 Nov 2022 15:12:06 -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 1owA96-0003e8-MD; Fri, 18 Nov 2022 23:47:40 +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 1owA93-0058cw-S9; Fri, 18 Nov 2022 23:47:38 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA94-0000IA-5e; Fri, 18 Nov 2022 23:47:38 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Matt Ranostay , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 390/606] media: i2c/video-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:04 +0100 Message-Id: <20221118224540.619276-391-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?1749878166214546137?= X-GMAIL-MSGID: =?utf-8?q?1749878166214546137?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Acked-by: Matt Ranostay --- drivers/media/i2c/video-i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/video-i2c.c b/drivers/media/i2c/video-i2c.c index f15ef2d13059..dddf9827b314 100644 --- a/drivers/media/i2c/video-i2c.c +++ b/drivers/media/i2c/video-i2c.c @@ -757,9 +757,9 @@ static void video_i2c_release(struct video_device *vdev) kfree(data); } -static int video_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int video_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct video_i2c_data *data; struct v4l2_device *v4l2_dev; struct vb2_queue *queue; @@ -959,7 +959,7 @@ static struct i2c_driver video_i2c_driver = { .of_match_table = video_i2c_of_match, .pm = &video_i2c_pm_ops, }, - .probe = video_i2c_probe, + .probe_new = video_i2c_probe, .remove = video_i2c_remove, .id_table = video_i2c_id_table, }; From patchwork Fri Nov 18 22:42:05 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: 22675 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp461394wrr; Fri, 18 Nov 2022 15:27:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf6djXoElAfo8qQI4e0ylNtzWDXYpZgheTI+k5WT4e6O+Om4CEq9aMmhgg+FVp6puG3GWDcr X-Received: by 2002:a17:906:f84a:b0:78d:3cdb:e7ee with SMTP id ks10-20020a170906f84a00b0078d3cdbe7eemr7774669ejb.134.1668814022651; Fri, 18 Nov 2022 15:27:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814022; cv=none; d=google.com; s=arc-20160816; b=JxEqITGJ5KC4QtFE7YRdGegNTYx43P5LNVltCFfrRVN7+GYnkw4G/GTkClbqHnKsV7 +JLmScmVs4XKvQJttiRl4EsnSxWgatZBoQr7SuCQoRfva5cjNv2SSuvsqPQQJy0/ssqx UWW/e9QNXb2ppvgCrOzM4/qD/LgFXIIwPDsvvKJvYdXz3YdibPBHGrbx4Xv37k3shzNP fAnurOtnzOf4PCkHCEa3UjklnqaSrJ7O6JuZk4q6nP2XUnzfjoxl/c6ZuDDNhtzUnRPd 2JZlCA1bba0fU9raj3BFPK4B4qGLshYUc3xKohaoP6Yjv6U4xxGcatWIdv8IA0+nDmpO q+bw== 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=M+GnOrlFU7CUipsZZzLgHsB4q5Xe/+netz72QPibUak=; b=wL36bYYvEVAd/0ao/JiXnR1qSti+UxzJJ7AgrH/1Kgml34jMnKKk1oLqRYWPMwHLoM F6ZQJ4Sl4TO+srRBIFKHrKnZEYVsGnhdR2fjgOwmYDv9eO1et1obzC19lidk76SCqRFJ MtKN/di1eWRdqSrEkUPqtX5IJrcStSk4mzy9aQai+g8O7lmognLi61QdfxDFZ1mJLIaa m3dHT5JTP3WILlAY/7JyRBaQbXjvtfSY6qceFj1zRl9Vi3rVLGwLTIS4QMHhBfWjXQWw Ho8i2g74ytDWntGNBdmTIQjDAjwYRuIm/tiI7jHzTa1uUGXqMBhvXvt8Lo5QqR/V0yNA G6JQ== 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-20020a1709072ce300b007a6ec03b13bsi3856693ejc.799.2022.11.18.15.26.37; Fri, 18 Nov 2022 15:27:02 -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 S235464AbiKRXZ2 (ORCPT + 99 others); Fri, 18 Nov 2022 18:25:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235316AbiKRXXS (ORCPT ); Fri, 18 Nov 2022 18:23:18 -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 9FEEC29835 for ; Fri, 18 Nov 2022 15:13:49 -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 1owA96-0003fU-LB; Fri, 18 Nov 2022 23:47:40 +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 1owA94-0058d8-Dx; Fri, 18 Nov 2022 23:47:39 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA94-0000IF-Cq; Fri, 18 Nov 2022 23:47:38 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Miguel Ojeda , Jean Delvare , Jeremy Kerr , =?utf-8?q?Marek_Beh=C3=BAn?= Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 391/606] media: i2c/vp27smpx: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:05 +0100 Message-Id: <20221118224540.619276-392-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?1749878332138880875?= X-GMAIL-MSGID: =?utf-8?q?1749878332138880875?= 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/media/i2c/vp27smpx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/vp27smpx.c b/drivers/media/i2c/vp27smpx.c index c832edad5fa7..ed1c58ea8ed3 100644 --- a/drivers/media/i2c/vp27smpx.c +++ b/drivers/media/i2c/vp27smpx.c @@ -138,8 +138,7 @@ static const struct v4l2_subdev_ops vp27smpx_ops = { * concerning the addresses: i2c wants 7 bit (without the r/w bit), so '>>1' */ -static int vp27smpx_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int vp27smpx_probe(struct i2c_client *client) { struct vp27smpx_state *state; struct v4l2_subdev *sd; @@ -182,7 +181,7 @@ static struct i2c_driver vp27smpx_driver = { .driver = { .name = "vp27smpx", }, - .probe = vp27smpx_probe, + .probe_new = vp27smpx_probe, .remove = vp27smpx_remove, .id_table = vp27smpx_id, }; From patchwork Fri Nov 18 22:42:06 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: 22942 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474747wrr; Fri, 18 Nov 2022 16:04:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf5vvtbQ7PfoISBEX6UYGoSjLlAVSuovY54bI0sabc16Gy9jSq3FDWGWD0IMUnszWqEoGN7x X-Received: by 2002:a17:907:6f05:b0:78d:6937:8e2 with SMTP id sy5-20020a1709076f0500b0078d693708e2mr2621601ejc.0.1668816294007; Fri, 18 Nov 2022 16:04:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816294; cv=none; d=google.com; s=arc-20160816; b=o/ttxPk8EFoCTC6pxSHp+h2xNfSH7iD82gK4arxN5mU9Mj9i50/VGwnPsVJG/6vHzz Aft0U7FM2dW72E+qKC71JNXS8JqPThmCilpRa2Ou0YxkyyOS2Z0I7QZdpTf9kwHNMDSg lyyMPb9XsDjDSJwjqSyOvCpdkY5tTf+Zjixw28gVJ72KOr/MvYSw5qF1cfE6ozOne7KX +9T+QA/MTw199XS6cUO6WZZxY3kNf4CoVrutIlVV06w+1MYOcj+uGqn2B4TL0mJgTkd9 RLKkI6cmXZA0w8wg3uT77aUunrVYzwVj8j/5+cIzzSipvaN8P4AldjWVbkG6BRILd0qS n7SQ== 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=fAIJoqpSBxAEzp9qqTNUEvI871SbYOpjRpQfQBGnqRA=; b=j5eD3J0CGdOfIXPI4PdeVeUo1c8q9ws/y/fleUIs2gJHCuMDcysrwhVHKPrBtsEX7G L2WYCivGKgFUpIpgCRiLfj8qLUT8p4jhQj5YWaCqdWJuK0T8rAAIQ/t9fTvZPCkJBdS6 NpxUznHIZWPH13W80RJ/uORyF36NgcGuD4jmgyJjtFA4HHcHzk+nLWNi/WTjv5itoquQ bSKahbDWl3NwfLoBJIknGCybA58GcCNE/b2zPoWdfVVxyKhI8KAxkIphXFRJuhNTQo02 E4Kw4kmyMzqNFUpZCllf/uNRMaeEa8TDegpooCvf2bmUGwxGW976I2/GPAYFTFriOAZZ KCuw== 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 x11-20020a056402414b00b0044f2fb68fe6si3954856eda.495.2022.11.18.16.04.27; Fri, 18 Nov 2022 16:04:53 -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 S237151AbiKSAA0 (ORCPT + 99 others); Fri, 18 Nov 2022 19:00:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237331AbiKRX5b (ORCPT ); Fri, 18 Nov 2022 18:57:31 -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 6AD69B34AC for ; Fri, 18 Nov 2022 15:29:03 -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 1owA96-0003fj-Qz; Fri, 18 Nov 2022 23:47:40 +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 1owA94-0058dD-I7; Fri, 18 Nov 2022 23:47:39 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA94-0000IJ-IZ; Fri, 18 Nov 2022 23:47:38 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Hans Verkuil , Andy Shevchenko , Vladimir Oltean Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 392/606] media: i2c/vpx3220: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:06 +0100 Message-Id: <20221118224540.619276-393-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?1749880714674235390?= X-GMAIL-MSGID: =?utf-8?q?1749880714674235390?= 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/media/i2c/vpx3220.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/vpx3220.c b/drivers/media/i2c/vpx3220.c index b481ec196b88..aa73d5dcc3e7 100644 --- a/drivers/media/i2c/vpx3220.c +++ b/drivers/media/i2c/vpx3220.c @@ -456,8 +456,7 @@ static const struct v4l2_subdev_ops vpx3220_ops = { * Client management code */ -static int vpx3220_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int vpx3220_probe(struct i2c_client *client) { struct vpx3220 *decoder; struct v4l2_subdev *sd; @@ -547,7 +546,7 @@ static struct i2c_driver vpx3220_driver = { .driver = { .name = "vpx3220", }, - .probe = vpx3220_probe, + .probe_new = vpx3220_probe, .remove = vpx3220_remove, .id_table = vpx3220_id, }; From patchwork Fri Nov 18 22:42:07 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: 22932 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474594wrr; Fri, 18 Nov 2022 16:04:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf5KX/CUd185IB5L4KOhOme2+KIy9zheYbcGj/8pcElme8lUMO9UspTd8otIiAdsZTwZqpQ+ X-Received: by 2002:a17:903:300a:b0:186:5de3:8f10 with SMTP id o10-20020a170903300a00b001865de38f10mr1717302pla.92.1668816275465; Fri, 18 Nov 2022 16:04:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816275; cv=none; d=google.com; s=arc-20160816; b=Ozwult8d4lPJHyyc/GA02RjDwbDXm9SRRSFn8zVcA360cE7RE4uQOYYYmLeIjiqaDb ItS8eSTH2SoSdpTcX2VcFTuUuWNjfJGq4HFbv3XULoHKfh82inf7cfp6p2xtylQ7HQJB eR+WQfCBvyQk/GYSWCW+3JMtIHMhYIuJq244K3ITouQVk/rdQ/I7jdAw0s54WuCPkxtP y4ztZgU4k74BYTGlf+gopkrNI41ioCdkAxX0IIYaiVuIcoqAqzRoO7i+h1136HNVkD4c pRD+/L62GSO3P49IzOfkynlqJF7PcT7dSqPZpmz3Ycan919+9qV1OmSfTjppni4ry01V Grbg== 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=RD10528Wc20eTIGdXA0+M1OnFcUgzcCuEIHUK3y6tq8=; b=WxJvyCNkEj2LGWO0MDGvtDvsUKhk512FLE2DqhVNXcvSfmtJtZSCZq/MFaLUoxUyqy orGy0uAur/9syzmc2eyFUNHagAfSXsKO6vRODxCKwnvXogFS6Qw2t+RbmkW7l8h5bP1N vboSgA2/FMZm2V37d2UK0aT9sxxGmDw0KAWjPmPsORc7FAMycSxNojQCJLxve9M5CT2l suhsAlYH70ZxZExLvG3r52ig0fHMeeaNa3yhRKcPVZX6vbLnWrgT6nbNobKgrs6Hcqak GKj/1Rj1n/9kbxrb95Am1x3y9Z30TQbvWX3bd7H0s0ewNG3PzGRxfggQiuy2wmRNgoux Jefg== 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 gi12-20020a17090b110c00b00212f92957d5si7959877pjb.167.2022.11.18.16.04.16; Fri, 18 Nov 2022 16:04: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 S237278AbiKRX7r (ORCPT + 99 others); Fri, 18 Nov 2022 18:59:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237168AbiKRX5B (ORCPT ); Fri, 18 Nov 2022 18:57:01 -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 1124E25C69 for ; Fri, 18 Nov 2022 15:28:45 -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 1owA96-0003g8-TT; Fri, 18 Nov 2022 23:47:40 +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 1owA94-0058dH-Kc; Fri, 18 Nov 2022 23:47:39 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA94-0000IM-Of; Fri, 18 Nov 2022 23:47:38 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Andy Shevchenko , Benjamin Mugnier , Srinivas Pandruvada , Javier Martinez Canillas Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 393/606] media: i2c/vs6624: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:07 +0100 Message-Id: <20221118224540.619276-394-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?1749880695261338300?= X-GMAIL-MSGID: =?utf-8?q?1749880695261338300?= 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/media/i2c/vs6624.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/vs6624.c b/drivers/media/i2c/vs6624.c index d496bb45f201..d35c5ec148f4 100644 --- a/drivers/media/i2c/vs6624.c +++ b/drivers/media/i2c/vs6624.c @@ -738,8 +738,7 @@ static const struct v4l2_subdev_ops vs6624_ops = { .pad = &vs6624_pad_ops, }; -static int vs6624_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int vs6624_probe(struct i2c_client *client) { struct vs6624 *sensor; struct v4l2_subdev *sd; @@ -843,7 +842,7 @@ static struct i2c_driver vs6624_driver = { .driver = { .name = "vs6624", }, - .probe = vs6624_probe, + .probe_new = vs6624_probe, .remove = vs6624_remove, .id_table = vs6624_id, }; From patchwork Fri Nov 18 22:42:08 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: 22837 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471548wrr; Fri, 18 Nov 2022 15:57:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf62GnYnxXhJiZN87Zj0Ubvba0qpnOEabdBQuPfrwF27/tx7x/90OFVjmzqb26hloUzo7NQX X-Received: by 2002:a17:906:fca7:b0:7ae:9677:d8dd with SMTP id qw7-20020a170906fca700b007ae9677d8ddmr7847847ejb.71.1668815830683; Fri, 18 Nov 2022 15:57:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815830; cv=none; d=google.com; s=arc-20160816; b=umKp7Fmqcq01lc5y6DWDTnmHIIzO/2SnIrxvsvCjuITJbva/C3DMnjUYK3rYvQcCIV 3jLwKjh7VaDC24uUs+Db1aOwXtchG6NQs3Lk6Fxng/bVyJzfQtxZarTJtpCLExKIfibL EUfYfwi3GRN2cRyLB6grpmHM3A7JEonlj/hwkhnB5tcG6E/IABecc1yw/a9Ig8ecGwgP 9V/F3VG4xVT07YzhfgPNehvv2ljRi2vsJnrDsfc7LFFco1fvCcKHodeOgt++VDYdGERH ut3shGMw5n1NqX2xSTje+MUhadslcFr3QTKKIm8SjTBeXsUybSesC4NT3Y98j2M4FeaF uioA== 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=wtofK2G5IjEPkVwfKIlue5x9aTIilUqNAiFNRtCy2Pk=; b=UebNTBzdJZu6d0fd4cLSu7nDCXPhdMI2u/TigjgvDVuShPNzIRf+hExDyvtEAx1UTo ttE5e3if0QCklAjxgJ6e2jbmlOEd1W57xMhrFjRrsgRcnKcENWGA4c1CvRzlfLmnouHP r+txtkJXMzeuHpKFB4OGF+tVu1UcDkXZcOY40DO0UNBEcK1drM94EDh91klUwEsFv0zA kC0yl/TAuoyUuTwn6BuszGdT+O8XCEIdSv58wENtI+Q8utIeRUryFEVersJb9SMyswJQ 9RDo9rv6OQVyx7biWwdNXKvt+FhAb8t9bBi0TJgV+n6cmGUToHFa3jWkhxuIaxKGcYXa K7Vg== 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 tl2-20020a170907c30200b00781599eb7dbsi3555566ejc.573.2022.11.18.15.56.46; Fri, 18 Nov 2022 15:57:10 -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 S234412AbiKRXsj (ORCPT + 99 others); Fri, 18 Nov 2022 18:48:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237153AbiKRXrg (ORCPT ); Fri, 18 Nov 2022 18:47:36 -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 B1587E6342 for ; Fri, 18 Nov 2022 15:26:02 -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 1owA96-0003gC-Qe; Fri, 18 Nov 2022 23:47:40 +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 1owA94-0058dJ-LO; Fri, 18 Nov 2022 23:47:39 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA94-0000IS-UC; Fri, 18 Nov 2022 23:47:38 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Luca Ceresoli , Sebastian Reichel , Ajay Gupta , Crt Mori Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 394/606] media: i2c/wm8739: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:08 +0100 Message-Id: <20221118224540.619276-395-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?1749880228608569066?= X-GMAIL-MSGID: =?utf-8?q?1749880228608569066?= 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/media/i2c/wm8739.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/wm8739.c b/drivers/media/i2c/wm8739.c index 180b35347521..8b34a673ffd3 100644 --- a/drivers/media/i2c/wm8739.c +++ b/drivers/media/i2c/wm8739.c @@ -178,8 +178,7 @@ static const struct v4l2_subdev_ops wm8739_ops = { /* i2c implementation */ -static int wm8739_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int wm8739_probe(struct i2c_client *client) { struct wm8739_state *state; struct v4l2_subdev *sd; @@ -253,7 +252,7 @@ static struct i2c_driver wm8739_driver = { .driver = { .name = "wm8739", }, - .probe = wm8739_probe, + .probe_new = wm8739_probe, .remove = wm8739_remove, .id_table = wm8739_id, }; From patchwork Fri Nov 18 22:42:09 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: 22779 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466113wrr; Fri, 18 Nov 2022 15:39:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf5CF4o2k3Dy1kHZN1K+MTyjRWYVUA/XSnZzV6cA1pVP38RuprDY+0tzZzeALClf5/t+gHD0 X-Received: by 2002:aa7:c54c:0:b0:469:10c6:19d2 with SMTP id s12-20020aa7c54c000000b0046910c619d2mr4139588edr.243.1668814749677; Fri, 18 Nov 2022 15:39:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814749; cv=none; d=google.com; s=arc-20160816; b=BHSEC8ropAx6cgHMd0QxJ76T6bkV5mCcV2cbcv/xarTTfFOGfy8YoAT6+ta/m+PNWB 6MAlIhc7xXAv2RDa5Tie20Gakhz+l05ykFToptEvxzfuSu+zx4bSat8oapMJzUfK3Xhj ui+yNTWPxyXQi5W4n9/2FWeLiX2QlwkWRftp5OiLuKktLriMILs9BnPRD2yu2MEuBgq9 kJNRcn7Nlyn+fUQHEF59xg4uiLJHEPdO1ojFJsv8FgOVpZekpJpszU9wAAWeN7r42ruH wf0JWl7eGzZxgt+wpHc85yzt1Nu3MXg/SjRhzxdQCiyljrepRtRLUQSJLQ23Jpz1wFrU 11eQ== 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=PuNTNnpk6aPnmnuy4kXSEFui0Fs6egvSEsbKHk3tY3Y=; b=y1o87UD+kWhQ0OKzB1vncov0dh3y5Qt9EYir5h+TnbCXr3QjIQiEuMLfB+omYD6mPg V2XOoC+tSYmVXWy/LdapAwAhSjx6RXtAyGc08i4pQqCgL8G51XPjtjASCNIW5Tae5Bca VUzCqECbcGboK6XxVtBEMhGpLeAEgVJ+sxFppME8UlANEZGqXzF+WqbabEmHwDn+vPRE SDsrMZfrdWSSCWIM+PipbLhIN3CcytAOs2qbM8kcB6zTUWp7imW8UYZ4LmxHeEKQrA89 TfZe5bPQfke8i1Q/E4bWyNdrQDNp+uVd34mPU4EhRCsK+Cok8DSFVVyUGaJRGdfNm5ea SaiQ== 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 t20-20020a170906179400b0078d0f88a6e9si3156687eje.284.2022.11.18.15.38.41; Fri, 18 Nov 2022 15:39:09 -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 S236640AbiKRXhZ (ORCPT + 99 others); Fri, 18 Nov 2022 18:37:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236490AbiKRXdF (ORCPT ); Fri, 18 Nov 2022 18:33: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 AB2BDE10 for ; Fri, 18 Nov 2022 15:21:18 -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 1owA97-0003gj-5t; Fri, 18 Nov 2022 23:47:41 +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 1owA94-0058dP-Qt; Fri, 18 Nov 2022 23:47:39 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA95-0000IV-3k; Fri, 18 Nov 2022 23:47:39 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Peter Senna Tschudin , Benjamin Mugnier , Crt Mori , Corey Minyard Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 395/606] media: i2c/wm8775: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:09 +0100 Message-Id: <20221118224540.619276-396-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?1749879094583439216?= X-GMAIL-MSGID: =?utf-8?q?1749879094583439216?= 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/media/i2c/wm8775.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/wm8775.c b/drivers/media/i2c/wm8775.c index 8ff97867d3cd..56d98518f7eb 100644 --- a/drivers/media/i2c/wm8775.c +++ b/drivers/media/i2c/wm8775.c @@ -190,8 +190,7 @@ static const struct v4l2_subdev_ops wm8775_ops = { * concerning the addresses: i2c wants 7 bit (without the r/w bit), so '>>1' */ -static int wm8775_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int wm8775_probe(struct i2c_client *client) { struct wm8775_state *state; struct v4l2_subdev *sd; @@ -299,7 +298,7 @@ static struct i2c_driver wm8775_driver = { .driver = { .name = "wm8775", }, - .probe = wm8775_probe, + .probe_new = wm8775_probe, .remove = wm8775_remove, .id_table = wm8775_id, }; From patchwork Fri Nov 18 22:42:10 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: 22678 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp461603wrr; Fri, 18 Nov 2022 15:27:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf5HgUVf20f71TS6ZqN9rwepkkF/jHR8zRzOhMFpram0+L/Li3RiKeWhVTVNE5Yzo+FTR9qR X-Received: by 2002:a17:906:6d03:b0:78d:9d0b:a9f6 with SMTP id m3-20020a1709066d0300b0078d9d0ba9f6mr7984950ejr.661.1668814058692; Fri, 18 Nov 2022 15:27:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814058; cv=none; d=google.com; s=arc-20160816; b=P6sKoGFtMvRLPSrRSM5ePpnt7w/wPDPgaXI8oJsDFFerBiGsW4MuSSfcYfS2lGeZct YFcIp96I16W5i5v6b8ewZ+8p7FspLQI77Z4O6jPwCY6h7RnVEaKqSl5v7MMxgNiy9tlQ Q/ulWClJJbe11pXlDERzSDH0BrTfBnAeoufsk0RnhY+MQ6R4xLlKfqlG9BKxV1LHyfGx aHp6bZncwAGAW0FWvIi986SaOn3n/kT+uYd30W8uaI0A8/IGqLCcjFcHL3O98fZ2xJ1+ 3XdOsXaiJqDch6wmkQRAsRDjpr7sXbeDQstDUuxo5i+lj46FlL7JjFN6Vx1dX3VtJnTz LXmQ== 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=ghoz0an/lTJ+jLGR+QB66KGRUiUH0sRAJaEJcv0f1jE=; b=XR+YhDEYpj2r3Xt2RaG3Fg/d3+SVJK1kDUeQC0VpJaDv8dT/Cc/VHME4H/kQcra2DX uReiwcFSCvm9cw55CG+WFxwNE8JJmpsa1mLMeAUT7kiOV0J0CAMIJRXEfQt+aMGsEYmR DP6/T6E3dxwb2ZXHGRC5kQ/VFnCIf7DflHwOdreX2lJ83zSB3UktJ9sRBLFnG4Vvd5xA PegEimzeZv28KM4N815cHnL/RAI6mz2KqH/JlkEbUzs5LYCF4B9mibuOOmPHjK8bmH+A If7aN+R/1jbz3nczEE5V1y+F0rdS8/Q16iqHbOVnAb+p8duAKB6aXsmRPdC5rFhnbkXQ 9WKQ== 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 x11-20020a056402414b00b0044f2fb68fe6si3906023eda.495.2022.11.18.15.27.14; Fri, 18 Nov 2022 15:27:38 -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 S235600AbiKRX0B (ORCPT + 99 others); Fri, 18 Nov 2022 18:26:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235587AbiKRXYH (ORCPT ); Fri, 18 Nov 2022 18:24:07 -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 2191757B56 for ; Fri, 18 Nov 2022 15:14:12 -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 1owA97-0003hl-Ew; Fri, 18 Nov 2022 23:47:41 +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 1owA95-0058dV-4X; Fri, 18 Nov 2022 23:47:40 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA95-0000IZ-BU; Fri, 18 Nov 2022 23:47:39 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Peter Senna Tschudin , Vladimir Oltean , Greg Kroah-Hartman , =?utf-8?q?Krzysztof_Ha?= =?utf-8?q?=C5=82asa?= Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 396/606] media: radio/radio-tea5764: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:10 +0100 Message-Id: <20221118224540.619276-397-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?1749878370469936872?= X-GMAIL-MSGID: =?utf-8?q?1749878370469936872?= 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/media/radio/radio-tea5764.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/radio/radio-tea5764.c b/drivers/media/radio/radio-tea5764.c index abda40e81612..2cb74afba49c 100644 --- a/drivers/media/radio/radio-tea5764.c +++ b/drivers/media/radio/radio-tea5764.c @@ -411,8 +411,7 @@ static const struct video_device tea5764_radio_template = { }; /* I2C probe: check if the device exists and register with v4l if it is */ -static int tea5764_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tea5764_i2c_probe(struct i2c_client *client) { struct tea5764_device *radio; struct v4l2_device *v4l2_dev; @@ -512,7 +511,7 @@ static struct i2c_driver tea5764_i2c_driver = { .driver = { .name = "radio-tea5764", }, - .probe = tea5764_i2c_probe, + .probe_new = tea5764_i2c_probe, .remove = tea5764_i2c_remove, .id_table = tea5764_id, }; From patchwork Fri Nov 18 22:42:11 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: 22958 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp475171wrr; Fri, 18 Nov 2022 16:05:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf7jiofZ8G2pQgppp1oZ8TfmKgADmCHg45cp23oI2LMBwbZ5/1acXMKSRY5XOnE2JND6Mq5f X-Received: by 2002:a17:906:a083:b0:7b2:b15e:322f with SMTP id q3-20020a170906a08300b007b2b15e322fmr4485177ejy.75.1668816347573; Fri, 18 Nov 2022 16:05:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816347; cv=none; d=google.com; s=arc-20160816; b=gO4ryI2uPw/3SZY94ILWMFosSZQAmqe76G1qRFBV3p3WB3GA5EMp4x4Wb9ppxkAMd0 M2QdlWHPNEAYwlbaxyQSmZhpdYkaXV017GF04Pr66jGYrabXvwhO72IUxpc7FxIMo7S9 6Ylg/MzvvWK2guM/t4CaU/LMfB6G1AwZh+yz5jeD4ITJ5g+q70N3x2HzC5dCemb7MPCv yvAeN+JQpz8UDGJNcdtq7/H1bQ4sLcIGt9CP491cJyz4qbZe/ZTxcX0URpwDQ71QV3Sg 0DR8OUiYT2uSpXwVRSAxVVOCHci8lLPT3Zj6i1ye1A4wX4AjEu8IfRkZN49R+6L9ymmS 0bEw== 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=rjCMG+2rIrjZOfRaX464HDgS6GkV2I+BVPllA/uqZCk=; b=r8xSZXl8bVVvlgkabniTNLJw3dew79lV0toG9apUHOtJoJoQcfew5S5ZJwIWT8wL5o of3O7RiFUJQ1P3hr9INMOugY08rCxiTr71PRthTiYD0onFmQ8DhlQJATqGaYfdQSCUXM VY/lPJ8uO4KWTodgk6aP6lYLBllZl/L0lGLq7VrLHHCPIEp2oIyjYHlLf81BlQZFZiCg 1xdUQCfyOzMLkrdXDqcrpX+ujxquLaXLAEwhXpIAIYGisp3kgrZY2DJL7BDaShpsZsZJ TVceWiCef6a9oYuctaqP2Esn5kIXLEnEsDGTz7KiTAr83nnmkuMeXhIiEozTLPD+LU4X wBfw== 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 wz5-20020a170906fe4500b007820e1a4302si4974859ejb.675.2022.11.18.16.05.21; Fri, 18 Nov 2022 16:05:47 -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 S236723AbiKRX6t (ORCPT + 99 others); Fri, 18 Nov 2022 18:58:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234043AbiKRXzn (ORCPT ); Fri, 18 Nov 2022 18:55:43 -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 72114BEB4D for ; Fri, 18 Nov 2022 15:28:16 -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 1owA97-0003ig-L0; Fri, 18 Nov 2022 23:47:41 +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 1owA95-0058da-CE; Fri, 18 Nov 2022 23:47:40 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA95-0000Id-Hl; Fri, 18 Nov 2022 23:47:39 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Corey Minyard , Ajay Gupta , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Vladimir Oltean Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 397/606] media: radio/saa7706h: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:11 +0100 Message-Id: <20221118224540.619276-398-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?1749880770516922424?= X-GMAIL-MSGID: =?utf-8?q?1749880770516922424?= 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/media/radio/saa7706h.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/radio/saa7706h.c b/drivers/media/radio/saa7706h.c index f9e990a9c3ef..3c758a983344 100644 --- a/drivers/media/radio/saa7706h.c +++ b/drivers/media/radio/saa7706h.c @@ -331,8 +331,7 @@ static const struct v4l2_subdev_ops empty_ops = {}; * concerning the addresses: i2c wants 7 bit (without the r/w bit), so '>>1' */ -static int saa7706h_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int saa7706h_probe(struct i2c_client *client) { struct saa7706h_state *state; struct v4l2_subdev *sd; @@ -406,7 +405,7 @@ static struct i2c_driver saa7706h_driver = { .driver = { .name = DRIVER_NAME, }, - .probe = saa7706h_probe, + .probe_new = saa7706h_probe, .remove = saa7706h_remove, .id_table = saa7706h_id, }; From patchwork Fri Nov 18 22:42:12 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: 22686 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462225wrr; Fri, 18 Nov 2022 15:29:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf78XXwbjbUBvhZvYZQazhxx4LfjLQRFByV7iR+Aytmv6cMY5j6zM6ECXqGDQ9C4DxKWFBdZ X-Received: by 2002:a17:906:c24e:b0:778:d81d:b1f0 with SMTP id bl14-20020a170906c24e00b00778d81db1f0mr7767840ejb.731.1668814169346; Fri, 18 Nov 2022 15:29:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814169; cv=none; d=google.com; s=arc-20160816; b=t2U9guvoqSowa0tN6tUqyuJ7URc0jsmW12p26ZL2FduEJ78L7zJlLRDgwg5Vv+ER6K DkLMUCvkarpQ7NZihsEIgcFaO0y8mcadp9c5DH/2Sdo1bO8nFiiLPo+rrivHvqxdffhP yawfFogZEfxvKgdw1v3r5LkwBV35xoM3I1XNMcQ6yqRak1+aZZvWrzSvGKw9N13XgesF K72I2CA4EVBXMqoflwdeS4t5f9NZYf3vFOiyKA4ozAtq2kAfAnBjHNy2Ah5gSGv8w8jU WHs1LLm/XriER9DQLRilXOHaxuBRMRRvxYADvB8UlCMdVwnA2wJ1sE3Vkwm9uXxHZbmT uVOQ== 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=D6WEk/+GpM1qz1L5IeX2A29JNxCHLAsgQN819TampOg=; b=Ub8dUuGkQjzGQ4WpXnWbLW3yRj5ablPrv11SorFsbM5qN3+I5PmwO21LbQu/2Ks4j5 e82DTQuQTClkGFjpohyEFD7nuCO4QPYmtdW5PPmN8WByezcIV+KAVmoVGzXH/xeY+dkj 6TBD0r7YyC+Q/ghwX5z+5aZkz3XPiy8zWfT+04+0wq5TPuSPgAkR/+BTLCzqPbS/z42A tnOLeiYr/IDyynBQ6UVuSZOay8uAsz701IozlI5IkLBc1JdAgcAtZUvyGj48R4yO1jRs ke9Fc6rFTRsWPXfRMVWRcu5f8KKwNdQUS+V1tuU7vNa1FrfOcI4VzVQY1EOHpZbdh/Oj LlZA== 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 t18-20020a056402525200b00467ad3f4426si4743747edd.312.2022.11.18.15.29.05; Fri, 18 Nov 2022 15:29:29 -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 S235704AbiKRX2m (ORCPT + 99 others); Fri, 18 Nov 2022 18:28:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235615AbiKRX2J (ORCPT ); Fri, 18 Nov 2022 18:28:09 -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 2C9B6C0502 for ; Fri, 18 Nov 2022 15:15:54 -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 1owA97-0003ij-LU; Fri, 18 Nov 2022 23:47:41 +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 1owA95-0058db-Cs; Fri, 18 Nov 2022 23:47:40 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA95-0000Ij-ND; Fri, 18 Nov 2022 23:47:39 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Heikki Krogerus , Benjamin Mugnier , Maximilian Luz Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 398/606] media: radio/tef6862: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:12 +0100 Message-Id: <20221118224540.619276-399-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?1749878486224879918?= X-GMAIL-MSGID: =?utf-8?q?1749878486224879918?= 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/media/radio/tef6862.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/radio/tef6862.c b/drivers/media/radio/tef6862.c index 7b0870a9785b..d14c97d79e83 100644 --- a/drivers/media/radio/tef6862.c +++ b/drivers/media/radio/tef6862.c @@ -141,8 +141,7 @@ static const struct v4l2_subdev_ops tef6862_ops = { * concerning the addresses: i2c wants 7 bit (without the r/w bit), so '>>1' */ -static int tef6862_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tef6862_probe(struct i2c_client *client) { struct tef6862_state *state; struct v4l2_subdev *sd; @@ -184,7 +183,7 @@ static struct i2c_driver tef6862_driver = { .driver = { .name = DRIVER_NAME, }, - .probe = tef6862_probe, + .probe_new = tef6862_probe, .remove = tef6862_remove, .id_table = tef6862_id, }; From patchwork Fri Nov 18 22:42:13 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: 22917 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472975wrr; Fri, 18 Nov 2022 16:01:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf4zjXwe6VbSCy7y9pM3G9cURBwew29oC7v9+7YWVHXVWX4IeAKx0RlHU44KNPxhLxGsFSdQ X-Received: by 2002:a17:906:1682:b0:78d:6ba1:74dd with SMTP id s2-20020a170906168200b0078d6ba174ddmr8136247ejd.119.1668816074973; Fri, 18 Nov 2022 16:01:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816074; cv=none; d=google.com; s=arc-20160816; b=BZjF5l2vW5Q6th5jaQ7CMjuhcLhvhRBCC1GSr5oUZoEheYSsNSwu7TBvdhyNfyGfOb yW/FtKwpBtGq/1gqKgWWjEtdjOe6MZGSTagpUyfXYlG4Bn78UKpVcg7aNj+2VHuVJmg0 bDMfR5Rspi40+3RdUNTFwohots8ArknPtTXuEM4XQZ7qhmHVhBdtDBWhTACdPJ2QQ1fT +MnDPNllNSglIU9xNLsg3GMOuxcgNvJ/f40AGCG3uqc2iUwtttuPZSd7K1DgFzL55xrt ILRSjG6hZ6GmF6NYczNj6eIgqjATApe17IJsm/zc7A3eNKpaRFZev7U+iijlN6RCnx1u fUIQ== 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=oA4KYi0KCvr/4WTY2UWLeG4Br47TYAzo7VEiDESm4sE=; b=brd6iGrN5K33g24lv8drz1kFimu3HEt+zbB/tOk1R2qpRuk38QpVVrHvz5OsjjwMYH Uw5YLZ0dY3RubHeUskwl87qzek1nruAu+U8zxkLotXg4OjTNiu5tHXplRqdJVRrWQhYw qFgKmWLnread7RmpYQ5/w8R1URjkTVQgw9bwiFWpBP4y+Ey+PZr9yKoPl7ocAEWkyG58 5mllIFx3odx+AZMYGh1AeRdwb/ENJ9HQXvIebkGpAC5kW3ZL3gZcQeaZ1VING+mzKzVU NZ3es+znU2N5AsVa9/E32+ECaKc9cG4pOevjdBvKBqeXPG+w1eIjbGiFubsyfQJLVL1B mrWQ== 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 a16-20020aa7cf10000000b0046744d9fff8si676827edy.348.2022.11.18.16.00.48; Fri, 18 Nov 2022 16:01:14 -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 S236884AbiKRXtL (ORCPT + 99 others); Fri, 18 Nov 2022 18:49:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233642AbiKRXqe (ORCPT ); Fri, 18 Nov 2022 18:46:34 -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 74775D9BA9 for ; Fri, 18 Nov 2022 15:25:22 -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 1owA99-0003oP-RY; Fri, 18 Nov 2022 23:47:43 +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 1owA97-0058eF-I3; Fri, 18 Nov 2022 23:47:42 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA95-0000In-SW; Fri, 18 Nov 2022 23:47:39 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , "Daniel W. S. Almeida" , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 399/606] media: vidtv: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:13 +0100 Message-Id: <20221118224540.619276-400-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?1749880484897336194?= X-GMAIL-MSGID: =?utf-8?q?1749880484897336194?= From: Uwe Kleine-König The probe functions doesn't make use of the i2c_device_id * parameter so it can be trivially converted. Signed-off-by: Uwe Kleine-König --- drivers/media/test-drivers/vidtv/vidtv_demod.c | 5 ++--- drivers/media/test-drivers/vidtv/vidtv_tuner.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/media/test-drivers/vidtv/vidtv_demod.c b/drivers/media/test-drivers/vidtv/vidtv_demod.c index d60c6d16beea..b878db798686 100644 --- a/drivers/media/test-drivers/vidtv/vidtv_demod.c +++ b/drivers/media/test-drivers/vidtv/vidtv_demod.c @@ -412,8 +412,7 @@ static const struct i2c_device_id vidtv_demod_i2c_id_table[] = { }; MODULE_DEVICE_TABLE(i2c, vidtv_demod_i2c_id_table); -static int vidtv_demod_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int vidtv_demod_i2c_probe(struct i2c_client *client) { struct vidtv_tuner_config *config = client->dev.platform_data; struct vidtv_demod_state *state; @@ -450,7 +449,7 @@ static struct i2c_driver vidtv_demod_i2c_driver = { .name = "dvb_vidtv_demod", .suppress_bind_attrs = true, }, - .probe = vidtv_demod_i2c_probe, + .probe_new = vidtv_demod_i2c_probe, .remove = vidtv_demod_i2c_remove, .id_table = vidtv_demod_i2c_id_table, }; diff --git a/drivers/media/test-drivers/vidtv/vidtv_tuner.c b/drivers/media/test-drivers/vidtv/vidtv_tuner.c index aabc97ed736b..55a4387f3854 100644 --- a/drivers/media/test-drivers/vidtv/vidtv_tuner.c +++ b/drivers/media/test-drivers/vidtv/vidtv_tuner.c @@ -390,8 +390,7 @@ static const struct i2c_device_id vidtv_tuner_i2c_id_table[] = { }; MODULE_DEVICE_TABLE(i2c, vidtv_tuner_i2c_id_table); -static int vidtv_tuner_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int vidtv_tuner_i2c_probe(struct i2c_client *client) { struct vidtv_tuner_config *config = client->dev.platform_data; struct dvb_frontend *fe = config->fe; @@ -426,7 +425,7 @@ static struct i2c_driver vidtv_tuner_i2c_driver = { .name = "dvb_vidtv_tuner", .suppress_bind_attrs = true, }, - .probe = vidtv_tuner_i2c_probe, + .probe_new = vidtv_tuner_i2c_probe, .remove = vidtv_tuner_i2c_remove, .id_table = vidtv_tuner_i2c_id_table, }; From patchwork Fri Nov 18 22:42:14 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: 22829 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471369wrr; Fri, 18 Nov 2022 15:56:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Osp8eVFt8Jb2ZfQVBt+p2xy66NuIuRq73vl1hcKgVhyAqRmuCtfAzAvGR0PjBeqHGnd7f X-Received: by 2002:a50:fc02:0:b0:461:9667:1b4d with SMTP id i2-20020a50fc02000000b0046196671b4dmr7917417edr.239.1668815796167; Fri, 18 Nov 2022 15:56:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815796; cv=none; d=google.com; s=arc-20160816; b=B4Ko3+IQC+SsHtPjn8LjPgJ9sSq8QLD0aV1bjF9nvxAsG5bh00M3I2dNw8lu5LT8Y+ WKcS5frw8AIHqZB3CFTl8zkkXZKKQONwW9gLXVUgvRpECM62wkYfdMnZOZos9oR2uNSB kCr4n1knfuNewftqb7o6PFySY6utBjOl0as21uWAM1w5mbtryRkAYKYIJEoi2LgX0V4o 3AJQ4p7sJRLEDDveNzCSjjcMQ3xuYRDrovoQoJyhFPoxGZi17GXRjnRHc8Xridk2Q+nY kAzlz5fIXTEKpXG9h5QdHBQZs/scebmu5qDrsny3A9g+x94kzGDuTK7ssN1DdD7qxa3A 7uAA== 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=sAB2w9i0NTUE34Y0B/Mi/NolRo4tWjy1rphepzDsP+4=; b=jLQBJZ48koAPV86ed6wR4uJP4ThzP/eRYwL3LXWk1aY2DzSPnicix+f9F3hFRzyXAy VmnpcPrae1/9NItAAN1kZ0qwAn95rn/4a2epdRSLaQ3NzLLU0LENqWOJTWUBCxh1CQsh l3iHG9FYh+Zv7BsOOi+32uPDeAPGHp5/6tQOR8sz2+MqSSysGqsr04wIzoryq4GXsYwD LFb8fn+fPNRP6Zbaz5s1ovoYlBy4uKpAbYxZLdu8QQyTT85iGyveOLRJIxPQtt8R0rhy Pcd5XtsJgDg8/Q2Qh+L1fspNpJJ9xLeRtYKyb+PDX2qFnfV6p0zKFQlGOd+8dcDmlpSY C6pQ== 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 f25-20020a50fe19000000b0045d050f0fa3si3917080edt.565.2022.11.18.15.56.12; Fri, 18 Nov 2022 15:56:36 -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 S236823AbiKRXqF (ORCPT + 99 others); Fri, 18 Nov 2022 18:46:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229993AbiKRXpn (ORCPT ); Fri, 18 Nov 2022 18:45:43 -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 7D255D2988 for ; Fri, 18 Nov 2022 15:24:56 -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 1owA98-0003lR-Lg; Fri, 18 Nov 2022 23:47:42 +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 1owA96-0058du-Bv; Fri, 18 Nov 2022 23:47:41 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA96-0000Iq-1O; Fri, 18 Nov 2022 23:47:40 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Antti Palosaari , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 400/606] media: tuners/e4000: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:14 +0100 Message-Id: <20221118224540.619276-401-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?1749880192335005832?= X-GMAIL-MSGID: =?utf-8?q?1749880192335005832?= 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/media/tuners/e4000.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/tuners/e4000.c b/drivers/media/tuners/e4000.c index 61ae884ea59a..7c269f3159ef 100644 --- a/drivers/media/tuners/e4000.c +++ b/drivers/media/tuners/e4000.c @@ -609,8 +609,7 @@ static const struct dvb_tuner_ops e4000_dvb_tuner_ops = { .get_if_frequency = e4000_dvb_get_if_frequency, }; -static int e4000_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int e4000_probe(struct i2c_client *client) { struct e4000_dev *dev; struct e4000_config *cfg = client->dev.platform_data; @@ -730,7 +729,7 @@ static struct i2c_driver e4000_driver = { .name = "e4000", .suppress_bind_attrs = true, }, - .probe = e4000_probe, + .probe_new = e4000_probe, .remove = e4000_remove, .id_table = e4000_id_table, }; From patchwork Fri Nov 18 22:42:15 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: 23111 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487950wrr; Fri, 18 Nov 2022 16:44:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf75sLLo4ZaLkdc5axZMV/yxOQUO6BMQzpXwVidX+WDAJiweMVuJAVrGe42zJz48e86u+2sb X-Received: by 2002:a17:906:a147:b0:7b2:7b45:2cd2 with SMTP id bu7-20020a170906a14700b007b27b452cd2mr7993689ejb.615.1668818674225; Fri, 18 Nov 2022 16:44:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818674; cv=none; d=google.com; s=arc-20160816; b=fl1a0pQSslhDUFxUcHlm2jbrlF20kk2WfOMqgcYTwQUtpSGJemqDg9QXVTWRoz3t0y ureHq4Xx6dirJVOkUexP5hs4xdFOtl6KjkHqHcprM65ahW5zjGwl835QW0YLNb2JD+9e y7p3lHgHE+Dvat8aHaWbMuZUkBs6WGYSkRACp3WQQ/+310tR8Y41bWW2hbfzGK+JD8gD crx8CmQODliUhD0FVr3B6ObuEkp0pHAXBj1QoPZ7AIzjIoxc2CHxhkyCxfnMc/n4SEn7 sVJZvDeufyqdzimIJjZFbLv9SkFkZpD3Ss15aAEi/4ovv1vZ6a0jjS75/6N2H5v5MxTM Oxeg== 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=/aQlYi9zlUz7W2giEKfQRZQU6EEnGI5eMKBcoKmwUlY=; b=xu2S59Mk2MKTxN8GX+wW8TYwSa7/VvL8fFRcRH3aOPhSSZKAtGNhh3B1ccQ5Kfyvq7 Kn9o/azkKa/y51d57nPEBCI/Q3DmT6EVuw05EsiORUmdUp/Cu7bfQ3ZKniomU5sv++fd fmcyR1WkAYNCQdVUXEo+HkA3/ysArTN3nJzOggdNPJ8GoavuF9mx1T9fjz/n1WacxtVq 5OC2AiIyNGh/UGt3xo4iHsdSOj9S5z6XaVXHv9XBEGbkoKNHbM3Fley3Re1lqSHKOHSA BO1XzY386GWEEArqrVzHhnwEenv3u3//LpjVmM46cJaJP/xwYjqjCvTciL+AKtJ16aHo IElw== 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 ss28-20020a170907c01c00b0078b96068bc0si3655600ejc.79.2022.11.18.16.44.05; Fri, 18 Nov 2022 16:44: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 S236997AbiKSAlR (ORCPT + 99 others); Fri, 18 Nov 2022 19:41:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235910AbiKSAjx (ORCPT ); Fri, 18 Nov 2022 19:39:53 -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 C27D711867E for ; Fri, 18 Nov 2022 15:44:33 -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 1owA99-0003oX-RB; Fri, 18 Nov 2022 23:47:43 +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 1owA97-0058eH-Jn; Fri, 18 Nov 2022 23:47:42 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA96-0000Iu-6w; Fri, 18 Nov 2022 23:47:40 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Antti Palosaari , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 401/606] media: tuners/fc2580: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:15 +0100 Message-Id: <20221118224540.619276-402-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?1749883210624888445?= X-GMAIL-MSGID: =?utf-8?q?1749883210624888445?= 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/media/tuners/fc2580.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/tuners/fc2580.c b/drivers/media/tuners/fc2580.c index f30932e1a0f3..3cd8279f4f2e 100644 --- a/drivers/media/tuners/fc2580.c +++ b/drivers/media/tuners/fc2580.c @@ -506,8 +506,7 @@ static struct v4l2_subdev *fc2580_get_v4l2_subdev(struct i2c_client *client) return NULL; } -static int fc2580_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int fc2580_probe(struct i2c_client *client) { struct fc2580_dev *dev; struct fc2580_platform_data *pdata = client->dev.platform_data; @@ -611,7 +610,7 @@ static struct i2c_driver fc2580_driver = { .name = "fc2580", .suppress_bind_attrs = true, }, - .probe = fc2580_probe, + .probe_new = fc2580_probe, .remove = fc2580_remove, .id_table = fc2580_id_table, }; From patchwork Fri Nov 18 22:42:16 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: 22721 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464019wrr; Fri, 18 Nov 2022 15:33:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf5g2WS0PJAXGzv+j9KvQ0vPD0jlhNrIfdWBPhpqWrztkpFgBRw9erbNFKSADQNV7MJjHnlD X-Received: by 2002:aa7:c60b:0:b0:462:750b:bced with SMTP id h11-20020aa7c60b000000b00462750bbcedmr7782401edq.313.1668814431981; Fri, 18 Nov 2022 15:33:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814431; cv=none; d=google.com; s=arc-20160816; b=pRg6ivRgmbzrSNwSanT/nhavQAxEUYMDaKWNfHQwbhJ1KR13uPVvJCACkcEjP/rDHF 5APB5vMU7ix/Dm+/Fdqwaorepc1U2ZZntFPmn6TCJ78eiHU39g2xinLHsxWoWk8qyK41 +SBBOS4aX5Flzb4KNHKv9caLO7QGbw+d6ybYXFkR3KkXxcElHUYHpT7rGQz50ADbfc0F 8/sBiqPXZKJP+OvZ4T0vXteFg4lhCBpEeRgqhc96qzS6gxQhELdLzhqBU25ji4rOfOSm SoqANass7wI37p7zV9wdNFAn9xWnyLhdChMm7Yi8XsSB3IRRfKWyCOMah0y1XNYcLwH+ NM6w== 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=Rqq0CJIRgInVZ9u3SrtIfYbOSNdnOcCYOZCVAWQXRTk=; b=dE93qbBRq10YDCXVNZE20b+lGHgturvOL1appAb/BqtAA1/Rh64ys/j+rngaZQrg/P c1eiX+pxgmyt632rY3WbJ3emyaVcuOKAqSKQjc4ndUEYEEmxgS4vxZFT3miU45uhg5xS nhLLSJkJFaj5ms1d4fVB6PuHnE1SQ78eapmBABfyPXwILQcHeLuZgiM1A17pAhTv4n1j Plw4FHHUzkqSrpHjEeXU2NdNPA48LgcISM3HEN1JaZGRxJel10NI+SSrmq9KfEDXg5Qo UKNImZZuDZXBMIoOT0rd91OX2xuLHEXrI2oObWEqooZUO4i1JvXg8HNeaLVc0MbozgbW Z8sQ== 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 nb22-20020a1709071c9600b0073daf6b44a5si4350523ejc.775.2022.11.18.15.33.28; Fri, 18 Nov 2022 15:33:51 -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 S236045AbiKRXbW (ORCPT + 99 others); Fri, 18 Nov 2022 18:31:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235890AbiKRX3n (ORCPT ); Fri, 18 Nov 2022 18:29:43 -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 7DF686DFF8 for ; Fri, 18 Nov 2022 15:17:56 -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 1owA98-0003m8-SL; Fri, 18 Nov 2022 23:47:42 +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 1owA96-0058dz-Lf; Fri, 18 Nov 2022 23:47:41 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA96-0000Iz-E5; Fri, 18 Nov 2022 23:47:40 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Jonathan Cameron , Vladimir Oltean , Andy Shevchenko , Luca Ceresoli Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 402/606] media: tuners/m88rs6000t: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:16 +0100 Message-Id: <20221118224540.619276-403-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?1749878761686026389?= X-GMAIL-MSGID: =?utf-8?q?1749878761686026389?= 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/media/tuners/m88rs6000t.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/tuners/m88rs6000t.c b/drivers/media/tuners/m88rs6000t.c index e32e3e9daa15..7d172a5a66d9 100644 --- a/drivers/media/tuners/m88rs6000t.c +++ b/drivers/media/tuners/m88rs6000t.c @@ -573,8 +573,7 @@ static const struct dvb_tuner_ops m88rs6000t_tuner_ops = { .get_rf_strength = m88rs6000t_get_rf_strength, }; -static int m88rs6000t_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int m88rs6000t_probe(struct i2c_client *client) { struct m88rs6000t_config *cfg = client->dev.platform_data; struct dvb_frontend *fe = cfg->fe; @@ -719,7 +718,7 @@ static struct i2c_driver m88rs6000t_driver = { .driver = { .name = "m88rs6000t", }, - .probe = m88rs6000t_probe, + .probe_new = m88rs6000t_probe, .remove = m88rs6000t_remove, .id_table = m88rs6000t_id, }; From patchwork Fri Nov 18 22:42:17 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: 23093 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487617wrr; Fri, 18 Nov 2022 16:43:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf5aurXFze62aj7sOyQmD9ldbPYnK5noogDd8G6MngRM8tp3+YQSmajeuFM4DHFzZGUcZ21j X-Received: by 2002:aa7:c7d5:0:b0:44e:bee5:4242 with SMTP id o21-20020aa7c7d5000000b0044ebee54242mr8209826eds.128.1668818614764; 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=Ps9w3oyE9DYoFyG7yWFwqn+jYzpQsG6Cgyb6t6N9cr+0h6zuDMu49ynZgpM8ofzZJn uHlKEKMmEdWki7dM49ddRkZhn8aoyO3Z0LBydMvk6hadV0SVy2bzR4uHjbR37Pm/Op56 mvIab/+IY5lFK/7osRPEzfOkMBij5gymYjG3Z/2+36NuQ2KNMe/9cWMc2bjQg95WHeIL cMCz4jJqEWT44HjtpIKzmi+6OXqkYt7hZtou5LHBP0m5AXlmq3BNmPdhUW9vPXBNettF GK55Xu5DoxvBmBNZieNDAQ6BxcrKnmfZR7GootJksCNBwItu2scdqV3Gc0QJFd4WRsDD +Atg== 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=taGSBef033qPoqyXtpwcJd+WOp/x7mXk7FYKmsxewTU=; b=MT4eMPEaPfmDLUbyodfIv6PnvrxUkysvH/ZH036YBs28oWHHkOvSVZXrkM3NYWIBCn pvsK8y7vpx1yBcQ135UuWS6pilbnDBa0nPfcYW2toGQd+P0JQwXqnfnWFSF3llteuZxH 3DrOBQ9ce2bqnyXkG0TTlC494DBIaMx47PO8AWtgEq1ch+NpNV/SQ9HbS80FdTP6ngB2 41NmlwCaRR9aA0S1Htr8WrwEuozrpdOU26b7VjKAsrLlrq3ArqPqjAyEjPHueL7+40Q8 Nv/9M3V7xeMuU5BbI59S9btZUy5nwDEhFePJNgXh5jkoH0DmKqU8jIBlah0usw6c+ega YYYA== 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 dm8-20020a170907948800b007af15567a5bsi4460360ejc.432.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 S233126AbiKSAci (ORCPT + 99 others); Fri, 18 Nov 2022 19:32:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235482AbiKSAby (ORCPT ); Fri, 18 Nov 2022 19:31:54 -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 7924D115D07 for ; Fri, 18 Nov 2022 15:41: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 1owA99-0003p1-TE; Fri, 18 Nov 2022 23:47:43 +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 1owA97-0058eN-O9; Fri, 18 Nov 2022 23:47:42 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA96-0000J2-JF; Fri, 18 Nov 2022 23:47:40 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Peter Rosin , Luca Ceresoli , Hans Verkuil , Peter Senna Tschudin Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 403/606] media: tuners/mt2060: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:17 +0100 Message-Id: <20221118224540.619276-404-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?1749883147372668269?= X-GMAIL-MSGID: =?utf-8?q?1749883147372668269?= 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/media/tuners/mt2060.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/tuners/mt2060.c b/drivers/media/tuners/mt2060.c index 322c806228a5..e5d86874adb3 100644 --- a/drivers/media/tuners/mt2060.c +++ b/drivers/media/tuners/mt2060.c @@ -442,8 +442,7 @@ struct dvb_frontend * mt2060_attach(struct dvb_frontend *fe, struct i2c_adapter } EXPORT_SYMBOL(mt2060_attach); -static int mt2060_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mt2060_probe(struct i2c_client *client) { struct mt2060_platform_data *pdata = client->dev.platform_data; struct dvb_frontend *fe; @@ -525,7 +524,7 @@ static struct i2c_driver mt2060_driver = { .name = "mt2060", .suppress_bind_attrs = true, }, - .probe = mt2060_probe, + .probe_new = mt2060_probe, .remove = mt2060_remove, .id_table = mt2060_id_table, }; From patchwork Fri Nov 18 22:42: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: 22768 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465834wrr; Fri, 18 Nov 2022 15:38:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf64F42JN/K37qqganljFwUEun2z67M0CUXYgZniThhMblK0W6e+abDzozkyMWjW2N+hBmA9 X-Received: by 2002:a05:6402:524c:b0:461:c3c9:38e6 with SMTP id t12-20020a056402524c00b00461c3c938e6mr8191087edd.350.1668814715469; Fri, 18 Nov 2022 15:38:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814715; cv=none; d=google.com; s=arc-20160816; b=TEdwFf4/DTJnpBJGsTf8QqmIoJaUMbnfVMqCiAJ3kGSF2dm8qvTmx+L2VyNTgbG+01 hw9i9fpsusHosGOjqxtX6hUZtVFyu5mXsPLXX2paVwY23Eg7vq/X3YG7hBYe8Iw/ahsg ohClqgnHeauvjkFH6ZdRgm7BqEMecuvZlhU1Sggxx0y7y3f2vJbyEwxGN8xMuaEMoCOR dx5IhbtdeVMLzMwwPaZkNNR7B/fKHakfncSHlBONSDVGkLoc8MX0Cbfx0F3i5GwxGcVd NXo3O18ODls2u4y9xKxExA4xYg6TqicvVJNRRfETnV312kGQjt1AsGLSn6Mnq1MOl/1u eTGA== 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=OLj4gyEhK2hTWHZKO2usGfPUYV8ta0f3aAumIaaoCTI=; b=ZhB48eQ+ZltZN2mqqmaEgvs5EpG3qWd43m7u3ou2ProluwhDVV0i2eBYKgvNFhyLdx 60a72ak74eUS2pWTPykoH2C1YhgrLBYqiptEUzpfO4OBbUAGp+yKPbjkIy8lhQNmUvKM 5bpX0mkYKOuc3nHHTqbg7SZuc2dREn+cL2IsubONGi+e/ILgNXofAfXbX1dhbIYFgSlW wDQ9MJj0oR1Bb+dvEpTgo4vLfoLYaPRyHbASBasJ2I4aTRdNFsGXS+k/ZU+EBu8Gq7Wr MdHia6U4DUoeeTniB4LNZFHn+G/w1eeeQbyhhXk+Lpwl64UKuvbapuUwBPQP+DBxay0n jItg== 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 u1-20020a1709064ac100b00781dbee4273si3416615ejt.514.2022.11.18.15.38.11; Fri, 18 Nov 2022 15:38: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 S236444AbiKRXgq (ORCPT + 99 others); Fri, 18 Nov 2022 18:36:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236420AbiKRXc4 (ORCPT ); Fri, 18 Nov 2022 18:32:56 -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 CC9FC7C6A3 for ; Fri, 18 Nov 2022 15:20: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 1owA99-0003nU-9l; Fri, 18 Nov 2022 23:47:43 +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 1owA97-0058e8-3T; Fri, 18 Nov 2022 23:47:42 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA96-0000J5-Ok; Fri, 18 Nov 2022 23:47:40 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Akihiro Tsukada , Mauro Carvalho Chehab , Petr Machata , Peter Senna Tschudin , Peter Rosin , Javier Martinez Canillas Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 404/606] media: tuners/mxl301rf: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:18 +0100 Message-Id: <20221118224540.619276-405-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?1749879059475582547?= X-GMAIL-MSGID: =?utf-8?q?1749879059475582547?= 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/media/tuners/mxl301rf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/tuners/mxl301rf.c b/drivers/media/tuners/mxl301rf.c index 6422056185a9..c35442a77ae5 100644 --- a/drivers/media/tuners/mxl301rf.c +++ b/drivers/media/tuners/mxl301rf.c @@ -283,8 +283,7 @@ static const struct dvb_tuner_ops mxl301rf_ops = { }; -static int mxl301rf_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mxl301rf_probe(struct i2c_client *client) { struct mxl301rf_state *state; struct mxl301rf_config *cfg; @@ -327,7 +326,7 @@ static struct i2c_driver mxl301rf_driver = { .driver = { .name = "mxl301rf", }, - .probe = mxl301rf_probe, + .probe_new = mxl301rf_probe, .remove = mxl301rf_remove, .id_table = mxl301rf_id, }; From patchwork Fri Nov 18 22:42:19 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: 22794 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466722wrr; Fri, 18 Nov 2022 15:40:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf5oNfY0NfbTfyfIGRDRQ0y76vEgLNgmct6kAUjs5mAGWpbluCNLvdDj7RKK5uK0J/wuGKAK X-Received: by 2002:a17:906:381:b0:78c:b8b0:9d35 with SMTP id b1-20020a170906038100b0078cb8b09d35mr7863822eja.586.1668814849110; Fri, 18 Nov 2022 15:40:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814849; cv=none; d=google.com; s=arc-20160816; b=QiUsirHSsq+0J/VbFFudKeLqFoPXLJUUfeWZilhsFeEyiuytPyw1SuIqo9qYjxOYgw b5pK4F6j3QlpNEKXst2nXRslmtS3AKfdIE0G6TIpOljJn2qOvAnqLeharbQb8ULSre2p TJ1pzRBsPHdz2FBL67Qg3AfhsowFN1qmJoke9hVDjSKF3wV9yYAtt0NN5DNp559yAiUW eqSIV2TENNSAi96od8Bj6QWeT/XIpvOUOWZMtqoiUXkxBJfE+k8Q8/O/qq+psIA0KZPQ mqGQIycA6JEPVp6w2PEh68Qbl4+t6XpwjxIfACh2VJ75q5+bPuaMmwDWBYrt+z0lpZO/ Os/w== 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=gqc6vrAzlg9UMmh4D2BcNLp+Rm181mqVU2Okzq4p07k=; b=kCJ0UiaGynH/aPBP4QoSvEZnqFgTJBP70/5HHkV6lGQBe64CMX0agY9JwC7n9fAJM4 FSQBbGoI18rnXJrF6BK61cWIAo402nNatXNCEnK3LLtatCCzDdnnpGdpIMloYyG0Hcqo x+pOwtP1G0JFSphPcwog924LhQwpBP20gg7afPnI9DSwTZ9LPw2smu/o5Hs5VQKcElT/ w+OMBt7EDj9j4G9lxPlI9uI/kf3b1hrVlJME64tF72EUpIn3P4z2Qjh/hiIuRRJKd35r n3eXbWskspI5il7exVcuj7TBUsPIqDKG7rwjsetTWAsdLyJUyuMFm6URLAi5ZTOOISRs S1FQ== 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 nc27-20020a1709071c1b00b00783c42d2da1si4294546ejc.425.2022.11.18.15.40.25; Fri, 18 Nov 2022 15:40:49 -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 S232194AbiKRXjW (ORCPT + 99 others); Fri, 18 Nov 2022 18:39:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236500AbiKRXhD (ORCPT ); Fri, 18 Nov 2022 18:37:03 -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 8EFE15215C for ; Fri, 18 Nov 2022 15:21:57 -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 1owA9A-0003pI-3V; Fri, 18 Nov 2022 23:47:44 +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 1owA97-0058eT-Qv; Fri, 18 Nov 2022 23:47:42 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA96-0000J8-U5; Fri, 18 Nov 2022 23:47:40 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Akihiro Tsukada , Mauro Carvalho Chehab , Javier Martinez Canillas , Peter Senna Tschudin , =?utf-8?q?Marek_Beh=C3=BAn?= Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 405/606] media: tuners/qm1d1b0004: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:19 +0100 Message-Id: <20221118224540.619276-406-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?1749879199292764052?= X-GMAIL-MSGID: =?utf-8?q?1749879199292764052?= 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/media/tuners/qm1d1b0004.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/tuners/qm1d1b0004.c b/drivers/media/tuners/qm1d1b0004.c index 9cba0893207c..0b6f750c54ad 100644 --- a/drivers/media/tuners/qm1d1b0004.c +++ b/drivers/media/tuners/qm1d1b0004.c @@ -197,7 +197,7 @@ static const struct dvb_tuner_ops qm1d1b0004_ops = { }; static int -qm1d1b0004_probe(struct i2c_client *client, const struct i2c_device_id *id) +qm1d1b0004_probe(struct i2c_client *client) { struct dvb_frontend *fe; struct qm1d1b0004_config *cfg; @@ -253,7 +253,7 @@ static struct i2c_driver qm1d1b0004_driver = { .driver = { .name = "qm1d1b0004", }, - .probe = qm1d1b0004_probe, + .probe_new = qm1d1b0004_probe, .remove = qm1d1b0004_remove, .id_table = qm1d1b0004_id, }; From patchwork Fri Nov 18 22:42:20 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: 22748 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465055wrr; Fri, 18 Nov 2022 15:36:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf5v1DI9AOvd4Vg2Jk67tQu6KyPl78YgpseNdioKlUrGLidt8pLuf127AN8fDgzRT1ZApNT/ X-Received: by 2002:a17:906:f252:b0:7ae:4236:bfb5 with SMTP id gy18-20020a170906f25200b007ae4236bfb5mr7362477ejb.428.1668814587670; Fri, 18 Nov 2022 15:36:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814587; cv=none; d=google.com; s=arc-20160816; b=lY7NaOc8lut6f2QwUMyGEV6ITpDZ2hja8J4BppjP02KmqHcxmsOthxCAecnpFQwYiA +FyQsT+DDbggcThS62v8dnu5QdQkxftt79Jy26e4BnytsO51xUDOIaM12jUHKK8BDw3z 3nJNdIDz3uDnX11HNlyZLyncSPNa+0kXVmAEifNtxZ6eiZGfASOP8HcsyNP584veDYXZ 9X3ZdbBM8gLCbrYwUUECkZwSqDaJLSv8XNokmeyvlgsY4KIHBVFZc2407vfgeozPJo5A Y9jUcjB93X0ceIpAEekKBSsnUmEUCmUS1AS5uqZLW0pLwqOshion1dcNUI+w2gxoOinq 2UUA== 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=On8aTRZ8MhbIzaoU51nFz5zYAX4oCc+xzLLDCjLqo7g=; b=a4DmyUdcK5J7kax9JiCDu8VWacSVscOU459le7o+tqAUoYZM8uy/n3XFcDWyxY/aof iuL8gtEBJ6zlFAZDDlkbzkHkNZBLwAga0Pd5wK9McwUDOnQrvC5scw/fXyAt7Kev3yAB YQdV9/KR1qmDHgGa+4xW6oxSNUCHKhO9E0hh9cZ9VQ+SoD+iyzZA/i7TARyIm4NjRjUk ttTC3gSeHZOLQDOQM7nQQXSlHmHHjaNb8deO4OhF6MX3LVMTT68kvzHKxsEvyjEk24Id KlX2J9b51JMU+hWCdX4g6h/3KKXOAzsiBEioZFZE1p3RgmucGPZUksrTPI28X0hXUXfA sw2w== 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 h10-20020a056402280a00b00461acb2deebsi1955498ede.198.2022.11.18.15.36.04; Fri, 18 Nov 2022 15:36:27 -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 S236318AbiKRXfT (ORCPT + 99 others); Fri, 18 Nov 2022 18:35:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236100AbiKRXbx (ORCPT ); Fri, 18 Nov 2022 18:31:53 -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 71D652EF7B for ; Fri, 18 Nov 2022 15:19:36 -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 1owA99-0003nR-AT; Fri, 18 Nov 2022 23:47:43 +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 1owA97-0058e7-2s; Fri, 18 Nov 2022 23:47:42 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA97-0000JB-3A; Fri, 18 Nov 2022 23:47:41 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Akihiro Tsukada , Mauro Carvalho Chehab , Peter Rosin , Andy Shevchenko , =?utf-8?q?Marek_Beh?= =?utf-8?q?=C3=BAn?= , Vladimir Oltean Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 406/606] media: tuners/qm1d1c0042: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:20 +0100 Message-Id: <20221118224540.619276-407-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?1749878925211425377?= X-GMAIL-MSGID: =?utf-8?q?1749878925211425377?= 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/media/tuners/qm1d1c0042.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/tuners/qm1d1c0042.c b/drivers/media/tuners/qm1d1c0042.c index 2d60bf501fb5..f9be7a721d2c 100644 --- a/drivers/media/tuners/qm1d1c0042.c +++ b/drivers/media/tuners/qm1d1c0042.c @@ -401,8 +401,7 @@ static const struct dvb_tuner_ops qm1d1c0042_ops = { }; -static int qm1d1c0042_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int qm1d1c0042_probe(struct i2c_client *client) { struct qm1d1c0042_state *state; struct qm1d1c0042_config *cfg; @@ -444,7 +443,7 @@ static struct i2c_driver qm1d1c0042_driver = { .driver = { .name = "qm1d1c0042", }, - .probe = qm1d1c0042_probe, + .probe_new = qm1d1c0042_probe, .remove = qm1d1c0042_remove, .id_table = qm1d1c0042_id, }; From patchwork Fri Nov 18 22:42:21 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: 23052 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486654wrr; Fri, 18 Nov 2022 16:40:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf7bhxnVHOrFneJv0esD1O3eDdSrzBx9CiSzJNIYayEwgX4nTvHNl9HaY+95fcet0UQOpcVx X-Received: by 2002:a17:907:2a10:b0:7a7:9b01:2a6c with SMTP id fd16-20020a1709072a1000b007a79b012a6cmr7925229ejc.153.1668818446231; Fri, 18 Nov 2022 16:40:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818446; cv=none; d=google.com; s=arc-20160816; b=jtopOY8vK+0azb4PVJsOi0d1Dge2Esn1o5sNddm9wexYxm1BVo9dDUeF6H98yUlVyd XAbBBzgzOy7bwzobTXI8P6WJz0Bm9Pn1FfiVB4XN+io8a7ovhjuKPDw5mcY0+e1O9nKx /yUv57fs9iCXsvzaGp8/XvbpzRyLgDcDp86KiLhEoZ8KOgmVBoZum9GPDdivx/OpSbxT SoszObyZ7oFO/WCJbOtsws4hCvZMdSVcXw5AQwFQSrTFSc7UEygTt5He6ysAf1kE5XQj UeXncUS+hY0/pjO0udgjphvXVN98nbg0wE5f+gf4i2p+EmuN/nD4xwYGunAIxTc5UdzU ouCA== 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=QN+Un4Md4DVL0nz2LSUf3SsECaPLWbuXXbhPFNRNlQA=; b=Tr3ie63mj02TP+gdLU9QkNk0jbvnXrcgAbPgv1gXyAUIgCILXRGYaGH56zfd6N/L3j +FgIyl/dRh0nXKtc2k3BK6Vk7UpueuXW9CvsZ9s6VaKiKhwAxs4mD0/wtVNf6NCJBQFg 4zovTptRYAEF2MAVbG6CHyQrTQX9WyWcsLabsTfGXOz31kTjF2TjM7Xts1byJxX8AQS/ o54BPc8kZwN9c54DQR6O0eEW/qBgVDzKuKeeCj+DuDbJtbijWddSsrXs24Co9/Dc2x98 /omJ0724TM+rWK1X06TeYJSHk/h7SzD+ORZe6wnbVa46l1HjHoE1ZEWoKDnzzWVae2uA mivg== 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 sg39-20020a170907a42700b00780a240cfd7si4380607ejc.493.2022.11.18.16.40.22; Fri, 18 Nov 2022 16:40:46 -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 S237956AbiKSAZR (ORCPT + 99 others); Fri, 18 Nov 2022 19:25:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236397AbiKSAYr (ORCPT ); Fri, 18 Nov 2022 19:24:47 -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 4142CC4C29 for ; Fri, 18 Nov 2022 15:38:22 -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 1owA99-0003ox-Mb; Fri, 18 Nov 2022 23:47:43 +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 1owA97-0058eM-Nk; Fri, 18 Nov 2022 23:47:42 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA97-0000JE-Bt; Fri, 18 Nov 2022 23:47:41 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Antti Palosaari , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 407/606] media: tuners/si2157: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:21 +0100 Message-Id: <20221118224540.619276-408-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?1749882970708687791?= X-GMAIL-MSGID: =?utf-8?q?1749882970708687791?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/media/tuners/si2157.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/tuners/si2157.c b/drivers/media/tuners/si2157.c index 476b32c04c20..3fa3dcda917a 100644 --- a/drivers/media/tuners/si2157.c +++ b/drivers/media/tuners/si2157.c @@ -875,9 +875,9 @@ static void si2157_stat_work(struct work_struct *work) dev_dbg(&client->dev, "failed=%d\n", ret); } -static int si2157_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int si2157_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct si2157_config *cfg = client->dev.platform_data; struct dvb_frontend *fe = cfg->fe; struct si2157_dev *dev; @@ -990,7 +990,7 @@ static struct i2c_driver si2157_driver = { .name = "si2157", .suppress_bind_attrs = true, }, - .probe = si2157_probe, + .probe_new = si2157_probe, .remove = si2157_remove, .id_table = si2157_id_table, }; From patchwork Fri Nov 18 22:42:22 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: 22743 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464967wrr; Fri, 18 Nov 2022 15:36:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf43kEOtEqTCFjkhKfvtngPonDLcV0DjQZs9M+jK6F8Zy/mhNEZkWTzIPGdW319sDD+Eq0vD X-Received: by 2002:a17:906:a18c:b0:7ad:9629:fb96 with SMTP id s12-20020a170906a18c00b007ad9629fb96mr7678786ejy.751.1668814572999; Fri, 18 Nov 2022 15:36:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814572; cv=none; d=google.com; s=arc-20160816; b=tiQUaRSKYjjz4BGW+ZyuW4FMkwmyoDtMpHQ3ORUDQgAUwDyOyUEPg2D15P0HNZsGEr z6K5r2b24S3PPVL2tsO3NNtqx2ak4mhdyalHldW4PR/r27zrSUwuhxFZOHuYkkhp5Qn4 kayDNXvqLULZ54+gde7ExUrlshvLI1yD10hTyldAj8UqzeGYu2VdV73RIY026M/jyJZ2 k/yrbdlMUmOMM1gvfIcv6cJXVpaiorpEl6V+vYa5j9JTgU2n+DKWkajSCUjmFGe4tSqt Pfxvs58SVTXxXc1oQj4voQTeyFWh3lKLYufRX7uGjzW2UMy+WSGIR53Ymg6XYOU90Zdy YLJw== 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=oJqd1DuA0+TLqjxmn3YRTEkIFsmYTMfBhVINekAozZg=; b=oIbTjO7zec/P99aNSB7uW8aSaMArZyBRWTCh+xHXrHsdvalrrEv0n+tSbuW/W2iMh/ 1A9sK8C9sFCFkH0DUa0MMn0+Rs4lszghRbGDjnUGAbU5Qsy0EO91H6cEPfa/pRk2J7dJ j/IKT41EzYzzoOVhWunJ+LhTU/Deb9CwBGJR1kFpvikmDWAHrKPBfP/Xda3TNMllXYhE n1ok7aLuV82PMr0tMA0HLlTFtQ3hAcAFlpno7D2o2bJhcEgWJvNsHQqkj7Cl/QSd28yI JXycCh48rSuYvzuqeIRfL+Gt6sVAivKYPROpWnHcQS/IS8MvHBaJ7uJpOCBYqR23N9Xb UTEw== 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 o19-20020aa7d3d3000000b0046909065335si2370355edr.525.2022.11.18.15.35.48; Fri, 18 Nov 2022 15:36: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 S236290AbiKRXe7 (ORCPT + 99 others); Fri, 18 Nov 2022 18:34:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235978AbiKRXbp (ORCPT ); Fri, 18 Nov 2022 18:31:45 -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 89F7C64FF for ; Fri, 18 Nov 2022 15:19:22 -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 1owA99-0003p7-V2; Fri, 18 Nov 2022 23:47:43 +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 1owA97-0058eP-P1; Fri, 18 Nov 2022 23:47:42 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA97-0000JI-HI; Fri, 18 Nov 2022 23:47:41 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Antti Palosaari , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 408/606] media: tuners/tda18212: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:22 +0100 Message-Id: <20221118224540.619276-409-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?1749878909271200603?= X-GMAIL-MSGID: =?utf-8?q?1749878909271200603?= 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/media/tuners/tda18212.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/tuners/tda18212.c b/drivers/media/tuners/tda18212.c index eb97711c9c68..5fdf05a97415 100644 --- a/drivers/media/tuners/tda18212.c +++ b/drivers/media/tuners/tda18212.c @@ -173,8 +173,7 @@ static const struct dvb_tuner_ops tda18212_tuner_ops = { .get_if_frequency = tda18212_get_if_frequency, }; -static int tda18212_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tda18212_probe(struct i2c_client *client) { struct tda18212_config *cfg = client->dev.platform_data; struct dvb_frontend *fe = cfg->fe; @@ -264,7 +263,7 @@ static struct i2c_driver tda18212_driver = { .driver = { .name = "tda18212", }, - .probe = tda18212_probe, + .probe_new = tda18212_probe, .remove = tda18212_remove, .id_table = tda18212_id, }; From patchwork Fri Nov 18 22:42:23 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: 22832 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471418wrr; Fri, 18 Nov 2022 15:56:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf7cN7WSc0zDHtdEIrc4iz40nQI78hfgti7OQJfnyurffvgMKR4td7yVIiceZo0Awfm3dJ1O X-Received: by 2002:a17:906:560c:b0:7ae:5884:81b1 with SMTP id f12-20020a170906560c00b007ae588481b1mr7808899ejq.155.1668815806882; Fri, 18 Nov 2022 15:56:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815806; cv=none; d=google.com; s=arc-20160816; b=PSdeSsRWUEhIQ718+RW4ADKRw/EmR6z2o7qXikjg+OtPl2BZd5HbZZqVD2ImgJJTDe qyoMu8ryRoqcPTlUVz5C0NLcpHEQUDaG+7PozXbv1/mVvGlbD7eipcaawJn8Kz8gMQhV GOPOx1xFsVv6Cg5/1xSjPtO7OIQpmtQMheLZyU8F/4agdISIaHs05upOGOE2s6BUzRur X3ujXHn4Z+n+oFfH0ddfAA5Y4QTYYMSj5n6tUzbdvcembJKoD2WCPi0krfj2c+yhmUZp 2K5Wtw8Z565W6wA62b0VThfQ1dIMKi4rzMaR+a7vo84JB/WXVMHHwnYuRfjfRSCZ9XEL w1zQ== 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=RkAuAbLgi2hGbKyVot/XIisbSCTChR0xr3NyrgsW65I=; b=Abc7lYYP3YBCRC4v1/+uONahboxb3wjxin9TCiRN1khMVtclrNl3iRg72zKiK3r76M CTktFe8NtrVFy2lEK8vvj6P9eY1ND+A0HHX+SPszSLdU71l/ZqhcWd/Py51r/wZt9k1C ApyBjCDwHRVpuIW39JpYw3quc9RcgDM/nJpYQ+bXk4v8gz5+knz2T50HtbmKkjE9UQsG SnKdVv2jUOk0gAUYcfHVayguJ/R2tkSvfOGpQHnpdjHa5MX9rGQhzEt0FUdTzYz/n7T0 QeU/no4PiDt77S74e+6OUnjs3dTcmwIGATnHh8lyJyfxp+YT4oodTC/JYZcipaC1GBjm R6Iw== 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 de36-20020a1709069be400b007ad88f87ed6si3508964ejc.993.2022.11.18.15.56.23; Fri, 18 Nov 2022 15:56:46 -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 S232754AbiKRXsG (ORCPT + 99 others); Fri, 18 Nov 2022 18:48:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234607AbiKRXqs (ORCPT ); Fri, 18 Nov 2022 18:46: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 25D5FDAD23 for ; Fri, 18 Nov 2022 15:25:29 -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 1owA99-0003pY-Ta; Fri, 18 Nov 2022 23:47:43 +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 1owA97-0058ea-TP; Fri, 18 Nov 2022 23:47:42 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA97-0000JM-MU; Fri, 18 Nov 2022 23:47:41 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Olli Salonen , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 409/606] media: tuners/tda18250: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:23 +0100 Message-Id: <20221118224540.619276-410-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?1749880203594243214?= X-GMAIL-MSGID: =?utf-8?q?1749880203594243214?= 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/media/tuners/tda18250.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/tuners/tda18250.c b/drivers/media/tuners/tda18250.c index e404a5afad4c..66ff2d035de7 100644 --- a/drivers/media/tuners/tda18250.c +++ b/drivers/media/tuners/tda18250.c @@ -741,8 +741,7 @@ static const struct dvb_tuner_ops tda18250_ops = { .sleep = tda18250_sleep, }; -static int tda18250_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tda18250_probe(struct i2c_client *client) { struct tda18250_config *cfg = client->dev.platform_data; struct dvb_frontend *fe = cfg->fe; @@ -878,7 +877,7 @@ static struct i2c_driver tda18250_driver = { .driver = { .name = "tda18250", }, - .probe = tda18250_probe, + .probe_new = tda18250_probe, .remove = tda18250_remove, .id_table = tda18250_id_table, }; From patchwork Fri Nov 18 22:42:24 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: 22882 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472227wrr; Fri, 18 Nov 2022 15:59:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf5D2wAuGjqiLqMvrtE827ozFoyx/aFZ/3cRlpJMSL4QhTNMIqMhFp/+gdByvgWrp4BGsAF5 X-Received: by 2002:a65:6118:0:b0:476:d2e9:778e with SMTP id z24-20020a656118000000b00476d2e9778emr8549150pgu.309.1668815986121; Fri, 18 Nov 2022 15:59:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815986; cv=none; d=google.com; s=arc-20160816; b=AqcIP48fw4FKCNPxjfyfo+/7jJ7hyxgsaQ8dkrVXv5eePp11LKHmE5/+TxjrCWTgzP il6oVlA1Wu+ZlvK8AbNObTU5B17+lOMi3BxVENduYYYLA61en4Ey5vOHpqLxxcfRUmK1 C0+XqzR+jh/Lx0kixWX1PvIVp+Hw4wJHh7BwOHnWogmOqMNdo5H7dz3iaBPV/oIGBe4N 1ZYMoVLhf++POWKUBx2yh9enap7wqfMWdyHDEgD8XvOILyzT/oPHzJZuBfCvCVLPwbN2 Sc/Iu1usqqEc9kW8RUfRsdXWIRR03zXcrzQr+OhckSOv5JEM+TN9W9VM/bQcsAkohXD0 1Mpw== 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=/2jEVjLNK67wYaGD+mbbVZGpIuvz7YsSkqbGf2fvDEs=; b=mSavjdq29SqCE2BVfo5QJ+PSOSx3aiR0ZUj5apXV2U0/sLgdJU+8xpsh4z+Nfctvhr O4CH1YVEkjH6kIhJ0zLa9CHUJ5OQnEgrElv9oLZ+WFsUsJOc68dldz3T3sgFQgMH5ZAK CEmOEyGhIryAg2m/7Uy7PWh6xQjQd4ZUHeT3VUw4aiddPSx0C8z4zTKonzzLFbxMbdaY vgrrTpM64hVm06xDZU/BLJKDKvA0gdSfGFfRMqpJVHkAsHsnV7fdLv3uNzzyO8jP+fMX KGjLeu40m2MYEqJeL5D/HMSBbEmmNUEiwdTaxpIP48G33jPTf/c1LvowLIsm16o3P/ed BydA== 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 ls5-20020a17090b350500b00202880e0827si9901856pjb.28.2022.11.18.15.59.32; Fri, 18 Nov 2022 15:59:46 -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 S233544AbiKRXxX (ORCPT + 99 others); Fri, 18 Nov 2022 18:53:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236981AbiKRXwA (ORCPT ); Fri, 18 Nov 2022 18:52:00 -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 64183C758B for ; Fri, 18 Nov 2022 15:27:18 -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 1owA9B-0003sI-9A; Fri, 18 Nov 2022 23:47:45 +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 1owA98-0058ex-QY; Fri, 18 Nov 2022 23:47:43 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA97-0000JP-Rw; Fri, 18 Nov 2022 23:47:41 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Antti Palosaari , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 410/606] media: tuners/tua9001: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:24 +0100 Message-Id: <20221118224540.619276-411-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?1749880391297546022?= X-GMAIL-MSGID: =?utf-8?q?1749880391297546022?= 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/media/tuners/tua9001.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/tuners/tua9001.c b/drivers/media/tuners/tua9001.c index d141d000b819..ac38afd3441a 100644 --- a/drivers/media/tuners/tua9001.c +++ b/drivers/media/tuners/tua9001.c @@ -167,8 +167,7 @@ static const struct dvb_tuner_ops tua9001_tuner_ops = { .get_if_frequency = tua9001_get_if_frequency, }; -static int tua9001_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tua9001_probe(struct i2c_client *client) { struct tua9001_dev *dev; struct tua9001_platform_data *pdata = client->dev.platform_data; @@ -256,7 +255,7 @@ static struct i2c_driver tua9001_driver = { .name = "tua9001", .suppress_bind_attrs = true, }, - .probe = tua9001_probe, + .probe_new = tua9001_probe, .remove = tua9001_remove, .id_table = tua9001_id_table, }; From patchwork Fri Nov 18 22:42:25 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: 22933 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474640wrr; Fri, 18 Nov 2022 16:04:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf62HJ6WzLGyZ7BeLiePMBU3nhL7PPJ4Y6eKTmU5NUmFPFQ1UdG6oGFXI4bz+7tI4C0bauzu X-Received: by 2002:a17:906:cb90:b0:772:e95f:cdce with SMTP id mf16-20020a170906cb9000b00772e95fcdcemr7943752ejb.78.1668816281672; Fri, 18 Nov 2022 16:04:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816281; cv=none; d=google.com; s=arc-20160816; b=cEDrRInj409G9S3S/+N1HxLD7mpy9yd4sO0wURzO/mVmgPXYDWxBx3zYeu9lqzd46n k7r/tyKRpllsvSlbha68TUd0Ao1GkEHXr6Uzb+M5e4f8G+TFuQuPWtmIZlOde0XvFxfI dD3IDKhyF/zNkCFWyBzHIkJsfoSQ5Jr0gTGWjMmWZs6f/UH3H0Vfy+xnYmb/avKg33oU rVR+AjKRCwihwR+o2lkWfMOPFRr7tnQsAIJEOCc2TIxZ/UAA5MYG53UZyy+rwKIIY6mA 4g7t7K6HfCaWZu/ivAlebAnlHVPHHZlyx5h0fCuR1nMyZHqRKsQsI/TY8yUOCtkR3mYm asoA== 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=dAIrEMKJIH3Fs1cptEOLgVbAHuxz6m2tadVHsI2OmFs=; b=0cFwllbEG0U9ygxtd19Z75yx0+Qag1AiQU+0JaYMamLZ3eAdO25cwadkb+eT7UDqW3 v9vAQFDFS7iAtfzRRjsy9Xy5aMT3UZ8bJQLawao2s4W192SHDPlEPc9UaS57RTwLUp0I hD3cLAbwqnD6eyVgcbeBVG2oazWOQSiknyeSocePloISUjYQfqpSsgx8+uIASxUUO3wh mqW5VMFC1G0iZBF7W4zRGWnqR4PI6x/aF3bQtZmVwMPz8Ow+CqwoWHfQmx1OZqY1MWQN Wy/XFLYXrhpnTkRbqOQWSUfidgWyIUDQUT9pl0LMbAQa1lBCLFCadxwYEw1zzcm+ImMn EsHg== 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 dd20-20020a1709069b9400b00782e1a663dcsi4812681ejc.435.2022.11.18.16.04.14; Fri, 18 Nov 2022 16:04:41 -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 S237265AbiKRX7o (ORCPT + 99 others); Fri, 18 Nov 2022 18:59:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237160AbiKRX5A (ORCPT ); Fri, 18 Nov 2022 18:57:00 -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 E03D67FF1F for ; Fri, 18 Nov 2022 15:28: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 1owA9A-0003qe-J0; Fri, 18 Nov 2022 23:47:44 +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 1owA98-0058ei-6Y; Fri, 18 Nov 2022 23:47:43 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA98-0000JS-2R; Fri, 18 Nov 2022 23:47:42 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Hans Verkuil , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 411/606] media: usb: go7007: s2250-board: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:25 +0100 Message-Id: <20221118224540.619276-412-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?1749880701313092076?= X-GMAIL-MSGID: =?utf-8?q?1749880701313092076?= 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/media/usb/go7007/s2250-board.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/usb/go7007/s2250-board.c b/drivers/media/usb/go7007/s2250-board.c index 2f45188bf9d4..29dfcc6d0b0a 100644 --- a/drivers/media/usb/go7007/s2250-board.c +++ b/drivers/media/usb/go7007/s2250-board.c @@ -494,8 +494,7 @@ static const struct v4l2_subdev_ops s2250_ops = { /* --------------------------------------------------------------------------*/ -static int s2250_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int s2250_probe(struct i2c_client *client) { struct i2c_client *audio; struct i2c_adapter *adapter = client->adapter; @@ -621,7 +620,7 @@ static struct i2c_driver s2250_driver = { .driver = { .name = "s2250", }, - .probe = s2250_probe, + .probe_new = s2250_probe, .remove = s2250_remove, .id_table = s2250_id, }; From patchwork Fri Nov 18 22:42:26 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: 22830 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471406wrr; Fri, 18 Nov 2022 15:56:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf7jEQZG6iNHgoYAE2rfoKFF4Dd0GmRX8ZssijjImM9efndCeQ8NY4RlVc6Bw/Pw8WQ0W6Eb X-Received: by 2002:a17:906:4a88:b0:7ad:86f9:14c7 with SMTP id x8-20020a1709064a8800b007ad86f914c7mr7640416eju.300.1668815804832; Fri, 18 Nov 2022 15:56:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815804; cv=none; d=google.com; s=arc-20160816; b=sdEm0uRim73go8EpLyjHXQ5slp7xx+rKZgOvPZSQsoJDpDtzlYGlVRizlZj7bbXAec Wem1Ol6bzAwIxDiKKsLsdbZZ4SDulIsZWbvECbw+TAwEZiuKq8BS2xsgPr1SZVmMed8V c+jxDFW4hBU9I/M33Qm83Gn/OziQWgPn9dGmoR3+eDQiMqby6QZQzW9BYWSrPxbDwSjD C7P4afrZxFZ3y5bKXwK6GkuWy9YRTzSBuOTncbNhFhExh8BADDYXitFJl22H9w6FGepz f5hIEGKcLRF4Jal+TcqwhnfqhPYzfcTPnvDnwXXotyVxLThuzUlM5jYC48P1ICtCJltC y6CA== 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=KDqFFbat2t78VlrQVz2pJ8M0z+uJhZITDUprSPekPjw=; b=QDdOUyZ3WbZtnumYgecAML5+vT6tESbwqNWDJqfqxH9/p7v0+/b+YTMNYW0tPZWZ3H 75y28dTDasK70aWVlJE2nZKCwacxkgRlPwOecPNC7dBagBcy+k3A/cmBfX0FuDKxrWFC zw/m0gj0+waL9AGVAZ2xMq13E8rCqERNQh8DR/wHwdlaHOnfYEIbsE66mokVVTuNPx4/ LCPfYzA18FR0kfOc45CxMlpl7agFnksEGOHFxSJcpUIh0OjcCpNaSh247WjzbidA5kOM RzgNzOj7fhdyCm1YaRpoXkdhDxQUxSQBHPEJgYNQ7oGpN4M7MdKh/k5MTBNLYI960XNL 63yg== 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 b19-20020aa7c6d3000000b004692bde507bsi1438887eds.431.2022.11.18.15.56.20; Fri, 18 Nov 2022 15:56:44 -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 S231189AbiKRXqu (ORCPT + 99 others); Fri, 18 Nov 2022 18:46:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235031AbiKRXqZ (ORCPT ); Fri, 18 Nov 2022 18:46:25 -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 82EBAD9B8E for ; Fri, 18 Nov 2022 15:25:20 -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 1owA9A-0003qK-MZ; Fri, 18 Nov 2022 23:47:44 +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 1owA98-0058ef-3Z; Fri, 18 Nov 2022 23:47:43 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA98-0000JX-Al; Fri, 18 Nov 2022 23:47:42 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Hans Verkuil , Greg Kroah-Hartman , Jean Delvare , Yan Lei Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 412/606] media: v4l2-core/tuner-core: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:26 +0100 Message-Id: <20221118224540.619276-413-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?1749880201409775226?= X-GMAIL-MSGID: =?utf-8?q?1749880201409775226?= 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/media/v4l2-core/tuner-core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/v4l2-core/tuner-core.c b/drivers/media/v4l2-core/tuner-core.c index 33162dc1daf6..4d87ca2ba017 100644 --- a/drivers/media/v4l2-core/tuner-core.c +++ b/drivers/media/v4l2-core/tuner-core.c @@ -625,8 +625,7 @@ static void tuner_lookup(struct i2c_adapter *adap, * During client attach, set_type is called by adapter's attach_inform callback. * set_type must then be completed by tuner_probe. */ -static int tuner_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tuner_probe(struct i2c_client *client) { struct tuner *t; struct tuner *radio; @@ -1413,7 +1412,7 @@ static struct i2c_driver tuner_driver = { .name = "tuner", .pm = &tuner_pm_ops, }, - .probe = tuner_probe, + .probe_new = tuner_probe, .remove = tuner_remove, .command = tuner_command, .id_table = tuner_id, From patchwork Fri Nov 18 22:42:27 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: 22896 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472473wrr; Fri, 18 Nov 2022 16:00:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf5rD6+WW6BQYqvwh0R32txjmyuulNJlnRnBnDiN9phd/S5blnbwVysGKr0t9P0kgkggWyNy X-Received: by 2002:a17:90b:3c0d:b0:20d:478a:9d75 with SMTP id pb13-20020a17090b3c0d00b0020d478a9d75mr16041962pjb.149.1668816015827; Fri, 18 Nov 2022 16:00:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816015; cv=none; d=google.com; s=arc-20160816; b=pCuYMufMC+Ecrt6gUc4m541ZAdG3cCMgbHt1u6dpIXUGiajJjexLZjXN7LaguL7HbX mMl7k82EAG9GPusKWY/8iVWkrpbfwsrShGgAHrYjU7SrHOx/HZ5SAs174/vV+W9YecAu Okma4A4SorgjX8QZCyeZs01BoYu9G91OCiYwmBQ3JCErab4EkPHY6kk33d6c5rUfdaqZ WEAy3bBU7AonxgXDp+PRTKxtT/kMj1gocZwLx9xcE5Chhb7u6FDYxYormo3IgYSu+nPW Ke+48fDgdwA76W38PmiGdDlGoM6Iu97iCLzvu76YdPqfbNoufZg9ipAMxAZsl0Iocju3 tgBA== 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=9odek4cby5UAIrZ95XKmiWQljqYlA8KSpuE9r9FSS+Q=; b=UmFJKo3OUj/CbS1D0rQA70pVIYn37b2kufI59iFlLeHImqlY2BpWkohtNvn3Vvl4pY NVHyaPWg0v2gyjeIUD5JEFivQbGZYUu/DuVkhsarcnzRji5azYpaN3zPCuYlLne3ELVq d0YA3v9vCvAJ1YhnaX2UGudBOboqfWmKI/xbe2DcZ0hpau+JiU59GpoZKO3mJblhRKEu +5Ci94SHVzQoWFp+u5RS80XLoAdtZIT/PJPhUMOBtYEF6HOHTvMHXmTIWkWO5ncbw3R5 1bTZtw/aHK7ZtOnqdeWbymfRj/yJBtWwxIFwcnMUoEVKB7Tu+jnr8F0EFwqv2xRyO3xl ldew== 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 w8-20020a63f508000000b00422c003b4c9si5001993pgh.46.2022.11.18.15.59.59; Fri, 18 Nov 2022 16:00:15 -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 S233909AbiKRXye (ORCPT + 99 others); Fri, 18 Nov 2022 18:54:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230494AbiKRXwd (ORCPT ); Fri, 18 Nov 2022 18:52:33 -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 9D198C75A7 for ; Fri, 18 Nov 2022 15:27:39 -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 1owA9A-0003qx-O7; Fri, 18 Nov 2022 23:47:44 +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 1owA98-0058em-Ad; Fri, 18 Nov 2022 23:47:43 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA98-0000Ja-HA; Fri, 18 Nov 2022 23:47:42 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 413/606] mfd: 88pm800: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:27 +0100 Message-Id: <20221118224540.619276-414-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?1749880422199216636?= X-GMAIL-MSGID: =?utf-8?q?1749880422199216636?= 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/mfd/88pm800.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index 0f7cb3512f01..4d139cc31c25 100644 --- a/drivers/mfd/88pm800.c +++ b/drivers/mfd/88pm800.c @@ -528,8 +528,7 @@ static int device_800_init(struct pm80x_chip *chip, return ret; } -static int pm800_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int pm800_probe(struct i2c_client *client) { int ret = 0; struct pm80x_chip *chip; @@ -599,7 +598,7 @@ static struct i2c_driver pm800_driver = { .name = "88PM800", .pm = pm_sleep_ptr(&pm80x_pm_ops), }, - .probe = pm800_probe, + .probe_new = pm800_probe, .remove = pm800_remove, .id_table = pm80x_id_table, }; From patchwork Fri Nov 18 22:42:28 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: 22818 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp470759wrr; Fri, 18 Nov 2022 15:54:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf6bQFUmzWAIDptWGYBNQ3kc8OB93957x6Kt/J/8VD2p8Sd4zJR2oam9T3N+piNVBd0FuOK1 X-Received: by 2002:a05:6402:1f89:b0:458:caec:8f1e with SMTP id c9-20020a0564021f8900b00458caec8f1emr7956099edc.280.1668815678208; Fri, 18 Nov 2022 15:54:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815678; cv=none; d=google.com; s=arc-20160816; b=gHJzQxn6sbwf7AHxR6dOdKL7+WpwtqTDYaA7UJj+ME75v+LFly0VpwLL3aiYklTL6w WF90q7PEFaFQBOS1Wv1zgTcIGBvWATepC0LtboSbgu5JRntX2nOc18VDUakfzCNBkKiE 3NBDD0CrypHZvI9KTtECxmH9mZ0rWV7tksm+d2u6GzglTLJi7L4kxws7VyhwcGmzjEOP Ndt9p7LMQxi9A2GqJFwup83sKQV5DQn936YZY/BkV58NRsvMaIluT6/9pENbD4vxxIE1 cBYul2sgBRa/0dOiAmkuNpmEgcZw9J4/RRZRv2BhdXfXkyqPwaxsIbA5SnNtfuTbmjIz ehag== 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=RnwOEObmoq5Ls+UdigJJKtUTl8TVjKyIrqKGBAX1s0A=; b=wzBE0AU1apdkSDfZfeOlF2R2Acy4VMKHWKtsZ4T/PppsBc9iBwyT7IxvHV1RDBNEIr mHE4ziISXYm8LSKXecMPM4GmhNYvlcqtzlgNnrgflcA+He/srk5JPSlucV+rXYWf67MU 2F/4vLYgS7fQyC0uEEXS1XC54Rlx185x+zsjCWCwFUQKNL1zBUpR+ToRXOGrWGFjFd6h i6/fDcydJHdr+WHKyI/H2vCqZ0vEDNazOZbVmZ+YL3Ucw/19Tg1r/i9k1mZEUFrjhY/r Ae72O0ygGJZtG0tuea4kwcaNIV8lQCQBcvHQLwAcmwAl8F/WhuL93WQNsCYN4DXpR38m 92Bw== 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 tl2-20020a170907c30200b007721f88d3e0si3603140ejc.554.2022.11.18.15.54.14; Fri, 18 Nov 2022 15:54:38 -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 S236781AbiKRXlJ (ORCPT + 99 others); Fri, 18 Nov 2022 18:41:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236575AbiKRXjJ (ORCPT ); Fri, 18 Nov 2022 18:39:09 -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 77938C5B5E for ; Fri, 18 Nov 2022 15:23:03 -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 1owA9A-0003sB-OJ; Fri, 18 Nov 2022 23:47:44 +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 1owA98-0058ew-Pk; Fri, 18 Nov 2022 23:47:43 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA98-0000Jg-Mt; Fri, 18 Nov 2022 23:47:42 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 414/606] mfd: 88pm805: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:28 +0100 Message-Id: <20221118224540.619276-415-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?1749880068838917188?= X-GMAIL-MSGID: =?utf-8?q?1749880068838917188?= 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/mfd/88pm805.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/88pm805.c b/drivers/mfd/88pm805.c index a7d410e07e51..352f13cb1481 100644 --- a/drivers/mfd/88pm805.c +++ b/drivers/mfd/88pm805.c @@ -209,8 +209,7 @@ static int device_805_init(struct pm80x_chip *chip) return ret; } -static int pm805_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int pm805_probe(struct i2c_client *client) { int ret = 0; struct pm80x_chip *chip; @@ -254,7 +253,7 @@ static struct i2c_driver pm805_driver = { .name = "88PM805", .pm = pm_sleep_ptr(&pm80x_pm_ops), }, - .probe = pm805_probe, + .probe_new = pm805_probe, .remove = pm805_remove, .id_table = pm80x_id_table, }; From patchwork Fri Nov 18 22:42: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: 22752 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465117wrr; Fri, 18 Nov 2022 15:36:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf5q/dzkKE/AZlVm/6iRIVo2eewrKBGUbp91K+dRTvGfkMORspIeexW31U3b2amB1sKmKSJu X-Received: by 2002:a17:906:b210:b0:7ae:d116:fabb with SMTP id p16-20020a170906b21000b007aed116fabbmr7665894ejz.317.1668814602970; Fri, 18 Nov 2022 15:36:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814602; cv=none; d=google.com; s=arc-20160816; b=YdKaBAkMv9817LUm3AxmIsAqqXlCI3K+pXENKXbJ5gTXMtPwz2Lm4ikTeXpt5/O1FS BC4MhJnWCOKv6sLRecVNu94KybK2xyNtZTLgpZ86D3GgFkKUppVDRiycjghx4sDN8zxq S9HjbayDgCvaXcRHaoFtPu+Z3tSAVP7hojQ8tJez6nxBp/nLpfFJ1qd3NZw0yX1wKnbm F0jAa2PxrTQ78EHM/nWz6ov3q1be2Jk9YO/XzLEY+EPkkuIcEJWMoUGvGbzprvGGqjXC hLyScLyDBdOpj1ZRKrdx6uJuPukfWS96KOAwJWmfheUboCqyoWlQ5DzYjv5aIs8JpfxG luJA== 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=4Yn2XYKUg/LQMjQLfrekfseShe8BK8YheC3qNuWwV/Y=; b=h/vyPkfnrX/WShCq4FAjPRDCD4v6ckYREKylODvDdhsSMmZPCmPCBf4fqa3bD3RND7 bjPXnpCO8InH9kQUjLiJTh8nQDuEelN0Cmn/xPRCnu/H+Wgy2bm9Ef/alwr0jSRMTzIY SN6y8wcFkR+jCCZCrERa4hAbCimW3Kki2/lt6U4GD2mnmfTyU5ZTYz9rdHAR8xp9pxNN D/Bod1bUa9mEpMiDo8jjr/gvRTPSHmYUtT6fd1a4LLT335TMb6s5vkQL8SIFryp7wCNx PLB8glvKKDwIkQMAsrdmUm00AhWqIDuwaME8Uy+OnB+QZFKbmz3RPQsKX4PUsOsNxe6M 7N0A== 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 h13-20020a0564020e8d00b0046751bddcf0si3710940eda.425.2022.11.18.15.36.19; Fri, 18 Nov 2022 15:36:42 -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 S236338AbiKRXfk (ORCPT + 99 others); Fri, 18 Nov 2022 18:35:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236158AbiKRXcH (ORCPT ); Fri, 18 Nov 2022 18:32:07 -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 4C125A13D3 for ; Fri, 18 Nov 2022 15:19:47 -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 1owA9B-0003rj-5c; Fri, 18 Nov 2022 23:47:45 +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 1owA98-0058es-Kc; Fri, 18 Nov 2022 23:47:43 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA98-0000Jn-Tf; Fri, 18 Nov 2022 23:47:42 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 415/606] mfd: aat2870-core: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:29 +0100 Message-Id: <20221118224540.619276-416-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?1749878941360376345?= X-GMAIL-MSGID: =?utf-8?q?1749878941360376345?= 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/mfd/aat2870-core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/aat2870-core.c b/drivers/mfd/aat2870-core.c index 8a3967c3f026..f253da5b246b 100644 --- a/drivers/mfd/aat2870-core.c +++ b/drivers/mfd/aat2870-core.c @@ -332,8 +332,7 @@ static inline void aat2870_init_debugfs(struct aat2870_data *aat2870) } #endif /* CONFIG_DEBUG_FS */ -static int aat2870_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int aat2870_i2c_probe(struct i2c_client *client) { struct aat2870_platform_data *pdata = dev_get_platdata(&client->dev); struct aat2870_data *aat2870; @@ -452,7 +451,7 @@ static struct i2c_driver aat2870_i2c_driver = { .pm = pm_sleep_ptr(&aat2870_pm_ops), .suppress_bind_attrs = true, }, - .probe = aat2870_i2c_probe, + .probe_new = aat2870_i2c_probe, .id_table = aat2870_i2c_id_table, }; From patchwork Fri Nov 18 22:42:30 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: 23127 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488347wrr; Fri, 18 Nov 2022 16:45:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf7zDFmEhUxSxE9dzjkwqxnyXnVMMmhcD07Pk7KrieOqVjA5HZmxPVG6nrW2VQprgoq2IibI X-Received: by 2002:a17:903:3241:b0:186:dcc3:5d1d with SMTP id ji1-20020a170903324100b00186dcc35d1dmr2028749plb.20.1668818742584; Fri, 18 Nov 2022 16:45:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818742; cv=none; d=google.com; s=arc-20160816; b=ylHOi5fhxYdaG2vRP7E2rNBcS+F4NH5ZaM4EnGnlBhFotJYUgBGslbR3ZjDL0dKq1a AGGgcD+x9hQaY+RFasfDg3BZts214DZWv8wvT6Glqot5hQMqltJ+V2C+Av166NbWREwv Jrd14Lu9wPfIRA3xFC6zZvOeMkiJ2qBo3gP5+FHy1YB4YVQvsAhLOt1wptxr6kzYwasi QU8HmnFO8vt2f5+UejnaTscxDeOxVBO041x/dBwFqgmfYd7Kmu6zXOCtArIYMjtSJz5s l4d6yLh+LZgFNAN6OdCDI+YSWKkBx4vr1JnuRieV2JapXobrxCUfbWftESuS/EM49ZXp ABUQ== 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=Ky8zqSCyZ7lLyc2ESWNVD5XSBy3+BtgqyGy8q0/jPKQ=; b=TDO2coCoQZ+MazsZGchvb+Tblw2KLPE0+zoVcotvPn5gA4M2J3U/73LAeOT/Vo5WEL rpU7sIoX608WVLvzz0FWj9/BC8xqJSMWDCe9v5i1nuRGf0AOU+tvdI/JEZkkBCl1A25d Tkjs4QH3T1BtLrj2gvhdt6H68RmGPekiz31+VxFR0mqoyxmXG4tM7sApo/vDq7oKnOyQ YEDop3A2Y3nWG6D3FAb2pzwemKg2RmvGJVdXl+qpSi5L/z/XTwsx9F71AnIFhvhbQUab LOYVP676GJTP/4pkX8WKNGsoII/Y0qaMIp/B5+BhuBuv63wwo5lzLFAQcScceRfgrNKK BuUw== 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 rj5-20020a17090b3e8500b001fe41707a2esi9551777pjb.90.2022.11.18.16.45.23; Fri, 18 Nov 2022 16:45:42 -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 S235638AbiKSAjh (ORCPT + 99 others); Fri, 18 Nov 2022 19:39:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235127AbiKSAij (ORCPT ); Fri, 18 Nov 2022 19:38:39 -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 350BEC78C4 for ; Fri, 18 Nov 2022 15:44:14 -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 1owA9B-0003tR-Pv; Fri, 18 Nov 2022 23:47:45 +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 1owA99-0058fA-7V; Fri, 18 Nov 2022 23:47:44 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA99-0000Js-5N; Fri, 18 Nov 2022 23:47:43 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 416/606] mfd: act8945a: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:30 +0100 Message-Id: <20221118224540.619276-417-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=ham 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?1749883281622005612?= X-GMAIL-MSGID: =?utf-8?q?1749883281622005612?= 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/mfd/act8945a.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/act8945a.c b/drivers/mfd/act8945a.c index d3520430997c..bcf0fda15f0c 100644 --- a/drivers/mfd/act8945a.c +++ b/drivers/mfd/act8945a.c @@ -28,8 +28,7 @@ static const struct regmap_config act8945a_regmap_config = { .val_bits = 8, }; -static int act8945a_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int act8945a_i2c_probe(struct i2c_client *i2c) { int ret; struct regmap *regmap; @@ -71,7 +70,7 @@ static struct i2c_driver act8945a_i2c_driver = { .name = "act8945a", .of_match_table = of_match_ptr(act8945a_of_match), }, - .probe = act8945a_i2c_probe, + .probe_new = act8945a_i2c_probe, .id_table = act8945a_i2c_id, }; From patchwork Fri Nov 18 22:42:31 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: 23044 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486587wrr; Fri, 18 Nov 2022 16:40:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf44AuUTuzP6RA2BhN+t3aWQNg+CE+ztPebHCGx94si+cqUck7iLnXfdkTwIYaBlm8700GwY X-Received: by 2002:a05:6402:528f:b0:461:9cbd:8fba with SMTP id en15-20020a056402528f00b004619cbd8fbamr8328005edb.19.1668818435854; Fri, 18 Nov 2022 16:40:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818435; cv=none; d=google.com; s=arc-20160816; b=xUai2XBHqM4wHv6zBK2hsyyDHeS+Kw0sMGjwN7R30wHm6WBmJXFOakwnQge8saInE8 0RTtjuACbJOk7DFknDn7mWplvX/EVE6fW+WYpjgj5+lj0lOaVxJYVJ1usjk4p5fA80+i pNmql5i16LwYzAb7XBb7nbBDb2HHMZx64a1MWXTWLvCoLE4NAD9WoFxtRAO/B+Da9O/z bjFiaIRe49icEtMeNeZJexkTl/zAW22uYs3v7ySSchAT1NdbiWN0xE0J4RnVNxBWKgss CRCY2SjtyWWxM2zOqCuUyb1gWC1CJ9padgAnFDVxylBLZfi3Twk3UuH3IWffCeUJt+rk 81aA== 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=0iU3sOAedkWdbDbJfjs68ikyWqHy9PanOP94FDLpBFI=; b=cZfAwv6im/0gx5D1d1nWzyseQbgCr0e9Oh4u6hBJ3EwLyKTMV5v8e/w5CzRexPni2/ +AxKAhqNXqH9i3yx727bfJScqznFY7x+KnjO8tSG452WVHbstCbVxRcbIA9xySMS/6gK mgfhmc99DrybZDBcjWg8xcl4+unjd4ienbJwrTy8yYL34e9FHAk/WwH8YIussBg07giy tZAV9r61nfA8mQC0NloZz40PGuVzzvnR87dsY6ZiFEyw/W24Xe0UbNaz3Kuuy8W1L3TQ J4Ere0wdeF+TkKhP4FcQ1o9A6syvxcPU41Lh1sWfIW3ZUMZ5arixI2dSwmTJmq/yNs9+ /oWA== 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 e20-20020a1709067e1400b007269ef1872esi3401492ejr.897.2022.11.18.16.40.12; Fri, 18 Nov 2022 16:40: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 S237967AbiKSAUl (ORCPT + 99 others); Fri, 18 Nov 2022 19:20:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237839AbiKSAUB (ORCPT ); Fri, 18 Nov 2022 19:20:01 -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 15375FF41E for ; Fri, 18 Nov 2022 15:36: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 1owA9C-0003tc-8T; Fri, 18 Nov 2022 23:47:46 +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 1owA99-0058fE-9m; Fri, 18 Nov 2022 23:47:44 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA99-0000Jx-Be; Fri, 18 Nov 2022 23:47:43 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Michael Hennerich , Lee Jones 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 417/606] mfd: adp5520: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:31 +0100 Message-Id: <20221118224540.619276-418-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?1749882960289990724?= X-GMAIL-MSGID: =?utf-8?q?1749882960289990724?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Acked-by: Michael Hennerich --- drivers/mfd/adp5520.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/adp5520.c b/drivers/mfd/adp5520.c index 882eddc32f8e..cb168efdbafe 100644 --- a/drivers/mfd/adp5520.c +++ b/drivers/mfd/adp5520.c @@ -204,9 +204,9 @@ static int adp5520_remove_subdevs(struct adp5520_chip *chip) return device_for_each_child(chip->dev, NULL, __remove_subdev); } -static int adp5520_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adp5520_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct adp5520_platform_data *pdata = dev_get_platdata(&client->dev); struct platform_device *pdev; struct adp5520_chip *chip; @@ -340,7 +340,7 @@ static struct i2c_driver adp5520_driver = { .pm = pm_sleep_ptr(&adp5520_pm), .suppress_bind_attrs = true, }, - .probe = adp5520_probe, + .probe_new = adp5520_probe, .id_table = adp5520_id, }; builtin_i2c_driver(adp5520_driver); From patchwork Fri Nov 18 22:42:32 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: 22688 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462338wrr; Fri, 18 Nov 2022 15:29:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf4JkOXpDQ8dS1HRtnGiTgwt0BDtY462ODCVFACyoSKQSDjfPTDlSxRA3ZGp8wstUPv5IQkD X-Received: by 2002:a17:906:f8cc:b0:7ad:92fa:589e with SMTP id lh12-20020a170906f8cc00b007ad92fa589emr7537500ejb.668.1668814194592; Fri, 18 Nov 2022 15:29:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814194; cv=none; d=google.com; s=arc-20160816; b=vWmCLhBSnvAkGvevYDDM53UfLcYZk0UvXskuPwieijCAiD2/5iAsehRxffouS1V8/L yJZKoeVX7sBg1RCXGN839XaY/OvCrukg0O2eaMqrVj7p8u7zwDT8CQZgDPbI1BbDxeIy Ju3SnRCaP6oBUr4twy9jsPgrZAq4bMfP7+IXHaNb6804t/hlQtTLI4wLpJx/wOVfjH4R vOMfpXW0M+14yG9N5y3sFSgS0aQfxQSN52MkuF/M6q4hubYp8OjzRdKal/L8DV0SrTl9 hfJMceBgYIgj4DJPOAWTqUuQJ6/r+zYRJrx3h6BCW+qtii6m65QEKBvb2R+dMa54U/wi G9ow== 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=1AAycdecLO+X95X69MeUKZhb1IK4yP7g3yACCR0qlQo=; b=qVyY2ee6+FgbUlzv70h/Iip/UJwAXlvda8eqNXMwIwOf1OL44/mMLXggKU7QJ4bX35 1hXsJUULjD/+hmzHDJn/mvqeegE2CACSdup0Fv+Z4F2hFUMiC9wykd+qJMie6mtgbbIj 4zoRg4AWIKfq5YOrIcZx64758bZsLSfnvdMuEkjgchsW+hXGKOJV6UEwmJfuP4Akgj+D +5+HoijaorRMFpLwQlStFUpUL++QA0gXujvxP2SkquL6CAzyE94P6TqiSQyQqbJlFKyc 4p2ilFcj6bDA9qMNZ6IU3S5sVwK/eqFReHDgabEa61MHa0Z+o6a1q2N3nLwBrOKAXenk FiAw== 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 sd40-20020a1709076e2800b0077a19529760si4262298ejc.65.2022.11.18.15.29.29; Fri, 18 Nov 2022 15:29:54 -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 S235806AbiKRX2z (ORCPT + 99 others); Fri, 18 Nov 2022 18:28:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235768AbiKRX2N (ORCPT ); Fri, 18 Nov 2022 18:28:13 -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 1CA775F5A for ; Fri, 18 Nov 2022 15:16:10 -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 1owA9C-0003uf-KL; Fri, 18 Nov 2022 23:47:46 +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 1owA99-0058fN-N4; Fri, 18 Nov 2022 23:47:44 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA99-0000K0-Hw; Fri, 18 Nov 2022 23:47:43 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , patches@opensource.cirrus.com, linux-kernel@vger.kernel.org Subject: [PATCH 418/606] mfd: arizona-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:32 +0100 Message-Id: <20221118224540.619276-419-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?1749878512780605888?= X-GMAIL-MSGID: =?utf-8?q?1749878512780605888?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Acked-by: Charles Keepax --- drivers/mfd/arizona-i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/arizona-i2c.c b/drivers/mfd/arizona-i2c.c index 79bda6523cc1..b2301586adbc 100644 --- a/drivers/mfd/arizona-i2c.c +++ b/drivers/mfd/arizona-i2c.c @@ -20,9 +20,9 @@ #include "arizona.h" -static int arizona_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int arizona_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); const void *match_data; struct arizona *arizona; const struct regmap_config *regmap_config = NULL; @@ -120,7 +120,7 @@ static struct i2c_driver arizona_i2c_driver = { .pm = pm_ptr(&arizona_pm_ops), .of_match_table = of_match_ptr(arizona_i2c_of_match), }, - .probe = arizona_i2c_probe, + .probe_new = arizona_i2c_probe, .remove = arizona_i2c_remove, .id_table = arizona_i2c_id, }; From patchwork Fri Nov 18 22:42:33 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: 22626 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp450857wrr; Fri, 18 Nov 2022 14:59:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf4INuO91q/5xgTjcir9VHHvJmA4RYZMLLZisIU7j+XHxqy03wwQ0EH0TChUIKXx30MX4w3l X-Received: by 2002:a05:6402:10c4:b0:467:7827:232 with SMTP id p4-20020a05640210c400b0046778270232mr8245009edu.268.1668812391162; Fri, 18 Nov 2022 14:59:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668812391; cv=none; d=google.com; s=arc-20160816; b=o6nwSsdCJKW/dtyLI1bQnSvprji6K/c/4w5bsL0yDfxXLSUYXxepX5j6kPow+V53jH RcV34js9bMAj+SlDsIP9KDgl4stemnkf7tV/pTl3YXouG0znHHpqv1fF6caJkB/Ay9+N DIB68c+Ba4TV4gbTP3A2rXbzVsPCf5qH+5dncoW2VNszVTCv7kyihGT+zyTjRN4OzknH pVfKRxXWhdfclNwayKCZ6bQS/ctVdimqpAO9LSpUYOkCIcdQ0zyIfyuDl8Slgh+blrGx nUyWgqvXDU2sLGDS7d+FrGCWZfxuaQlRiTdB2M22RmK0hQkFfwfVBGFXdCmYUmIcNC5O E9xQ== 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=Sl48jwaRAEslzXhZkBGFcPf/MQb0rhsr+vc+bUiw5Ps=; b=IbuiHDd7DdIredEOH3LvqCx5+9KfRu8OanxXwC7NG1CAFFya6AJ/LU4HWCdz18Q69b EJQemlmRAyfMTrL3+zpW081NLDF/YknfW+GfExHzj0UNoMmMk6avOeH7KgGP+3fJyqQs LsyzkfDdQEdQWrfGC+RZq/mw9JFaWQbXuy5RmtSRjXlJYs+cagK2kY3RBvybYRrCnutL akxAhnMqCyfwg8SJRaG3ybp0d7y/UgqV+czX47F1Dy9LPP9Clu4Y28loAEhG4qO+cJgY 2UMJZrpXfmnMEsxHI/XN5M7JV9VMDLAZY4imXx5a5aTUngvpxAMjssHmwn/jGyJemUeL DX1g== 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 hp14-20020a1709073e0e00b007ae29da29b3si4472011ejc.731.2022.11.18.14.59.26; Fri, 18 Nov 2022 14:59:51 -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 S235002AbiKRW65 (ORCPT + 99 others); Fri, 18 Nov 2022 17:58:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234994AbiKRW4D (ORCPT ); Fri, 18 Nov 2022 17:56:03 -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 9712EC1F71 for ; Fri, 18 Nov 2022 14:48: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 1owA9B-0003u9-UH; Fri, 18 Nov 2022 23:47:45 +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 1owA99-0058fI-FB; Fri, 18 Nov 2022 23:47:44 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA99-0000K4-PN; Fri, 18 Nov 2022 23:47:43 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 419/606] mfd: as3711: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:33 +0100 Message-Id: <20221118224540.619276-420-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?1749876621972789663?= X-GMAIL-MSGID: =?utf-8?q?1749876621972789663?= 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/mfd/as3711.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/as3711.c b/drivers/mfd/as3711.c index 3adaec6c37df..3facfdd28e81 100644 --- a/drivers/mfd/as3711.c +++ b/drivers/mfd/as3711.c @@ -116,8 +116,7 @@ static const struct of_device_id as3711_of_match[] = { }; #endif -static int as3711_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int as3711_i2c_probe(struct i2c_client *client) { struct as3711 *as3711; struct as3711_platform_data *pdata; @@ -202,7 +201,7 @@ static struct i2c_driver as3711_i2c_driver = { .name = "as3711", .of_match_table = of_match_ptr(as3711_of_match), }, - .probe = as3711_i2c_probe, + .probe_new = as3711_i2c_probe, .id_table = as3711_i2c_id, }; From patchwork Fri Nov 18 22:42:34 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: 22709 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp463064wrr; Fri, 18 Nov 2022 15:31:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Cw6L6kBH8XMTzuq5gagnuOvdK7O3obA/kYGGJd0xDdvlY/awv2lhk+QGz5T4ONzaFX2PG X-Received: by 2002:a05:6402:1717:b0:461:8fbf:f607 with SMTP id y23-20020a056402171700b004618fbff607mr7869580edu.235.1668814294539; Fri, 18 Nov 2022 15:31:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814294; cv=none; d=google.com; s=arc-20160816; b=HgnkN8WkHIbg6tl0TMllcPcGblYMcHf/ge2Dppd1J0w7jhj/s8OcGxxpinzC2+P0/U NPmRDKUjNX0fhbTaoU2ttnId1OCLe4nr8ZtPw2HSNWZRTSKQI9C4meELpPKGMvVac17r pmQ03OD9zSqc7G/wi2htgJYhBBYAyRnfXDIPaP9MG0Z1NC5LgtyId1RSLi+CKmJdMsUq 4tSKaaE5ANMC1dgiDYzrGTkRnLLbvVxnf9fKUsslRe/MdCd/nf3tm8TAqBLYGkiM+Nhm F+SMu8GmGQaDPWIO2CXVarUbEttC5dGM1wUwpX/P47uJqtmglhpjpTPLiv5w06hZSJLd 0E+g== 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=Dx4bQ/NvA3tcK1xlIc10zYwJ97bxAwWrSqzpk/gP9lE=; b=MBb7vJzdA2hYS+eWqaqgE084fCBzNFgGkE+SPzqBZ4iOVXs9/bYTOXPbnLLpw22egK Lgyh3vCGl5RFvNuCiEM0i5mteY4Ch3J66jlJvGE9BQ8VKEJ80iiabaGmwwfjDZ6XKF45 1ibGDloc7WD6Q1AvgqbXb7ZNb9J3zCPKn2fFIEDkiDWLhuOxLwsKhsJ+hCKHViKhb310 4o62iH+lkJ7uytrZeEIW6l0nzwImq1YknqpomuBOiks2R/ECYD8aRVLJLjq+53JliVdI 1NogJjIZwLgUPw0M3zp462c99vkgF5fhM7WNOJKfxWEoFOZD1dECiY+OYArScYH17dah InWA== 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 j17-20020a05640211d100b0043e5ca9a0e2si4532719edw.628.2022.11.18.15.31.10; Fri, 18 Nov 2022 15:31: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 S235868AbiKRXaa (ORCPT + 99 others); Fri, 18 Nov 2022 18:30:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235619AbiKRX3O (ORCPT ); Fri, 18 Nov 2022 18:29:14 -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 77850950DE for ; Fri, 18 Nov 2022 15:17:20 -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 1owA9D-0003zE-MY; Fri, 18 Nov 2022 23:47: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 1owA9B-0058fj-Ar; Fri, 18 Nov 2022 23:47:46 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA99-0000K9-W9; Fri, 18 Nov 2022 23:47:44 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 420/606] mfd: as3722: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:34 +0100 Message-Id: <20221118224540.619276-421-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?1749878617764592674?= X-GMAIL-MSGID: =?utf-8?q?1749878617764592674?= 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/mfd/as3722.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/as3722.c b/drivers/mfd/as3722.c index 38665efae4f0..b6dda0eb8645 100644 --- a/drivers/mfd/as3722.c +++ b/drivers/mfd/as3722.c @@ -333,8 +333,7 @@ static int as3722_i2c_of_probe(struct i2c_client *i2c, return 0; } -static int as3722_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int as3722_i2c_probe(struct i2c_client *i2c) { struct as3722 *as3722; unsigned long irq_flags; @@ -446,7 +445,7 @@ static struct i2c_driver as3722_i2c_driver = { .of_match_table = as3722_of_match, .pm = &as3722_pm_ops, }, - .probe = as3722_i2c_probe, + .probe_new = as3722_i2c_probe, .id_table = as3722_i2c_id, }; From patchwork Fri Nov 18 22:42: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: 23011 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477984wrr; Fri, 18 Nov 2022 16:12:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf5zLGb3Pno9RflkkWW68GHiQTKTWAf+5UIV3nYTM3CfrU4s0lKgFJwWfw2DOckO7zxCs7Mi X-Received: by 2002:aa7:928f:0:b0:56d:2e71:449 with SMTP id j15-20020aa7928f000000b0056d2e710449mr10158358pfa.46.1668816779362; Fri, 18 Nov 2022 16:12:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816779; cv=none; d=google.com; s=arc-20160816; b=LvV+rPH5KfwjQYwGW3LqtkTB0aNWKKqlv3g/eQdCCLZ+F3DGLBememCMMarwZ36aUs 0mnmC7tw7AljMkF7ZKvQNBiaKSe0ZwQudjjGH+YP/96hjtXnvp/rEIgQXg61NlA5ZJs5 od6/gBIn3tQ44BsMSe7/yGFreIz/+cO5sRAxEzUDwBOyWM84r4to1CNmxjvxdn7HEmgc hojqRpuu08QyAwFE8KLGu/XeolOSbgZOs6TxHxAxskmn8QhEEB4AOJHl+6fqPQU7umXK QQ34oQmfv8y7JurdSqxwkb9D08Ar7/bojfd7jz6IFbEXFK3CHTIx9WmyJLgnPq9x96ZX uWuQ== 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=sLa36CApuN+8JuESsN9lJjb7vGXFqudhwLnmdnRB/aA=; b=FRi6niK+Ye+esagFvfVM4EYzczjtJ7rIv9Mn5ZWt4QQbBEaeUi0fwnOXZ7bNFlce/x k1hGmjzWeelRprZTPOuB3E+V0sbJ3KbM1xnKnqRZ1x2stJVTEFl5nGY6l0h7+Gu3FHDg XegS04Ry+iapNAy/W24uPnpztPknOZrp0fBJXgbf1zShMbdyI3RnYdZPUf09wdDse3Zx bmvPmP7j60hb2FD+Fou9uf6zZi5/XwjMXcft/o2rpuURjnIZQSCj+rYIqrxTvpTH2GSK cAUyTFrjmWLKDVFRl6s7i3yrmg0+bQ2rlHwa3s/DJKFW2CuO9l30+EMC5ZK+5PJscMHP zD4g== 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 my11-20020a17090b4c8b00b002182059ec60si9683632pjb.80.2022.11.18.16.12.46; Fri, 18 Nov 2022 16:12:59 -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 S237753AbiKSALq (ORCPT + 99 others); Fri, 18 Nov 2022 19:11:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237608AbiKSAKQ (ORCPT ); Fri, 18 Nov 2022 19:10:16 -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 E83B0186E1 for ; Fri, 18 Nov 2022 15:33:30 -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 1owA9D-000407-Ve; Fri, 18 Nov 2022 23:47:48 +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 1owA9B-0058fy-P5; Fri, 18 Nov 2022 23:47:46 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9A-0000KC-59; Fri, 18 Nov 2022 23:47:44 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Manivannan Sadhasivam , Cristian Ciocaltea , Lee Jones Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 421/606] mfd: atc260x-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:35 +0100 Message-Id: <20221118224540.619276-422-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?1749881223187509745?= X-GMAIL-MSGID: =?utf-8?q?1749881223187509745?= 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/mfd/atc260x-i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/atc260x-i2c.c b/drivers/mfd/atc260x-i2c.c index 5855efd09efc..19e248ed7966 100644 --- a/drivers/mfd/atc260x-i2c.c +++ b/drivers/mfd/atc260x-i2c.c @@ -12,8 +12,7 @@ #include #include -static int atc260x_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int atc260x_i2c_probe(struct i2c_client *client) { struct atc260x *atc260x; struct regmap_config regmap_cfg; @@ -54,7 +53,7 @@ static struct i2c_driver atc260x_i2c_driver = { .name = "atc260x", .of_match_table = of_match_ptr(atc260x_i2c_of_match), }, - .probe = atc260x_i2c_probe, + .probe_new = atc260x_i2c_probe, }; module_i2c_driver(atc260x_i2c_driver); From patchwork Fri Nov 18 22:42:36 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: 22931 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474524wrr; Fri, 18 Nov 2022 16:04:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf50TgMcSBlYMWx16uUVXqdaZveMKxbSQFf9HHTUCmTbFOZL9yJxJYgswXoVvkvPC0og5Tx4 X-Received: by 2002:a17:906:d782:b0:78d:422b:8156 with SMTP id pj2-20020a170906d78200b0078d422b8156mr7804893ejb.589.1668816265522; Fri, 18 Nov 2022 16:04:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816265; cv=none; d=google.com; s=arc-20160816; b=WXNV/8FZzMgb/Ym8ztLF4niwXGssqXroqfwtdx+wqGdVntA8SeiK1DuzLe+cc4RipN jeBqu42iONn/ZK0DkWk/j7l0t89lhXQmju10cVLSNG7ZF5frND32bNtPRmPnLO6DeyZJ NFEXKq44WsaPJkORqBu343C+3xBhpbs0BuW2iNYDIdllhxz/NRn43y8Uawsut0DmU8hI IR4cuoqjFDRccJnGhoBZGyC/jJET5nNZycQcGUsWHeoFDqEs4t2z2bcTFkaNN0eM9f7x AMUTf1pMjWUM0jg2KNZy6gLlyWwBBXkYJK33CKiHXCgehhfUaRchubcJP5cRpCXuHS/u 7Pdg== 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=O21Drr6x61Rb+vFFzQkgySW92AQKsKIwd50Z1hdvzjo=; b=syo/gn3H9xcJAjnUUeNBk/EOXHQ/5TNkSK37kFX5PiPPKfLjH7ARByaQHEP4Sfhmyu X950/n/naqXBfDWx/z9dOxUOdts/BovAi9S7vhlj7QJN9a3iaTmneUrIgJ4T4slDxpNg v2Agxz7CJOr2v0M7oh5loAykMD3Wu/FAiGFNIb3uTYYdYT32uLSZn+qAF6GuWV07Cflx GRpmAjUO0YkLbOHm6NfTZQtqGebIxeNH8s2s/FoYZcuCjWypM0UJcG2JFwF/sAGFL2Si fv+/iNmXBMwiIP5zHYcCDnlQYLL/QaevLRAaeYN7h+4SAC36AHeAXpbzh+DZiDlinan3 YG8Q== 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 di13-20020a170906730d00b007af039d0bd0si4515429ejc.404.2022.11.18.16.04.01; Fri, 18 Nov 2022 16:04:25 -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 S237188AbiKRX7M (ORCPT + 99 others); Fri, 18 Nov 2022 18:59:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231864AbiKRX4i (ORCPT ); Fri, 18 Nov 2022 18:56:38 -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 4D5DB114C for ; Fri, 18 Nov 2022 15:28:29 -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 1owA9E-0003z7-HG; Fri, 18 Nov 2022 23:47:48 +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 1owA9B-0058fg-85; Fri, 18 Nov 2022 23:47:46 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9A-0000KH-Br; Fri, 18 Nov 2022 23:47:44 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones , Chen-Yu Tsai 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 422/606] mfd: axp20x-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:36 +0100 Message-Id: <20221118224540.619276-423-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=ham 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?1749880684591334660?= X-GMAIL-MSGID: =?utf-8?q?1749880684591334660?= 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/mfd/axp20x-i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/axp20x-i2c.c b/drivers/mfd/axp20x-i2c.c index 8fd6727dc30a..f49fbd307958 100644 --- a/drivers/mfd/axp20x-i2c.c +++ b/drivers/mfd/axp20x-i2c.c @@ -22,8 +22,7 @@ #include #include -static int axp20x_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int axp20x_i2c_probe(struct i2c_client *i2c) { struct axp20x_dev *axp20x; int ret; @@ -100,7 +99,7 @@ static struct i2c_driver axp20x_i2c_driver = { .of_match_table = of_match_ptr(axp20x_i2c_of_match), .acpi_match_table = ACPI_PTR(axp20x_i2c_acpi_match), }, - .probe = axp20x_i2c_probe, + .probe_new = axp20x_i2c_probe, .remove = axp20x_i2c_remove, .id_table = axp20x_i2c_id, }; From patchwork Fri Nov 18 22:42:37 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: 22986 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477057wrr; Fri, 18 Nov 2022 16:10:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf5M+SWDsUzxJuNqHLc7hZxCgLz3rTVjrRsYm8ABzXqfjotWbQ/AFxe9l6Z8Aa0+Wea62FMw X-Received: by 2002:a63:5409:0:b0:476:e3bb:2340 with SMTP id i9-20020a635409000000b00476e3bb2340mr8518823pgb.530.1668816633561; Fri, 18 Nov 2022 16:10:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816633; cv=none; d=google.com; s=arc-20160816; b=fe7Mgj2prGcLRIk0p8zmXAjdid23Rf+Ej2fV9Y6gLB3401f9yzTzyDHalbydDVN+Iz y5Q1FQu1OACiwqK/Jtk9/IJZSLFUAUIsibaV3TKhX1LgO/OabOlmlmUAnSj8ciCzPLl0 ghk++0FXpnLw77MX/xBXNFH9yty2np99OOk9nXdhuJpYGC7l+a187h8sf8Zbm332Pxg5 Z2DEwGUTBD0uBMDE4X8UIGpx8CwWB/Sjf5+x+bMmHIgcTETWWS2HbKU37VTRzqrmqy+S 7MrGT0knEerSQlS32ovNGRtSd/hXzSrNUguFleBPbI+SbrAd4cq9DT2dcuHUQwTgfPIU ndeQ== 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=79xCRLXqfP1JWa1gmiNmAwyyjcNfjyuw4s0BwVLv54g=; b=zg61iZAqoMLofoUndD0D5FjDUK1zoHnhe7OEc4I6aNzsXnXplWzuD38TJ9jdHW+SfF MFU6RRzEN+8134b5JOAUig2JsaZPUrZXa21yPnwiXEGu5vCrNQpPybJVD1G5Gij2YDPF lfqjEExzTw27WouWc5JDQjFB3abI+V/XX/cH7sG/bSaTTaxQJaad24cv2c6t0DUvcHOq Ckvz0e/eQjaI+9ZuRbv5USI570CmMuJEpOsXLag8m20QrI8OB2w6aghmy30TvaThyF+Q luY0roknaKgCqpUJBS3s/n14uerIf9q5LGN2AcU6vDQhVAev/R8+FukgRkFyj/mbbWir zsKQ== 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 q2-20020a056a00150200b0054d5253e7d7si5022563pfu.190.2022.11.18.16.10.19; Fri, 18 Nov 2022 16:10: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 S232173AbiKSAJ4 (ORCPT + 99 others); Fri, 18 Nov 2022 19:09:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237499AbiKSAJe (ORCPT ); Fri, 18 Nov 2022 19:09:34 -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 B49789B7FD for ; Fri, 18 Nov 2022 15:32:47 -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 1owA9D-0003zZ-Q1; Fri, 18 Nov 2022 23:47: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 1owA9B-0058fu-JJ; Fri, 18 Nov 2022 23:47:46 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9A-0000KL-Ij; Fri, 18 Nov 2022 23:47:44 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 423/606] mfd: bcm590xx: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:37 +0100 Message-Id: <20221118224540.619276-424-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?1749881070370019342?= X-GMAIL-MSGID: =?utf-8?q?1749881070370019342?= 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/mfd/bcm590xx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/bcm590xx.c b/drivers/mfd/bcm590xx.c index 6ca337cde84c..251d515478d5 100644 --- a/drivers/mfd/bcm590xx.c +++ b/drivers/mfd/bcm590xx.c @@ -38,8 +38,7 @@ static const struct regmap_config bcm590xx_regmap_config_sec = { .cache_type = REGCACHE_RBTREE, }; -static int bcm590xx_i2c_probe(struct i2c_client *i2c_pri, - const struct i2c_device_id *id) +static int bcm590xx_i2c_probe(struct i2c_client *i2c_pri) { struct bcm590xx *bcm590xx; int ret; @@ -109,7 +108,7 @@ static struct i2c_driver bcm590xx_i2c_driver = { .name = "bcm590xx", .of_match_table = bcm590xx_of_match, }, - .probe = bcm590xx_i2c_probe, + .probe_new = bcm590xx_i2c_probe, .id_table = bcm590xx_i2c_id, }; module_i2c_driver(bcm590xx_i2c_driver); From patchwork Fri Nov 18 22:42:38 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: 22961 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp475232wrr; Fri, 18 Nov 2022 16:05:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf52v3zqTgcjo0+cuNQ6iEdfM4UCO86KwA5mILCC/CE6ZTIPI1zIofYn1g4nlGEewkWKPUTH X-Received: by 2002:a05:6402:2024:b0:468:f633:9484 with SMTP id ay4-20020a056402202400b00468f6339484mr6925854edb.200.1668816354672; Fri, 18 Nov 2022 16:05:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816354; cv=none; d=google.com; s=arc-20160816; b=KQy6oHg5M6FvS9qio8Ex0pgypNcBi79YFgMk1yk5xa/YvHK/8e0l1fmXvoU7vUZ0Xl ZUS596J0C/3ugVhO2VS+zaYf7OoiyxUvJ6DxrfFd1umMAEKFakE9oaZ9Ud+475+B6vI5 mvVrPtNBTuInOKf3EU30cjTPJYCs4JRB1G9coX63Fhs6Bj690/GJNfLIx/pmMXcY30JB D9Kz8/tQ1hwYgWADD9R1hQC3txVAyWfz8c8J6epiWKjVGs8r7Gvn7NF4RsO27opttLj5 nLn58STB52v6O/atduV753dyAVRCphTw7ZrZxoTUJy1aoF3kn3bjXDG6LdmaGl4GICLO eaAQ== 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=JmhtxXCGad+C3IZSfnjKW6LnNJb5oM4IhkiSe3qL/zA=; b=guowoFprCpg+MxUAPS04s6EIzWhF5DXbFWkA57/1SzyzFkr0mw/+Sam9AKWVep/hj2 1OVp94vCHhCSUDdbCFM7XiQwOAEpLqSIGqD4iYjp/SBa2QRfNG4Xnb0RAyf28IQE8c5u xlq4opWi5lETUxxn7Kcw+ruNU/zWaDcSk+dyyg7Pq9qFe+YDX75X22hm/HShnSaAg6p2 a8P9vjpjJTLBnTJOepmWRurND7Xw8xDwv2Gqsik4OqX2iaCgZxcQoHb95JjQ8FMNSYJa jOPkbPUwmWf7+24AQ8LNAupwztrXO6zgFv1Taj1xXbVpENFv7ARBPIrBTiies1aO6EFO 3CLw== 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 f11-20020a056402354b00b00461bbc0f929si4539566edd.184.2022.11.18.16.05.29; Fri, 18 Nov 2022 16:05:54 -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 S237301AbiKSABd (ORCPT + 99 others); Fri, 18 Nov 2022 19:01:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237258AbiKRX7n (ORCPT ); Fri, 18 Nov 2022 18:59:43 -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 487CDE0B69 for ; Fri, 18 Nov 2022 15:29:33 -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 1owA9D-0003z6-RG; Fri, 18 Nov 2022 23:47: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 1owA9B-0058fi-9x; Fri, 18 Nov 2022 23:47:46 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9A-0000KP-OL; Fri, 18 Nov 2022 23:47:44 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Marek Vasut , Lee Jones 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, linux-renesas-soc@vger.kernel.org Subject: [PATCH 424/606] mfd: bd9571mwv: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:38 +0100 Message-Id: <20221118224540.619276-425-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?1749880777954403229?= X-GMAIL-MSGID: =?utf-8?q?1749880777954403229?= 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 Reviewed-by: Geert Uytterhoeven --- drivers/mfd/bd9571mwv.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/bd9571mwv.c b/drivers/mfd/bd9571mwv.c index e15b1acfb063..60dc858c8117 100644 --- a/drivers/mfd/bd9571mwv.c +++ b/drivers/mfd/bd9571mwv.c @@ -204,8 +204,7 @@ static int bd957x_identify(struct device *dev, struct regmap *regmap) return 0; } -static int bd9571mwv_probe(struct i2c_client *client, - const struct i2c_device_id *ids) +static int bd9571mwv_probe(struct i2c_client *client) { const struct regmap_config *regmap_config; const struct regmap_irq_chip *irq_chip; @@ -279,7 +278,7 @@ static struct i2c_driver bd9571mwv_driver = { .name = "bd9571mwv", .of_match_table = bd9571mwv_of_match_table, }, - .probe = bd9571mwv_probe, + .probe_new = bd9571mwv_probe, .id_table = bd9571mwv_id_table, }; module_i2c_driver(bd9571mwv_driver); From patchwork Fri Nov 18 22:42:39 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: 22809 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp467842wrr; Fri, 18 Nov 2022 15:44:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf7EgtHuEoFyCnPPKmLwAR6w7XVxXtPbljsALAUwLtSydVAxeI2WyZ73YyQYBSksEQz6OyaR X-Received: by 2002:a05:6402:48e:b0:463:ab06:f338 with SMTP id k14-20020a056402048e00b00463ab06f338mr7998670edv.371.1668815094953; Fri, 18 Nov 2022 15:44:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815094; cv=none; d=google.com; s=arc-20160816; b=Rd/v1HajGVptENX6nDAZXqCRYDcewxqa2CN5q5EbS3jp2Q82UMmzzyfuYumm8v6adp Ks7h2mJUrjbHa7CIoskmhshZrj+bu6F+G9hSW7LfpbsvxAMBLdSLYkO10IL794wqAkf5 CxazIRieOHNquO7CFTugLX0GtsmTYR/wuX+zLQlHHXglB/EpPwv8aMAUzMF+HMjqk7B3 i1uq0PGN7w1z08EllWLruqThFVs3zsvKphmrF3sgCPchRGYk8gSnj3kJoVeQLFB0rGwj NMQ+YszRH0vHDy2VOz4sEjrl9yRWvHtw4jRvdSNl2m3mTpKWsvrGixSYx1uHm4zSSuPr UhVA== 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=yKHEkxWps5SG41jcU+1j+BkOPIe2wcXb2rwfH4fWB1o=; b=dbs5xCLiUWlX8G8xwabPclAbokN8vTTHzzWTVg8POucH5UW5y44WsZ0YYoQTE4yRUK 9+qhmHjn38+yps7a+Dbk82fLcvP631yU7ht7QMXrJQk8YsrKpnPi/G1ufxLu+iYfb0IX bYWLX3Q2cY8MxrY8M32YdTxd1qoRtO2V3qvZeWej7+Q5IaiT6HsifFspV/iz8vHwTJkB v7EaFpzpLgBGP7DL/JKI+6V5HFsg1OarIZN/siHCVQaMGWqTbH1Y6r9CRBTE3MKBn1iQ ns+cTDZapIOB8mmAC3sOZo8i7qZRGXJR+j5MAxxYp0/8DzdIU4ZMBkJ+yuu/kbDyj1pC U1VQ== 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 xc1-20020a170907074100b0078da99ecbdbsi1025796ejb.673.2022.11.18.15.44.29; Fri, 18 Nov 2022 15:44:54 -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 S236770AbiKRXlC (ORCPT + 99 others); Fri, 18 Nov 2022 18:41:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236901AbiKRXiH (ORCPT ); Fri, 18 Nov 2022 18:38:07 -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 06C62C560C for ; Fri, 18 Nov 2022 15:22:54 -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 1owA9D-0003z5-Sf; Fri, 18 Nov 2022 23:47: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 1owA9B-0058ff-7f; Fri, 18 Nov 2022 23:47:46 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9A-0000KS-Ut; Fri, 18 Nov 2022 23:47:44 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Support Opensource , Lee Jones 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 425/606] mfd: da903x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:39 +0100 Message-Id: <20221118224540.619276-426-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?1749879457361089009?= X-GMAIL-MSGID: =?utf-8?q?1749879457361089009?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/da903x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/da903x.c b/drivers/mfd/da903x.c index 3f8f6ad3a98c..44a25d642ce9 100644 --- a/drivers/mfd/da903x.c +++ b/drivers/mfd/da903x.c @@ -488,9 +488,9 @@ static int da903x_add_subdevs(struct da903x_chip *chip, return ret; } -static int da903x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int da903x_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct da903x_platform_data *pdata = dev_get_platdata(&client->dev); struct da903x_chip *chip; unsigned int tmp; @@ -543,7 +543,7 @@ static struct i2c_driver da903x_driver = { .driver = { .name = "da903x", }, - .probe = da903x_probe, + .probe_new = da903x_probe, .remove = da903x_remove, .id_table = da903x_id_table, }; From patchwork Fri Nov 18 22:42:40 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: 22689 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462381wrr; Fri, 18 Nov 2022 15:30:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Uhpj8PoMYm+iLB6XojQrEIozpsVXUMVuGCDY9gll2127CmBq8JBfxrtRZcAd6zWeINJk9 X-Received: by 2002:aa7:cc99:0:b0:44e:cd80:843b with SMTP id p25-20020aa7cc99000000b0044ecd80843bmr7959405edt.126.1668814201438; Fri, 18 Nov 2022 15:30:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814201; cv=none; d=google.com; s=arc-20160816; b=GzuhlmTzcCVSAdMdvs9o8zmPkShGGgO0HNdFBYdzPPEbnWo/sAg3BRWCFHWDX1bz8+ BA6zevyWhvjHrwCc+bv1/d+6caIRq/z9BErLoOaAcGAAoKJI0AE/POR2BUmj8RbwJf/W lxligfZ3xoJuiKMTEzrwJUemVegdE2o2rExt0LS+b0dZTW+coytgdtZAQQtjHcn4RfDE a7QGdRleYFc0TOTcaqGgDCthcK5gUYsIj6E3Y/bIyC6s9hFW8mnp/cGLMxMAkiztfi1t ok1SFGpEkFFyFir2vOD/1H1IVQ8kuXlTU9VyIFiJNs2WQGgOqIlkKQjZnAbtYMHdSpcT P7GQ== 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=ke9PytmrycPg6xIBjQzwz5ES8nVaDjzDApKGNjWjwCM=; b=kYrNqVoAglSmg4Elg1EIblxjZ6YItDEwo3AIUFgVp7kuXlzRyXqalS+LsiIgyff8DE IycAgkjxv5X0bg6mfL4C088hZ4PfHKFEPNbZe+omPa0OExxZM3O0PUSJX/bUfmxHgIQs zXPWZ/wmAwdPcNVZyMGTSTKpHJjr5szydZxO7rGC3xXUJG4SAfP2+x3olDxOyurFf0P3 pJIVvRK5lBcWLOLISz0M6GQ5VTQx1yZxck4qRFZyl60cDjXGFMe1I18DClhl0l00sEuA veNPVIvdnR7termbiR1kBbmJa8A6qmT63Y1u4ZBFWlwgpjyX5ySc8MFXR4EjP3Bk8yLP L9OA== 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 gt12-20020a1709072d8c00b007825bd02a6asi4670019ejc.54.2022.11.18.15.29.37; Fri, 18 Nov 2022 15:30:01 -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 S232734AbiKRX3E (ORCPT + 99 others); Fri, 18 Nov 2022 18:29:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235741AbiKRX2Z (ORCPT ); Fri, 18 Nov 2022 18:28:25 -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 F22F87118C for ; Fri, 18 Nov 2022 15:16:20 -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 1owA9E-00041P-BB; Fri, 18 Nov 2022 23:47:48 +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 1owA9C-0058g5-BV; Fri, 18 Nov 2022 23:47:47 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9B-0000KV-4G; Fri, 18 Nov 2022 23:47:45 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Support Opensource , Lee Jones 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 426/606] mfd: da9052-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:40 +0100 Message-Id: <20221118224540.619276-427-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?1749878520406891848?= X-GMAIL-MSGID: =?utf-8?q?1749878520406891848?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/da9052-i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/da9052-i2c.c b/drivers/mfd/da9052-i2c.c index 5a74696c8704..ecb8077cdaaf 100644 --- a/drivers/mfd/da9052-i2c.c +++ b/drivers/mfd/da9052-i2c.c @@ -126,9 +126,9 @@ static const struct of_device_id dialog_dt_ids[] = { }; #endif -static int da9052_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int da9052_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct da9052 *da9052; int ret; @@ -176,7 +176,7 @@ static void da9052_i2c_remove(struct i2c_client *client) } static struct i2c_driver da9052_i2c_driver = { - .probe = da9052_i2c_probe, + .probe_new = da9052_i2c_probe, .remove = da9052_i2c_remove, .id_table = da9052_i2c_id, .driver = { From patchwork Fri Nov 18 22:42:41 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: 23031 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp479439wrr; Fri, 18 Nov 2022 16:17:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf4m+DmAn7wknXo/rYVqxjPPEU3NRjuE9zKl7rzYVZdHXH4BK/a/KhvvnjwxQ69fA3R49R/R X-Received: by 2002:a05:6402:2987:b0:45c:a9d3:d535 with SMTP id eq7-20020a056402298700b0045ca9d3d535mr8102191edb.0.1668817035269; Fri, 18 Nov 2022 16:17:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668817035; cv=none; d=google.com; s=arc-20160816; b=cUFvpo3ThCN3xH1u7aPwJqr9p1M4GKEshIzEdnlFpkFynQ3YOFTazzxv9+WW2xjBdY yHGf8wr0bxNIEP/bhHEo+iW8iw/Y8NVO4hdmUKci+RENhZpIuWLy2pmWIlCllYzSvtUH dHdDGD5nRV8ycxcxga+W9ZoB6ldh27wz0bVEMTLjPp6DGDi2RTnMirsz3qRw7ObWfvBq iGvwduovQ4HYIDmMQ/9t6WnIYIbn8gqePGE5jtO+j4//WeF5xFdVZR7V4N7xMJPxslIW qmUA6ddiKjTtXsbg85dLL7m6jVN7OMhm1jLYVhv1mZfXHl2tUMu9mFwPRm9EHFlhMQrp g+KA== 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=PZ6gZo4v4XbW2pd61wwyocIYVGu+oYrSQWwgzsZgGZU=; b=JK06YBCLnrs5RW1bEV+qx972JACwJySLxsEc8AXy3rZ0J9CoQVhEriUASCIiOfxLNm dMo7lQXzjvagEDZlUrCU//jKX8FJ2kBD3mRlqnajki2d2pkxUbgCHopsD+K1ysZF4idV 2mqeKTqzkK/MIjjoon5Qw7ptNmU040IDt1cQPzUcmOV/vLoBmfWjAX7Q3VyIdsjLEr2Z nUOFsFlcLnx21rJhQ0cs0fxHKEdA9l1gLLtZr9NesC9UYuBex0tbxI4SBfTv7ukQtfcF bjHbebvurSh4Vh28KbQFcp1ah1KCuRLe1FYhT//ZwwDEy57n+2PloN18kEWttd9mvv+i bInw== 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 q14-20020a056402248e00b0046184b7c4besi4032684eda.462.2022.11.18.16.16.50; Fri, 18 Nov 2022 16:17:15 -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 S237868AbiKSAPv (ORCPT + 99 others); Fri, 18 Nov 2022 19:15:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237756AbiKSAPd (ORCPT ); Fri, 18 Nov 2022 19:15:33 -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 29510F6841 for ; Fri, 18 Nov 2022 15:35:04 -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 1owA9E-00042y-R3; Fri, 18 Nov 2022 23:47:48 +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 1owA9C-0058gD-Pj; Fri, 18 Nov 2022 23:47:47 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9B-0000KY-Bq; Fri, 18 Nov 2022 23:47:45 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Support Opensource , Lee Jones 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 427/606] mfd: da9055-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:41 +0100 Message-Id: <20221118224540.619276-428-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?1749881491229367132?= X-GMAIL-MSGID: =?utf-8?q?1749881491229367132?= 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/mfd/da9055-i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/da9055-i2c.c b/drivers/mfd/da9055-i2c.c index 276c7d1c509e..702abff506a1 100644 --- a/drivers/mfd/da9055-i2c.c +++ b/drivers/mfd/da9055-i2c.c @@ -15,8 +15,7 @@ #include -static int da9055_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int da9055_i2c_probe(struct i2c_client *i2c) { struct da9055 *da9055; int ret; @@ -67,7 +66,7 @@ static const struct of_device_id da9055_of_match[] = { }; static struct i2c_driver da9055_i2c_driver = { - .probe = da9055_i2c_probe, + .probe_new = da9055_i2c_probe, .remove = da9055_i2c_remove, .id_table = da9055_i2c_id, .driver = { From patchwork Fri Nov 18 22:42:42 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: 23077 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487083wrr; Fri, 18 Nov 2022 16:41:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf42RVaasK3muSPkE2eVG+XnIS9OQWZGKbI4i3sew4hw7l8UuMF8mL/inTm6hIxDEPmAPfl2 X-Received: by 2002:aa7:cad9:0:b0:461:60e8:7ac1 with SMTP id l25-20020aa7cad9000000b0046160e87ac1mr8036457edt.45.1668818513769; Fri, 18 Nov 2022 16:41:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818513; cv=none; d=google.com; s=arc-20160816; b=X9s7pWMW3fabDOtmGy73x+mcRNKgZ57/Dgf0IehqA5Kz/P0CMgrPWRU5mP8cwGg3T2 xjChCjxsAy1jAqxMQSEus54HQbvxzQDrspSwym9GWsxEtXZ+mILGUdQoqzezi2NTrlnh +bfrhJtSDispnCjlmVyTE2tvMx+NB9swZ6YpTXcPyQ6sLhViF2aKZQ6qPn2ts6EL+Ei/ hw7KPRyu6I3vQehJ/Z7qWD+MasCbh7lJs6pr+bS5ly+fAhJ+t1Vjpm/nkvAGbGWw51r9 DdnJ9aX/Og9TKzOoYjNQ4eJNkMKF+U+nQwHswoKM3zjK3x8ywEDcIPCTGnTH3U3su1SC 2axA== 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=tHZpbOkOPbB4YfGP7cAJTkfgI4hLNkpCt2R42P0N7C0=; b=NX7IuvPefebWRQEneXd4m95a2DVGPFSgxuh1oq2zzjxazjbKXg6za32oKesfEyuWS7 G6GuLZ5yfX5oOMsa/A6CBvyjo+VuLAB2rB/BaFXDGt42qjsRFIJf2l4xkJIDrvWSFg0r JOA8KXX5f76N9WX9GlDd3jRpC1bxMJReePjyPn8/eTtwkPmQJVSjdHAPQe6DMCQFK+Zz 5nz+WvoiMmmpkaLQcKEhyfW/solcfNGQO0yeHYuJWKkAplllDQHanlPBxN9xtEekS+7N LVtF6a6wbZuiPGfaKZSoARvZfPi5y4SO5BFubiZ2gI8QaRC3OQ3F5QHrpyq7FOstAbMG dN4Q== 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 dp17-20020a170906c15100b007ae8b1704d0si4357413ejc.68.2022.11.18.16.41.28; Fri, 18 Nov 2022 16:41:53 -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 S235872AbiKSAha (ORCPT + 99 others); Fri, 18 Nov 2022 19:37:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236001AbiKSAgq (ORCPT ); Fri, 18 Nov 2022 19:36:46 -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 8E3FF52152 for ; Fri, 18 Nov 2022 15:43:28 -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 1owA9E-000422-LC; Fri, 18 Nov 2022 23:47:48 +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 1owA9C-0058g9-IE; Fri, 18 Nov 2022 23:47:47 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9B-0000Kb-KC; Fri, 18 Nov 2022 23:47:45 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Support Opensource , Lee Jones 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 428/606] mfd: da9062-core: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:42 +0100 Message-Id: <20221118224540.619276-429-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=ham 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?1749883041843246941?= X-GMAIL-MSGID: =?utf-8?q?1749883041843246941?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/da9062-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/da9062-core.c b/drivers/mfd/da9062-core.c index a26e473507c7..40cde51e5719 100644 --- a/drivers/mfd/da9062-core.c +++ b/drivers/mfd/da9062-core.c @@ -621,9 +621,9 @@ static const struct of_device_id da9062_dt_ids[] = { }; MODULE_DEVICE_TABLE(of, da9062_dt_ids); -static int da9062_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int da9062_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct da9062 *chip; unsigned int irq_base; const struct mfd_cell *cell; @@ -744,7 +744,7 @@ static struct i2c_driver da9062_i2c_driver = { .name = "da9062", .of_match_table = da9062_dt_ids, }, - .probe = da9062_i2c_probe, + .probe_new = da9062_i2c_probe, .remove = da9062_i2c_remove, .id_table = da9062_i2c_id, }; From patchwork Fri Nov 18 22:42: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: 23065 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486878wrr; Fri, 18 Nov 2022 16:41:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ssziswfMDuqb7xIRzUKbL1nFJiuEbgVU2cGcdkplJ/K8ZHDTr644Y0a93mj/2jKJhzqtu X-Received: by 2002:a17:906:3993:b0:7ad:f5a9:ece3 with SMTP id h19-20020a170906399300b007adf5a9ece3mr7884805eje.635.1668818487056; Fri, 18 Nov 2022 16:41:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818487; cv=none; d=google.com; s=arc-20160816; b=WwmpP3uEWXBKraI94eSbY8VFr4HTjWH/+UDOcgBvxvlO7m8TnjemgTfs0YKJknEPBv qWib83+wgRUjGi8Z/9UYrUsQG29YPC7Qn9MeXvKUnT9ZNcgF+oy9M1ffR0c2UVEdwJOK XCqBj3xK4Sf/W16sKz5fO9qprx9mFVH74iJE7uq3DM0wU8IpXaSh8s/diNYGKNMZ2tN0 iH0tEonv+os5ks3l5uXk/7L3DcWiy/ZvRi9LqRlfXKluCwWYEeaTP7lXaGYI44Rms6Sx TVQfpNgkvGA0jqylved9Wd6s/wsd5A2JPtqGoImbspp3ySKOjUcKECsvSgB4fkGo5B+7 ZiUw== 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=OIbs42TmHS8d+L+KyP6GdsI8Cuyl5aHy+qohebgYt5U=; b=0/+lYLphwVN3oS0BsVOv8SGP9ROUixJTic9hoVN/0yk9RwBVa7DH7nsGUHeEny/N4g UDkyANRk3iwUR2ismoVNYul+HH1VRifVNAuFNkbwMVN9cvBce0eooNitl9WI5j+ybyQn JYzMiIA7gnxjPgISvKHnkbpGSLf8j35OB+dpg8bWm9+rj23imBbJf6h7L6vYNbPTlHBr LkEhgPj8PSRlhld0pXoZuPt8c0rRu4SBRt8EdiH6AWqmV8UCG1LyZcUz6fWEbMHEh/OJ 8VXT/PSVwkGQnhOWa4D7VKmgDFciAkmgCKi5E1E8/sYJ6MPhh+Q6nndBZ2bcVDMBPPgO 0KaQ== 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 o18-20020aa7dd52000000b0046233b758d6si4026905edw.81.2022.11.18.16.41.02; Fri, 18 Nov 2022 16:41:27 -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 S234517AbiKSAfo (ORCPT + 99 others); Fri, 18 Nov 2022 19:35:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236412AbiKSAfJ (ORCPT ); Fri, 18 Nov 2022 19:35:09 -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 ED9E18C4A6 for ; Fri, 18 Nov 2022 15:43:03 -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-000471-6r; Fri, 18 Nov 2022 23:47:50 +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-0058gi-Uk; Fri, 18 Nov 2022 23:47:48 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9B-0000Ke-PS; Fri, 18 Nov 2022 23:47:45 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Support Opensource , Lee Jones 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 429/606] mfd: da9063-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:43 +0100 Message-Id: <20221118224540.619276-430-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?1749883013996587171?= X-GMAIL-MSGID: =?utf-8?q?1749883013996587171?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/da9063-i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/da9063-i2c.c b/drivers/mfd/da9063-i2c.c index 343ed6e96d87..03f8f95a1d62 100644 --- a/drivers/mfd/da9063-i2c.c +++ b/drivers/mfd/da9063-i2c.c @@ -351,9 +351,9 @@ static const struct of_device_id da9063_dt_ids[] = { { } }; MODULE_DEVICE_TABLE(of, da9063_dt_ids); -static int da9063_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int da9063_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct da9063 *da9063; int ret; @@ -469,7 +469,7 @@ static struct i2c_driver da9063_i2c_driver = { .name = "da9063", .of_match_table = da9063_dt_ids, }, - .probe = da9063_i2c_probe, + .probe_new = da9063_i2c_probe, .id_table = da9063_i2c_id, }; From patchwork Fri Nov 18 22:42:44 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: 22634 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460003wrr; Fri, 18 Nov 2022 15:23:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf6mAQjzrYZHiBAIrpTenmnsaqocp0KLssAn0Ve4QlG7wb5eSHnCwm+GS+ZSd4hXWVSvp68t X-Received: by 2002:aa7:9ad6:0:b0:571:8e02:54af with SMTP id x22-20020aa79ad6000000b005718e0254afmr10081907pfp.53.1668813780054; Fri, 18 Nov 2022 15:23:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813780; cv=none; d=google.com; s=arc-20160816; b=iR2aGPTbdlXdHs5nJrkxL2f1uyLSDA9Ld/1zFqHaW+jYMn8d+c5mRW/XUymSZVdw1H TSkmdYobxXB/Uq7oBkvBt++TVM3CdFcaxar1x0xMUfEiMyr+jLe4XT/I93mrg3djl6Ar IaiFVtgZR1mB5+0ZzJL92WApmeow+67DkxzTwKAnLwmisWstfcuBhWEQvUSjVF1KVqlq 4GOcrJMag5+RX+yhP3vI3Upz62+ENvl3EWIPDyhZiagQAF0Y0tGr5lVQV+TJrumrqWqk CcB7s/xoZ9mBR0dTMMFxS476eoyNr+hF7tXFKxbUHMk3KV0FSuMODml8bsFrgQ3T0R6/ gNWA== 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=GcD7UpDBAJFUlaEj9cE70gg2d3nlHyW3RP+NdYy0ydw=; b=0uWgG7s/4ynSn8s1nOOx9xGuNzA6loe81XfbjjZwPx4f7Uw8ADXAsRZJp7ecccDOgY w2zDZ132QPi2Q+TQaTWV9OJ1+VLpPCyOrIMMICOHn2Q7LwQVEedrRIqGm3OvRNT7cUfw 0TyjZPHez6wK7vbYBgbS4Y8RVIfFQ4+DMqephX0W3EiebBezyHqD8NVIbAAE5BEvTrIy ue1WDE5cXo6L+5IwfEc+GDSibtWfIFGlVbmjwpWvjALZ5sm0n0LkEy+vzwTuMphhSmAy 5NHhX+mDf2vzNVaYPJAEgtiJfj5VN+TEwaUP+O3tJ8ZSbIIVVGxFMhMUkS4i8ZR3adGT JijQ== 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 a18-20020a17090ad81200b00212ca8e7457si4380241pjv.133.2022.11.18.15.22.45; Fri, 18 Nov 2022 15:23:00 -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 S229993AbiKRXVc (ORCPT + 99 others); Fri, 18 Nov 2022 18:21:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232799AbiKRXVA (ORCPT ); Fri, 18 Nov 2022 18:21:00 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E06C4B991 for ; Fri, 18 Nov 2022 15:11:38 -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 1owA9F-000461-Pi; Fri, 18 Nov 2022 23:47:49 +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-0058gX-Lq; Fri, 18 Nov 2022 23:47:48 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9B-0000Kh-Um; Fri, 18 Nov 2022 23:47:45 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Support Opensource , Lee Jones 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 430/606] mfd: da9150-core: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:44 +0100 Message-Id: <20221118224540.619276-431-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?1749878078395394229?= X-GMAIL-MSGID: =?utf-8?q?1749878078395394229?= 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/mfd/da9150-core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/da9150-core.c b/drivers/mfd/da9150-core.c index 6ae56e46d24e..d2c954103b2f 100644 --- a/drivers/mfd/da9150-core.c +++ b/drivers/mfd/da9150-core.c @@ -392,8 +392,7 @@ static struct mfd_cell da9150_devs[] = { }, }; -static int da9150_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int da9150_probe(struct i2c_client *client) { struct da9150 *da9150; struct da9150_pdata *pdata = dev_get_platdata(&client->dev); @@ -511,7 +510,7 @@ static struct i2c_driver da9150_driver = { .name = "da9150", .of_match_table = da9150_of_match, }, - .probe = da9150_probe, + .probe_new = da9150_probe, .remove = da9150_remove, .shutdown = da9150_shutdown, .id_table = da9150_i2c_id, From patchwork Fri Nov 18 22:42:45 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: 23064 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486868wrr; Fri, 18 Nov 2022 16:41:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf584aH9FesN+FAdDC5D9A1x3fUur6rZeRxd+xRLym/DbdkjhN2HjRU4mGM9TtFRwVco43d2 X-Received: by 2002:a17:907:a705:b0:78d:3e6b:d402 with SMTP id vw5-20020a170907a70500b0078d3e6bd402mr7701772ejc.563.1668818484633; Fri, 18 Nov 2022 16:41:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818484; cv=none; d=google.com; s=arc-20160816; b=AefBxD/RUpyccNtzq6n0V922NOBvckm+FaQpMArkJetxFq51/lwLA+fyZzN2vL+CcU ePmPNYWqstJsHtX5GPEQWNUGXhTKw5iuPtERzYa2DUlxcLFMD4vuB6fRViDhyubQusE0 kiF/qwHraTZKv+VCPX7ZSJdflxTvNrMYHnL80l729GPyYQXkc2KeQuuDkY4uZbECuiEO Iwp2bb3OSDqK/rsG7tY7eDLE9heE7zQ5Nv1GqQc5GZk/vtXRnnJFWhiNJBF827lqLyCG WuOrXWNJc6B1fiTW1XEEO20lJDR5QPLB3u+vpmC/664STx3G299W9QJAeGZ/gC9XHnP9 BfUQ== 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=+5sMgsIq3p0CBUqxlSZ8hlO4fxruLdzEUNZHjChjy/4=; b=lmCktaYscSd4FLLB0WCWkr1pcysHuzkFGEs81dVbKG/8eCwh5GuOOr1JhFLS4SSt3E RftwsMiD8Ayfpy2+ln476zvlJoUeI+19Zvcxl0R7qpui7xt7PwpWf7mMCENUYmyYN5+6 hNfEZONOniwIX4DNzn0wLtzKRbFDefKVXglYXwqRA2G+37LejyYgnFBw9A4JEjowSsVG PdkEeaWnGiWuDf+QQ0aNR5w9/pDDRNr3gaD9Z03ANif9YPPhFF6afoV9UTevdu1PT11H z+3BBUHS0rL5K6uwcyIHc7IflEInpaIH9UsZXad0R+feDhztzuije8wEUceDcyWpEnpX tQlA== 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 ne38-20020a1709077ba600b00788361f96a2si4770841ejc.776.2022.11.18.16.41.00; Fri, 18 Nov 2022 16:41:24 -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 S236429AbiKSAfS (ORCPT + 99 others); Fri, 18 Nov 2022 19:35:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232306AbiKSAeh (ORCPT ); Fri, 18 Nov 2022 19:34:37 -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 22BA03FB8F for ; Fri, 18 Nov 2022 15:42:53 -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-00046g-5Y; Fri, 18 Nov 2022 23:47:50 +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-0058gg-SI; Fri, 18 Nov 2022 23:47:48 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9C-0000Kk-4g; Fri, 18 Nov 2022 23:47:46 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Neil Armstrong , Lee Jones Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 431/606] mfd: khadas-mcu: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:45 +0100 Message-Id: <20221118224540.619276-432-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?1749883011068581863?= X-GMAIL-MSGID: =?utf-8?q?1749883011068581863?= 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 Acked-by: Neil Armstrong --- drivers/mfd/khadas-mcu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/khadas-mcu.c b/drivers/mfd/khadas-mcu.c index f3d418810693..7338cc16f327 100644 --- a/drivers/mfd/khadas-mcu.c +++ b/drivers/mfd/khadas-mcu.c @@ -84,8 +84,7 @@ static struct mfd_cell khadas_mcu_cells[] = { { .name = "khadas-mcu-user-mem", }, }; -static int khadas_mcu_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int khadas_mcu_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct khadas_mcu *ddata; @@ -135,7 +134,7 @@ static struct i2c_driver khadas_mcu_driver = { .name = "khadas-mcu-core", .of_match_table = of_match_ptr(khadas_mcu_of_match), }, - .probe = khadas_mcu_probe, + .probe_new = khadas_mcu_probe, }; module_i2c_driver(khadas_mcu_driver); From patchwork Fri Nov 18 22:42:46 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: 23060 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486757wrr; Fri, 18 Nov 2022 16:41:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Ga4kEuPmoM+di0jEJI2hDm5uRGbar+3AY6ltwQCj11HrU+0e+FAz6GD00Wv08dM+mBSW3 X-Received: by 2002:a17:906:944c:b0:7b2:71fa:c367 with SMTP id z12-20020a170906944c00b007b271fac367mr7532924ejx.377.1668818467537; Fri, 18 Nov 2022 16:41:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818467; cv=none; d=google.com; s=arc-20160816; b=yIBowWc7JPJzcyx6BsDIFaC+W9FUmFU8/Z2NV+vMvG5H5anwbyDaO8OXiY96vkquFD k5lwxVWWCqZvQlhroH3RpdUlnMZX4U5ZV3gXlQJC+1fIyZXYFhZhKEDS37eQm74ORowW jR0mGm135R4k7gA7STGZ0Q8tprb43yDRfHxJbbSe2dqaZVwSW+PwGUkuaVtyw+3sJwlX LTz2fqwk8utIiIDYnvx0ec9PJSkEHs6ACZP3MGWF6GN2Ykxeu97bzTDF26EBTApo8bKU EOusxknzCQtYvQgqrOdxrTvmoY8qJJNfBEMJoskkixuKss7wDAOeUvhf6czglgWLIuO2 QkPg== 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=hsjWHzxrsosPGoF1E4S3d63fOGR6LMEd/eCMwytemLY=; b=cIqJWcxmx4Y9VZoxwDSOJY0+p504vC39nvbrwSg1tlPLo6aPVL18Tmvf+mLy+zcy7n qsXAniw5gYTVnwLtErVhybXVpK15eFMGxpsVn9ODLhiTbkF7iEJusWOyEjs2nGJg3jUj 7L59sV7mDkgMmO5e+NKXiwQlrBVM1371QpM+75Za8tlPunbV/rAwDCPvpc30wtIaVwX8 3Cf+k53v3FGf5XRNUpEpPq6KEaZTQ4HImzTA5cIb+fe5qNbJfVuuOpdVPna2yeVnwXVi MAacJd56qRcjnBftMWx3PjBCVhZ411JFp+F12+VaB2b0aa9oNiXt+sykoBNSFGjXzosw tpOg== 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 dz17-20020a0564021d5100b0045782fcb80asi4860663edb.225.2022.11.18.16.40.43; Fri, 18 Nov 2022 16:41:07 -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 S235102AbiKSAbN (ORCPT + 99 others); Fri, 18 Nov 2022 19:31:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233271AbiKSAau (ORCPT ); Fri, 18 Nov 2022 19:30:50 -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 DD0EB114B82 for ; Fri, 18 Nov 2022 15:41:14 -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 1owA9F-000432-28; Fri, 18 Nov 2022 23:47:49 +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 1owA9C-0058gE-Qw; Fri, 18 Nov 2022 23:47:47 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9C-0000Kq-BR; Fri, 18 Nov 2022 23:47:46 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 432/606] mfd: lm3533-core: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:46 +0100 Message-Id: <20221118224540.619276-433-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?1749882993369568999?= X-GMAIL-MSGID: =?utf-8?q?1749882993369568999?= 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/mfd/lm3533-core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/lm3533-core.c b/drivers/mfd/lm3533-core.c index be32ffc5af38..74a553329416 100644 --- a/drivers/mfd/lm3533-core.c +++ b/drivers/mfd/lm3533-core.c @@ -584,8 +584,7 @@ static const struct regmap_config regmap_config = { .precious_reg = lm3533_precious_register, }; -static int lm3533_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int lm3533_i2c_probe(struct i2c_client *i2c) { struct lm3533 *lm3533; @@ -627,7 +626,7 @@ static struct i2c_driver lm3533_i2c_driver = { .name = "lm3533", }, .id_table = lm3533_i2c_ids, - .probe = lm3533_i2c_probe, + .probe_new = lm3533_i2c_probe, .remove = lm3533_i2c_remove, }; From patchwork Fri Nov 18 22:42:47 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: 22835 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471495wrr; Fri, 18 Nov 2022 15:57:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf4C9X5EJqAtCgdeaTotRt6sxVdXHADDFpI00ZtEb/heE3hEJldMNwFchaw2JeVkf1lD+6xu X-Received: by 2002:a17:906:9c96:b0:73d:7112:4601 with SMTP id fj22-20020a1709069c9600b0073d71124601mr7747483ejc.239.1668815821533; Fri, 18 Nov 2022 15:57:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815821; cv=none; d=google.com; s=arc-20160816; b=q4SRQZxQB0syCpYiu9sq5Dk5EXIt8Ij2MSOVzY6O+i2JdLT9YxIP6aWo0/Rk4L9tA8 onzMKsYH/dLI/UlxsFpmeEjcyyaLR2aGA3E+uJdEtUKLncFawbOwMEptm5PYh4cb1GP5 wF2xQwjOLH96Z2IXL3AYt6DyXFbCDfYkzmQse4zeAG7SbDQCwcVaV2R8eoXS1LxN+tG/ UoRPEz40QNiqGfTOxK4WotDcdfPa4TKOPpL82/+D92c9gy1DquHMytkc5xqRZ916WDY9 n08pjYqSM7IdfocKKb1MDpG9tIgmq7H81gwAoqoiN2HMJheGLrzcqpeRdvCFaXkyaNH0 mcJg== 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=fofOGg44f1sRuHbCsfZfIp/0NubBPl4LJRNRDLn6fWU=; b=F+i2yvccepwdm/APMxkFVn8fpHsa8v1U5OTLWD1w/1QKageQpPWjfoL85p0x0+p6Fy M7EqwsOHd5kvfOhX7E+dEjuxXvhqhnowHv1Fl9MrlOBpiyePAOCu/9r8AII4PbsYyGlo CwSGq80riT60/48AAC4KNJtkIiVe+r3iwAho6+6pjvvbmkYLCpnS4nw/I//pLOI+iQdr dClKwc03+0hwmYCtSxGHX5pTe7PxWGVodMpRaWXQQ/Ip3Wi+RDuAhyw22Ah5/71Z3d0d IYZtLRiHyAHWSH1C161Un2VVD54iK/E7/B29f5iQ8p7fdNZzMWt/hAipbHXEURCj++8g Fzzg== 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 v10-20020a056402174a00b004604e9d477dsi3771020edx.265.2022.11.18.15.56.37; Fri, 18 Nov 2022 15:57:01 -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 S236061AbiKRXsQ (ORCPT + 99 others); Fri, 18 Nov 2022 18:48:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236956AbiKRXrK (ORCPT ); Fri, 18 Nov 2022 18:47:10 -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 34D21DDFA5 for ; Fri, 18 Nov 2022 15:25: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 1owA9F-00045X-LV; Fri, 18 Nov 2022 23:47:49 +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-0058gT-HT; Fri, 18 Nov 2022 23:47:48 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9C-0000Ku-Gt; Fri, 18 Nov 2022 23:47:46 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 433/606] mfd: lp3943: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:47 +0100 Message-Id: <20221118224540.619276-434-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?1749880218938230634?= X-GMAIL-MSGID: =?utf-8?q?1749880218938230634?= 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/mfd/lp3943.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/lp3943.c b/drivers/mfd/lp3943.c index 13cb89be3d66..f9f39b53d030 100644 --- a/drivers/mfd/lp3943.c +++ b/drivers/mfd/lp3943.c @@ -102,7 +102,7 @@ static const struct regmap_config lp3943_regmap_config = { .max_register = LP3943_MAX_REGISTERS, }; -static int lp3943_probe(struct i2c_client *cl, const struct i2c_device_id *id) +static int lp3943_probe(struct i2c_client *cl) { struct lp3943 *lp3943; struct device *dev = &cl->dev; @@ -140,7 +140,7 @@ MODULE_DEVICE_TABLE(of, lp3943_of_match); #endif static struct i2c_driver lp3943_driver = { - .probe = lp3943_probe, + .probe_new = lp3943_probe, .driver = { .name = "lp3943", .of_match_table = of_match_ptr(lp3943_of_match), From patchwork Fri Nov 18 22:42:48 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: 23025 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp478881wrr; Fri, 18 Nov 2022 16:15:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf68EYvIUqNFfbjCBEKeL5eJAKdQ9chFMRQDKzGkXb5J6+GK7uko7Iih8OYyuZOCuJlmTxr7 X-Received: by 2002:a17:906:6892:b0:78d:ab48:bc84 with SMTP id n18-20020a170906689200b0078dab48bc84mr8291489ejr.22.1668816930424; Fri, 18 Nov 2022 16:15:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816930; cv=none; d=google.com; s=arc-20160816; b=0VHg8azkn6yp4RltkKPXZ3n/l52aLeVommf0fHuR3GteTMJ+pWSmOb5/3bIgRVGcCB XJOwS3pu3fqi4S7DXJzYDj9odiMejAA10VXgyiRZQl4v+0iAgkczQ/NvlacZhavnrs4L 8WTgAoftXCnRAI6T+Pw3LsXz3ze79n0E1iucFna8WmuiyfLeMMZMW7DFGuHPwRn9CK6F ZOJEc+yPsBP9HhE2ViiGV9T4jc/YKbBUOdaZV10PHoiC5vwQ6OGcrTO2XoiFtL3ebal8 SRVMXMbRninQJ5TEfC59XKjDfcgPq0zeJMdx5/9iPsVK089sXdbaBLLhg0izrrNOJ9BD VLAg== 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=xjY+gcfPt2NvJut6uHC55RnvZYUu8x5lcB55Ah4DTzw=; b=q7BImSoLfLfNQtr0Rzjot/cdSvPYMTdv0rWTm7N04t2YPZeP0ORBPH2VyoMhrFTgUt PDdGZHoaVdtPa9YLrmCES+q5FCEd/vFQmyKahgDTYPBQOebTLIqjgCGwAyAu2dBXkgZ4 j7uxTQh9Il+uMpBk+L3pp6YYejq3qGTWCjGZjb/xrxENMu/IlXxzjwirM6PIGLon/IMp raFCbrCJzyn2FJklneDRw/uAzQBx8UvtqE46I8yyt5RQ1pTMnhgzuxcCPHkugoaNVpA+ /xHyJH3QiRr6acYdmPFsYbwHST6oU2qx0Krl44NgIveu2pNEpBRLHTdeY0T38cJPM+Pu mQ3A== 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 dn14-20020a17090794ce00b0077d854aa10dsi4509702ejc.57.2022.11.18.16.15.06; Fri, 18 Nov 2022 16:15:30 -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 S237511AbiKSAOY (ORCPT + 99 others); Fri, 18 Nov 2022 19:14:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237489AbiKSANq (ORCPT ); Fri, 18 Nov 2022 19:13:46 -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 5CAC3F45F6 for ; Fri, 18 Nov 2022 15:34: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 1owA9F-00046C-Vo; Fri, 18 Nov 2022 23:47:50 +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-0058ga-Np; Fri, 18 Nov 2022 23:47:48 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9C-0000Ky-NO; Fri, 18 Nov 2022 23:47:46 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 434/606] mfd: lp873x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:48 +0100 Message-Id: <20221118224540.619276-435-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?1749881381512157848?= X-GMAIL-MSGID: =?utf-8?q?1749881381512157848?= 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/mfd/lp873x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/lp873x.c b/drivers/mfd/lp873x.c index b6166dec492d..c81c5c9ad748 100644 --- a/drivers/mfd/lp873x.c +++ b/drivers/mfd/lp873x.c @@ -24,8 +24,7 @@ static const struct mfd_cell lp873x_cells[] = { { .name = "lp873x-gpio", }, }; -static int lp873x_probe(struct i2c_client *client, - const struct i2c_device_id *ids) +static int lp873x_probe(struct i2c_client *client) { struct lp873x *lp873; int ret; @@ -79,7 +78,7 @@ static struct i2c_driver lp873x_driver = { .name = "lp873x", .of_match_table = of_lp873x_match_table, }, - .probe = lp873x_probe, + .probe_new = lp873x_probe, .id_table = lp873x_id_table, }; module_i2c_driver(lp873x_driver); From patchwork Fri Nov 18 22:42:49 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: 22924 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp473345wrr; Fri, 18 Nov 2022 16:01:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf68LXq5wjXDonzdKT+GIo50kmKU6TaKV2wHqy4DC5Cad8UGsOOIIrbHQ7/qOa0OTzHr0Q5z X-Received: by 2002:a63:304:0:b0:470:1e64:f586 with SMTP id 4-20020a630304000000b004701e64f586mr8638260pgd.249.1668816112596; Fri, 18 Nov 2022 16:01:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816112; cv=none; d=google.com; s=arc-20160816; b=UUChSXcWa7PU1bvkCB7kEewi2Iu/nMu8vz0b6z4yGGtsiXaa3XwlUH6fM4vC9b3TKc mDUAa6PV6HlRlZJWa1j1p17EadpDyd0CY8jEjTTpyyhH9M6pnZ6wCqnwL+JSCEJgFThD htGppJWYbdHtOvaSxEjGS2U4YG7MIQYiXjVKP62viaNWRUxPShyTe6NHNNuA1MhV2KDd oy4cKCxO4CeH5Qao8x2S75GFYEW1VjtNQl7cB+gcYJHTGE6VPRgZZYm1diKjce3Ryz/H Wi+zZAvT0C5daobs4+FeSNbMIyUaylbNW9g4/H70UlIV5PFkS9fETsvlBTBAX4hNsOWr 83dQ== 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=plIHH3idBjvT8N2D/i7VwpISvbomeYD0OBEtv1Dt8mA=; b=F+cw+g2fo4M3tgn5vlsqjTnazPnEiPIb8yOWCvznorT96+Y/41yBVaucG7DkjelEYR yV8HX8bLRPxBtoNOgtdvtGUExJOEsFeCQPTlMv1lJ/CY1Dhdxdm+TAHPEUSs4s07n5JI lmMk7l2xyUi7ZBBubFOHgBd2Qyfw5OufplBTsjF+Di4MViKlwtzPWOH080YraaMFNEGp 6zddzYYWrBDsRzBf4f3GwgDCPJQTm24H6NAZq0oBtOAvSQrA9ZzaigvBmABwZS+gLN7Y G45+1LDfbtk7RTdMTrTaIPep5dLelDLLROSgPJc41znfXd6XBtkF9BYjdelP5QvdxD46 hDnQ== 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 j191-20020a6380c8000000b0047731d8c0ddsi2454063pgd.511.2022.11.18.16.01.39; Fri, 18 Nov 2022 16:01:52 -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 S234774AbiKRX6n (ORCPT + 99 others); Fri, 18 Nov 2022 18:58:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234176AbiKRXzn (ORCPT ); Fri, 18 Nov 2022 18:55:43 -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 720A8BEB4A for ; Fri, 18 Nov 2022 15:28:16 -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-00047q-L8; Fri, 18 Nov 2022 23:47:50 +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 1owA9E-0058gx-CY; Fri, 18 Nov 2022 23:47:49 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9C-0000L2-Sy; Fri, 18 Nov 2022 23:47:46 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 435/606] mfd: lp87565: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:49 +0100 Message-Id: <20221118224540.619276-436-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?1749880524071044216?= X-GMAIL-MSGID: =?utf-8?q?1749880524071044216?= 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/mfd/lp87565.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/lp87565.c b/drivers/mfd/lp87565.c index a52ab76febb3..568f0f01ea0d 100644 --- a/drivers/mfd/lp87565.c +++ b/drivers/mfd/lp87565.c @@ -43,8 +43,7 @@ static const struct of_device_id of_lp87565_match_table[] = { }; MODULE_DEVICE_TABLE(of, of_lp87565_match_table); -static int lp87565_probe(struct i2c_client *client, - const struct i2c_device_id *ids) +static int lp87565_probe(struct i2c_client *client) { struct lp87565 *lp87565; const struct of_device_id *of_id; @@ -120,7 +119,7 @@ static struct i2c_driver lp87565_driver = { .name = "lp87565", .of_match_table = of_lp87565_match_table, }, - .probe = lp87565_probe, + .probe_new = lp87565_probe, .shutdown = lp87565_shutdown, .id_table = lp87565_id_table, }; From patchwork Fri Nov 18 22:42:50 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: 22808 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466984wrr; Fri, 18 Nov 2022 15:41:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf5bJLOdFT/rtHyY6jnE4ox+2Z7OPA2Av0z6T2sfxlgnR/+eDOG4cr0q4ruYHt4Riy4Qluu2 X-Received: by 2002:a17:906:7ac8:b0:7ad:c8d6:bc7f with SMTP id k8-20020a1709067ac800b007adc8d6bc7fmr7719675ejo.118.1668814904927; Fri, 18 Nov 2022 15:41:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814904; cv=none; d=google.com; s=arc-20160816; b=NLWu8ZkYb11Y52Ef/uWvsTexkyw8jgrLtLXSozHvimAX33oE7dUq7NN5poEUYt7e9e Ur7OwUCMb5mO/iwa/NDX3LegDnJLO1vffciZouZtUBQPUaaFgTiA6v8/xW9QGMMNhyn8 URYWrUckl7quulCSb3bU5R/RueDcLzLRMBsiNV+omtEDI+YCI3E/qOgYXsA/9cf+ddXw jAG615IwCWXKJMtt2gn9HPVMQnNVOZjx4oFvjpJ7q9QW54IYU2G6fXYi76lbGvNDjkDB mgJP1/0nY6xKfcjRPe5BnL1nsTekevopXkyUVka5+J+1GW3i+cPBerJEoaSrUp2nqlYz HxIQ== 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=VZcqbLEueJ6VXYicNKivwjz7jAANcIR43vcd5gnQ+jI=; b=p3uE8nbvZxhn2FaGuhpQy17zKFx+zb1hAac9Jgf680+/qpsF7MFTkd571cCuyEMAm8 /z4gbciw02Plcm3GHnoDOIKS7T9hP7BDQYH+ZSN+z8J2UsD16sEZXC0HIy/kSTZ+RIQH ojwThfhY+RK02t+pfCFKrpdZZ0FM3TxqYUTTDQ5xVbsha46nIegEpLkGeui9S2W6w+d6 hVCD/1vZoWyjbbSjvOjdbaMbc/aWtxGf695Qm2tgMVEvJzDlLLe33pv49MSJ7iaao4or N7an5sj4/I3EQUA974vNN48SFIdmZItgXyY+UWSbusKwDQpUDZjHxZGXvIik2zReWcyI U3Kw== 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 k9-20020a17090646c900b007a65a87f839si3406614ejs.114.2022.11.18.15.41.21; Fri, 18 Nov 2022 15:41:44 -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 S234462AbiKRXkZ (ORCPT + 99 others); Fri, 18 Nov 2022 18:40:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236792AbiKRXhz (ORCPT ); Fri, 18 Nov 2022 18:37: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 088B9950EE for ; Fri, 18 Nov 2022 15:22: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 1owA9H-00049W-Em; Fri, 18 Nov 2022 23:47:51 +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 1owA9E-0058h7-Vb; Fri, 18 Nov 2022 23:47:49 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9D-0000L5-2O; Fri, 18 Nov 2022 23:47:47 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 436/606] mfd: lp8788: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:50 +0100 Message-Id: <20221118224540.619276-437-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=ham 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?1749879258157643664?= X-GMAIL-MSGID: =?utf-8?q?1749879258157643664?= 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/mfd/lp8788.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/lp8788.c b/drivers/mfd/lp8788.c index 724a5712b36b..fe809b64147e 100644 --- a/drivers/mfd/lp8788.c +++ b/drivers/mfd/lp8788.c @@ -166,7 +166,7 @@ static const struct regmap_config lp8788_regmap_config = { .max_register = MAX_LP8788_REGISTERS, }; -static int lp8788_probe(struct i2c_client *cl, const struct i2c_device_id *id) +static int lp8788_probe(struct i2c_client *cl) { struct lp8788 *lp; struct lp8788_platform_data *pdata = dev_get_platdata(&cl->dev); @@ -225,7 +225,7 @@ static struct i2c_driver lp8788_driver = { .driver = { .name = "lp8788", }, - .probe = lp8788_probe, + .probe_new = lp8788_probe, .remove = lp8788_remove, .id_table = lp8788_ids, }; From patchwork Fri Nov 18 22:42:51 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: 22730 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464404wrr; Fri, 18 Nov 2022 15:34:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf5UehkQF55zyKY43kNL/H7OHU1tFtqCehM5mbRO0HLEynU2c/ER/+vdxInado3hjgGgPsXT X-Received: by 2002:a17:907:988c:b0:7ad:c2ef:4d69 with SMTP id ja12-20020a170907988c00b007adc2ef4d69mr8138560ejc.10.1668814488009; Fri, 18 Nov 2022 15:34:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814488; cv=none; d=google.com; s=arc-20160816; b=mGLQGVhTuytWtx5ApQYcljVwwRXrKVADI4VLzjrTA20U1kzs7vHNHnZAoFz4G6z3pe KtyFScF5TRWkqPceJmEUkhaBcXw+oWBncfRrpN8d3jAB/EhTTxqDn8UYyC2PmAqm2lmL r5QMWBvGsKr4E5k4UT5Ei22Yr16CzCtNzu9PBcRIoRmlLpZ2Efr9OwbgP9xdEtYS+Fea hhqrS9Jzi9MYKKiH2hvgRjb9HVXxOnjY2AhiNmQi+d7I+pDdY04bI2ptwmqek+0mD8Mv xkoaKAWMz0ii82I9goysT6kyLrlERP0+8NzZW0B3oVC/v4SF5bUHZMWYG155B06wiJxx u0qw== 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=reBBVqjKUe1oVJ39RM4t83ayt+kgBRd5aB3S4aubACE=; b=nA1eWzP+R2QL+JooujWA4nRrrPfMR5P7YuzqxaJDX551QWLfWK5iVUjYMS45MOnYTy Wtz/yuXBvh3qMtVglkSQ+b88ThqClXkLwvsGYTcosUiKWLDyViyBeaeMBWJsintgqFqQ tviCTvpb2aySDW/RV3gIdS0/KNAyTESYuR7j7MTKqkqxWtguWYRAeRQT3/mrD1YF/IZ0 yjQgfxPEwadIRLDUJvxOTJYsHCndFo9Tk2BQFwDyS27hlj/tbgfhbF1svDAe+If/1RDh xUgfI8z9Ju02WPbNHmNQdA/oplPCB0c7dvmoRN/Xh7F8cOEWkJy55JxXl/7n53C+3SS+ BU2A== 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 jg27-20020a170907971b00b0073d81935416si4784961ejc.749.2022.11.18.15.34.24; Fri, 18 Nov 2022 15:34:47 -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 S234247AbiKRXdh (ORCPT + 99 others); Fri, 18 Nov 2022 18:33:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235848AbiKRXa1 (ORCPT ); Fri, 18 Nov 2022 18:30:27 -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 0449675DAD for ; Fri, 18 Nov 2022 15:18:20 -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-00047E-9p; Fri, 18 Nov 2022 23:47:50 +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 1owA9E-0058gm-0k; Fri, 18 Nov 2022 23:47:48 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9D-0000L8-AP; Fri, 18 Nov 2022 23:47:47 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Charles Keepax , Richard Fitzgerald , Lee Jones Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-kernel@vger.kernel.org Subject: [PATCH 437/606] mfd: madera-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:51 +0100 Message-Id: <20221118224540.619276-438-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?1749878820455684583?= X-GMAIL-MSGID: =?utf-8?q?1749878820455684583?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Acked-by: Charles Keepax --- drivers/mfd/madera-i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/madera-i2c.c b/drivers/mfd/madera-i2c.c index 915d2f95bad3..47e65d88feb0 100644 --- a/drivers/mfd/madera-i2c.c +++ b/drivers/mfd/madera-i2c.c @@ -17,9 +17,9 @@ #include "madera.h" -static int madera_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int madera_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct madera *madera; const struct regmap_config *regmap_16bit_config = NULL; const struct regmap_config *regmap_32bit_config = NULL; @@ -139,7 +139,7 @@ static struct i2c_driver madera_i2c_driver = { .pm = &madera_pm_ops, .of_match_table = of_match_ptr(madera_of_match), }, - .probe = madera_i2c_probe, + .probe_new = madera_i2c_probe, .remove = madera_i2c_remove, .id_table = madera_i2c_id, }; From patchwork Fri Nov 18 22:42:52 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: 22925 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474480wrr; Fri, 18 Nov 2022 16:04:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf6E+5iByOz/npfVGk3Ud7erNJ9zRfm/O8U0A2ZdwF8PtDz9mPWE9mMN1to0AGeqwdo7jFhM X-Received: by 2002:a63:5c23:0:b0:46f:b6e1:1966 with SMTP id q35-20020a635c23000000b0046fb6e11966mr8482974pgb.625.1668816258914; Fri, 18 Nov 2022 16:04:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816258; cv=none; d=google.com; s=arc-20160816; b=Z9ZD0+8hqczrhlnr47SyazF4e94wqNtN6ozBYCnKxNIO1e1szFv57KItmgdMKfAgo+ Uwv4AdTFmFFBMU5Iv8FStR2bqvk4AKpeIXTCBo9GZuu8FT3Z5ToQDrQxpAGaxX/nBkzi yw3McwpY/8NlKYY6fI9LeLSJFDB20DyPDgecv9S7OTQ9UHRielSRyaofeDk28F3WYyk+ PPJLTdmcnPNtz58EmFQuuHB9MteCijJMUUBpyjFCr/QLiBPh5fn2bj9qMJffuO/WWtl4 s5JFRUuT68lDE9mBSAG3BYQTnlzX5Hn54NHihtTMxx7N9iN/OuXFFSdkgp1oL/y8GCX7 ssWA== 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=ssxXvDbkDsIAT0YkSi9dJkF3ayJXlFWr5SEzWun3D7E=; b=XnHxH8QBeRsbAi+4fiGiPqheAye02T2VDBskYplMEjo9Tcg1LLxOpdByCxXzQ2R0+X vbzaZWjN1IUWKHUwQz6UN3KozxKJJFp8glOppvMuw0PTStpOnp56k12vjbWNy2FNoxhX EsGFeI6BiQbrWut2Q/TeEGaAQYUeEoo9XbMDXytHSdoeSJXGWa8mwpA5Rgb+M7zstlUK +LorLQ38hKeXNpL747Sg0HUqSWg6L4CcgLPgOY7910EelwMU1SJuVbMVj6YOmkhl9sMM pEGi5NP39hi9Hxx6exeNrHKtihda+qa72XOAC1hUAnflOEuI7NHf+AF0S7E9Y3JFlBcH 4P2g== 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 w16-20020a056a0014d000b0056ba70bef19si4987928pfu.350.2022.11.18.16.04.05; Fri, 18 Nov 2022 16:04:18 -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 S237217AbiKRX7Z (ORCPT + 99 others); Fri, 18 Nov 2022 18:59:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236334AbiKRX4m (ORCPT ); Fri, 18 Nov 2022 18:56:42 -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 4DCF0218C for ; Fri, 18 Nov 2022 15:28:30 -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-00047p-Mt; Fri, 18 Nov 2022 23:47:50 +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 1owA9E-0058gw-C7; Fri, 18 Nov 2022 23:47:49 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9D-0000LC-GX; Fri, 18 Nov 2022 23:47:47 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Chanwoo Choi , Krzysztof Kozlowski , Lee Jones 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 438/606] mfd: max14577: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:52 +0100 Message-Id: <20221118224540.619276-439-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=ham 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?1749880677308337501?= X-GMAIL-MSGID: =?utf-8?q?1749880677308337501?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/max14577.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c index 92c7f342c865..c59822637338 100644 --- a/drivers/mfd/max14577.c +++ b/drivers/mfd/max14577.c @@ -358,9 +358,9 @@ static void max77836_remove(struct max14577 *max14577) i2c_unregister_device(max14577->i2c_pmic); } -static int max14577_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int max14577_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct max14577 *max14577; struct max14577_platform_data *pdata = dev_get_platdata(&i2c->dev); struct device_node *np = i2c->dev.of_node; @@ -521,7 +521,7 @@ static struct i2c_driver max14577_i2c_driver = { .pm = pm_sleep_ptr(&max14577_pm), .of_match_table = max14577_dt_match, }, - .probe = max14577_i2c_probe, + .probe_new = max14577_i2c_probe, .remove = max14577_i2c_remove, .id_table = max14577_i2c_id, }; From patchwork Fri Nov 18 22:42:53 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: 23140 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488490wrr; Fri, 18 Nov 2022 16:46:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf6r1TmSy4TjMyHSfXop759LXIMVWLIJIrDshKA4VmDkk4cAZX6uXBdE4vZKMVPYFZ8gohyN X-Received: by 2002:a05:6402:3ce:b0:469:40c:ecfb with SMTP id t14-20020a05640203ce00b00469040cecfbmr5352835edw.164.1668818766468; Fri, 18 Nov 2022 16:46:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818766; cv=none; d=google.com; s=arc-20160816; b=RjSyiGi3RbPnx5v4aOGM/5NxYmpQk9YoQuJoMmHXMDRCLP9xHznhdz26/ErA5Z4lSL EMQdjkdNOVSSQ2m+c5WePUzRCP4yl8t2ww1N0eox1px4wkzIgRq14dqRdSD4zTm5GpBX Abvt8cHUHVdmqlpT/s3b+aAqI/jiZd/QQZhVjUJNaxNOwfOPfJfSpuc+4CNJcfxyP6uX Zz1nCDfFaK34mTGQXBb2TOi+afycqYutk7YVj6utz2FNE4UPPExbHtu/W4WTLLkmMR00 1mEb4ClnVic6v28KQ2+aPF5CIYubHD22lsknI57TW0GAoK49IXJCONo/i+x/hC2OijCo AY8g== 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=xnIu/K2aZski9vCRVr8bY3DDVp7RhcgP/waiyUqyzpk=; b=TTN7QFfh7Lsi8sJKDDx9JTqwQQWWTx/MiB3LT5hnSOS3Me1VtIoO6xO/Z9VUZwCYlE 3unSqSFFQ+LapHCuMoPdlTNNjD958cBfknrAFdQleZKq++b9VqT7pZJT2lUE/LHBYHHX sFhf6vpxnskeOiFR+AtMfZIEUvPvos6c8XChTxjQ69BMSTv9f/uLHHTTIaKuTTvu9/55 0VbSomI6wSxtm4mnCJ1pWemZXW1qMn91xFuFd6vXFhE2sYmHtldoTHB+N6yDOxXMOOOP O7o9SlD7BiiU7Di7u4I3ljvetLnpdEcCcIjLquP5L63JNFbRxmQDGXdl1RO8g9IDAuP4 JSDg== 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 hs36-20020a1709073ea400b00791bcf8aa5esi4431011ejc.739.2022.11.18.16.45.36; Fri, 18 Nov 2022 16:46:06 -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 S232849AbiKSAkg (ORCPT + 99 others); Fri, 18 Nov 2022 19:40:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235651AbiKSAjX (ORCPT ); Fri, 18 Nov 2022 19:39:23 -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 B43D4C768D for ; Fri, 18 Nov 2022 15:44:27 -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 1owA9I-0004DC-Al; Fri, 18 Nov 2022 23:47:52 +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 1owA9G-0058he-0A; Fri, 18 Nov 2022 23:47:50 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9D-0000LG-M5; Fri, 18 Nov 2022 23:47:47 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 439/606] mfd: max77620: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:53 +0100 Message-Id: <20221118224540.619276-440-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?1749883307196364176?= X-GMAIL-MSGID: =?utf-8?q?1749883307196364176?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/max77620.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/max77620.c b/drivers/mfd/max77620.c index 42fa9c4b97aa..cbd2297126f0 100644 --- a/drivers/mfd/max77620.c +++ b/drivers/mfd/max77620.c @@ -494,9 +494,9 @@ static void max77620_pm_power_off(void) MAX77620_ONOFFCNFG1_SFT_RST); } -static int max77620_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max77620_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); const struct regmap_config *rmap_config; struct max77620_chip *chip; const struct mfd_cell *mfd_cells; @@ -698,7 +698,7 @@ static struct i2c_driver max77620_driver = { .name = "max77620", .pm = pm_sleep_ptr(&max77620_pm_ops), }, - .probe = max77620_probe, + .probe_new = max77620_probe, .id_table = max77620_id, }; builtin_i2c_driver(max77620_driver); From patchwork Fri Nov 18 22:42:54 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: 22833 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471467wrr; Fri, 18 Nov 2022 15:56:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf4uO87KRAfQBfYuwen5zjlrgoaWTekpfeQhitGfDDMcMpDSu6YlBFjQ9iDNcGTQ7PNrBiYG X-Received: by 2002:a17:906:38a:b0:7a7:1d4f:c7d9 with SMTP id b10-20020a170906038a00b007a71d4fc7d9mr7888730eja.402.1668815815269; Fri, 18 Nov 2022 15:56:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815815; cv=none; d=google.com; s=arc-20160816; b=biBBJV1h55tqMZWzIWNcgR9uRKlZbo/PcYRlGsoMywbEOE0LQ8vnHMmlVVHyJyDfSw ytQ+Krx0+npVUqyMRNawHXUObxnUbmC/5jIjGnE+sTN9BnsiQvCKIh+vdBTGYxBJ9ESp osU3oHmTtJHiC/2IH7m84xArRr0WhvvK28Raz+FU9GGTrt/XZYe6A/pPtR2rbIofSQGV CFPOBbCZgc0VUEOMQEGbiacUPu9iOgmi78lCju3PwDgpr0R2YKyX6ZtQfDHo10cdNCEH yxMcj4Y8wT8mv4IJle2CwFvSrOHMeWRa2sEst+tf8a8m7EVwiMhnnXjpbgNwv1E6oUZI UzLw== 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=B6sMI970PCsxhlFCZ3R/n5zPc5bpQIG4r5uwefkPgKw=; b=cEG8wxhovM3iQiSg76jEQ7aAbaROZ9uKwcUSUUsrFioIKINAGUtPPU0UYsnXNKYi6G 9mQVulKR3xOeXSdw2E+hyU17P3EcBrhKFiF8+kQpmCUZ0tVatuHA/9Gg2UhkUHqjWRZV jiXSzGHw5v5Hiyi6NnPuOYIyER6pfARKyO37gZcwkJNxuE40tbPgtGenTjGds6g3yvQz UCcpbYo9qiX7xD6ZXbCRPjFisddo7dP8SE+UVNbCboHIG4rITR8utLoXzEMHXjvyVG0h +rZCMr0wX3kjgvfhPm+I3F2KNqFqWfsbgi6Om+Hhjf1LTJvh0vbWjTVzInZc+0w7xHaO SuZQ== 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 sa21-20020a170906edb500b007701a050273si3891109ejb.942.2022.11.18.15.56.31; Fri, 18 Nov 2022 15:56:55 -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 S234477AbiKRXsI (ORCPT + 99 others); Fri, 18 Nov 2022 18:48:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236808AbiKRXqx (ORCPT ); Fri, 18 Nov 2022 18:46:53 -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 0F2DADAD2A for ; Fri, 18 Nov 2022 15:25:30 -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-00047T-CV; Fri, 18 Nov 2022 23:47:50 +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 1owA9E-0058gr-5W; Fri, 18 Nov 2022 23:47:49 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9D-0000LL-Tu; Fri, 18 Nov 2022 23:47:47 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Chanwoo Choi , Krzysztof Kozlowski , Lee Jones 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 440/606] mfd: max77693: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:54 +0100 Message-Id: <20221118224540.619276-441-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?1749880212228906704?= X-GMAIL-MSGID: =?utf-8?q?1749880212228906704?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/max77693.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/max77693.c b/drivers/mfd/max77693.c index 7088cb6f9174..aa32e89b6c8e 100644 --- a/drivers/mfd/max77693.c +++ b/drivers/mfd/max77693.c @@ -149,9 +149,9 @@ static const struct regmap_config max77693_regmap_haptic_config = { .max_register = MAX77693_HAPTIC_REG_END, }; -static int max77693_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int max77693_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct max77693_dev *max77693; unsigned int reg_data; int ret = 0; @@ -360,7 +360,7 @@ static struct i2c_driver max77693_i2c_driver = { .pm = &max77693_pm, .of_match_table = of_match_ptr(max77693_dt_match), }, - .probe = max77693_i2c_probe, + .probe_new = max77693_i2c_probe, .remove = max77693_i2c_remove, .id_table = max77693_i2c_id, }; From patchwork Fri Nov 18 22:42:55 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: 23046 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486606wrr; Fri, 18 Nov 2022 16:40:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf7iJlbx6kj9h+4VR8Yn272kB08Ce4sjWYFHFcWR4HZvzmyDc0K8emHiO3lB+WMKTlYb8hRd X-Received: by 2002:a17:906:b14b:b0:78d:cede:91f4 with SMTP id bt11-20020a170906b14b00b0078dcede91f4mr7833429ejb.764.1668818439662; Fri, 18 Nov 2022 16:40:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818439; cv=none; d=google.com; s=arc-20160816; b=f0/C8cph3sHUsBQgEJF9sM6D9r4L4M7Bw/JmsHXOiNAuJKBbJPxE7CS4R0WnlZ0RQd QGaFTyWvuQWNQckGyT6XZ3Slozz+LaBM3hmkhYrNNbq9/UPAUTe5OpW9idRQFvul10eL 6sB6SNU+3OEp72rf9nBX/qI5RxteCjIvLObAZdl/jHkIJQS17X9iwyCyUCnjxQdfl0eq cBTwZBPLVi6ccpn5B5ZklmPBuxoAtxUYGYENFFOsVfauTriV71mV4351QLi9nv2C851q LvxFuyhQ/DNkmK0m7NX8MOzlsYnp2YoQ3uICxmZvWrm+3TnAn8DoDZJoJf3mmU5aSgDY //7Q== 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=o9A63yrxHs/Sc9yg9nQv/EVEBGRWeNRL8M3E27jRS3s=; b=e2LL3VcX4rcWXx3trJyUSDHr8zBypZuxF1I7pAevYpf1e4HQGIZAK9OReLrY8jZ27c HlnFysdSZADAC7RhKedKvEv+Q+uLm+sc2NvJ5x5D1P4u2u0Kve2GT+x9tCjqrnsjKLHz rKMfojToh+NfOYSOxKDw4KGjDWI3TYp0COG+pT1H196VbhOXOH7fb1R6VmM6bQi/4n5w hp4VaEonChq1YIf9jgT/VhRAz6J0s9mJuKbTtAFyBcqbx+rrfLw1Kaiio3uaiLBLxj5k xxaeaFHOwSePkoEnsXouWO65dOrvBB0lu5i5GsCjAsUZo2l3YpA/W1Y21Ayd2AXw+aWh NULg== 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 sh39-20020a1709076ea700b0077bd074d50bsi1331791ejc.105.2022.11.18.16.40.15; Fri, 18 Nov 2022 16:40:39 -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 S231879AbiKSAWT (ORCPT + 99 others); Fri, 18 Nov 2022 19:22:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233900AbiKSAVX (ORCPT ); Fri, 18 Nov 2022 19:21:23 -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 9CD29101E48 for ; Fri, 18 Nov 2022 15:37:04 -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 1owA9J-0004Fs-Ga; Fri, 18 Nov 2022 23:47: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 1owA9G-0058hz-RH; Fri, 18 Nov 2022 23:47:51 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9E-0000LO-3h; Fri, 18 Nov 2022 23:47:48 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Chanwoo Choi , Krzysztof Kozlowski , Lee Jones 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 441/606] mfd: max77843: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:55 +0100 Message-Id: <20221118224540.619276-442-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?1749882964056958731?= X-GMAIL-MSGID: =?utf-8?q?1749882964056958731?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/max77843.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/max77843.c b/drivers/mfd/max77843.c index 209ee24d9ce1..c6fd93efd5c4 100644 --- a/drivers/mfd/max77843.c +++ b/drivers/mfd/max77843.c @@ -93,9 +93,9 @@ static int max77843_chg_init(struct max77693_dev *max77843) return ret; } -static int max77843_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int max77843_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct max77693_dev *max77843; unsigned int reg_data; int ret; @@ -208,7 +208,7 @@ static struct i2c_driver max77843_i2c_driver = { .of_match_table = max77843_dt_match, .suppress_bind_attrs = true, }, - .probe = max77843_probe, + .probe_new = max77843_probe, .id_table = max77843_id, }; From patchwork Fri Nov 18 22:42:56 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: 22862 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472063wrr; Fri, 18 Nov 2022 15:59:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf47GCG9b+ubnsEyZL6ng6Rtq2Z9FIB2bg6slSdpfxgmSpq5Z3G4gr+povYB6vrcKUTS3jw7 X-Received: by 2002:a17:90a:fc84:b0:217:ff37:2fe9 with SMTP id ci4-20020a17090afc8400b00217ff372fe9mr16084894pjb.242.1668815954354; Fri, 18 Nov 2022 15:59:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815954; cv=none; d=google.com; s=arc-20160816; b=hrJ3ALyyKPcDceZ37JBzjvMJzLvlGfxV4MHmBmbo3+Lbu5i26UWqOTDu/JqU6Dr5X4 zJTCoYIk/xcvdQuKAvK37phG5s9N8WggEBgBa9z1O4QIP1vhnOxba8UpU9mQhS/Hm8Oi njOR3rgcF1vUMQRiFyOV/+PwG8TZsHO4RlAbEmAzyt24jjTLBLXUOj4T9L3OhCtUVTOe 1rNaDLOBANpWbE6VbSKjn1AnCG8t3W14094dpM88MhwDOyTeeakoY7ZBJPY+bGfMpl38 3mRpB3Y1xIBUNHzdgfXSxBx7j8vwleHy7ujIXPNWff1N9zp1J1eoEueZJ1n1rFE4vBrf tsHQ== 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=X67Odj4ZfHMjpQTytgi5px2vhmBr60da38cuJZot2eU=; b=sZ7q43icatCnMnU95RCdviSumQ8w2XJ5dcMaG1DFm/udWW9zHLOKU27ARlhp4nqrBD ZzftqtYTYoJfHzYSVsP+RTDnYDHY9MWeyDlmo7jdhqutOmCsvj3SDETG9kW/ER8iZrtQ YCv2AlSMmPUE4awnIzEn7gG2mbSBFyvxHNK6WV8mIYZfIfTIqvK553Z7wgRtpHZo07P+ rj07uFEXgds0OYrzJTG/bLBxWx52MFP2G7R1ngUYJeLMofeBtBCjRFvh5NoYV34mVXHZ xLO6F5YXdvSrSABSYZ3nNdU1tcCgVdL8VhqCQKqGwp2+9yBkCoKVN6bV1KJGXdRmr+c8 KHEg== 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 k7-20020aa788c7000000b0056c064d3fb1si5315008pff.152.2022.11.18.15.59.02; Fri, 18 Nov 2022 15:59:14 -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 S235192AbiKRXwc (ORCPT + 99 others); Fri, 18 Nov 2022 18:52:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233092AbiKRXvX (ORCPT ); Fri, 18 Nov 2022 18:51:23 -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 10C1EB855A for ; Fri, 18 Nov 2022 15:26:58 -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 1owA9I-0004Dj-D8; Fri, 18 Nov 2022 23:47:52 +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 1owA9G-0058hj-5t; Fri, 18 Nov 2022 23:47:51 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9E-0000LR-B8; Fri, 18 Nov 2022 23:47:48 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 442/606] mfd: max8907: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:56 +0100 Message-Id: <20221118224540.619276-443-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?1749880358056892963?= X-GMAIL-MSGID: =?utf-8?q?1749880358056892963?= 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/mfd/max8907.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/max8907.c b/drivers/mfd/max8907.c index c340080971ce..a69b865c6eac 100644 --- a/drivers/mfd/max8907.c +++ b/drivers/mfd/max8907.c @@ -181,8 +181,7 @@ static void max8907_power_off(void) MAX8907_MASK_POWER_OFF, MAX8907_MASK_POWER_OFF); } -static int max8907_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int max8907_i2c_probe(struct i2c_client *i2c) { struct max8907 *max8907; int ret; @@ -314,7 +313,7 @@ static struct i2c_driver max8907_i2c_driver = { .name = "max8907", .of_match_table = of_match_ptr(max8907_of_match), }, - .probe = max8907_i2c_probe, + .probe_new = max8907_i2c_probe, .remove = max8907_i2c_remove, .id_table = max8907_i2c_id, }; From patchwork Fri Nov 18 22:42:57 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: 23068 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486941wrr; Fri, 18 Nov 2022 16:41:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf74S8K7lLJXsZU9bLNjIrfbuJOSDqhnNvrn6ZiRR9567+PLEz1hcOnx/dGx7y6W19U8/LR3 X-Received: by 2002:aa7:cc04:0:b0:463:1a0c:4dd1 with SMTP id q4-20020aa7cc04000000b004631a0c4dd1mr8383933edt.137.1668818496944; Fri, 18 Nov 2022 16:41:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818496; cv=none; d=google.com; s=arc-20160816; b=HxCPNLDhSZN3+V2kZmEHQW3T6HjYSiHXGNSURVqmarZN93H7nWnHhei/GkHDO1q8mo HVNEu0Xt0FV2gGJAXU+H64Tbtbp3NM1MLDbZnUQ48e6EUF5sTnXKKpCuYw74lW72Rmyh Fl3Li8vlSRNVUtPADUPN3kMpYg7II3jYSZWhkERKVOTPyGRhNcuTJZbaQRA9RgKl7GYN 4XyOSr0ivMBtoVe/U+iGL9q2dh12ENWZWG38IouGmDGglwYMf68DNKCU60DR/OnA2wwf zUT9+LeEVoZ+v3XRMlqPfQ+IGyDJxLvvFIE4KH06JNhQmq6eMOu+2FQnAkx/qV48/AFj /qnQ== 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=v58HUC/7CNHCo7llNkHPAvn7tCunLZ1z4UFGZoWPDIU=; b=iFWNpS7X/DRDQeGSmCw6xRZpqL2MJm2kjv1Wt9fnhYtZD8+8eI4olmECtTuEgZGqoK pmPxeD7Cz2xt+T7hg/MefEjTyjRR1ZptCH36JRigqcVVKPsyfPd7t506PdgbtWfj6oXo ofkv2KJEPFD8/ns/XcF7BKRVX8lJxce4FQHeAmbW40qVOWBIE6uhTCGpvF4AOmhT8F27 eDe8nQ8elhuZa0pEAiIk+VjJLAzMHaPB/RBw6SfE3ef4/+POq9HWQwCEZp8cNPFwZl07 q+fzrG7YtvA0B5ynxA5FtkAZzrtbOzT3e+/qBNpqksZZG0cqxZlbv+65pwgnGlWXj4gc 1yqA== 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 z14-20020a056402274e00b004627d582888si4402963edd.24.2022.11.18.16.41.12; Fri, 18 Nov 2022 16:41:36 -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 S236082AbiKSAgV (ORCPT + 99 others); Fri, 18 Nov 2022 19:36:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235410AbiKSAfh (ORCPT ); Fri, 18 Nov 2022 19:35:37 -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 1D0C7116580 for ; Fri, 18 Nov 2022 15:43:14 -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 1owA9H-0004Ae-Ov; Fri, 18 Nov 2022 23:47:51 +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 1owA9F-0058hD-A1; Fri, 18 Nov 2022 23:47:50 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9E-0000LU-HL; Fri, 18 Nov 2022 23:47:48 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 443/606] mfd: max8925-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:57 +0100 Message-Id: <20221118224540.619276-444-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?1749883024221006526?= X-GMAIL-MSGID: =?utf-8?q?1749883024221006526?= 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/mfd/max8925-i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/max8925-i2c.c b/drivers/mfd/max8925-i2c.c index dcb16eafdc46..4057fd15c29e 100644 --- a/drivers/mfd/max8925-i2c.c +++ b/drivers/mfd/max8925-i2c.c @@ -144,8 +144,7 @@ static int max8925_dt_init(struct device_node *np, struct device *dev, return 0; } -static int max8925_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max8925_probe(struct i2c_client *client) { struct max8925_platform_data *pdata = dev_get_platdata(&client->dev); struct max8925_chip *chip; @@ -241,7 +240,7 @@ static struct i2c_driver max8925_driver = { .pm = pm_sleep_ptr(&max8925_pm_ops), .of_match_table = max8925_dt_ids, }, - .probe = max8925_probe, + .probe_new = max8925_probe, .remove = max8925_remove, .id_table = max8925_id_table, }; From patchwork Fri Nov 18 22:42:58 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: 22780 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466205wrr; Fri, 18 Nov 2022 15:39:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf7QSR/QUNH16MgPrWTeY7C3C44j2hASODS1H8uAOSDbknND/QVH8SZ5M/sUgGM9CcVhgh4J X-Received: by 2002:a17:906:eb10:b0:78e:2ba7:70f6 with SMTP id mb16-20020a170906eb1000b0078e2ba770f6mr7959439ejb.382.1668814765567; Fri, 18 Nov 2022 15:39:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814765; cv=none; d=google.com; s=arc-20160816; b=lywwKWtSrYMsY6y0U4BE0Je9e8GjS9jou5wUoRbUc8rolc7KjFA7XDGwnnsQ1VwGcI ZgYRd0pFkFRKOYTNDNqmhbzytarDzwvBn6ygt/QwKBkyWMmIIUJRMunKX5CFcv3BeX0K xdJ9Dy/56XeSrNADT+bwaYtZ9T2efiRTsojwSAe+8gbZAXanYy8+JhFfJ8jzGQulMNuu lcUu2t2SsgpUrO4rncENO6EpY216Z9rP4QQpDxPwOp3dMUMnRG4D2xjxasGYlHeAwggs L3iM0wZfm5h4SeNUQmsbcBpT4/i712Efn9tHWSTpOqSRnKmdxowQPOcQJcjDOMy5SHD9 8AZw== 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=INu4lF+xxZH29w1haSHJDPf9QZLglq0kc2bAp80vbws=; b=fN7J3oNXNZdv1ZOFu+kwgYgBV/B6eVa0Ru8iUS/rGxSfKnrbcCZnnnXDgQKlF/tnX5 ZbwZKP1GFKrmGl6teSLsMOUnogWkColal+KTfSXYS/Db3FZfmJ48vDx+PnoRbA5U8Myh pim6BX4NfttCGfpIptSbW5N7Zcq6M4zsHyvXKxHpSAJfpFBmwHodpMs0LI6QvrpXs/5e MG2BUSZfe6VCv6XrrPL5FJw647bNLxqPnHVIObXKXkeULGwpO4NPRIxJ6KGIipI0xzpL ZOeSTSJKcUkWuqqsUmMMkJaGL6W86g0gsAhF7IAmhDsX0nnUAc7I4jbQO1ymWB865kXM 9sQg== 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 a24-20020a056402169800b00461cb25bdefsi3891733edv.254.2022.11.18.15.39.01; Fri, 18 Nov 2022 15:39:25 -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 S235736AbiKRXiO (ORCPT + 99 others); Fri, 18 Nov 2022 18:38:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236501AbiKRXdG (ORCPT ); Fri, 18 Nov 2022 18:33:06 -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 CE8C9DE91 for ; Fri, 18 Nov 2022 15:21:20 -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 1owA9H-0004BG-MM; Fri, 18 Nov 2022 23:47:51 +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 1owA9F-0058hN-FC; Fri, 18 Nov 2022 23:47:50 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9E-0000LZ-Ng; Fri, 18 Nov 2022 23:47:48 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 444/606] mfd: max8997: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:58 +0100 Message-Id: <20221118224540.619276-445-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?1749879111388400854?= X-GMAIL-MSGID: =?utf-8?q?1749879111388400854?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/max8997.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/max8997.c b/drivers/mfd/max8997.c index 2141de78115d..79d551b86150 100644 --- a/drivers/mfd/max8997.c +++ b/drivers/mfd/max8997.c @@ -152,9 +152,9 @@ static inline unsigned long max8997_i2c_get_driver_data(struct i2c_client *i2c, return id->driver_data; } -static int max8997_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int max8997_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct max8997_dev *max8997; struct max8997_platform_data *pdata = dev_get_platdata(&i2c->dev); int ret = 0; @@ -478,7 +478,7 @@ static struct i2c_driver max8997_i2c_driver = { .suppress_bind_attrs = true, .of_match_table = of_match_ptr(max8997_pmic_dt_match), }, - .probe = max8997_i2c_probe, + .probe_new = max8997_i2c_probe, .id_table = max8997_i2c_id, }; From patchwork Fri Nov 18 22:42:59 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: 22806 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466903wrr; Fri, 18 Nov 2022 15:41:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf4uuYISYoNpFDVcdjpBKFx6CiHxCsZJfP2NrE/WDtxJEopdVik89nlrgkyHoAB1BVPRSoah X-Received: by 2002:a17:906:180e:b0:7a2:6d38:1085 with SMTP id v14-20020a170906180e00b007a26d381085mr7795212eje.114.1668814887962; Fri, 18 Nov 2022 15:41:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814887; cv=none; d=google.com; s=arc-20160816; b=VRiF206bCu1FB/avauz71cRTGxUGTLUBB0CH20E762fbHQvA3CYLOWH+sIP9QbzaPa YApf1CgZGksRCy0p0+4LdQDVEfbr4lIoeHglPiAvQEVf8FWqFKNurtGVap2HeuAHA3jV pqdMlK610jOZTn6JTeNt3kSSkpy7jtp3biDGeK+Y7/aQ+V/Oz8vkiluSnj9lGRKU7GQF kk7XYzqvbmurL5oirUR+cuS1ZoRDmPQLvH08CIRcKlZ9Mns4leC9SgA+juBAXK56S6tw tV09fbhsktpT4xiEcC79t5Llic2iO2u8A079mPtOmhjA4sV6Hc5b8wgZAEgyBH6azpEb XFBA== 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=5UvdSOVkI4zD2zGczfMl7qfx5RnXrN0LiOVL5ewpLd4=; b=Z/uC9b3uN2SmU1vl6efQDVGKYSeeVB9tRFFTBJHxj/ZKArqUbmxE03TnIreJq4M1ql FCUSzDnRRJL1fUci36SgaqLTsmDneaUxhWHBNZaIEU+YQibQ+vtEPE4WcYZJVyOCVi2/ x4oI2tejV6O0I5ceX0SLC/9UaMrq1xM/xZk4Gsp5Mk7ra3r7V+7uSxMfi8xCV76X2wcK wf6zBFBpkSnyA4zzxet/Ewppfm6oNtt+i+UgCFUedssfEM8UG8rwgCpp31b4pHGaSk+a xjGiJZjv+WffNYAcH0ZE20ViZtXD1Lqq1uu2FswTagqfcrOQjIJOIuoUkyN83KnrdqOi cMlA== 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 z2-20020a1709063ac200b0078dee0fce23si2984820ejd.123.2022.11.18.15.41.04; Fri, 18 Nov 2022 15:41:27 -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 S236325AbiKRXkS (ORCPT + 99 others); Fri, 18 Nov 2022 18:40:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236784AbiKRXhz (ORCPT ); Fri, 18 Nov 2022 18:37: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 E38786D97B for ; Fri, 18 Nov 2022 15:22:33 -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 1owA9H-0004BE-Qh; Fri, 18 Nov 2022 23:47:51 +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 1owA9F-0058hL-Eb; Fri, 18 Nov 2022 23:47:50 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9E-0000Le-T2; Fri, 18 Nov 2022 23:47:48 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 445/606] mfd: max8998: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:59 +0100 Message-Id: <20221118224540.619276-446-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=ham 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?1749879240040262677?= X-GMAIL-MSGID: =?utf-8?q?1749879240040262677?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/max8998.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/max8998.c b/drivers/mfd/max8998.c index 0eb15e611b67..122f7b931f5a 100644 --- a/drivers/mfd/max8998.c +++ b/drivers/mfd/max8998.c @@ -162,9 +162,9 @@ static inline unsigned long max8998_i2c_get_driver_data(struct i2c_client *i2c, return id->driver_data; } -static int max8998_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int max8998_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct max8998_platform_data *pdata = dev_get_platdata(&i2c->dev); struct max8998_dev *max8998; int ret = 0; @@ -348,7 +348,7 @@ static struct i2c_driver max8998_i2c_driver = { .suppress_bind_attrs = true, .of_match_table = of_match_ptr(max8998_dt_match), }, - .probe = max8998_i2c_probe, + .probe_new = max8998_i2c_probe, .id_table = max8998_i2c_id, }; From patchwork Fri Nov 18 22:43:00 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: 22712 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp463187wrr; Fri, 18 Nov 2022 15:31:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf48MH38JJyzDBJOH0jIFlOeyBemiygmMoAKzBn2Qy0NeMaZzvE6iTJfUuHNjPL8akgz6zOA X-Received: by 2002:a17:907:9190:b0:78a:52bb:d904 with SMTP id bp16-20020a170907919000b0078a52bbd904mr7575844ejb.630.1668814311419; Fri, 18 Nov 2022 15:31:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814311; cv=none; d=google.com; s=arc-20160816; b=V61G7PK0sj4ySOt1SSV7S4gCJMKCOIS0qT9u8e9SSM0FQ7FpB4Ug2oKoLbRg2PL2mG nS+kxieZD3gaznMM5iXlZWnQh+Fv7dh6VF9BaM5ex8A5XQIccPCCCr+9mrsgtSEsESzB di9l3V0NJWyLF5UqsWOi0jTl7cxFE5IEdtxySBEll59Gm+1pQkTi1iy5r05u21cKAcnj iT0tmewvWYM9fE/LokkdOKDDUJ7oBM8Bi4r4yVlhEdBKR8MgW2ZBpavFjrGoTs8HMyKn EDuElplDmxiH8DN9KAbAK+HdMTACxwBdPyCgDszfYTp86vRs4lopXt0JdpW7G+gG4ziL Kfdw== 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=1iYmbEWXQ/1zVdBO/MqzUmtjn+iWbkC73C8IQKwYBoI=; b=z5av5j/DjRQDLlLV9xkKumQseLNjwXKaqJUsMlh7EuMbJca8wA7WJmhmJVWpOW2pS7 m7OFD050DbXK9Yd3Fto7WUnkwrvvmqZ8//zzcVxfn0PBk3SMBpL6xBGt2pMNHRDtZdI4 XrtkE3rCGaw+SimBirysm8JPVnXwkvufRBIFNQz/7dBwOYCea5IZ3PhdcCDZnR93VUBA SGfvLSXXDAFULisTCGyccfGBBKdc8m0KMhJqP07gLU2uVwpf56rGe7iVgkFzzHd1jrLg N4a9syylstA+wI4pGwvX5U2DHdjNns7gNR5HDJ791htO3TYybXgXVxAAmHLrA678H6Te waHg== 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 m11-20020a170906258b00b00767e24156dbsi3174967ejb.256.2022.11.18.15.31.27; Fri, 18 Nov 2022 15:31:51 -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 S236005AbiKRXau (ORCPT + 99 others); Fri, 18 Nov 2022 18:30:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235764AbiKRX3R (ORCPT ); Fri, 18 Nov 2022 18:29:17 -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 8E973C1F49 for ; Fri, 18 Nov 2022 15:17:30 -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 1owA9H-0004As-Il; Fri, 18 Nov 2022 23:47:51 +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 1owA9F-0058hG-Bu; Fri, 18 Nov 2022 23:47:50 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9F-0000Lj-3U; Fri, 18 Nov 2022 23:47:49 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 446/606] mfd: mc13xxx-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:00 +0100 Message-Id: <20221118224540.619276-447-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?1749878635160349004?= X-GMAIL-MSGID: =?utf-8?q?1749878635160349004?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/mc13xxx-i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/mc13xxx-i2c.c b/drivers/mfd/mc13xxx-i2c.c index 89ab01105460..633b973a5ba7 100644 --- a/drivers/mfd/mc13xxx-i2c.c +++ b/drivers/mfd/mc13xxx-i2c.c @@ -51,9 +51,9 @@ static const struct regmap_config mc13xxx_regmap_i2c_config = { .cache_type = REGCACHE_NONE, }; -static int mc13xxx_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mc13xxx_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct mc13xxx *mc13xxx; int ret; @@ -95,7 +95,7 @@ static struct i2c_driver mc13xxx_i2c_driver = { .name = "mc13xxx", .of_match_table = mc13xxx_dt_ids, }, - .probe = mc13xxx_i2c_probe, + .probe_new = mc13xxx_i2c_probe, .remove = mc13xxx_i2c_remove, }; From patchwork Fri Nov 18 22:43:01 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: 22648 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460549wrr; Fri, 18 Nov 2022 15:24:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Rn0ffvH0Hd2LvLAOqPZcv92uY1efhljoIBJ2K2Du2S+mRDFqJctbHgrm2G0iFysZH4snW X-Received: by 2002:a17:902:c3d1:b0:186:886f:e1e0 with SMTP id j17-20020a170902c3d100b00186886fe1e0mr1521221plj.162.1668813876692; Fri, 18 Nov 2022 15:24:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813876; cv=none; d=google.com; s=arc-20160816; b=HSxAPSbAKxtcHFkXQgFFdCHoECVYBrgGEJNy/8/kLksbwzR+4LZVsXPsiYfHvn/Wpd fprB4NglN2ukoF+C273O0uFuS61k8uChc+geogvO0pJb7AwDqiOhJo527IHrC8WXZgNY vknm0PF4b9dHbGw6blzCLrfv5qBt4kfOyiFWLgfr+HFDKIJxLEeWu80fPyQnWgS47Kof kQQU7BpDxNVMZPvB0DjoeN3cJp08wcQ0qz6p0gktDX2TWyMnJn/+l1/AGbQd7Pk0I7VQ RyWTRmPSDmsikzZuU19fe/9lS3bQA28QPgTKiwUkN98BqzBb5XQ7JeI49IW6/PqiWlvm 613g== 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=WtmX964IUUu+QQkWZe+kn8xOkLKqvytXW9T3aFjU8BM=; b=l+ok1BpOgYkODphLgpgXxmiZD7c91uOzt53HoZbukRAUkXdGeasXcbsEozi1a62kWV HnRsM/JF9tuLg1cohO7TwU+IYBBu62EhAChAD/b/P7Fz7zrEk+mi5o8d+YcOI6lgNlV7 LgT3EftUWFyk+7ghN1ieZGPVPAHkawc5/dGb9hny+jMHg5BbtGSxaz7i9fZ5aQrAIl3v r1p7Fn1Cl1DKH5l6Pzx19RJoUP/W46jwk6uVkvkl9mWVJmyJbfBo81mIuvNMcKakAdlU sF//Ygf0X8uW6/TiXmhaKexv5TxNsxDR+MhygEpunCA6W80/h+JHyKKfQuvU3hpfSYT8 sGjQ== 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 q25-20020a635059000000b00439f012ca7asi4848634pgl.743.2022.11.18.15.24.22; Fri, 18 Nov 2022 15:24:36 -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 S235410AbiKRXXW (ORCPT + 99 others); Fri, 18 Nov 2022 18:23:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbiKRXVO (ORCPT ); Fri, 18 Nov 2022 18:21:14 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E96D352175 for ; Fri, 18 Nov 2022 15:12:34 -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 1owA9I-0004BS-9P; Fri, 18 Nov 2022 23:47:52 +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 1owA9F-0058hR-Hn; Fri, 18 Nov 2022 23:47:50 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9F-0000Ln-C6; Fri, 18 Nov 2022 23:47:49 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Tony Lindgren , Lee Jones Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 447/606] mfd: menelaus: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:01 +0100 Message-Id: <20221118224540.619276-448-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?1749878179135113816?= X-GMAIL-MSGID: =?utf-8?q?1749878179135113816?= 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/mfd/menelaus.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/menelaus.c b/drivers/mfd/menelaus.c index eb08f69001f9..c2866a11c1d2 100644 --- a/drivers/mfd/menelaus.c +++ b/drivers/mfd/menelaus.c @@ -1142,8 +1142,7 @@ static inline void menelaus_rtc_init(struct menelaus_chip *m) static struct i2c_driver menelaus_i2c_driver; -static int menelaus_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int menelaus_probe(struct i2c_client *client) { struct menelaus_chip *menelaus; int rev = 0; @@ -1241,7 +1240,7 @@ static struct i2c_driver menelaus_i2c_driver = { .driver = { .name = DRIVER_NAME, }, - .probe = menelaus_probe, + .probe_new = menelaus_probe, .remove = menelaus_remove, .id_table = menelaus_id, }; From patchwork Fri Nov 18 22:43:02 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: 22822 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471247wrr; Fri, 18 Nov 2022 15:56:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf6xmHeKm/uWoym+zgF4KcHqgUBvlbHseyyBg+cdx8PseRaOMcnKys6mB5Jgw4aIU7lkxNwr X-Received: by 2002:a17:907:76f0:b0:7ae:72ae:1f85 with SMTP id kg16-20020a17090776f000b007ae72ae1f85mr7553338ejc.133.1668815775459; Fri, 18 Nov 2022 15:56:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815775; cv=none; d=google.com; s=arc-20160816; b=sUdK0OeLQmWh9JvGd1q2E7jiJit05JGIQLpdk0Qe+mIErV+6k78wTiSLjXYaZ0RNJD qu3bAWVokKtl3F22x88jcxfjIWlifadzdN/nLTFCXpuLtxLnxeLVfrg133A/Umf5Rj8O 4Xo6SRpL5j78cWig9hmI8ENKhc3w7g3uhmJ+b8Z8TYZJLzAgnr+yh4dnsxH1CWtPKdFL JLXmJXnOcFprZdv1TLKTJbuCjpWtlcY+zMnG1fd4rZqVEw4ypNqw4BnsE8eLwjZ9s5NB L0Nlr1mHjOOs4jRy7vxv000wcpLSFQJyXILQzO+LWtyO1jhSc6K/uM+frYhMmFCihk/3 bTLQ== 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=6VupmvwotYukyC8wveW34e2FGAc+sCgr0N8hzzsw06s=; b=Fgbd7ikHxkfaI2TVZhr2uRot9sGsTgLErJ+W/2Kekb0iySfQ8N6Pl6dqyw+6/j0ICs SvOo6oGUor9hoO+kkKPt7O4l6YQA/p514VieJ9BldcP1ZV56qbHUtTelMSQl+iCEwJ9R xDrWF64ZHv/kkKw9Wni1Z6/U6CB1aoa4kuTd0Ult2Mhz521Hmm3afc13YNdcGinQMk9T rIST8/1yCffic45JZlNQLgvdfrLAoaLcBM+7Kyhgxv/d6cPRNnApGJJrcKV1u+eVUtZU OAsivrsBWJitte5u8nc0lv9TYx1DUrPlxAyNfPJq2+inaUaZiwj4T7N8nFL2HuxVicbm jDbA== 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 m12-20020a056402510c00b00457fc1bcf12si366965edd.183.2022.11.18.15.55.51; Fri, 18 Nov 2022 15:56:15 -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 S234444AbiKRXnQ (ORCPT + 99 others); Fri, 18 Nov 2022 18:43:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236790AbiKRXle (ORCPT ); Fri, 18 Nov 2022 18:41:34 -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 7B76EC623E for ; Fri, 18 Nov 2022 15:23:11 -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 1owA9I-0004CW-GX; Fri, 18 Nov 2022 23:47:52 +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 1owA9F-0058hY-Qp; Fri, 18 Nov 2022 23:47:50 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9F-0000Ls-Ht; Fri, 18 Nov 2022 23:47:49 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andreas Werner , Lee Jones 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 448/606] mfd: menf21bmc: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:02 +0100 Message-Id: <20221118224540.619276-449-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?1749880170738541893?= X-GMAIL-MSGID: =?utf-8?q?1749880170738541893?= 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/mfd/menf21bmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/menf21bmc.c b/drivers/mfd/menf21bmc.c index 8f72b1cccbe5..9092fac46e35 100644 --- a/drivers/mfd/menf21bmc.c +++ b/drivers/mfd/menf21bmc.c @@ -49,7 +49,7 @@ static int menf21bmc_wdt_exit_prod_mode(struct i2c_client *client) } static int -menf21bmc_probe(struct i2c_client *client, const struct i2c_device_id *ids) +menf21bmc_probe(struct i2c_client *client) { int rev_major, rev_minor, rev_main; int ret; @@ -111,7 +111,7 @@ MODULE_DEVICE_TABLE(i2c, menf21bmc_id_table); static struct i2c_driver menf21bmc_driver = { .driver.name = "menf21bmc", .id_table = menf21bmc_id_table, - .probe = menf21bmc_probe, + .probe_new = menf21bmc_probe, }; module_i2c_driver(menf21bmc_driver); From patchwork Fri Nov 18 22:43:03 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: 22690 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462459wrr; Fri, 18 Nov 2022 15:30:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf7JJ9as9fCriysmvzDy8lgD/IDDOGkFIJVvfcDYcy5oqF/ZTKq+8qZcDRMQmsvLVNRf1AYp X-Received: by 2002:a17:906:814f:b0:7b2:86d6:292d with SMTP id z15-20020a170906814f00b007b286d6292dmr7679434ejw.714.1668814210946; Fri, 18 Nov 2022 15:30:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814210; cv=none; d=google.com; s=arc-20160816; b=wJdkneXFXRuhu2xJO5cAU4Xdy4HfOZTxxLmIeGCOE0uX5ssOYdqI0jwq2s4MiENwJH Mue613e9yyg/Z9MTjEkAPxAeKk+Ufes9L1TstW1+aEOAfeeEKvy/whpvEr6Hx0CIZWxs DNa9qgAo4l9X0+D9jbXKjD1m6aCSMnQC4J4IJMlm8TSdjQjFU49UEUZ6oCgyEopRx0QF tJ9E0OKij6QNSgaZrxRN3szMTQg/LoNraR3s2dIuHasSRnynGF61h0xUJcvJA6Cbm3EH PycpO8dzRWySBrLwCTQ84T2laW8X3AlFxRTmX/+43Z2tiRmirdwiW0K1iFoUi6A+f2KM D5gA== 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=T/fBTDrhxbjjjpahjGS5JS9AGzv0ssz/HvjJnL+xxIA=; b=SV5Q22t2pU0tRRjV1fSl79AM5wFzxYZmG3Tal9AtSp3wmjwoMRRJgfgqhyTmiueA5L IIX1LnNVzQ13/1D4exduE1bTRP8AWxHM8Y9zdGOhtaD+jdPqfHEhayP1Q/pBopNAgq2X qS9FaIzbu5HGvJMu97vhoWkk6rNvVs02xQJ+QPvKg+8BegDCizaNRY4arDLX2ep+BUP/ 6vwaQ1qzeH0qqyXVOVzWu1g6RgbTiH82lqhboRNBFpfZWdOA4tA/8Ab9NTO+8rAA5AMZ BEkh4i7j3ePGAriVLQUBFOiotPe2KeRT3/7g41DbdoN6WnaRSjEmKfGgL1wmqJCB1ARt HsLw== 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 xh13-20020a170906da8d00b0078e29796733si3843523ejb.653.2022.11.18.15.29.45; Fri, 18 Nov 2022 15:30:10 -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 S235825AbiKRX3V (ORCPT + 99 others); Fri, 18 Nov 2022 18:29:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235776AbiKRX2g (ORCPT ); Fri, 18 Nov 2022 18:28:36 -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 BEC1C7460F for ; Fri, 18 Nov 2022 15:16:28 -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 1owA9J-0004HR-TP; Fri, 18 Nov 2022 23:47: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 1owA9H-0058iL-GI; Fri, 18 Nov 2022 23:47:52 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9F-0000Lv-Nm; Fri, 18 Nov 2022 23:47:49 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Tony Lindgren , Lee Jones Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 449/606] mfd: palmas: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:03 +0100 Message-Id: <20221118224540.619276-450-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?1749878529870223978?= X-GMAIL-MSGID: =?utf-8?q?1749878529870223978?= 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/mfd/palmas.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/palmas.c b/drivers/mfd/palmas.c index 8b7429bd2e3e..d26d82c85ba8 100644 --- a/drivers/mfd/palmas.c +++ b/drivers/mfd/palmas.c @@ -502,8 +502,7 @@ static const struct of_device_id of_palmas_match_tbl[] = { }; MODULE_DEVICE_TABLE(of, of_palmas_match_tbl); -static int palmas_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int palmas_i2c_probe(struct i2c_client *i2c) { struct palmas *palmas; struct palmas_platform_data *pdata; @@ -732,7 +731,7 @@ static struct i2c_driver palmas_i2c_driver = { .name = "palmas", .of_match_table = of_palmas_match_tbl, }, - .probe = palmas_i2c_probe, + .probe_new = palmas_i2c_probe, .remove = palmas_i2c_remove, .id_table = palmas_i2c_id, }; From patchwork Fri Nov 18 22:43: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: 22834 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471473wrr; Fri, 18 Nov 2022 15:56:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf50HrUzoYcEjivQzeMSbEMzBtI3cTsoAKqVXpGKkDBlW8nUpCBYMVzQ5pcW3OupBUbMarNH X-Received: by 2002:a17:906:70c2:b0:7ae:d58e:3a4a with SMTP id g2-20020a17090670c200b007aed58e3a4amr8000651ejk.332.1668815815655; Fri, 18 Nov 2022 15:56:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815815; cv=none; d=google.com; s=arc-20160816; b=bO1yxxmiP9sN/aHWga123DnybIhgioCXYzD4MDoK2azEN/L0qHNXCTE9ZyPZvz/WHA dweiQwOBZnaK2Kk7zZn7TPnRRgE64az4QY442lQfjvy1MZwaOQH1EP4XsS8f/phu5goB 6BuaaG7L8jknlgmFyrnVDFDtR1EBscTmjXt7uvZk1VNtIXJvldpne7FCNNzcyJ8z6yeA 4r8BpdlKa9YnQA7Uxn3PrZctJxgCfSoeCdsUnjxF8yzY6UXhoHnd2mQgfESQ6kEjbrRi FL/CQ3WM8doM0bV4PtiUmYU3Udf+hIVD1EnrOkYTNOAZjBlZwJm5MaclJE4i1etl8xAa Khww== 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=WfXvV+EJLK15CLDYTzhpp9qY2vke19lMlZvVY3IdFtI=; b=hpZPKE+xcWfmjR8rvRUoJBUeVbTupQ3dIte/OMLpS37ncG6ExjV2pM8ReZdsSx+Zoj eLAomBy1f5sWokgknm31SsCJJx7iE0GpbGjJ7cJEYboePWwNWoHidHXsnFHyEBW+/LCs L0ido13dkgj4F7lR5Ppcn1ziHyiZOZFgtkOuZr9RRgy+o+IyO4pMZKhCKE12h39FPFXu vVB69zYgu5wAet/d9KL38271M6FolSGkuZPPhJW5NAZuEVQtKp2ZmME8Adnj7LQcVZr7 DNcP42WsXWlWQ1itZBKmaSodxFiazetRrVkyDHDJuISp2rXsqrvLzYGJeUkynm9QREuy 1/Ag== 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 nb11-20020a1709071c8b00b007a953d421bbsi4140887ejc.322.2022.11.18.15.56.31; Fri, 18 Nov 2022 15:56:55 -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 S236822AbiKRXoz (ORCPT + 99 others); Fri, 18 Nov 2022 18:44:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236502AbiKRXoX (ORCPT ); Fri, 18 Nov 2022 18:44:23 -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 D56E4C78C6 for ; Fri, 18 Nov 2022 15:24:27 -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 1owA9I-0004Di-Du; Fri, 18 Nov 2022 23:47:52 +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 1owA9G-0058hi-5c; Fri, 18 Nov 2022 23:47:51 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9F-0000Ly-TG; Fri, 18 Nov 2022 23:47:49 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 450/606] mfd: pcf50633-core: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:04 +0100 Message-Id: <20221118224540.619276-451-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?1749880212492964067?= X-GMAIL-MSGID: =?utf-8?q?1749880212492964067?= 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/mfd/pcf50633-core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/pcf50633-core.c b/drivers/mfd/pcf50633-core.c index e7928b8b1188..0e4fc99e9f49 100644 --- a/drivers/mfd/pcf50633-core.c +++ b/drivers/mfd/pcf50633-core.c @@ -163,8 +163,7 @@ static const struct regmap_config pcf50633_regmap_config = { .val_bits = 8, }; -static int pcf50633_probe(struct i2c_client *client, - const struct i2c_device_id *ids) +static int pcf50633_probe(struct i2c_client *client) { struct pcf50633 *pcf; struct platform_device *pdev; @@ -283,7 +282,7 @@ static struct i2c_driver pcf50633_driver = { .pm = pm_sleep_ptr(&pcf50633_pm), }, .id_table = pcf50633_id_table, - .probe = pcf50633_probe, + .probe_new = pcf50633_probe, .remove = pcf50633_remove, }; From patchwork Fri Nov 18 22:43:05 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: 22919 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp473074wrr; Fri, 18 Nov 2022 16:01:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf5uDumx+vYRwX5e9kLNoudZsC9UNwb2CLGUUGcNnVWmbkrFVJDvMBK+zDnZYtF027RTE3iH X-Received: by 2002:a63:180a:0:b0:470:63e5:5c59 with SMTP id y10-20020a63180a000000b0047063e55c59mr8561957pgl.172.1668816083068; Fri, 18 Nov 2022 16:01:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816083; cv=none; d=google.com; s=arc-20160816; b=zg4XWMduPjx7EfgnlpwpQ2SLcSBabd8vf3wvjOFFQj+K+zDmMhMp+fkdoZPzIahcDt fgDAgvhCDob3ez83E/RW1xQ69o0jgWAoUVFwXcfQCKMKKYRSoirCz3xPOW5cDdeFj1Hb V/LnD+NC7yOlo9WAzRnTU0TefpC1bdOu82X8iXBOlICA1NqXqE9a6LopMc5qEuVc56xW +1AxyHKZ0qOYlORZ9T7dvfHYUXJxHRnYYIcisQ2ulCQV0PK/LWB2ZXyCG40TSTzywEXH v+suFwIQpgcvZBvjubgDOHpSdgFJmU4keXt8mFtDEm65hZrE/Wi8xQj0pikDcWp3B/hw YjKw== 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=eoG/r0nZ8+juYo/42PBfQ12XFdCMiSzvROmfdSjKZ2E=; b=eH9mgAxG2l+96ZOR4V7SwBi+tkyBQshatNmy928AZh6lD3EtpmQ4JBQqVGaId05ZYj 0qXDv7F8jvTZnDOIbY0bLhbWSnrOsh4xmBDNOhQ0AmVSdRAKRMZYG2PgzKDZwcjoHhek DobrnM/qU8f/Bv+YXNMdVOiqvUixEKwnaJWEbHCf5mIjyobW5m9mY80Dz0MLoIs/VEaB do6OHTduA20nF6/oAdb0D3b7VH1w9tBwiWzZfeo4LK5/elrzS0+ssDWj5KyRnDKksEFm DS6mr3PhZIv70Sk+/PMmi/LqK8TNxziQP4QI893f4dyu+vHK1A5E4MEGHCGowI71kBQM 0d/w== 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 f11-20020a056a00228b00b00541505b05dbsi5388052pfe.31.2022.11.18.16.01.09; Fri, 18 Nov 2022 16:01:23 -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 S236991AbiKRXwz (ORCPT + 99 others); Fri, 18 Nov 2022 18:52:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235140AbiKRXvl (ORCPT ); Fri, 18 Nov 2022 18:51:41 -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 CE043BBDCE for ; Fri, 18 Nov 2022 15:27:06 -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 1owA9I-0004EP-Ro; Fri, 18 Nov 2022 23:47:52 +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 1owA9G-0058hp-D0; Fri, 18 Nov 2022 23:47:51 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9G-0000M2-3a; Fri, 18 Nov 2022 23:47:50 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 451/606] mfd: rc5t583: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:05 +0100 Message-Id: <20221118224540.619276-452-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?1749880493051097685?= X-GMAIL-MSGID: =?utf-8?q?1749880493051097685?= 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/mfd/rc5t583.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/rc5t583.c b/drivers/mfd/rc5t583.c index d0dc48f99096..df83cc399315 100644 --- a/drivers/mfd/rc5t583.c +++ b/drivers/mfd/rc5t583.c @@ -233,8 +233,7 @@ static const struct regmap_config rc5t583_regmap_config = { .cache_type = REGCACHE_RBTREE, }; -static int rc5t583_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int rc5t583_i2c_probe(struct i2c_client *i2c) { struct rc5t583 *rc5t583; struct rc5t583_platform_data *pdata = dev_get_platdata(&i2c->dev); @@ -289,7 +288,7 @@ static struct i2c_driver rc5t583_i2c_driver = { .driver = { .name = "rc5t583", }, - .probe = rc5t583_i2c_probe, + .probe_new = rc5t583_i2c_probe, .id_table = rc5t583_i2c_id, }; From patchwork Fri Nov 18 22:43:06 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: 22876 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472213wrr; Fri, 18 Nov 2022 15:59:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf5DScZ+y7/5bnsfzrrJ7ldv8F6NK5WM0IQ+P/TaKZI5D76MaG5+lAev67/HIAaczgQxBvP4 X-Received: by 2002:aa7:c145:0:b0:469:400a:3f8e with SMTP id r5-20020aa7c145000000b00469400a3f8emr883924edp.108.1668815984176; Fri, 18 Nov 2022 15:59:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815984; cv=none; d=google.com; s=arc-20160816; b=i0cUFW/aHmQQcma6ngYmh886Pq9vJX9x4zOzc5umYURKuyrtjbdVSsZzVG1Oz6hxA1 HKt6qRgRkz+WMjlynjhjS3m4+hXktbc/51XBXgy7PP+mklaURKuq2Ykzmkhd9Wp1mz9g 216ZGSj6bynMOAWZFR32kEdfxDlSw8X88ObYfSq0ZAkImCD5eCFbbIJB/s8At/wj3lNh 03R67gJs+FS/aMpvQGpAWkQnUubK5pC6EcYI2xfpipGbw463MWhMQTwRw7jqzzfynHaQ 50D4ht6p2YJT1p9tfl9fwDXm+914zg6e+TtD6asLCrWcHs16GdDzATVmuztH582a3YMn bg1w== 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=ja0I6847pyO6mcuDhMn95SeelM63eFoi5fzoBJFiukk=; b=NMmqBfJL53vnkiqF5nIIKZ3pjkcv0Gp1QTYYGXFslSNJAYNa7oryXafPCBxkLIL75A vdGVABo7FxW6jalRU/H7PFKG0uzgIfxiJI6hJBRzIZmC/oKqBHkVaS2YkXAR7NbAByiY PBZpt/5EDRdAR9R7u5dIFxlzIDDi8mCPutzbyvkTTOuwodXbZk81f9nSbZqwTjBC4+xA 3f/7kI/iwh/nm8a0QMKJcRwsFo9fKbrwdK0g4PrXriqlxQhmh03Dpl8co4TXsnzSbWjD hRvx3DkGxUQMCRHsU1wiMFJS5dciZghjzw+PyglBX0lni7tp5oBny1btVmzXgk4VLfCV w3Bg== 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 hq28-20020a1709073f1c00b0078d27c1b499si4353138ejc.500.2022.11.18.15.59.19; Fri, 18 Nov 2022 15:59:44 -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 S236818AbiKRXpi (ORCPT + 99 others); Fri, 18 Nov 2022 18:45:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233765AbiKRXpF (ORCPT ); Fri, 18 Nov 2022 18:45: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 5EBF2CC15E for ; Fri, 18 Nov 2022 15:24:42 -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 1owA9I-0004EV-Hf; Fri, 18 Nov 2022 23:47:52 +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 1owA9G-0058hq-EU; Fri, 18 Nov 2022 23:47:51 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9G-0000M6-C4; Fri, 18 Nov 2022 23:47:50 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 452/606] mfd: retu-mfd: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:06 +0100 Message-Id: <20221118224540.619276-453-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?1749880389845766358?= X-GMAIL-MSGID: =?utf-8?q?1749880389845766358?= 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/mfd/retu-mfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/retu-mfd.c b/drivers/mfd/retu-mfd.c index 3b5acf7ca39c..d71483859e2e 100644 --- a/drivers/mfd/retu-mfd.c +++ b/drivers/mfd/retu-mfd.c @@ -227,7 +227,7 @@ static const struct regmap_config retu_config = { .val_bits = 16, }; -static int retu_probe(struct i2c_client *i2c, const struct i2c_device_id *id) +static int retu_probe(struct i2c_client *i2c) { struct retu_data const *rdat; struct retu_dev *rdev; @@ -318,7 +318,7 @@ static struct i2c_driver retu_driver = { .name = "retu-mfd", .of_match_table = retu_of_match, }, - .probe = retu_probe, + .probe_new = retu_probe, .remove = retu_remove, .id_table = retu_id, }; From patchwork Fri Nov 18 22:43:07 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: 22916 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472956wrr; Fri, 18 Nov 2022 16:01:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf69ru2Dno4D6i8R3eJBs0KVyA5yhley4u8zum8rR1ooFRQRGcabpTxEZfyR5nsCLnVBOftK X-Received: by 2002:a62:1e03:0:b0:56b:d68e:41f6 with SMTP id e3-20020a621e03000000b0056bd68e41f6mr10026330pfe.36.1668816072812; Fri, 18 Nov 2022 16:01:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816072; cv=none; d=google.com; s=arc-20160816; b=TMsAUAo1+Saie0qGOZiWpAnBTzjuEQWgDv2eXll61sNy4J63JpSUCZyShBZPCdB7bW o65b4rK2yl8epWnHWgiHLF7yiht23CRRdXw8vde4Tvhxq8IvMAWxHV6XN2ZQbhREOU+9 +UkNJU26lC90FEIzsE1viw6lATJSFRENKyPj6y17+Sn4F8Cv5OdZjzsmvNYY0NnwgCyU aFphcmPSvfCLqIBDCrQVwmMC+lKIrVmlW8ohQ9CXlJycJquT0xMbKLL5gXi/wAehnfxs FHgv8NooiUs39BrsRbKF0lsNQSLQFfb76swb7CrY7pNF5Mt45UrEiJkpjD+VM7U9Dshe u8zw== 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=bP1u53awMAXfD+QhzTamUjrUjPRiiJFIx3n4H72C4J0=; b=VLPQ9l636+zr7pMvvYtoYjX0B5146+UG9PiAyVwdY5GS9y2p6mrxzXVyjcG+ZJYt9N tW5U5FGDNkD0/JmJEPAmW0eTIp0skBMI8MAw+8/soguis3wZ8ImbaPpkYc+WzmQXzg0K NGp0owZg3IQZJVB9g+BsJr6Nck0dK7DpwuWQttXLXsc4giiL3LmNJ45/tZIKRXBVcfVC J19732XGZx5kHjYf0i/314rNOxNc1f5Gu7j1aWG5EPf1qywTvmX60uKEQg8q62onSYyZ 4FTDlYTjbRzyD5FHMQ+0QElqP6eIjSeX89uIMm6E3sNC7XSMdv6rYZ/x8rMfMDJOVEYz pyrg== 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 e123-20020a636981000000b00476f59d849fsi5110473pgc.601.2022.11.18.16.00.59; Fri, 18 Nov 2022 16:01: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 S233442AbiKRX4N (ORCPT + 99 others); Fri, 18 Nov 2022 18:56:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236968AbiKRXy6 (ORCPT ); Fri, 18 Nov 2022 18:54:58 -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 91E41CB69D for ; Fri, 18 Nov 2022 15:28:00 -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 1owA9K-0004H7-2g; Fri, 18 Nov 2022 23:47:54 +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 1owA9H-0058iF-Ep; Fri, 18 Nov 2022 23:47:52 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9G-0000MC-Hk; Fri, 18 Nov 2022 23:47:50 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 453/606] mfd: rk808: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:07 +0100 Message-Id: <20221118224540.619276-454-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?1749880482532245690?= X-GMAIL-MSGID: =?utf-8?q?1749880482532245690?= 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/mfd/rk808.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index c9337c1fd748..f44fc3f080a8 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -646,8 +646,7 @@ static const struct of_device_id rk808_of_match[] = { }; MODULE_DEVICE_TABLE(of, rk808_of_match); -static int rk808_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int rk808_probe(struct i2c_client *client) { struct device_node *np = client->dev.of_node; struct rk808 *rk808; @@ -867,7 +866,7 @@ static struct i2c_driver rk808_i2c_driver = { .of_match_table = rk808_of_match, .pm = &rk8xx_pm_ops, }, - .probe = rk808_probe, + .probe_new = rk808_probe, .remove = rk808_remove, .shutdown = rk8xx_shutdown, }; From patchwork Fri Nov 18 22:43:08 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: 22744 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464984wrr; Fri, 18 Nov 2022 15:36:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf5zVrI+C7xU1n/d7hVJB0Ty/GA3uUPe98CmPpwzwj9d56DbTJ0YbjX3sW3e/ZEipNwh/K+A X-Received: by 2002:aa7:d418:0:b0:468:89dd:ae39 with SMTP id z24-20020aa7d418000000b0046889ddae39mr7998550edq.165.1668814575374; Fri, 18 Nov 2022 15:36:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814575; cv=none; d=google.com; s=arc-20160816; b=NRBP9N+a+2KoKF90ac8FTAl/BYWd7CBPgMh53UdTj2zB0R9EeBl2g95OC3tPje3VMw uBrdGB0MeBU5hHo7JKgBHDElYPTmRnLUr5VnRRfMIRQ/+tudL0J8vVqhzvApJsjLP8KT h5jiCUqup/gXhsPYxznByTEzvByjCt/hdSSfKjWCtNZ7u5M4C41E141PeBhXahKjDuxv UKKbadrhIjLptaZEsclK9cTEkiqUx30URNmik3lxuKNIvvP5mDOAVL0Ji435dSUknLsJ 0dkeQvJg3UejYkMRu7kRdZE/XNvGLDCuGn5IXSbLZ/W9ZiR2AG8yg+kLpyewFKuN0CH5 5KQA== 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=1isVNJiR4KosSt+VmQfHz+99irV9bCctWPUrTQBHCok=; b=Uf+7v6MGBD5Gn62eLB2arihOjRR3LKaRGEp+dx6kB/cvnAb4bQkLtaIMw922crRNkM hIRW+W/znjfwyR02F5MX3TWFi8UJiHUm/nQV2cVEFOIyAxAa7d46KKfKP4n/re0khMNr 6gZK4rcs0LW7HW2je0dujjS+8x+6j7ochtWDLFKPaPSazoSF9faKp7fzWA8dxUrl9rxp wEaBALZ9coN1M1wvEuftflLCoYZ9aLiD4LElUdkI5jwYvJUJBBAFcLhSz7cKnvt/BLyd ZqWVAoaFnoAZmIV2M95MLwsdKP0PFfZgwQLFD+5QgwamuPvldygAk703QwKRRA/TIISf eyjA== 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 o2-20020a056402444200b00461f9648c7dsi3882774edb.422.2022.11.18.15.35.52; Fri, 18 Nov 2022 15:36:15 -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 S236299AbiKRXfC (ORCPT + 99 others); Fri, 18 Nov 2022 18:35:02 -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 S235855AbiKRXbo (ORCPT ); Fri, 18 Nov 2022 18:31:44 -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 E62782AE8 for ; Fri, 18 Nov 2022 15:19:21 -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 1owA9J-0004HE-Ug; Fri, 18 Nov 2022 23:47: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 1owA9H-0058iG-Et; Fri, 18 Nov 2022 23:47:52 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9G-0000MG-Oc; Fri, 18 Nov 2022 23:47:50 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Matti Vaittinen , Lee Jones 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 454/606] mfd: rohm-bd718x7: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:08 +0100 Message-Id: <20221118224540.619276-455-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?1749878911964470681?= X-GMAIL-MSGID: =?utf-8?q?1749878911964470681?= 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 Acked-by: Matti Vaittinen --- drivers/mfd/rohm-bd718x7.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/rohm-bd718x7.c b/drivers/mfd/rohm-bd718x7.c index bfd81f78beae..3c766cb15a24 100644 --- a/drivers/mfd/rohm-bd718x7.c +++ b/drivers/mfd/rohm-bd718x7.c @@ -127,8 +127,7 @@ static int bd718xx_init_press_duration(struct regmap *regmap, return 0; } -static int bd718xx_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int bd718xx_i2c_probe(struct i2c_client *i2c) { struct regmap *regmap; struct regmap_irq_chip_data *irq_data; @@ -215,7 +214,7 @@ static struct i2c_driver bd718xx_i2c_driver = { .name = "rohm-bd718x7", .of_match_table = bd718xx_of_match, }, - .probe = bd718xx_i2c_probe, + .probe_new = bd718xx_i2c_probe, }; static int __init bd718xx_i2c_init(void) From patchwork Fri Nov 18 22:43:09 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: 23054 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486680wrr; Fri, 18 Nov 2022 16:40:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf58/VHHgNcCKuyaLBT3FqLGvoYUcOgYukTCL/vBwA6gImQvIjd8vxLC5fjah5Yj/VbakSMD X-Received: by 2002:a17:907:9890:b0:783:6c5:c49e with SMTP id ja16-20020a170907989000b0078306c5c49emr8071094ejc.483.1668818451152; Fri, 18 Nov 2022 16:40:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818451; cv=none; d=google.com; s=arc-20160816; b=ITyuYNtJMTN8BvGSN222n0wN6vY5jv8nb5eTI7WVOJnZlqtkWChpk/XXEAlJwy2GKt KScBUTZf2yrrQ3cN6gj340rrDFvd5b6KyZtSEGNxWJrax3yPJ+L8kJp7MHxasd1hMx9h PGu5vE5rExlKF3owYg9Lk8Qi5zwGKjEIkzzw7ZmlML2WZcYVDIkfw8lkc0BgjMiX+NRk xP9lJgecn4TeR1LJbHIS0HdVRlKsLCQXvNji5smV+7XMnN5YbOQHsfAHDufjFKzn0VA6 R46o+eE6vMpCXHg1Esk8nTThV3m2Tz9oTycHqnyLdLRZKOpPsys7Iq7zGaAOciBqk+i9 JUMA== 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=cdF3uSRpYEFxBAj31cwqAgPYzEwwAMJOlJkGPZy0GVo=; b=IcWiyT2mCicHMq/5kRAFS2mzY59okesXy2uN1aiAZ9zEYH1u7L8R9yC5DH7wlN916z MNiI0Pa+YBw9ubojmcL5H8GEqPvbCAXDSa95X2dw0TiHSkLdWuaS+6co8rDPFnJu+rEG /D847rUGf/o5E1PYzajmCjsAG1K0oVMupj/R37ebsuQYBJ0euokP34JWtwQISnh/znLa D6N9uldZcOOwlOzyvr9w0ofjTSj4TR4WeqWc3GdWxORgJ6onpohiANScd1RzY/aQ8W5Y O7ONkSSnE2NOD+cZxt6EUo0O9XCpBVCKESFtoA5dxmemHtlrcps7TrS44jfTz3Qllar5 xp9A== 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 wz5-20020a170906fe4500b0078fcfc5d24esi4993843ejb.618.2022.11.18.16.40.27; Fri, 18 Nov 2022 16:40:51 -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 S236007AbiKSAZ4 (ORCPT + 99 others); Fri, 18 Nov 2022 19:25:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232171AbiKSAZY (ORCPT ); Fri, 18 Nov 2022 19:25:24 -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 96617105AB1 for ; Fri, 18 Nov 2022 15:38: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 1owA9J-0004GR-Qe; Fri, 18 Nov 2022 23:47: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 1owA9H-0058i8-6D; Fri, 18 Nov 2022 23:47:52 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9H-0000MK-0A; Fri, 18 Nov 2022 23:47:51 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 455/606] mfd: rsmu_i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:09 +0100 Message-Id: <20221118224540.619276-456-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?1749882976360694303?= X-GMAIL-MSGID: =?utf-8?q?1749882976360694303?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/rsmu_i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/rsmu_i2c.c b/drivers/mfd/rsmu_i2c.c index f716ab8039a0..15d25b081434 100644 --- a/drivers/mfd/rsmu_i2c.c +++ b/drivers/mfd/rsmu_i2c.c @@ -106,9 +106,9 @@ static const struct regmap_config rsmu_sl_regmap_config = { .can_multi_write = true, }; -static int rsmu_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int rsmu_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); const struct regmap_config *cfg; struct rsmu_ddata *rsmu; int ret; @@ -180,7 +180,7 @@ static struct i2c_driver rsmu_i2c_driver = { .name = "rsmu-i2c", .of_match_table = of_match_ptr(rsmu_i2c_of_match), }, - .probe = rsmu_i2c_probe, + .probe_new = rsmu_i2c_probe, .remove = rsmu_i2c_remove, .id_table = rsmu_i2c_id, }; From patchwork Fri Nov 18 22:43:10 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: 22713 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp463297wrr; Fri, 18 Nov 2022 15:32:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf4DA5MD+1UQc3oMYVlE47lU7IJPTBbSMM7LsBz4YCuC0OkeU0k0JEK2q6sR0Af86Sgbl0c0 X-Received: by 2002:a17:907:77d6:b0:78d:e26f:bfd8 with SMTP id kz22-20020a17090777d600b0078de26fbfd8mr7815141ejc.482.1668814326098; Fri, 18 Nov 2022 15:32:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814326; cv=none; d=google.com; s=arc-20160816; b=L1FY51akUKiuaaTlFVV1z1H4SMchX3ZVtemX/eYaDyELhfz3uBg4LlK9sfvpT5FBZg T8vKDlRaNoicvMq11JwyEPbppL4wYhn4/IvcPluHJhoUl8OV7O2ZDKw10PKj4Nmq3gMj Z6dgyCWKt1KVZZoM2rzyEbkYPZYyQhM4jkjH37tyGeEXWqILX2Xtd4VLmxRdYyXeZn64 UXmUSXbQxkiFp44rP0h87X0Rqr48mXAjpctCPDPyPUu6pYRZn1URWeuyfQYXYMZU5B4J 73hsRJUsnK3ZBY+CZql5aNt8jwKx0QvQ6pvQN/h6AFf+2SWgmN1wNkrms7sLBvemqEDo 6Vhg== 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=qCixLsAVZ7+DDOYNAcmuL29E10lhH6UIO4tfRzn8uTY=; b=VLzNnwfPxvbV2sQsTDqnwTCn6cdxeWEDGaUBFcQgpu9c05ucKqdCzLJ7KC0mQT1Lv1 G8jKFaFohOoXYRsPMDSCPMuwcAYPoWNOqKTjQkx3WlmtxT31rV1FnUPOin7QlOwZoXih oszDjSl3Z3+QJbtgy12OvfLuaJrv8TcaJ0GSIsF609aaUOHDCO5Uum04Mg3HjAY5cf3S QVuVyJeBi6UkOVEl1+HL8WbDWz8yYctFoL9evGf/4U8+enleMxvNYuoETI+s6uYAXRWB sn1EAqdtq29Iz7gkBbCzUJRPzVV+6cmaA/dI99LnAegRdhXwJdqajxKfk3LulijcORRH AkBA== 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 h12-20020a05640250cc00b004537a3c4982si4950939edb.601.2022.11.18.15.31.42; Fri, 18 Nov 2022 15:32:06 -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 S235905AbiKRXay (ORCPT + 99 others); Fri, 18 Nov 2022 18:30:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235823AbiKRX3U (ORCPT ); Fri, 18 Nov 2022 18:29:20 -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 C45FBC1F4D for ; Fri, 18 Nov 2022 15:17:36 -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 1owA9J-0004GP-Pe; Fri, 18 Nov 2022 23:47: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 1owA9H-0058i7-5S; Fri, 18 Nov 2022 23:47:52 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9H-0000MQ-6Y; Fri, 18 Nov 2022 23:47:51 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 456/606] mfd: rt5033: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:10 +0100 Message-Id: <20221118224540.619276-457-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?1749878650618286802?= X-GMAIL-MSGID: =?utf-8?q?1749878650618286802?= 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/mfd/rt5033.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/rt5033.c b/drivers/mfd/rt5033.c index f1236a9acf30..8bcf1c01348c 100644 --- a/drivers/mfd/rt5033.c +++ b/drivers/mfd/rt5033.c @@ -56,8 +56,7 @@ static const struct regmap_config rt5033_regmap_config = { .max_register = RT5033_REG_END, }; -static int rt5033_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int rt5033_i2c_probe(struct i2c_client *i2c) { struct rt5033_dev *rt5033; unsigned int dev_id; @@ -124,7 +123,7 @@ static struct i2c_driver rt5033_driver = { .name = "rt5033", .of_match_table = rt5033_dt_match, }, - .probe = rt5033_i2c_probe, + .probe_new = rt5033_i2c_probe, .id_table = rt5033_i2c_id, }; module_i2c_driver(rt5033_driver); From patchwork Fri Nov 18 22:43:11 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: 22763 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465826wrr; Fri, 18 Nov 2022 15:38:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf7p4JSMNLUKx8qmX7rEQG0WL2CWz1+tWLeGnS+BOmeJ91baKzwAzXaKFMhPUvXZG/YjST/o X-Received: by 2002:a17:906:fa19:b0:78d:9002:fe3b with SMTP id lo25-20020a170906fa1900b0078d9002fe3bmr4255478ejb.769.1668814714268; Fri, 18 Nov 2022 15:38:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814714; cv=none; d=google.com; s=arc-20160816; b=E5Sy3tJFAyufFpBsBROvmzSvmeWrn/V8yZIwO75Aw+88fVdxurk4mLhSZLHXqheF1c kP+kWMA0nFNoSBXKCNlxlkgngdB4A5gL3LBX5ItUyYUwIcWhGN47u8TDhRRoCxpaCghv P6Ukb6ichoLVj/04mk6wnMg91suksjT39sLoTBvU5sjtKhkz8QBZ4wqlhWUHKb0K2cCK oJKlvO76IT/M8Xxx6gN5NlQK39KawoXotRil3KbVrJtqq68C/oArhBnP9wHkX+8St48U GCoSuutjeaMGCQrsgoT24XJwWgULao7ZDx49nPhV3DtsLOuVkFRdQrXz47dwhgehDfPg rNzw== 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=21YHnxbk7Ig/3KSGu+ZR+dYx2ecgkw52syvtu2ClaFQ=; b=P/zLDoRyAoOFB+iwmaO1WVScFOoblt2C5L4AjDGW9bTA7NcbcMa3h0QqLUoDYiHUF8 Lr/8kWFXK4+E6Vh/21UGO/SAFT/M4n6j0iASRsHaCB6qWNQcIkZKHKuCb/fqQPyHUaNl 1MMmF0Gf939KBnuFqietYtOQ15OJaryJ1XFwq4v/+KPs1y64+0lLfVP1Yf1c6V8V/l2W YncJVp6bKXLF0LKNXTphXQ6feyjpCoyiVNBGM9AfdnEXmZ5biwzWWr/5Ng35pdWwW7ZH Aav0DP7f589nSboUgGNLr7DksZ4v8ht57RLZNC0Y54IrBXwdeXqD426xG5h5fYnh7ZqJ GadQ== 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 l18-20020a170906795200b007ae9f42f86esi4151117ejo.383.2022.11.18.15.38.09; Fri, 18 Nov 2022 15:38: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 S236412AbiKRXgX (ORCPT + 99 others); Fri, 18 Nov 2022 18:36:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236376AbiKRXct (ORCPT ); Fri, 18 Nov 2022 18:32:49 -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 73B8868C4B for ; Fri, 18 Nov 2022 15:20:25 -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 1owA9K-0004Hg-1p; Fri, 18 Nov 2022 23:47:54 +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 1owA9H-0058iU-Jw; Fri, 18 Nov 2022 23:47:52 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9H-0000MT-DS; Fri, 18 Nov 2022 23:47:51 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Krzysztof Kozlowski , Lee Jones 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, linux-samsung-soc@vger.kernel.org Subject: [PATCH 457/606] mfd: sec-core: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:11 +0100 Message-Id: <20221118224540.619276-458-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?1749879057768869233?= X-GMAIL-MSGID: =?utf-8?q?1749879057768869233?= 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/mfd/sec-core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c index a467de2b2fea..b03edda56009 100644 --- a/drivers/mfd/sec-core.c +++ b/drivers/mfd/sec-core.c @@ -305,8 +305,7 @@ sec_pmic_i2c_parse_dt_pdata(struct device *dev) return pd; } -static int sec_pmic_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int sec_pmic_probe(struct i2c_client *i2c) { const struct regmap_config *regmap; struct sec_platform_data *pdata; @@ -497,7 +496,7 @@ static struct i2c_driver sec_pmic_driver = { .pm = pm_sleep_ptr(&sec_pmic_pm_ops), .of_match_table = sec_dt_match, }, - .probe = sec_pmic_probe, + .probe_new = sec_pmic_probe, .shutdown = sec_pmic_shutdown, }; module_i2c_driver(sec_pmic_driver); From patchwork Fri Nov 18 22:43:12 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: 22756 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465247wrr; Fri, 18 Nov 2022 15:36:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf4WAijCndgbTxsre2HpHeDBj37dePUChJ7HHlx+LcUg1hie6GFoqezylTP4lJwHBa1rgBjM X-Received: by 2002:a17:906:2758:b0:7ad:e52c:12eb with SMTP id a24-20020a170906275800b007ade52c12ebmr7585605ejd.524.1668814619364; Fri, 18 Nov 2022 15:36:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814619; cv=none; d=google.com; s=arc-20160816; b=0tStu0T7qKtnSgdAZS8xOT6n0z9IICtQSyiHW4DYfXicHjQmtdmHHDj9jdZ+iMVN2j ++3htIoFS+xe+24JgnzbGZ6j9WBmQbgwWBqcmQz52UzpdX1p86dZnEtXphK7BYgsxu9d pXRv4C9c2BlMYYxqrde+ROPVABwGq61nhOVtsKe6ls2gQcCUNe7homFf+jkcKankzT+6 UWIzweseHhU2hnsiqlvd+Tm7lAh0d2vK+NB/brGW7HG7CqecfXUuzctiidAYATrUlj6d Cz6ZMLrPUo0Y/fXPRr6dfUEOfKDKuLts5LGgq1Q00DId8n5LXZnU/mc2OZNA7wByTwFf DpeQ== 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=0Xr1Bl4j7LdYJ5rynH00YbYIA15ztrz2wLjWBht4v/A=; b=Xek+nPl2H2Yhdy7ni+5FaCYvYrN7/M0igsDFwPDnxVr4QfNb4Tccz1CsU3KJ37B/JX jPqWSiSa1zlf4vWCacuuAXZ6MvrvPpPxByLE6Yxnj6E1jv5nfZnfciAWI+zBgu1pmq55 M68W4UY+bcwTc+lQyAg/9fNAYESqr7uzOA3x9x7TzUTrMWp4B/Ctdg8ufCtAKwW5jRyr B6PPYe6YU+j/iauBHDI4y4j+z6pQIA9XL6ZEgdltVRyxQXZu7rVkcDkJLwcegCVHQkEs Do2rDCV2pgPiCEJQaiOoiDBAgr7k0l4BzDo8wwPen6Wf8yBlCB8qyPLGkzdUsSKUhJeq U6lg== 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 x7-20020a056402414700b004677d91cdeasi3986556eda.244.2022.11.18.15.36.35; Fri, 18 Nov 2022 15:36:59 -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 S236368AbiKRXf6 (ORCPT + 99 others); Fri, 18 Nov 2022 18:35:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236231AbiKRXcS (ORCPT ); Fri, 18 Nov 2022 18:32:18 -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 6E453E45 for ; Fri, 18 Nov 2022 15:20:00 -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 1owA9K-0004Hd-3V; Fri, 18 Nov 2022 23:47:54 +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 1owA9H-0058iR-IO; Fri, 18 Nov 2022 23:47:52 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9H-0000MY-J6; Fri, 18 Nov 2022 23:47:51 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 458/606] mfd: si476x-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:12 +0100 Message-Id: <20221118224540.619276-459-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?1749878958287354106?= X-GMAIL-MSGID: =?utf-8?q?1749878958287354106?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/si476x-i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/si476x-i2c.c b/drivers/mfd/si476x-i2c.c index 8166949b725c..22131cf85e3f 100644 --- a/drivers/mfd/si476x-i2c.c +++ b/drivers/mfd/si476x-i2c.c @@ -683,9 +683,9 @@ bool si476x_core_is_powered_up(struct si476x_core *core) } EXPORT_SYMBOL_GPL(si476x_core_is_powered_up); -static int si476x_core_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int si476x_core_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); int rval; struct si476x_core *core; struct si476x_platform_data *pdata; @@ -866,7 +866,7 @@ static struct i2c_driver si476x_core_driver = { .driver = { .name = "si476x-core", }, - .probe = si476x_core_probe, + .probe_new = si476x_core_probe, .remove = si476x_core_remove, .id_table = si476x_id, }; From patchwork Fri Nov 18 22:43:13 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: 22685 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462137wrr; Fri, 18 Nov 2022 15:29:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf6t9jJXZLX8xW17cZiNIQhCV4Sab5OHYlrX0dUO5BpKgp3JWAEJYclh8y4Kd8Za4sJudkL6 X-Received: by 2002:aa7:dd4b:0:b0:467:65a2:f635 with SMTP id o11-20020aa7dd4b000000b0046765a2f635mr8188167edw.106.1668814152931; Fri, 18 Nov 2022 15:29:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814152; cv=none; d=google.com; s=arc-20160816; b=wjo4A58KDCES9KLPCM3C4WzwX7d5oXiSPA7fIkNuCjRfYvNrGHkWwWi8T14ZIVHIDU Na/tCDeFMl2T1MLA9as0MNhj747DU06BWopMmQwCkhXSjJGVqbmbZC+cKz4yopFFhT78 xTH9YwGU+TBmu/0Kxk5kfBD33NtuFFNj7UyLkJZfsF9J6msz9NRmJhvD3EM/+iXml+a0 h+IF1dLETTKW0cZEQ/7wMziuVJ0+eyrv0Iz51ZUa+bHIu8nXoN3Jtgx3NkUdUqqSkyIF fiTjPlegnCCU0ZS6ouEzA4wmuwXG5FGQgUTHtotvcyXKSfnRo5GamJm1AKCRiL7Fory1 TO2g== 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=fZKODOw3wPW83UsnA/dzi1EjGQ4TT6ubvUTwdRFp8iU=; b=jtVpaOPhjNq/zb2vFrmY0VsLC4TyUixr6i/DBwej0uCXkmeuu+lcy9s47Jw/Qivhq6 ViXFrgF8EeFKYbia+1fPQJ1BCMXEXb8I/GiQW46mNeW/wm4/94oWCFkfNQDn0oFyLk42 MjkYdgUXdyeiY50OzuQQ+fuOu3dYAXmdWelbM0U41nspe2OD8IN1DuPmdRw+cgs8BgCA +3F/c1oY5xxdKr2rxo6dMKWCX50I4Ah+A/b+1HlXo7wuPxlr+4EGfJfmFwz1T2Nk5Y0i yoIbmaXaT9/yQG4sdRBycoQSn/NBvfNr+yTlRND1nPsRRsUchMhUHchm3gBaelsD2yAO R++Q== 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 pk21-20020a170906d7b500b007aea0bbe32dsi3218511ejb.965.2022.11.18.15.28.46; Fri, 18 Nov 2022 15:29: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 S235771AbiKRX2O (ORCPT + 99 others); Fri, 18 Nov 2022 18:28:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235744AbiKRX1k (ORCPT ); Fri, 18 Nov 2022 18:27:40 -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 1702ABEB40 for ; Fri, 18 Nov 2022 15:15:29 -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 1owA9K-0004IH-Hz; Fri, 18 Nov 2022 23:47:54 +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 1owA9H-0058ie-Rz; Fri, 18 Nov 2022 23:47:52 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9H-0000Mb-P1; Fri, 18 Nov 2022 23:47:51 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 459/606] mfd: sky81452: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:13 +0100 Message-Id: <20221118224540.619276-460-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=ham 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?1749878469392606069?= X-GMAIL-MSGID: =?utf-8?q?1749878469392606069?= 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/mfd/sky81452.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/sky81452.c b/drivers/mfd/sky81452.c index 3ad35bf0c015..2515ecae1d3f 100644 --- a/drivers/mfd/sky81452.c +++ b/drivers/mfd/sky81452.c @@ -21,8 +21,7 @@ static const struct regmap_config sky81452_config = { .val_bits = 8, }; -static int sky81452_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sky81452_probe(struct i2c_client *client) { struct device *dev = &client->dev; const struct sky81452_platform_data *pdata = dev_get_platdata(dev); @@ -78,7 +77,7 @@ static struct i2c_driver sky81452_driver = { .name = "sky81452", .of_match_table = of_match_ptr(sky81452_of_match), }, - .probe = sky81452_probe, + .probe_new = sky81452_probe, .id_table = sky81452_ids, }; From patchwork Fri Nov 18 22:43:14 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: 23081 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487178wrr; Fri, 18 Nov 2022 16:42:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf4tf5XIzuFv4a2GrBKX/YOo4QKtkFTfSnF4Deqcse0xkSDU6HQdH8ibdq2w5fir6LVtuYZx X-Received: by 2002:a17:906:a147:b0:7b2:7b45:2cd2 with SMTP id bu7-20020a170906a14700b007b27b452cd2mr7988742ejb.615.1668818527691; Fri, 18 Nov 2022 16:42:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818527; cv=none; d=google.com; s=arc-20160816; b=yI2erwUKJykciqGZxxxZ3UMbKYXNRvMLHuBTK2cW6N5zB2tcjiwXe1gOQMGQxk+gcJ IFdbQLWBPybGfErI/uJU/wiJmaSFoJqwVtHLWhMzYmpRDSoiGL49NLbjO2oU2iMqQHgU qvJa3jm0AuJmpAu/+fOVnndrAqbYFwCGvH7IXFvGDHGaK8mUc6gfrryCUtrqtU3qQuRi HdirCMR9hmBryBEIwH22MwTEmZeUM/yk3kqk2Ew1WItJjktXAM0LQzJShBq6PsYZnP+x 4UvXewBu3cypr6k2JcO940LyWfiQ8gHt9yzgcRrI84eAjWjLRs/FVA1k4Y0VxjE+dMWD fCog== 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=PnRYmWiXmXT3XLuzdrUZEG5Mxp7KiO6g9VtK3dDtvMQ=; b=nnVmviFa4gTdPxd2E2McW/6cnqBzzU+DoxShShVsNvV5wbat0ADas7JutwFNfEY9Q6 N46ciJCRb9Lw7HhyxrFMX2mQmt3VIz5sZaCqX0GvnRN4C9wDCOUOB7vJ7yDO0TED85jK I54SGuDXblBolGm1Dis+cmPAh84ZMwFKLMrKf9f1yXbpp/KMCTBr5o7A+s/G56crnn0u LZpb7LVKlrtp4btd3EjPWwEEFoNOJHvHpmIlJWBfZKX9cgVLjWjqKdw66sH2r9uI56MC EAH5kHvyz/RFDaOBSnDSRBPTLrs5qZBr0LVoEEmOaly7bxIKx5sXKQI9AwWPLhjeSUSG Gkew== 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 ss28-20020a170907c01c00b007808f3f4cbcsi3715739ejc.239.2022.11.18.16.41.40; Fri, 18 Nov 2022 16:42:07 -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 S236233AbiKSAiV (ORCPT + 99 others); Fri, 18 Nov 2022 19:38:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236368AbiKSAhu (ORCPT ); Fri, 18 Nov 2022 19:37:50 -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 BC68D1173CB for ; Fri, 18 Nov 2022 15:43: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 1owA9K-0004I9-K3; Fri, 18 Nov 2022 23:47:54 +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 1owA9H-0058ib-Qb; Fri, 18 Nov 2022 23:47:52 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9H-0000Mf-Uv; Fri, 18 Nov 2022 23:47:51 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones , Maxime Coquelin , Alexandre Torgue Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 460/606] mfd: stmfx: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:14 +0100 Message-Id: <20221118224540.619276-461-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?1749883056515820117?= X-GMAIL-MSGID: =?utf-8?q?1749883056515820117?= 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/mfd/stmfx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/stmfx.c b/drivers/mfd/stmfx.c index a765f0e1cab4..e281971ba54e 100644 --- a/drivers/mfd/stmfx.c +++ b/drivers/mfd/stmfx.c @@ -410,8 +410,7 @@ static void stmfx_chip_exit(struct i2c_client *client) } } -static int stmfx_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int stmfx_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct stmfx *stmfx; @@ -554,7 +553,7 @@ static struct i2c_driver stmfx_driver = { .of_match_table = stmfx_of_match, .pm = pm_sleep_ptr(&stmfx_dev_pm_ops), }, - .probe = stmfx_probe, + .probe_new = stmfx_probe, .remove = stmfx_remove, }; module_i2c_driver(stmfx_driver); From patchwork Fri Nov 18 22:43:15 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: 23143 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488569wrr; Fri, 18 Nov 2022 16:46:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf4AuXx7bREHWF7iyXbIEekEuqrlAnSaln3h5ttqoaGFv5Z4dvuctiF/TJcrtYs8mSaxoeoy X-Received: by 2002:a17:90a:7183:b0:212:ede4:3c19 with SMTP id i3-20020a17090a718300b00212ede43c19mr10383184pjk.151.1668818777238; Fri, 18 Nov 2022 16:46:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818777; cv=none; d=google.com; s=arc-20160816; b=n84uTUToK4WTUvoV5nOCKXAmrQ9FjNcxcwzI2UzXzHdyVupvQf+6zkhk+cySzKL4Sr XEKKQACV2dIt0en75B5yfeamEnP1iqvmoOcCjbGhPs3uIpqOBa7ryTe/ITdiHWltuYPT I+krG9oi6W3lpXuo4EnENwoD6cZ1mkVQQH79Nd9kJhaD711JgPWK8AgWAvQMbUZjp9xy YodEIPtwuKRlJZpqPnQt89j2KH4MmpDF8eGFJD4kdp4NrVDf3yVuNHm4iV56gXOrKtpV eCW4LdlsN1ia0vkdP3rJCA2E8b6lVrQBzoM5v9pO4E1jRy2aiIp+mm1979eXEOk5Bd79 7OTQ== 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=sbb5+Mh+HW2qLETzHOZ/EyVUGElN+m3bx/LZL6mp7gM=; b=V9C33Wy1X0D+JuX3uaA63lBJ8E0CVPdfkWT6rRztjPdKEZa1RzR3xZa2AZn0s/3B8y siy1LmPgd/MzI8onVa5Tw41/OYI8GvggIFonuM90f9OTW1Be6mXHxUTK5KMJP2uv+nBB 3WQlxdC8hIqDRxi4KDT3geh6FC8X9/1n0Wf7eja+9R0BKVcq95HngS8hdqhzV2UfTIil YPipqpZ3VCOuFfv7h6zo4UEuMUn5ylZyt+oFrVb6KT2039sIlvPCX64Fav6/d7Tdjfdx Sx3pxpz/RySn1GKmSg+lHTr2T7ivSWBrkpAg5YOGeD2QhqbxhwGXRbb70tb26N4l+2gK YXWQ== 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 u9-20020a170903124900b0017a034f7246si5481649plh.560.2022.11.18.16.45.58; Fri, 18 Nov 2022 16:46:17 -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 S236906AbiKSAnQ (ORCPT + 99 others); Fri, 18 Nov 2022 19:43:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236597AbiKSAkY (ORCPT ); Fri, 18 Nov 2022 19:40:24 -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 B97C4D918E for ; Fri, 18 Nov 2022 15:44:49 -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 1owA9K-0004Ie-MH; Fri, 18 Nov 2022 23:47:54 +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 1owA9H-0058ii-Vc; Fri, 18 Nov 2022 23:47:52 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9I-0000Mi-4G; Fri, 18 Nov 2022 23:47:52 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones , Maxime Coquelin , Alexandre Torgue Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 461/606] mfd: stmpe-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:15 +0100 Message-Id: <20221118224540.619276-462-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?1749883318225681227?= X-GMAIL-MSGID: =?utf-8?q?1749883318225681227?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/stmpe-i2c.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/stmpe-i2c.c b/drivers/mfd/stmpe-i2c.c index ea3c8672b85a..d4944fc1feb1 100644 --- a/drivers/mfd/stmpe-i2c.c +++ b/drivers/mfd/stmpe-i2c.c @@ -67,8 +67,9 @@ static const struct of_device_id stmpe_of_match[] = { MODULE_DEVICE_TABLE(of, stmpe_of_match); static int -stmpe_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *id) +stmpe_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); enum stmpe_partnum partnum; const struct of_device_id *of_id; @@ -117,7 +118,7 @@ static struct i2c_driver stmpe_i2c_driver = { .pm = pm_sleep_ptr(&stmpe_dev_pm_ops), .of_match_table = stmpe_of_match, }, - .probe = stmpe_i2c_probe, + .probe_new = stmpe_i2c_probe, .remove = stmpe_i2c_remove, .id_table = stmpe_i2c_id, }; From patchwork Fri Nov 18 22:43:16 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: 22888 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472322wrr; Fri, 18 Nov 2022 16:00:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf7jj/2dTnDYLyftLJFDwXFeY7KFpSMzCJWy5Ew/0A5NHyWW37ZGap/UcxYKjX1eS+LuyDtB X-Received: by 2002:a17:902:aa0c:b0:180:4030:1c7d with SMTP id be12-20020a170902aa0c00b0018040301c7dmr1697022plb.99.1668816001904; Fri, 18 Nov 2022 16:00:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816001; cv=none; d=google.com; s=arc-20160816; b=yqshpOnKb+gFYlb2nvTtPpl+7S80hyhv5SkmDvYB9YgO08dujW0fsNJa7HSbeEC2Nr yqr8gCFlBUNgETblrwzrLQe8i5lHo4f+EoUY5LbYgRQ8+drQS8fQXrcSrn2L21DRpLiG P08eOA2kDmBzxGNjni16yUEBY1wpP8guhWNXaN08gLb9lbcF0E9Bd2qM3dvgKfkzuzpM 9yHRmXUM/FVEbTaOF75lFGh6RqS/roVA0Ukq9ZKh6V0kBlKNwUd3+iMewZKdNjJWVG/p tSjrRNkt9QbWor/78SDb8xWOXz2Nctvcx11dc0JfQiZUhlx5P3iDyKnuoKgem4e4M47W Ct7Q== 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=3Ns/s4qb8nH/2iULWa/I+ZjubBe6KTaM5NAg5mvrEpM=; b=HtZJNk4AmY61O3Qwxf7pEXuJglBsucI/3rTgaPbm/qfZFHo3qBt6ctI50HxtHnca4q WOQONlenq2C0VcuKY+lYgNfrW39wWSawtB2PCbWMJ4+nshiA8xg1CUAPL/yUdUKoMj7l 2oW9zVV9LDcwqalKq87I5DY/dEt/wKCMyVJvxgqLCK4Q3qTit7Y+wahyrg61wkdF+LoG yCalOjrRVi84/VYBe7FCML/5zcdIwZ0xm62z/J+DJ6qzI5LjTt2IoLN0HQNQpt8TLO6D OPBie8pbkC9jWIyWTzWUeE8t3Le/ZYeF/5vz9QnQil9cpXcmph//OQfrnxt5+zPdI9ly 3uog== 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 g5-20020a635205000000b0044601bb2f90si4846937pgb.530.2022.11.18.15.59.46; Fri, 18 Nov 2022 16:00:01 -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 S229803AbiKRXyE (ORCPT + 99 others); Fri, 18 Nov 2022 18:54:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237065AbiKRXwO (ORCPT ); Fri, 18 Nov 2022 18:52:14 -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 35999BCE63 for ; Fri, 18 Nov 2022 15:27:29 -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 1owA9L-0004Jx-8S; Fri, 18 Nov 2022 23:47:55 +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-0058iu-H4; Fri, 18 Nov 2022 23:47:53 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9I-0000Mn-BP; Fri, 18 Nov 2022 23:47:52 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 462/606] mfd: stpmic1: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:16 +0100 Message-Id: <20221118224540.619276-463-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?1749880407804601796?= X-GMAIL-MSGID: =?utf-8?q?1749880407804601796?= 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/mfd/stpmic1.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/stpmic1.c b/drivers/mfd/stpmic1.c index 7d8b0c0548fe..54a4d59d1937 100644 --- a/drivers/mfd/stpmic1.c +++ b/drivers/mfd/stpmic1.c @@ -116,8 +116,7 @@ static const struct regmap_irq_chip stpmic1_regmap_irq_chip = { .num_irqs = ARRAY_SIZE(stpmic1_irqs), }; -static int stpmic1_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int stpmic1_probe(struct i2c_client *i2c) { struct stpmic1 *ddata; struct device *dev = &i2c->dev; @@ -201,7 +200,7 @@ static struct i2c_driver stpmic1_driver = { .of_match_table = of_match_ptr(stpmic1_of_match), .pm = pm_sleep_ptr(&stpmic1_pm), }, - .probe = stpmic1_probe, + .probe_new = stpmic1_probe, }; module_i2c_driver(stpmic1_driver); From patchwork Fri Nov 18 22:43:17 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: 22642 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460419wrr; Fri, 18 Nov 2022 15:24:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7yMAJV/zRrnuLMJ1JuH7kGyTvtKkebmQs7u2i8h8iWhAuv38SjNW89BWFGJx9qsX7rNQD3 X-Received: by 2002:a17:906:3b48:b0:78d:b65a:aabe with SMTP id h8-20020a1709063b4800b0078db65aaabemr7929108ejf.5.1668813851877; Fri, 18 Nov 2022 15:24:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813851; cv=none; d=google.com; s=arc-20160816; b=hrEqPeiHa95kf9/5AGuV+OL8l6k0EyHDwdGFudsJOD54uFgxfECm3lIXit4GGn1JB9 NWcmSfzaiU6tupi6H+r2R00THGkCjJbgp/a6PpFqs5nZlTFA81G3yzrmXYzXhwiLR9uF ATrMzbKZ2bBbTSsdR+lgXezdtwAcPKn14RWghT/LI46LVOsiHB6wEAe17f8qg5p3oCnG 11DEBGq1baMiP4Dzjve+UajhYF1sFlmduWqGG0FHXQ+OPAj8B4PgQxWYD+N2pO2HPFq7 nvFUWvmVs54+/CbeS0JiSh19/+kJznBuGluI4okAv8C0KIfRUsxMvmDLG5tZO0tc7xO4 RvUw== 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=WRrHCXeH8gDLe/nNxMfqB1WL+cb1dMoGjnxq8FB53hU=; b=kDw5Y0/99Zj8RNKWt/c27rf4c6YCsphg/CtSAWKkgsYzHRiSMafAnGEz4J2pk+qAy4 1sTrXVIVXIt1VBmBz+2lkyLmpvCxgKFWtXbEGG5e0HtrbqnuBfGq5jU91BHqdVofXEkH ShTiaD/SmokS48SJW9znqhY+5JKWPXMZj3IA7TtCAaw1BgIh67hB+TJOj7sEZZXIDd84 PRz4Ba92RPjZJcYVbui2V0vb18UW0wGq/NS87kUT7igbOAfjQkYQru1V2hxT2afAbaQX 0t/oj8ZOhJm3dBJENQv0N3Giq43m19bLBni+cRV8BzrTU2t2yYOP6YUbtTXiexgc3xWZ IXog== 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 dm5-20020a170907948500b0078db3762061si4590459ejc.439.2022.11.18.15.23.45; Fri, 18 Nov 2022 15:24:11 -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 S231376AbiKRXWt (ORCPT + 99 others); Fri, 18 Nov 2022 18:22:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235221AbiKRXVI (ORCPT ); Fri, 18 Nov 2022 18:21:08 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAA325214E for ; Fri, 18 Nov 2022 15:12:15 -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 1owA9K-0004JT-Pt; Fri, 18 Nov 2022 23:47:54 +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-0058io-9B; Fri, 18 Nov 2022 23:47:53 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9I-0000Mt-Gf; Fri, 18 Nov 2022 23:47:52 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 463/606] mfd: stw481x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:17 +0100 Message-Id: <20221118224540.619276-464-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=ham 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?1749878153756786319?= X-GMAIL-MSGID: =?utf-8?q?1749878153756786319?= 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/mfd/stw481x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/stw481x.c b/drivers/mfd/stw481x.c index 7478f03ccbae..2a8fc9d1c806 100644 --- a/drivers/mfd/stw481x.c +++ b/drivers/mfd/stw481x.c @@ -173,8 +173,7 @@ static const struct regmap_config stw481x_regmap_config = { .val_bits = 8, }; -static int stw481x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int stw481x_probe(struct i2c_client *client) { struct stw481x *stw481x; int ret; @@ -240,7 +239,7 @@ static struct i2c_driver stw481x_driver = { .name = "stw481x", .of_match_table = stw481x_match, }, - .probe = stw481x_probe, + .probe_new = stw481x_probe, .id_table = stw481x_id, }; From patchwork Fri Nov 18 22:43: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: 23069 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486957wrr; Fri, 18 Nov 2022 16:41:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf66udeVnYKuomegMkCaA2nwix31dWwpT/OiRZPFyKVfyBVmsmis05K8/MuxXcccNhHcdoFa X-Received: by 2002:a17:906:3604:b0:78d:99a0:7cf6 with SMTP id q4-20020a170906360400b0078d99a07cf6mr7776649ejb.56.1668818499466; Fri, 18 Nov 2022 16:41:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818499; cv=none; d=google.com; s=arc-20160816; b=YP4+sgyVNQ7Zz1vkvFB093RfyTQgnqhb6jvo5lP+Jj6N/6zXR/FL0L17AXeXILHVix fU5QFl5qSxLkS0k9Vi+QDabJhOmAHJOXiVbb++VeUvfWQ02WunTjb7s40xQYXrFOJYFn WmW7uZQURUqCcBc/io/PVa1nojG5RHVnqWYbVf8GTJRuLi4X9Fl/U+xPd6fiek49Y6xS HvZWYRrOGpQmAGfY/G7GEj34Hp/sWC+bCZThZO1w3deXvZqwMEXrgCFeYt5z/YatEqqd uBqRepliLUxGjMPe/eNdWjF6HI1rSWQltwdU07Jt7qsOJYVGq1vlzbm9dn9eusNLVJV/ F1RQ== 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=J63cD/czlI8dNeuFNeUVRVSgz+8xZ7QayNu2LCju9Lc=; b=ewRGYQjMG4C7MYUBMKebU86+OhBV6XlETaTufa9+sogopwWTga9Adu8BL+BXliDiMJ 5YxzSZhGUzlhJX+cOqAMCsqEi9xOVecOuB6wwKR20W+P4fV1mHmltT5Y/1toavqOxqBy et7Y1nKWpkyNzJSngTrPrBg3rFhW4LkJfCVOR1e3w2JI/7/mG1YyIV7O0zI4ypTmNGE6 0J6zIKmX0hHzXR2CUwmmQjPdche7b8VxXKN6ibgJePnWgy/J+yjZZGWg5G27DiTpjAyO ow5emoTr1Apg2OSctdgOj7Rxw7DSJDGAKGxjSq7s8k5bUegaLQ3+nJA2Na9zJ6dY8kTk uO1Q== 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 j27-20020a170906279b00b0073155abc1b8si3142826ejc.154.2022.11.18.16.41.14; Fri, 18 Nov 2022 16:41:39 -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 S236687AbiKSAgb (ORCPT + 99 others); Fri, 18 Nov 2022 19:36:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235467AbiKSAfl (ORCPT ); Fri, 18 Nov 2022 19:35:41 -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 70B9D1165B3 for ; Fri, 18 Nov 2022 15:43:16 -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 1owA9L-0004Jp-5u; Fri, 18 Nov 2022 23:47:55 +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-0058is-Fd; Fri, 18 Nov 2022 23:47:53 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9I-0000My-MA; Fri, 18 Nov 2022 23:47:52 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 464/606] mfd: tc3589x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:18 +0100 Message-Id: <20221118224540.619276-465-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?1749883026519893284?= X-GMAIL-MSGID: =?utf-8?q?1749883026519893284?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/tc3589x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/tc3589x.c b/drivers/mfd/tc3589x.c index 5d932cf3808a..1f6e0d682cd9 100644 --- a/drivers/mfd/tc3589x.c +++ b/drivers/mfd/tc3589x.c @@ -352,9 +352,9 @@ tc3589x_of_probe(struct device *dev, enum tc3589x_version *version) return pdata; } -static int tc3589x_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int tc3589x_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct device_node *np = i2c->dev.of_node; struct tc3589x_platform_data *pdata = dev_get_platdata(&i2c->dev); struct tc3589x *tc3589x; @@ -485,7 +485,7 @@ static struct i2c_driver tc3589x_driver = { .pm = pm_sleep_ptr(&tc3589x_dev_pm_ops), .of_match_table = of_match_ptr(tc3589x_match), }, - .probe = tc3589x_probe, + .probe_new = tc3589x_probe, .remove = tc3589x_remove, .id_table = tc3589x_id, }; From patchwork Fri Nov 18 22:43:19 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: 22727 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464167wrr; Fri, 18 Nov 2022 15:34:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf7DRW0q4h6VA8tYqFNrltTXm34vnseFDlhnnw6LtwIeYaJUzecFsxZxkWIAGDVLR2MnqZmy X-Received: by 2002:a05:6402:3807:b0:45c:a651:87f1 with SMTP id es7-20020a056402380700b0045ca65187f1mr8012531edb.359.1668814451166; Fri, 18 Nov 2022 15:34:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814451; cv=none; d=google.com; s=arc-20160816; b=mnVJ9hIoFPeeuO8kd8deoy0MWyyzsfY1zjbNomRFOtm8ZWtFw9iJswGNuDhC5lraL5 TBTSAVFeQ2XyuWW1RI/r/KceiTqzShkOe//1QMqVcBf168WcUGcQ3vbRF4750yjkKzTP KDtNqfX7GrGJcqqJ7NWFaj3YQQfCUYH8CQw/n9s8XCHuidw3V/G6gfHM7BtGPG0jv+yG eU1GjE92PFqhDF1zgWF5nhY8m3riWjrgHEFqgTk318ebMhwHeA1VKcI+ZhRJ7Rm11N2p FKggaQ4VAS8jMEjCep9wFfHIEXDxOJFjl5ZrF+sRnCUwyRys7zYkyJSeBkEiEtbk7qmR vMTQ== 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=t1fAoP+B3vSk+/N7iu7GrMn+Hou+d+p3SzovZYwVnAU=; b=kyAt5qSYvCPls5XJAXt2/GqzlYyVOXaDUdQmWpNGdOVDl8g349bCjFdLaXpVdwOCUf 7qnskLms9RGOqrAvmNWAk72+0kZmL+2P4wmqnF+RIdpFQE8Lb4uXgF/DRoKdna28mKnS MshCCFS/sQ5GDXpVLjHv/DLc91/J7WIMobtK1iWRGqCbmJEAoHjUFRe3ZNC/sJ0HnNFP nlOIF4PqGMBnAMnwbodzod2obEm9FCFckBUGBNUMfOGgIAo1+1sO28odkccuvxb6bbz2 ECzEw9hJCSmr6nt+Y9v9dHN88b6QKJ9/EsbtGRwVutEx+5wQiI2o5SohL6+12MAYmHMN Abtg== 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 ml21-20020a170906cc1500b0073d71124609si2872772ejb.182.2022.11.18.15.33.46; Fri, 18 Nov 2022 15:34:11 -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 S235874AbiKRXd0 (ORCPT + 99 others); Fri, 18 Nov 2022 18:33:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235974AbiKRXa3 (ORCPT ); Fri, 18 Nov 2022 18:30:29 -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 0440FD78 for ; Fri, 18 Nov 2022 15:18:25 -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 1owA9L-0004Kq-Ia; Fri, 18 Nov 2022 23:47:55 +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-0058j4-SZ; Fri, 18 Nov 2022 23:47:53 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9I-0000N3-Sf; Fri, 18 Nov 2022 23:47:52 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 465/606] mfd: ti-lmu: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:19 +0100 Message-Id: <20221118224540.619276-466-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=ham 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?1749878781472176952?= X-GMAIL-MSGID: =?utf-8?q?1749878781472176952?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/ti-lmu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/ti-lmu.c b/drivers/mfd/ti-lmu.c index fd6e8c417baa..9921320be255 100644 --- a/drivers/mfd/ti-lmu.c +++ b/drivers/mfd/ti-lmu.c @@ -133,8 +133,9 @@ TI_LMU_DATA(lm3633, LM3633_MAX_REG); TI_LMU_DATA(lm3695, LM3695_MAX_REG); TI_LMU_DATA(lm36274, LM36274_MAX_REG); -static int ti_lmu_probe(struct i2c_client *cl, const struct i2c_device_id *id) +static int ti_lmu_probe(struct i2c_client *cl) { + const struct i2c_device_id *id = i2c_client_get_device_id(cl); struct device *dev = &cl->dev; const struct ti_lmu_data *data; struct regmap_config regmap_cfg; @@ -216,7 +217,7 @@ static const struct i2c_device_id ti_lmu_ids[] = { MODULE_DEVICE_TABLE(i2c, ti_lmu_ids); static struct i2c_driver ti_lmu_driver = { - .probe = ti_lmu_probe, + .probe_new = ti_lmu_probe, .driver = { .name = "ti-lmu", .of_match_table = ti_lmu_of_match, From patchwork Fri Nov 18 22:43:20 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: 22974 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476531wrr; Fri, 18 Nov 2022 16:09:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf4fOUpiboZ21LgPpBbpzGrZ9kVfX4uN0a+lzjcAh6bJXFojkmExYKZ7s282o47BA7xXDvOi X-Received: by 2002:a05:6402:28cb:b0:463:b0de:c210 with SMTP id ef11-20020a05640228cb00b00463b0dec210mr8242712edb.10.1668816557152; Fri, 18 Nov 2022 16:09:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816557; cv=none; d=google.com; s=arc-20160816; b=CQZBr8hYfFvErZ1sXw3Il6Xs1XcYBjgETsG2HQKg4CU5p35iNC1Qe0mG438abIYPJK D3DSsi+5rM7YIJA2imyEaANX/7YBJTOHx1et2paBpBD955/e8d1Tm0boz3HJejnpuDVh xPMohAoVv64NPcrmoFlj9UCAKKaaPqFGes2uGISmtoH1IRTzcO0lSN4Ql2hlfkQd2Giz dJWfFlabNkHckeMUVnywvAzt5iUCv0EkC4u+ym8ZeB0Ad0T4fKbdn2CnDzuEuMa5ZERZ ztxTGiyB6aKGg4vFXrDs8y+GbcdW12ugPKViTKsPsls8khajrGlq719JLEpm74qGEkD1 HR7Q== 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=ErQKLyEytJMSmT6LSOE23vTI97emXrHkE5NQ/LRJXBM=; b=1DRAKUtfk5kCriuUrMlhwAhe2EpiyHlpWWYE/psabmCjj+vLD6BPFmGoz7znADj5OW RFlPnP5LDSQezeal85AXzS4d//zOESJoftNa0dhsZqvvaNbkDrDy7DLnhIbsJyaYFqu3 4w13vpQ1O9yKODnN0/gRc/LNK2tfTX6783uhXdD8ysSnpoSqHITL/N1xE0IVLSzKYYhK NVK0tFTDKHeOZgSshUj1Obxpzn8rMFfVzTs70KEP0KH7ZiwkCxx+JIanNWYGA6Zx9Fos cvHbMK+r93XSVtaiMzDaud7bxfmrzzwb1P4Z+t6+TndR0gPaZtc2Imw4R5U/G2hrfnPF MRpA== 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 z5-20020a05640240c500b0044e8fe826a0si4784662edb.156.2022.11.18.16.08.30; Fri, 18 Nov 2022 16:09:17 -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 S237211AbiKSAF1 (ORCPT + 99 others); Fri, 18 Nov 2022 19:05:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237427AbiKSAFD (ORCPT ); Fri, 18 Nov 2022 19:05:03 -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 825D7EA12A for ; Fri, 18 Nov 2022 15:31:09 -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 1owA9L-0004KY-9s; Fri, 18 Nov 2022 23:47:55 +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-0058j0-QG; Fri, 18 Nov 2022 23:47:53 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9J-0000N7-2g; Fri, 18 Nov 2022 23:47:53 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 466/606] mfd: tps6105x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:20 +0100 Message-Id: <20221118224540.619276-467-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?1749880990525726485?= X-GMAIL-MSGID: =?utf-8?q?1749880990525726485?= 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/mfd/tps6105x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/tps6105x.c b/drivers/mfd/tps6105x.c index b360568ea675..a66cb911998d 100644 --- a/drivers/mfd/tps6105x.c +++ b/drivers/mfd/tps6105x.c @@ -117,8 +117,7 @@ static struct tps6105x_platform_data *tps6105x_parse_dt(struct device *dev) return pdata; } -static int tps6105x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tps6105x_probe(struct i2c_client *client) { struct tps6105x *tps6105x; struct tps6105x_platform_data *pdata; @@ -210,7 +209,7 @@ static struct i2c_driver tps6105x_driver = { .name = "tps6105x", .of_match_table = tps6105x_of_match, }, - .probe = tps6105x_probe, + .probe_new = tps6105x_probe, .remove = tps6105x_remove, .id_table = tps6105x_id, }; From patchwork Fri Nov 18 22:43:21 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: 22980 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476850wrr; Fri, 18 Nov 2022 16:10:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf4e7FSUYoLDFAvFpO5YBMvGuvDVAr8Jm4LkU8Ek9YALjkbI1sgVYzkmIBKjJFQ0ZSFnsOjV X-Received: by 2002:a05:6a00:1a14:b0:572:5be2:505b with SMTP id g20-20020a056a001a1400b005725be2505bmr10122319pfv.52.1668816604747; Fri, 18 Nov 2022 16:10:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816604; cv=none; d=google.com; s=arc-20160816; b=N3ptu5AaWrtndctFkh5hKUARmtTBJIpYg8MPA7VMRGHS2ocy6PLqsWTVoh2IeSJdIM UVzD4AecjvRXonPKYK8xXmORM8RgETyUxZ5dxX7wySuVgwGDNzXW10K366Xd3Ar9q2TZ Mm01DLaQwadFMdD6fnSr51OUWw40v4nRqtHrEC47wl1X9eF71QCEGbeeyUw19cWXNAL8 Gg9nVtRq/sYTgAgr5a6QOIVCdkIEMNwjYHQaAUYbawQRD7K1Ft50qjtEpoLxsb2DdwTn Zixp9uuuYWgLRcM2Bej2tzZIXEAIMf62FyKmM4y3xQRVgheOwoAXOEGa/1VvwU/jLL3+ m1Xg== 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=+zrNwLdSeZz9cflRJ9l2SyYIE+FgU22m2fwyACorc3M=; b=nId+QP+TNdgL/LYastv7oyLYHUoxr3RKi+RlHVcV5/3qGS1Gere/7ivwAHYnwEUcqB mCcn02FKse8qajO7FyNf9XiVq5wKdAgxarqDfjcW1sUnXn1rzv/Ev79iKxLIas7JQ/VT KT+zFKUjidnqrKpq23ApzpU946oa4lU7RSGsmZmxrh7Uqsw58k03IPhvioCl4xQbFj7x 56cRnMF9173xxYEkwMuDsvfah5bll76/FEm4pTzUWW4465ftz3M/SElY+gb8xqKqzJNL hO518sRB5Pg9fvnzBg2TDJwc7VBxafHu911CRj4VesOUFanzlEBHODsJvWlbh20hP7Dn ubDw== 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 k1-20020a056a00168100b0055fdb74973esi5654710pfc.140.2022.11.18.16.09.51; Fri, 18 Nov 2022 16:10:04 -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 S237370AbiKSAIX (ORCPT + 99 others); Fri, 18 Nov 2022 19:08:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237692AbiKSAHf (ORCPT ); Fri, 18 Nov 2022 19:07:35 -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 EEF40D5670 for ; Fri, 18 Nov 2022 15:32:05 -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-0004Mo-97; Fri, 18 Nov 2022 23:47:56 +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 1owA9J-0058jM-Fc; Fri, 18 Nov 2022 23:47:54 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9J-0000NB-Bk; Fri, 18 Nov 2022 23:47:53 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 467/606] mfd: tps65010: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:21 +0100 Message-Id: <20221118224540.619276-468-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?1749881040288534534?= X-GMAIL-MSGID: =?utf-8?q?1749881040288534534?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/tps65010.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/tps65010.c b/drivers/mfd/tps65010.c index c2afa2e69f42..fb733288cca3 100644 --- a/drivers/mfd/tps65010.c +++ b/drivers/mfd/tps65010.c @@ -519,9 +519,9 @@ static void tps65010_remove(struct i2c_client *client) the_tps = NULL; } -static int tps65010_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tps65010_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct tps65010 *tps; int status; struct tps65010_board *board = dev_get_platdata(&client->dev); @@ -668,7 +668,7 @@ static struct i2c_driver tps65010_driver = { .driver = { .name = "tps65010", }, - .probe = tps65010_probe, + .probe_new = tps65010_probe, .remove = tps65010_remove, .id_table = tps65010_id, }; From patchwork Fri Nov 18 22:43:22 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: 23123 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488237wrr; Fri, 18 Nov 2022 16:45:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf5c1JI6ikd2COymc+NrKgS6XMl2XTQtgvAQN8lCDlwLyP115F7Me+TWwXngY9QH3hs45E3h X-Received: by 2002:aa7:c04f:0:b0:45c:f13b:4b96 with SMTP id k15-20020aa7c04f000000b0045cf13b4b96mr8179727edo.129.1668818726866; Fri, 18 Nov 2022 16:45:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818726; cv=none; d=google.com; s=arc-20160816; b=hHxX9OhHjBkUnEMV7Pgm0B21yaQ7g+UteobUpqXFCWVYpdj1+zEfb7o5RcqQ/c4UjP T5yIu0GGsJwfxCY6quyf7g1NbOlHx7OG+TTaxxRkTct3wk7MOlpzyEqs4CjWhwe6wF/h W6xqK0SsFIYqH/7Mw4riEmGzNOm/ayepZsv7K79s8FsVEabEdQxEFehNRUPP19eF02cM 13dvRTDr7T7mUoI8d6SRhhxVZudyPMXb0qC5Kjsn+PMLfPKgvkr2J+Pp0bQ8qqhAsbCJ opuWnloJFfp90MIbIN8Jr9Q+DNyzfU1WfioyFGFgoCEX9PSJ5katnCkYDml4WlA6DDf0 9dlg== 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=hG5X6HypRilUtBfzTdqqavPJ1qtt4X0CNE+lFEXv/Uw=; b=U+Y2U0cDqy65wyP8qJcrV7CKtzcMjZwi2826hozYkh+uwdU7Pe++MqLpJMY4u7q/rq fn5GgORAsVc2gIOC3ELZw073KYJnuNZA7lwLjpfVenNJUBEk0sRwULXICApEAo5D5KGS BI0O5WuFm3FHUr2jVn9d48j7znqZhWfv+HJEG8x2v+5FtHkTwTIDwyoCgf4A8Lo2XXrn 8M+ks0Wj75m+yiHeObeTU93G6GkSJfSVVnGN83jZ+pUze/0QEsHRvNOFOs9/v1hYD2RC 6w0V1V8KrNx0kBEj2MAeFdwwtD0ckfvOH63Cnt4/tKADRI25e8SeDXmM26xj6q11KrLW iqaA== 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 n19-20020a170906165300b0078d96d3278csi3536435ejd.510.2022.11.18.16.45.01; Fri, 18 Nov 2022 16:45:26 -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 S232906AbiKSAnH (ORCPT + 99 others); Fri, 18 Nov 2022 19:43:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235602AbiKSAkT (ORCPT ); Fri, 18 Nov 2022 19:40:19 -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 AF505C72E4 for ; Fri, 18 Nov 2022 15:44: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 1owA9L-0004MD-RO; Fri, 18 Nov 2022 23:47:55 +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 1owA9J-0058jG-AA; Fri, 18 Nov 2022 23:47:54 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9J-0000NF-H2; Fri, 18 Nov 2022 23:47:53 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 468/606] mfd: tps6507x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:22 +0100 Message-Id: <20221118224540.619276-469-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?1749883265329318460?= X-GMAIL-MSGID: =?utf-8?q?1749883265329318460?= 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/mfd/tps6507x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/tps6507x.c b/drivers/mfd/tps6507x.c index 1f308c4e3694..500b594de316 100644 --- a/drivers/mfd/tps6507x.c +++ b/drivers/mfd/tps6507x.c @@ -84,8 +84,7 @@ static int tps6507x_i2c_write_device(struct tps6507x_dev *tps6507x, char reg, return 0; } -static int tps6507x_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int tps6507x_i2c_probe(struct i2c_client *i2c) { struct tps6507x_dev *tps6507x; @@ -123,7 +122,7 @@ static struct i2c_driver tps6507x_i2c_driver = { .name = "tps6507x", .of_match_table = of_match_ptr(tps6507x_of_match), }, - .probe = tps6507x_i2c_probe, + .probe_new = tps6507x_i2c_probe, .id_table = tps6507x_i2c_id, }; From patchwork Fri Nov 18 22:43:23 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: 23009 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477940wrr; Fri, 18 Nov 2022 16:12:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf4q0gzycc8IYoVPq4ZIvFqcmhJvJsFK4Lq92dv+C0+Nliqe8y9p8d3zswSAG33ZR2PtffDR X-Received: by 2002:a17:903:2783:b0:186:a97d:6bc8 with SMTP id jw3-20020a170903278300b00186a97d6bc8mr1768468plb.101.1668816771317; Fri, 18 Nov 2022 16:12:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816771; cv=none; d=google.com; s=arc-20160816; b=d07VYM21R6Lmbncyr5ItOT+v3jnr4b2gXj6gkxF2xGWFW7LpbDz71aLHhO7nMfX1r5 bxmMktsdXCFOmbv43s3oi5sgqnyqw6JL7xHtIroOJA106AOBIlFWr7ySN7ZgHifSNlgo E2gWbR6BAthKow0MQsHrHxWEaU1M1JeL6qs/6QaMiVBRNHX7a5pW0OBO3pt74X2JRP3J flLSO8NKIoG4zB9vbERSYFjZKcqj4Vv8V4tlFnfFU/TDfJJFnqT4JLIOyNb8Acxa+iM6 Yhvzlwp2LlK0ZwAD9VFeV/8Jkh1lPTebK95wWGdLO1wr/dGxwbEVBJDD6ovkyra5a7bE ccMw== 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=354TfL3QTDhZhmyCBz1aWChAMBSuw2PjJhbwT/SHlbA=; b=NbuHlti/tmCfYAIFRiWtsfvsBfnxbrlEK9Dq652YhD47oyQ7Z9xxvKtNe/t6qNFvIs Tb6wcn81dpm4azY3zqQknUGCkGSBT7aa0/Fgp70NO+Ew1xaH9KxTx3fi+f21OacvMbGg HULuThKInLGSoDon3IZmRo5WqQ9cliODBUMradEXef9EGTTTJgsojlzyOalXexEw+44W bhiDENLnsoAF4LW1VHQ/Q1iynLjxbLv8rb0jd+uF8jnfOYVJgZEGrSf4Y73bmEkEg4T6 mBBWetsTR2W0uREmGyl2ZWpsmtA61VE9UNDRfu2znu4dGAqD5vcoD0ELTA/xtY4q4f+9 4J7A== 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 w5-20020a056a0014c500b00563960fdb21si5245089pfu.260.2022.11.18.16.12.38; Fri, 18 Nov 2022 16:12:51 -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 S237618AbiKSALf (ORCPT + 99 others); Fri, 18 Nov 2022 19:11:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237572AbiKSAKE (ORCPT ); Fri, 18 Nov 2022 19:10: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 0A7A65F82 for ; Fri, 18 Nov 2022 15:33:27 -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-0004Mh-33; Fri, 18 Nov 2022 23:47:56 +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 1owA9J-0058jK-EV; Fri, 18 Nov 2022 23:47:54 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9J-0000NJ-MM; Fri, 18 Nov 2022 23:47:53 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 469/606] mfd: tps65086: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:23 +0100 Message-Id: <20221118224540.619276-470-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?1749881214931585783?= X-GMAIL-MSGID: =?utf-8?q?1749881214931585783?= 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/mfd/tps65086.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/tps65086.c b/drivers/mfd/tps65086.c index 81a7360a87bb..9494c1d71b86 100644 --- a/drivers/mfd/tps65086.c +++ b/drivers/mfd/tps65086.c @@ -61,8 +61,7 @@ static const struct of_device_id tps65086_of_match_table[] = { }; MODULE_DEVICE_TABLE(of, tps65086_of_match_table); -static int tps65086_probe(struct i2c_client *client, - const struct i2c_device_id *ids) +static int tps65086_probe(struct i2c_client *client) { struct tps65086 *tps; unsigned int version; @@ -130,7 +129,7 @@ static struct i2c_driver tps65086_driver = { .name = "tps65086", .of_match_table = tps65086_of_match_table, }, - .probe = tps65086_probe, + .probe_new = tps65086_probe, .remove = tps65086_remove, .id_table = tps65086_id_table, }; From patchwork Fri Nov 18 22:43:24 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: 22656 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460772wrr; Fri, 18 Nov 2022 15:25:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf5TWsVnVy+YzEhyALTDNDhZkrTieCx0v4sufTy07jzGVyj1kZzxQHTOIMptVvR5qxy9xnKr X-Received: by 2002:a17:906:9153:b0:7a0:7333:8f1e with SMTP id y19-20020a170906915300b007a073338f1emr7233079ejw.493.1668813917944; Fri, 18 Nov 2022 15:25:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813917; cv=none; d=google.com; s=arc-20160816; b=Yysow4peWLBefUCPTnhCUothbOelTZ7oRAftbXq195wgXLWwkd/wUY6e2wPBdK219t /AfD3DsajFi09NU19TUqBkxhG+N3gNlRg7yfTk6i4uOEoGvOHiJEazuAJU0kX7osCSum 2TJVwG+Gi0WlAxvMu1kXIJ/v02CyR/6/+Ot+LU7F4fwbfcyyh1VYmh2QuM63jyhTPhoQ UgQlqhzJ88U6SFUcV5bayhP09Z2EApnuzTIRdwmBCbkxUDWGQRAi0c3XSj0UkUGUUPo+ MH2Ovww2mZxK+ZumFc5U5Dipzq7g096pJTpiORx2np1tjrkfqFLo+i4XWvMoKM2OYv0v MOCQ== 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=9QyPGXDGCQqsJD463MRyytap09Qm6/sv+y1E3yXQ4IA=; b=U0eHP4Z8OvYkTmEUDnVDrOikWJXHYje5f4ZvQEutQDbIbNl/H13omKgC/1BzR5mwXT 5zraOawFSPyfq7Al2d+g/a3CHTythdvzUd3gQfIyY9ttbcT4+IbKzIfAf09qHDeTMrpB lLCKMA3UeobbzADtMrzqf8G6LEL9UEKjis2splD7T3qNha5/RdfmEg2y49L5rdUho6LJ 5/E+IT0ugyb+zbPFUCVIrKcwoDaQflO4H4ONavbTg058GOffC7j9p5Cpgsw1A0kMIKoH ilJslbBZ6tSKtRgPJbG5RyqlIZJbGEnAsjNYhc2wINL8cBQtZUmcxhrMD/3sfYx7dDpQ 9IrQ== 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 t2-20020a056402524200b0045be16903d0si4922508edd.310.2022.11.18.15.24.53; Fri, 18 Nov 2022 15:25:17 -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 S235506AbiKRXWA (ORCPT + 99 others); Fri, 18 Nov 2022 18:22:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234568AbiKRXVF (ORCPT ); Fri, 18 Nov 2022 18:21:05 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B63ED4F1B4 for ; Fri, 18 Nov 2022 15:11:59 -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 1owA9N-0004Ow-2b; Fri, 18 Nov 2022 23:47:57 +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 1owA9K-0058jg-6l; Fri, 18 Nov 2022 23:47:55 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9J-0000NN-Rn; Fri, 18 Nov 2022 23:47:53 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 470/606] mfd: tps65090: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:24 +0100 Message-Id: <20221118224540.619276-471-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?1749878222692966560?= X-GMAIL-MSGID: =?utf-8?q?1749878222692966560?= 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/mfd/tps65090.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c index bd6235308c6b..e1f2491a2578 100644 --- a/drivers/mfd/tps65090.c +++ b/drivers/mfd/tps65090.c @@ -164,8 +164,7 @@ static const struct of_device_id tps65090_of_match[] = { }; #endif -static int tps65090_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tps65090_i2c_probe(struct i2c_client *client) { struct tps65090_platform_data *pdata = dev_get_platdata(&client->dev); int irq_base = 0; @@ -238,7 +237,7 @@ static struct i2c_driver tps65090_driver = { .suppress_bind_attrs = true, .of_match_table = of_match_ptr(tps65090_of_match), }, - .probe = tps65090_i2c_probe, + .probe_new = tps65090_i2c_probe, .id_table = tps65090_id_table, }; From patchwork Fri Nov 18 22:43:25 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: 22736 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464699wrr; Fri, 18 Nov 2022 15:35:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf6PwlRwE7eNleXv6bvkdgLScRGcXlyCqDBQwCCXTncxIlCBIi57wZtiHcMaJECPQkBSpJZl X-Received: by 2002:a17:906:b794:b0:7ae:6450:c620 with SMTP id dt20-20020a170906b79400b007ae6450c620mr7784488ejb.270.1668814533852; Fri, 18 Nov 2022 15:35:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814533; cv=none; d=google.com; s=arc-20160816; b=zumVFihawN+n3YV3HbjfcvZD2nTbsR4jIuFk0n91zAk4ByQIE6O4/9kNO9qmweCjTq VKZ2VkKE9114YV2hbtQJ31mALVYmamitMyP0rPrlh3gCXfQzPDVqOJhH5P4YV68IQ9aN bfVZzyB29sba2ck+COVssZqiUXRavZldifYlW4Chj/Lmces4Y+WLlf9GnwOqBVsvWUHB DTWZbo1Yw3700tsuiwwRC4tY7nQi0vvC8aa2oQBY7tvyIju0BCVnW2tWyC0nR3B14XNM nHQLMFffiInMya5xDTKVCN1WadPDdhLrJsfGWmJnbPb9/MuZK6Hc1+tpH0nq6yAVTKHv C4qg== 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=PEAS9G+53pJ1jSFNJOcYLfJlWtXnNAeckMigcgl19Kg=; b=fbjRCgGWG6BdcP+SijSc9wtw2/emRmYIbxcHa5pR2oehKG7zRJDPZXXOsjRozrxV+G oErXTxvS1KI/v8A+GSd73EyuAgTe4VEfYx+CwjgSm1Gm1CTq8FK/6XyH4xDZvRuSDu0W 2U4T764UiW+pW+mFMaXAsDjbFN+rLGf8m/xhQUIZ891qK0DCl3SPJR9TOnnswxKNMLwt pF9QpmyUQv9S1s26OD4qhw+vSK2VUECCNBwAopj/F1HlOh69KQpWSgTn1XY+qIZS176R alVoLiiQF3n72qD4wxQQzgUony3IOFogsikSaN7/ph7N5W+jkqxvlRV1wKM/bBzDKczu VXyw== 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 b19-20020a056402279300b00453b9f11bb1si4436364ede.206.2022.11.18.15.35.07; Fri, 18 Nov 2022 15:35: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 S236215AbiKRXe3 (ORCPT + 99 others); Fri, 18 Nov 2022 18:34:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232231AbiKRXbh (ORCPT ); Fri, 18 Nov 2022 18:31:37 -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 EB63A2F38F for ; Fri, 18 Nov 2022 15:18:52 -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-0004OK-MI; Fri, 18 Nov 2022 23:47:56 +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 1owA9K-0058jX-1g; Fri, 18 Nov 2022 23:47:54 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9K-0000NR-13; Fri, 18 Nov 2022 23:47:54 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Tony Lindgren , Lee Jones Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 471/606] mfd: tps65218: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:25 +0100 Message-Id: <20221118224540.619276-472-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=ham 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?1749878868760236264?= X-GMAIL-MSGID: =?utf-8?q?1749878868760236264?= 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/mfd/tps65218.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/tps65218.c b/drivers/mfd/tps65218.c index 49bb8fd168f8..ea69dcef91ec 100644 --- a/drivers/mfd/tps65218.c +++ b/drivers/mfd/tps65218.c @@ -280,8 +280,7 @@ static int tps65218_voltage_set_uvlo(struct tps65218 *tps) return 0; } -static int tps65218_probe(struct i2c_client *client, - const struct i2c_device_id *ids) +static int tps65218_probe(struct i2c_client *client) { struct tps65218 *tps; int ret; @@ -348,7 +347,7 @@ static struct i2c_driver tps65218_driver = { .name = "tps65218", .of_match_table = of_tps65218_match_table, }, - .probe = tps65218_probe, + .probe_new = tps65218_probe, .id_table = tps65218_id_table, }; From patchwork Fri Nov 18 22:43:26 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: 22926 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474482wrr; Fri, 18 Nov 2022 16:04:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf78gvrv7zXR8roY9CCGwNJWLyNX3NNYjWWSriVOGHmMrCv9iw85udfpNuaiC8WRtv/Yd0kI X-Received: by 2002:a17:90a:8a82:b0:210:7cd5:db0e with SMTP id x2-20020a17090a8a8200b002107cd5db0emr10544393pjn.30.1668816259001; Fri, 18 Nov 2022 16:04:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816258; cv=none; d=google.com; s=arc-20160816; b=TjDOoKc4vNw0fnBOjzhAdY3PXhfSdvU5qFWyMxOvVQXaKAmDEAv91i9vzzNZPmjbb0 79qMVTVOoJiWDXENq9W8xdYAg92gmMJ0IS4bnhA3VhlQ6pZ1LcrJIeRkxVUbj0/aW0VO ebGofjxl40m+QAwuIg2kdHHW97Y+SWppeG15OJEEqCiETM616ZyycoBnb8p1yuTy8ZCU TFafd4TKFy0DGWrA1NtnhDtXXsC7oMvYoO4ft1t+Z+hhS2SKrAjcxQDvKO7Lzhszkz2D pUFAFFv6hQGMAeY7HU2x9tFcERVnvPNQGX7D7QueydjNU6oxel7sU0gHgQ2SEm+GPlH3 YngQ== 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=eoeLjIPEvuY/1/eMsORoPpX1riKIoy/+qJLjjDQCzek=; b=P5BJ/I07wtAk0Sfv9pkT+95d5a0VGtw5ZSvuzlHOhx+xtdnnMmBLOyT9NkmAZ9C861 mK0h6DLspoxC/2n6KxYJsqNgJbYXshLy+3yBRKA4J5iybwCJoIsL/MXcyXMMSHOb4njc 6HxVdLDDX39SDgTf2Pn4p1okcK55rV8OngqdQJLPmu8jtJJmmSApGyJyjfSpVyHuH+Cv WdmgZB07oE6Mby1ZGlW5msJqwexLwsZlgBhI+sLc9ABsNm+iYnX0xoqt5hYBUdwLoDSO 4hv0q2/oZueOd8L97ZaboqIumFBqOsVyiUncxShAFioJX+h0c6kfvjW/gnnQsMQyxAAk v71w== 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 y10-20020a17090322ca00b00188ad330242si5249469plg.131.2022.11.18.16.04.03; Fri, 18 Nov 2022 16:04:18 -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 S237208AbiKRX7S (ORCPT + 99 others); Fri, 18 Nov 2022 18:59:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231707AbiKRX42 (ORCPT ); Fri, 18 Nov 2022 18:56:28 -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 4D00A1128 for ; Fri, 18 Nov 2022 15:28:27 -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-0004OQ-Sw; Fri, 18 Nov 2022 23:47:56 +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 1owA9K-0058ja-30; Fri, 18 Nov 2022 23:47:55 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9K-0000NU-6l; Fri, 18 Nov 2022 23:47:54 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 472/606] mfd: tps6586x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:26 +0100 Message-Id: <20221118224540.619276-473-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=ham 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?1749880677664508993?= X-GMAIL-MSGID: =?utf-8?q?1749880677664508993?= 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/mfd/tps6586x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/tps6586x.c b/drivers/mfd/tps6586x.c index 9dbb5e28821a..2d947f3f606a 100644 --- a/drivers/mfd/tps6586x.c +++ b/drivers/mfd/tps6586x.c @@ -495,8 +495,7 @@ static void tps6586x_print_version(struct i2c_client *client, int version) dev_info(&client->dev, "Found %s, VERSIONCRC is %02x\n", name, version); } -static int tps6586x_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tps6586x_i2c_probe(struct i2c_client *client) { struct tps6586x_platform_data *pdata = dev_get_platdata(&client->dev); struct tps6586x *tps6586x; @@ -620,7 +619,7 @@ static struct i2c_driver tps6586x_driver = { .of_match_table = of_match_ptr(tps6586x_of_match), .pm = &tps6586x_pm_ops, }, - .probe = tps6586x_i2c_probe, + .probe_new = tps6586x_i2c_probe, .remove = tps6586x_i2c_remove, .id_table = tps6586x_id_table, }; From patchwork Fri Nov 18 22:43:27 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: 22706 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462921wrr; Fri, 18 Nov 2022 15:31:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf4jnF7lqv8qY6R55HKXfv0K9SN+1isqda5CALlE8n3HKo5ldMEgO/NC7BGkT1xCmF0QW6/6 X-Received: by 2002:a17:906:f858:b0:78d:b654:8af9 with SMTP id ks24-20020a170906f85800b0078db6548af9mr8058330ejb.660.1668814277987; Fri, 18 Nov 2022 15:31:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814277; cv=none; d=google.com; s=arc-20160816; b=nu9SHa3pQXte5hJvpMyQHxvXXaq7Nsid1ij8Wi6ebV8S6s7/Y3ddfk15YDmOh8PaJz 4KEWzzY+fRRbpr2p7AghtI+9R4UjjRNAVTMmaHkoX2/9rkLJv2ZUNOYjrGeGpCK80S4q Ee5A+rsMT/DFUjZgILVYXvddjxLxgxkEB6MbJBwkjk8xvsLojqXaF7BMHlfpAG3Kurdl Yz5peSdI0DvWx6fai90g2oHoN2gC1JUMgQEYG1bGfFBoVZMonsCGMDLa8H51gocttHso kK2qPs2P/azuAApU4g/GCCCfZATbxeUnYqKYWvYtBMM8GJ45Y9U5ptvDAjkZV2BY77ds Trjw== 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=3449fpJmgSOQJwlQog5q+F54gEl3D1bnoVSWcr9/6Iw=; b=j/09/nK/UVcU9sYxKNSwLuIQPKErAUrsXGn5kaoSlNR3PzuFjC4SpP9j6TAq/hmHx6 3wnEKI7c0MVT5FIz0afbDtkBDtQPyxbqG52Nij+RcHVxC7bl3TFzejlodXCKUXkUZGrP igh5eBXMswrDb+G3V/Pp8trB3rbMwDy7QTh5AbYD8SmYLzVVlp82psoVIK9ZfhRnhb/4 MnFthm1/UndVFVmy7VWsN9XI7SLIqZhnwEN7mZLY6G34KLN0ltkj7x2l4QP0hNWfZD6J V8AL2i5YB0+fJsIvEMqPp4A48CGbnEmiGXTO+luHCkb7UYT0eTl2q2oe3WVE+nmGBOOw O6Yg== 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 gx22-20020a1709068a5600b00781132a4ca6si3356001ejc.850.2022.11.18.15.30.54; Fri, 18 Nov 2022 15:31:17 -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 S233605AbiKRXaS (ORCPT + 99 others); Fri, 18 Nov 2022 18:30:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235744AbiKRX3N (ORCPT ); Fri, 18 Nov 2022 18:29:13 -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 E23C974618 for ; Fri, 18 Nov 2022 15:17:14 -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 1owA9N-0004Oj-0U; Fri, 18 Nov 2022 23:47:57 +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 1owA9K-0058jd-4y; Fri, 18 Nov 2022 23:47:55 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9K-0000NZ-FN; Fri, 18 Nov 2022 23:47:54 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Tony Lindgren , Lee Jones Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 473/606] mfd: tps65910: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:27 +0100 Message-Id: <20221118224540.619276-474-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?1749878600220045533?= X-GMAIL-MSGID: =?utf-8?q?1749878600220045533?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/tps65910.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index 67e2707af4bc..821c0277a2ed 100644 --- a/drivers/mfd/tps65910.c +++ b/drivers/mfd/tps65910.c @@ -441,9 +441,9 @@ static void tps65910_power_off(void) DEVCTRL_DEV_OFF_MASK); } -static int tps65910_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int tps65910_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct tps65910 *tps65910; struct tps65910_board *pmic_plat_data; struct tps65910_board *of_pmic_plat_data = NULL; @@ -535,7 +535,7 @@ static struct i2c_driver tps65910_i2c_driver = { .name = "tps65910", .of_match_table = of_match_ptr(tps65910_of_match), }, - .probe = tps65910_i2c_probe, + .probe_new = tps65910_i2c_probe, .id_table = tps65910_i2c_id, }; From patchwork Fri Nov 18 22:43:28 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: 23134 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488433wrr; Fri, 18 Nov 2022 16:45:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf55TB7UosxCiyfNDFVRtFCJM7UiSLZCvtWVo2qb9XSrwWdFxwu9KSjhf59L7VNXmTXctZHn X-Received: by 2002:a17:906:69b:b0:78e:ebb:cbb7 with SMTP id u27-20020a170906069b00b0078e0ebbcbb7mr8218192ejb.38.1668818758226; Fri, 18 Nov 2022 16:45:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818758; cv=none; d=google.com; s=arc-20160816; b=LmTfwiL6JoKHMhxLrIT38XpZKbvqMour3a7fy2jQhaxdiCuXcoePydVpcwEgu7odj8 x/55xY/L+uaWoC+WQ9yBjxgLs/JkAs2x+9Jt+LNEBnkMoL4aUkUVkXXUUnzSNnKFXYsk nrXIQ4Uceg8DAn4I5UqzJZiA6zT8/FHxBJABp1AMdxEtHfCd6r3QSTXAkem1oqbDlEVS 20ox1YtQiHy+pi5ZLSY+f2olz86lWJY5qYkkG76uHsH5vKFiQ2ZDgOZAIv/3/qq6qvyG gba42pUGVy6qKBTLrxD1vLyhBOYaNqROYFpiUvpvnr2vkt7UFQUAKdRlxFzOmEbZeeTK re3w== 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=yHhQymkrO2XSyy+rBOhLhL8ZszNfkzqaCChN36so6mY=; b=nuLNMxzkAagQ2+RtA8qFc22zBU1WZJ1EEh9fTzqjtprmnrAgdKVbqsdzvDeD/xNhrB ykQH1JzQ13bRvDpHPYqpuvMO/h7WGpJkqxURcSYpd2rKtUc6PK7RxHvwweC3l+6L7WoF LJ5by5UcY+U+5pCXgS9ygHifJj0cAntfGykPBDITyp7sICMy0Ochmks3Qg50wouU32dR cIweDSfJhNd1XtPWxeIvn60EK6NB7ou4YQxITys5wS+xr5JeHGUSAPnXsBCFrQxydmMp FpsI3lrbjSU2r88EmV3Lsjh/clfL4xXVUEfDwFtpMpejOyhYjVORpeoO/s0WwXuD7frb kzBg== 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 h22-20020a056402281600b00461f0d84ee1si4611888ede.228.2022.11.18.16.45.26; Fri, 18 Nov 2022 16:45:58 -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 S235969AbiKSAkN (ORCPT + 99 others); Fri, 18 Nov 2022 19:40:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235673AbiKSAjH (ORCPT ); Fri, 18 Nov 2022 19:39:07 -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 A01CAC7693 for ; Fri, 18 Nov 2022 15:44:23 -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 1owA9N-0004Qh-Gw; Fri, 18 Nov 2022 23:47:57 +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 1owA9K-0058ju-QC; Fri, 18 Nov 2022 23:47:55 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9K-0000Nd-Ke; Fri, 18 Nov 2022 23:47:54 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 474/606] mfd: tps65912-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:28 +0100 Message-Id: <20221118224540.619276-475-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?1749883298606922960?= X-GMAIL-MSGID: =?utf-8?q?1749883298606922960?= 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/mfd/tps65912-i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/tps65912-i2c.c b/drivers/mfd/tps65912-i2c.c index 7e2b19efe867..1bf945966bf7 100644 --- a/drivers/mfd/tps65912-i2c.c +++ b/drivers/mfd/tps65912-i2c.c @@ -21,8 +21,7 @@ static const struct of_device_id tps65912_i2c_of_match_table[] = { }; MODULE_DEVICE_TABLE(of, tps65912_i2c_of_match_table); -static int tps65912_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *ids) +static int tps65912_i2c_probe(struct i2c_client *client) { struct tps65912 *tps; @@ -61,7 +60,7 @@ static struct i2c_driver tps65912_i2c_driver = { .name = "tps65912", .of_match_table = tps65912_i2c_of_match_table, }, - .probe = tps65912_i2c_probe, + .probe_new = tps65912_i2c_probe, .remove = tps65912_i2c_remove, .id_table = tps65912_i2c_id_table, }; From patchwork Fri Nov 18 22:43: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: 23112 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487967wrr; Fri, 18 Nov 2022 16:44:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf5vBrtLnqJCATL/gfgO5EcAT84JPtnYrqGVYIdfKf+kffBi9asBkUEhFzLjUb9+h7saourx X-Received: by 2002:a17:907:9856:b0:780:8144:a41f with SMTP id jj22-20020a170907985600b007808144a41fmr8167654ejc.189.1668818675977; Fri, 18 Nov 2022 16:44:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818675; cv=none; d=google.com; s=arc-20160816; b=kM9LKj5uyRnbUR+H9GT9c475Er/3+NEUp0L39DgSgTSsEb7p8+Mkmlx3o7yPEOo5Y6 AhN/9wUGUM+dnI/tx7KWZB/bS7GciVAj55Cgtlx0VIl8jWKfE9itUu0uvvPZPcepDf15 8dIBXKe9vwEypb6Bdr5HYRa8UT2WBFIP5tKtQGLXKz/8+5IUdoK3JM0PYxWY/aa5kyPX Yk5D9s80L1Eg2y3RRJQGl4aEcqmQIlm4VHnLQsnaUGkZt+v2r181rIXTVS/eC/8jf0kI /QKWyXQrgiy/ecENpCpSJ0fscCnDwiM4Hit6igT2aLL9YdPGZp0kSQTJ/3zDj/a+0Gzs Igag== 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=yRM6WCJB7Dteydm0IomeDQpT5R+Xw+bCdhkGbkuWcac=; b=WHOTL9r0dr7C32+NFQ0GhaEuXkx5v2fTJza2DkjZkTpCc9Pm6BWyFJ5Q0aBewmjV3R cCxH5JHh5r60Wh/5PVfcpEum3HszzwsMs0mrb7EyZ9v71XKGtNNedEC91DXLRQyNuQHR dNIMYjIfvElYiu4xzUvNam4eTaPMWcROUgLZBfa5T1ygjT0XT2aNEd3bKmmc0EVexQXc QEqcuoHTc08IsWNjBwU5EQpKsi5n7oAvCA2PnxO5ruFd3y08dr+4w5cD7j2mK5IwJUJj CP362cBt2pfkdv0a2ET5B8bBGbXiX3qceS2HNMkZMn9C5o5+zCz5F4fFDcd0QvPZ4A2U 7FhQ== 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 xa11-20020a170906fd8b00b007306ac0faa0si4658578ejb.615.2022.11.18.16.44.06; Fri, 18 Nov 2022 16:44: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 S233598AbiKSAjU (ORCPT + 99 others); Fri, 18 Nov 2022 19:39:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236449AbiKSAib (ORCPT ); Fri, 18 Nov 2022 19:38:31 -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 0886E117AFC for ; Fri, 18 Nov 2022 15:44:12 -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 1owA9N-0004Qb-Hw; Fri, 18 Nov 2022 23:47:57 +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 1owA9K-0058jq-OA; Fri, 18 Nov 2022 23:47:55 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9K-0000Ng-RE; Fri, 18 Nov 2022 23:47:54 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Tony Lindgren , Lee Jones Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 475/606] mfd: twl-core: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:29 +0100 Message-Id: <20221118224540.619276-476-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?1749883211880143989?= X-GMAIL-MSGID: =?utf-8?q?1749883211880143989?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/mfd/twl-core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c index f6b4b9d94bbd..62be2326c9b2 100644 --- a/drivers/mfd/twl-core.c +++ b/drivers/mfd/twl-core.c @@ -754,8 +754,9 @@ static struct of_dev_auxdata twl_auxdata_lookup[] = { /* NOTE: This driver only handles a single twl4030/tps659x0 chip */ static int -twl_probe(struct i2c_client *client, const struct i2c_device_id *id) +twl_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device_node *node = client->dev.of_node; struct platform_device *pdev; const struct regmap_config *twl_regmap_config; @@ -955,7 +956,7 @@ static struct i2c_driver twl_driver = { .driver.name = DRIVER_NAME, .driver.pm = &twl_dev_pm_ops, .id_table = twl_ids, - .probe = twl_probe, + .probe_new = twl_probe, .remove = twl_remove, }; builtin_i2c_driver(twl_driver); From patchwork Fri Nov 18 22:43:30 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: 22861 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472039wrr; Fri, 18 Nov 2022 15:59:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ukw9q24GG5NryeJdt49oepala1TJ0ZcFS4QCxYHzJUCpFlB03UAvOEIvs1B2F5pfC5Xi1 X-Received: by 2002:a63:6f4b:0:b0:470:5619:4d7d with SMTP id k72-20020a636f4b000000b0047056194d7dmr8489976pgc.301.1668815950258; Fri, 18 Nov 2022 15:59:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815950; cv=none; d=google.com; s=arc-20160816; b=UNia2fn4ezbBAzwOLDB/acLvFGpiQRdpdDbeMzTMSMELOdXbaY62g2mxOLZwhTBZDm pVhltborAdT/u6rxWGDOD6H4K7lvw5vQDn22CZUkLU9LbljQjKyo9hoHmqjrFC4qQ5WI I8+WF97Lj3OQccdapyFtEbtYefoLtTgea8uBjv0vf20HLUk0poXDDJh15PykQYmzEIXh /EQ4773tUc0kS21hSw112Ih0f5irJiynVk2qTsiBlEtnVJCvtbhxtRIx6pIuJa6PFbMv Qc4U7iZbYRmvW48mPR8+KRaavySpxXkghlwBfB5FGJRk81H5juiZyiIACWQJFKisc3g3 pxBQ== 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=29+QOqQFXoRq5YXV1qdxIpUF0G2nCh/5laca1GKucR8=; b=bH/7NNBOUGsd0eTNtvJJjCFPOyI7WJHhsAFg2+yVkblmcLggM+kcytmorXwJB9xydM l6BnG+DFKjkaPz0a0DyiFr+vjaNANgdJLySvtjjC95uKNOtPHw0qiI5IK+44IfFG1Wy8 02qJxFBkCWdJ5Oa4p6VNmVW6l/PnS1CXuKYg+x/bOXsqDhFr67UtBwGtwQREb9NZG8YD 0OLO5YRPLwsB2ciamWZE6GlhVo3n1I8F4C9+Tc2Wa0NypobNl3CkdR5AKYH2RY6hld9z Ek3wpb3LJ8e9mUcwrokhzYxZoBtd8k94HScfGDOXWZwZCoJ2CifdEshcpqPzwb4i8PJi eMsg== 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 ju19-20020a170903429300b00186ae20e8ddsi4497468plb.140.2022.11.18.15.58.57; Fri, 18 Nov 2022 15:59:10 -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 S233845AbiKRXw1 (ORCPT + 99 others); Fri, 18 Nov 2022 18:52:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234769AbiKRXvP (ORCPT ); Fri, 18 Nov 2022 18:51:15 -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 9B356C660F for ; Fri, 18 Nov 2022 15:26:56 -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 1owA9N-0004Qm-GZ; Fri, 18 Nov 2022 23:47:57 +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 1owA9K-0058jx-SZ; Fri, 18 Nov 2022 23:47:55 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9L-0000Nj-1h; Fri, 18 Nov 2022 23:47:55 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Tony Lindgren , Lee Jones Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 476/606] mfd: twl6040: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:30 +0100 Message-Id: <20221118224540.619276-477-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=ham 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?1749880353405891766?= X-GMAIL-MSGID: =?utf-8?q?1749880353405891766?= 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/mfd/twl6040.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/twl6040.c b/drivers/mfd/twl6040.c index 4a7cdac5e10d..fc97fa5a2d0c 100644 --- a/drivers/mfd/twl6040.c +++ b/drivers/mfd/twl6040.c @@ -632,8 +632,7 @@ static struct regmap_irq_chip twl6040_irq_chip = { .mask_base = TWL6040_REG_INTMR, }; -static int twl6040_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int twl6040_probe(struct i2c_client *client) { struct device_node *node = client->dev.of_node; struct twl6040 *twl6040; @@ -830,7 +829,7 @@ static struct i2c_driver twl6040_driver = { .driver = { .name = "twl6040", }, - .probe = twl6040_probe, + .probe_new = twl6040_probe, .remove = twl6040_remove, .id_table = twl6040_i2c_id, }; From patchwork Fri Nov 18 22:43:31 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: 22718 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp463361wrr; Fri, 18 Nov 2022 15:32:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf6PMwz8jmQLWhhKsHocRU4k9GH16a4y8Y23gxTjskpILyOGc8amE8khypJSXYxfvy1mLwHM X-Received: by 2002:a17:906:fa19:b0:78d:9002:fe3b with SMTP id lo25-20020a170906fa1900b0078d9002fe3bmr4242006ejb.769.1668814335166; Fri, 18 Nov 2022 15:32:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814335; cv=none; d=google.com; s=arc-20160816; b=nF5wGrxsV2ogt+bhlLBPR7TH+u0AlCHSD4bqwwXRfJmlRpqfYGwOAivJmQGRnKRI0E AlziIQTja7n9uw1OQIoEIPGeC+GPtBIKEK0D+otzRClzaZgUHLou8tF9zrV/M28uygel 5Tbhoj/SV4ne79VWfW4baFohwh0exgeSG3purKvVC5eyNq+yEhkQyPxndqKj+Z3Sn23P mPk9y7Nbz7I/TWzySPcH0dbDWwk46pJtcKaRbQLuG8Kmdb211eu6b9SiQ2rOF+pg4V4T 4DcVmFZ5O4RzPpuK+ZgollJPWx6FWdO8G4jzs1aGynK2mVssHkwPHxvvNTzdKe/0TfzT iCPQ== 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=QKIC1jDRXuakD0w43wOpNGYBpvlk4Hokp/6UAUTIEUQ=; b=jTXHLYNoRV/Cdd4tEq0JAfuF+CeEDqxMfd7BJ7ukL8vzZsv2VFDra3WvvripFRvj7T FJ9MB5QMxwgq5YMFgkXreKh9uIloAz3UqXyw5sVyJL4nJtITkRACL90RO4kIeArv54/5 ruHyqJNBNui4I9uf6Vm18jPsS3NDMU4BefBmQXCzwBU3jm4U57fSPODE0pmmNoWrfoUT qlwScxZcAiyVdnhHOWKU/2oay1z+3abW9A/L6qSizZVZWkYS5F8q2XC/PYD3g8tYgukn yD7PcAGuVj3gZteypE9RNshr+Lxyri9G0WRoNGzSLIFxkfKDJTETWAGOCeHbGiEyp3VD RnlQ== 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 lt17-20020a170906fa9100b0078db371355esi3191872ejb.987.2022.11.18.15.31.51; Fri, 18 Nov 2022 15:32:15 -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 S235580AbiKRXbJ (ORCPT + 99 others); Fri, 18 Nov 2022 18:31:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235883AbiKRX3l (ORCPT ); Fri, 18 Nov 2022 18:29:41 -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 B7EA16DFF3 for ; Fri, 18 Nov 2022 15:17:53 -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 1owA9N-0004RC-SG; Fri, 18 Nov 2022 23:47:57 +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 1owA9L-0058k2-2x; Fri, 18 Nov 2022 23:47:56 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9L-0000Np-7O; Fri, 18 Nov 2022 23:47:55 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones 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 477/606] mfd: wl1273-core: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:31 +0100 Message-Id: <20221118224540.619276-478-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?1749878660379254391?= X-GMAIL-MSGID: =?utf-8?q?1749878660379254391?= 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/mfd/wl1273-core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/wl1273-core.c b/drivers/mfd/wl1273-core.c index 1ab5e15a65eb..a5d6128fc67d 100644 --- a/drivers/mfd/wl1273-core.c +++ b/drivers/mfd/wl1273-core.c @@ -156,8 +156,7 @@ static int wl1273_fm_set_volume(struct wl1273_core *core, unsigned int volume) return 0; } -static int wl1273_core_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int wl1273_core_probe(struct i2c_client *client) { struct wl1273_fm_platform_data *pdata = dev_get_platdata(&client->dev); struct wl1273_core *core; @@ -233,7 +232,7 @@ static struct i2c_driver wl1273_core_driver = { .driver = { .name = WL1273_FM_DRIVER_NAME, }, - .probe = wl1273_core_probe, + .probe_new = wl1273_core_probe, .id_table = wl1273_driver_id_table, }; From patchwork Fri Nov 18 22:43:32 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: 22644 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460510wrr; Fri, 18 Nov 2022 15:24:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf5AdRyAJlUuAfaF/ujZq7SKTqA2WJ+VwyhxrPAKxOfKtPAZ321LqSdbwV3yDH1TEQYdPnzY X-Received: by 2002:a05:6402:1648:b0:458:dbc5:67c5 with SMTP id s8-20020a056402164800b00458dbc567c5mr8154566edx.214.1668813869598; Fri, 18 Nov 2022 15:24:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813869; cv=none; d=google.com; s=arc-20160816; b=Lks8US1U7lHTHQxzP0BAc0LZ3+sxvmjkr9HgrHBqn9axg3ZfrR/t0uyHSmoAmzJ5cq 6j/BthHX0v0Ghd1SrapNfkNlxvO0de76c8eK83sMUPPg7FBmeNWZXVx7k169y/+ZFBlk PW4Q5+XPQSqR7wxG05U9qwUNkdksxX4uEYD9Fdkn2tQkHXnLRo7hCJ9fAe/BvxZclATa 1d2d233xiH17yluwLj3FZmg0bJtzYn27qjD+3bsSxCo9+MU8609RyL6U7jODKUQtvv2s TgXGQZDHOqs8Psdq4NOBEcQVPBIBA8ZixCpqV3zcahEWlbVd3OgSPJSh8B6ebSve7oOP 7R9Q== 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=L8vucUPv/BuX8VecPLwUksWQsvE67JP2bSBEEU7K0+Y=; b=hsbCJpCJbBOPyEmgROmylfzl64CwCiA/Uei1SO36WtV5iDMEl9tOvvxR5SdAMZ3S2u TyEJxw59cAiEk3H6Rf00Ra+kUg2Dow95mqkO8XOzpBWvhH5K6/ygIKk8L/oKkVpoofhS 8VSWcfFPf1sCW4bkgfAxr8t1BZKD4q4ondq4IM9Lznk3zt22EkiB0MQ2ofJmjX0Vc+7W hDYsqNCKhgHeOd3kF3lItpd7TdytDYecxV/3MAzgxBYb8tjGH4Okzp8Vk0lsd9uBTsWi cXXQmPmgguPyc2MHvlwG6dY92H0fNCA11mqXtAzumeIBL2VwajlkD2RMdb/2sZqey8TU Y7tQ== 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 xj10-20020a170906db0a00b007adef1dceffsi4295757ejb.677.2022.11.18.15.24.02; Fri, 18 Nov 2022 15:24:29 -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 S234494AbiKRXXD (ORCPT + 99 others); Fri, 18 Nov 2022 18:23:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230228AbiKRXVK (ORCPT ); Fri, 18 Nov 2022 18:21:10 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E350452153 for ; Fri, 18 Nov 2022 15:12:21 -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 1owA9O-0004SK-5A; Fri, 18 Nov 2022 23:47:58 +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 1owA9L-0058kC-E8; Fri, 18 Nov 2022 23:47:56 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9L-0000Nt-ES; Fri, 18 Nov 2022 23:47:55 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , patches@opensource.cirrus.com, linux-kernel@vger.kernel.org Subject: [PATCH 478/606] mfd: wm831x-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:32 +0100 Message-Id: <20221118224540.619276-479-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=ham 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?1749878172497521228?= X-GMAIL-MSGID: =?utf-8?q?1749878172497521228?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Acked-by: Charles Keepax --- drivers/mfd/wm831x-i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/wm831x-i2c.c b/drivers/mfd/wm831x-i2c.c index daa1ad036595..9dbe96e2d46a 100644 --- a/drivers/mfd/wm831x-i2c.c +++ b/drivers/mfd/wm831x-i2c.c @@ -21,9 +21,9 @@ #include #include -static int wm831x_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int wm831x_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct wm831x_pdata *pdata = dev_get_platdata(&i2c->dev); const struct of_device_id *of_id; struct wm831x *wm831x; @@ -102,7 +102,7 @@ static struct i2c_driver wm831x_i2c_driver = { .of_match_table = of_match_ptr(wm831x_of_match), .suppress_bind_attrs = true, }, - .probe = wm831x_i2c_probe, + .probe_new = wm831x_i2c_probe, .id_table = wm831x_i2c_id, }; From patchwork Fri Nov 18 22:43:33 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: 22973 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476451wrr; Fri, 18 Nov 2022 16:09:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf49JKfIVuSzYpIObUsp5wSTjF0YGTlIcNEdEtPKmufXYXDR4N0Ji8NfkH81A+xbiuf147Qd X-Received: by 2002:a05:6402:68c:b0:461:b506:6b8a with SMTP id f12-20020a056402068c00b00461b5066b8amr8117607edy.208.1668816545867; Fri, 18 Nov 2022 16:09:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816545; cv=none; d=google.com; s=arc-20160816; b=xW0tn/pCdXL8BkRPKOMAb9EskckknMVqPY0jnzdfAV3/oksBYC1UP3Mi+eDPIS0GCg KmjgVNmrHBMGlv7t7WDm318c4fmYqCS+afTXU3mQVNZWDBw2iqJtM/kwrMQeafbvvjFk 1ffo3uvmu7eerajvqOK9Oh0ofliTHDpUcFaxla9WYBFQpqEk/jDTXtMOvd8WpfMWjz18 aEfL+PGHSd45K2HAqVwTMZ3m6uSnprC/KTwG3T1CTl834R5wfPLIeY5394xaI2APN0bV D+pOibmbYfcfQdTL29lEKNov7KV922pN8Z9X67DwsfK453KNMeYJ8oHH8I27rKAQwLi1 IqfA== 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=vu4a5uieaXnCRiM7ORJqzahckYfn5GZjI/7nN1O3hZI=; b=pOfge6Wm6AWjeHgMWZgq0sPz/jH8wk7/Q5kFf9ZoJ55AVUK+598VbeXKVNbZUkDuOS fcRRDkwwlVh485h5gBFUwzLsOCg6Hp7j0kdL9A8LP9WufVGN4VqBVD1ZEoIYu08v/2S+ DSO/i245SiRCleJNkWbnP6wXr/IkirIoGRx08jv1GMHubNX1fgZWZDP5jLNUFz/7mcg+ biju9evOuzLRfSz2N29gUz7Z7XSTEV61czM/yRx8RxhVTu0OW6sZ++CF08E08Dq/gLGC Yu6/sMiuboD+6jwsHBr3Wdsh4jVMzgpaAOB5zys+gkhClKkBXgR1LnxyZlJN3xkUvQsX oK0w== 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 dp17-20020a170906c15100b007a1d4f0e7fcsi4280997ejc.655.2022.11.18.16.08.38; Fri, 18 Nov 2022 16:09:05 -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 S237377AbiKSAER (ORCPT + 99 others); Fri, 18 Nov 2022 19:04:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237541AbiKSAC0 (ORCPT ); Fri, 18 Nov 2022 19:02:26 -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 60CDEE5B1E for ; Fri, 18 Nov 2022 15:30:13 -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 1owA9O-0004S1-2O; Fri, 18 Nov 2022 23:47:58 +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 1owA9L-0058k8-Au; Fri, 18 Nov 2022 23:47:56 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9L-0000Nw-KS; Fri, 18 Nov 2022 23:47:55 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , patches@opensource.cirrus.com, linux-kernel@vger.kernel.org Subject: [PATCH 479/606] mfd: wm8350-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:33 +0100 Message-Id: <20221118224540.619276-480-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?1749880978582783976?= X-GMAIL-MSGID: =?utf-8?q?1749880978582783976?= 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 Acked-by: Charles Keepax --- drivers/mfd/wm8350-i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/wm8350-i2c.c b/drivers/mfd/wm8350-i2c.c index 48fd46800c28..1fa1dfbc9e31 100644 --- a/drivers/mfd/wm8350-i2c.c +++ b/drivers/mfd/wm8350-i2c.c @@ -16,8 +16,7 @@ #include #include -static int wm8350_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int wm8350_i2c_probe(struct i2c_client *i2c) { struct wm8350 *wm8350; struct wm8350_platform_data *pdata = dev_get_platdata(&i2c->dev); @@ -53,7 +52,7 @@ static struct i2c_driver wm8350_i2c_driver = { .name = "wm8350", .suppress_bind_attrs = true, }, - .probe = wm8350_i2c_probe, + .probe_new = wm8350_i2c_probe, .id_table = wm8350_i2c_id, }; From patchwork Fri Nov 18 22:43:34 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: 22815 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp470602wrr; Fri, 18 Nov 2022 15:54:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf6NhVzWo6KWXIaxQbiJoM3kxiQtl2aT7Vrb3Gm2TY3znun8OU+F+eebf1U5qAYQCY3xV5z6 X-Received: by 2002:a17:906:854a:b0:7ad:b284:1357 with SMTP id h10-20020a170906854a00b007adb2841357mr8054712ejy.149.1668815644283; Fri, 18 Nov 2022 15:54:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815644; cv=none; d=google.com; s=arc-20160816; b=CFAZ8l+DjucyXQx7q4UAwbygpcImciZYgOljYn2hUCv1pqWQvq33IdPah0emP+jpA8 ivH5Dt4lZ7ClB2XBxPFoHfAEI3dT+S2yHpDNqr/ezr8qeMJ10tFZPbkm0JR7WuPMxVor X0ABVI0tDVMwfQ8IV2UuqU3le8NExVUFztNSIaZij3n+eagpVU4pM7JTWNU67GE9VbrR ILfOylI1OjbG0DlshoOUxRC+dNnqiD+o8zsD8aMGXfA/pJmsnwMV220BlmW8/l0AuWUO 6wQv25bqVV1J3aQYyVQ0xtEJvrsEL9jGmwM18WXIROckzqJAludhuQ+JGO32AziHWDzx s7Qg== 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=kivLRE2nJXKarOTWWCm56um+2aBlQO9iJhAfq/YeOg0=; b=dMOzD/xIs05D2CMxbcxE79c2gqxzeEfFoXLbiFe5fglFZWyr4dZY7Fm3tYLMcQnqJG rrWzziwREqFXwHMPhsBNghRiZUtNPJ8XMHvjAltqsevQh8dKyYq6Ybu/BGkPoBkdJr5U wOweeSxnV3CmHYlm9aDN0AmuDdlKdSMsayrFR0KnPy0rn+x5lg2hCwxCWanz0CERUO0z pk3WVlMPDLkUwzISFqCZpp9zUG6g8aAxPy6yyU0ID4FRE/tMhiIjp/zLNNuJwLJ9j5Vk 9lI+60kxAtB+ymGcAtaZnW4t+J2Yndz+KpvdMvktJyjdxfoNdKlKEpKggHXvpiZIE/V+ to+Q== 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 h10-20020a0564020e0a00b0045cd7614e59si4018278edh.451.2022.11.18.15.53.40; Fri, 18 Nov 2022 15:54:04 -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 S236728AbiKRXkg (ORCPT + 99 others); Fri, 18 Nov 2022 18:40:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236808AbiKRXh5 (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 8C56FA6A05 for ; Fri, 18 Nov 2022 15:22:45 -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 1owA9O-0004TO-Oi; Fri, 18 Nov 2022 23:47:58 +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 1owA9L-0058kM-Re; Fri, 18 Nov 2022 23:47:56 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9L-0000O1-Qg; Fri, 18 Nov 2022 23:47:55 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , patches@opensource.cirrus.com, linux-kernel@vger.kernel.org Subject: [PATCH 480/606] mfd: wm8400-core: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:34 +0100 Message-Id: <20221118224540.619276-481-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?1749880033275600579?= X-GMAIL-MSGID: =?utf-8?q?1749880033275600579?= 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 Acked-by: Charles Keepax --- drivers/mfd/wm8400-core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/wm8400-core.c b/drivers/mfd/wm8400-core.c index 0fe32a05421b..5e1599ac9abc 100644 --- a/drivers/mfd/wm8400-core.c +++ b/drivers/mfd/wm8400-core.c @@ -118,8 +118,7 @@ void wm8400_reset_codec_reg_cache(struct wm8400 *wm8400) EXPORT_SYMBOL_GPL(wm8400_reset_codec_reg_cache); #if IS_ENABLED(CONFIG_I2C) -static int wm8400_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int wm8400_i2c_probe(struct i2c_client *i2c) { struct wm8400 *wm8400; @@ -146,7 +145,7 @@ static struct i2c_driver wm8400_i2c_driver = { .driver = { .name = "WM8400", }, - .probe = wm8400_i2c_probe, + .probe_new = wm8400_i2c_probe, .id_table = wm8400_i2c_id, }; #endif From patchwork Fri Nov 18 22:43: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: 22788 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466583wrr; Fri, 18 Nov 2022 15:40:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf7PaVG3tqrkVhzlnX/a/rAJ4Uo+CZpWPvO+eVo83T8cRI4H7Z0zZPiYQFkcVKlLms1SV+6W X-Received: by 2002:a17:906:68c:b0:7ad:dcf7:c4f with SMTP id u12-20020a170906068c00b007addcf70c4fmr7810792ejb.631.1668814823671; Fri, 18 Nov 2022 15:40:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814823; cv=none; d=google.com; s=arc-20160816; b=A0vpGqvTQYOAycV0D/EssXez8lvC8J6czUe7yfcYJ4kjhsbqiMM356zmDZY7u4BJ8o LKCxTO+QfjAH8fJhgv22o3/77ErgxXDY+NpqZrovo+sy7CPdHiz1rW4kM00ICfq5Zvks +1TPpDja1orbtSOBnrw9narHA6aDlMhfamIKkBf0BXOXWz5+SNuZXNVxtrnUUhD6bVdv wWRsU0K8lW6RMU1vDv0JteHFh6V+hM0cReeuG73qOkp7AGcq1qrc7wUdpruRfo1A3SHA otaA//lMkN0q4BJBdFrezyIfhID3aPRAg2QsEs2BHwhDcn1aBlTfLy6BjmlKkJSZFqEU UiVA== 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=5xzZhx75M1XniCBn1WD2cRYpjZvOEDsnOCPi218IRy0=; b=pd9s5QsONNMe9/So4fbRzpw34rOYrO1Tl1wdkPUAep0ZMZhqXn+kDs6uHz/NVPsl04 Cr9gGss/1xMmzVq06VIQYvhU3xyiyAmhGSa3SJ+Z9GLzbqw5xB6oCdaDDPpzhpX00SSe tFfuacWCyQ25hsawtzgho3SkOV7U1l5uniflpR5x7N//KJkTW3howMchuIwTQxqQaFri RRMAvBEehZgFGl0EE6OyliwqpSZTP3s2WALgmu8V7aNB9VxxiVz5+U5yzPP6b+VUy9eb mEj9xMf4r4clIeL/CqJxbFGmsvyJbvq2arN1Scjma9TZlsPcTJ/ZiIBNQrOIpIRutqzl MRUQ== 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 m21-20020a170906235500b007912fb7ad6esi3363183eja.893.2022.11.18.15.39.57; Fri, 18 Nov 2022 15:40:23 -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 S236550AbiKRXiz (ORCPT + 99 others); Fri, 18 Nov 2022 18:38:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236551AbiKRXdR (ORCPT ); Fri, 18 Nov 2022 18:33:17 -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 593DB4F1BB for ; Fri, 18 Nov 2022 15:21:27 -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 1owA9O-0004T2-FL; Fri, 18 Nov 2022 23:47:58 +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 1owA9L-0058kH-NO; Fri, 18 Nov 2022 23:47:56 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9L-0000O5-W2; Fri, 18 Nov 2022 23:47:56 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , patches@opensource.cirrus.com, linux-kernel@vger.kernel.org Subject: [PATCH 481/606] mfd: wm8994-core: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:35 +0100 Message-Id: <20221118224540.619276-482-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?1749879172486867905?= X-GMAIL-MSGID: =?utf-8?q?1749879172486867905?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Acked-by: Charles Keepax --- drivers/mfd/wm8994-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/wm8994-core.c b/drivers/mfd/wm8994-core.c index 4c0e9378094f..a89221bffde5 100644 --- a/drivers/mfd/wm8994-core.c +++ b/drivers/mfd/wm8994-core.c @@ -621,9 +621,9 @@ static const struct of_device_id wm8994_of_match[] = { }; MODULE_DEVICE_TABLE(of, wm8994_of_match); -static int wm8994_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int wm8994_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); const struct of_device_id *of_id; struct wm8994 *wm8994; int ret; @@ -681,7 +681,7 @@ static struct i2c_driver wm8994_i2c_driver = { .pm = pm_ptr(&wm8994_pm_ops), .of_match_table = wm8994_of_match, }, - .probe = wm8994_i2c_probe, + .probe_new = wm8994_i2c_probe, .remove = wm8994_i2c_remove, .id_table = wm8994_i2c_id, }; From patchwork Fri Nov 18 22:43:36 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: 22899 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472544wrr; Fri, 18 Nov 2022 16:00:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Ab1IBDsSlPOe2IGQ85bJILxXLCimm1QwBGZQjROZ4y8XhWCaZtKCbxPzh5U9BQkk8uopW X-Received: by 2002:a17:902:7b96:b0:186:9890:97cd with SMTP id w22-20020a1709027b9600b00186989097cdmr1748814pll.104.1668816024359; Fri, 18 Nov 2022 16:00:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816024; cv=none; d=google.com; s=arc-20160816; b=jcTfl72mlhMpoZjtrbCm7RuHPVbaiWHevjVl6MLaGxsrGk4S3NDUb6V7u2M2o2BD2w 378t/nSTWm+Xs7qL2mJ7R8tgzK9nmimbO8pU+XyAVmyE8LCqwvFfbY+MhE28Bq3PFEK8 oQFe/VZImTWPfSFi8ynMdmMNWJh+5dyb+YmdUVx6w8EGhLF6paiEoyPGGcWOL/gap9aB 2sHFsedvYBasW/GJui0S6Dg2PZGDSdlN2IqQc1wBgT67xbqsKRXey1h3rBBoksJqPWP+ oHNplyqOQ2mp2re4aC2ykDT9r+sGbfc4VoVTAeiBfA6zkhB7t1qxpuhKBEG6jhGpf4Rv YziA== 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=4WuxQYqlG3KKFWOomy6EfGpefpkwnWlRnE7gaG3bWic=; b=n7nmavVTaqb8txnU3teWlUxJTcpVkYlCUO5xwvQatfHMbHH0pCgp0lPbh4H+URDVMh CKQ+g8u4c8zXozYbleNKKGKppU7k1RHJQiaOtwRrp4FOXdhlA/217ZSd4u3a5fSdXCif IJ2deBjJjsDyyZtxWoV4MPKDiEArqnbVTUvKSCYXGgfoTaOQy/MCICxokxrdwdaruUUz NYdU0fKREYDZ8pleU8WaWfEVPw09oC85fuEp7V6TKAvUcJ7dPwveQc0KSpOceFPwG1qC YHG1u9dkWbx0XSSEGKjh3gFEToXvt8Lwd0EkZ5FabUInd8OyHeH/kuVGhudsNRpZ852f qVwg== 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 r3-20020a63ce43000000b0046f9c0d336esi5084058pgi.706.2022.11.18.16.00.11; Fri, 18 Nov 2022 16:00:24 -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 S236949AbiKRXwn (ORCPT + 99 others); Fri, 18 Nov 2022 18:52:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236908AbiKRXvh (ORCPT ); Fri, 18 Nov 2022 18:51:37 -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 8EB6CBAE87 for ; Fri, 18 Nov 2022 15:27:02 -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 1owA9O-0004UR-W8; Fri, 18 Nov 2022 23:47:59 +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 1owA9M-0058ka-9k; Fri, 18 Nov 2022 23:47:57 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9M-0000O9-5L; Fri, 18 Nov 2022 23:47:56 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Arnd Bergmann , Greg Kroah-Hartman 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 482/606] misc: ad525x_dpot-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:36 +0100 Message-Id: <20221118224540.619276-483-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?1749880431425681238?= X-GMAIL-MSGID: =?utf-8?q?1749880431425681238?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Acked-by: Greg Kroah-Hartman --- drivers/misc/ad525x_dpot-i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/misc/ad525x_dpot-i2c.c b/drivers/misc/ad525x_dpot-i2c.c index 28ffb4377d98..3856d5c04c5f 100644 --- a/drivers/misc/ad525x_dpot-i2c.c +++ b/drivers/misc/ad525x_dpot-i2c.c @@ -50,9 +50,9 @@ static const struct ad_dpot_bus_ops bops = { .write_r8d16 = write_r8d16, }; -static int ad_dpot_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ad_dpot_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct ad_dpot_bus_data bdata = { .client = client, .bops = &bops, @@ -106,7 +106,7 @@ static struct i2c_driver ad_dpot_i2c_driver = { .driver = { .name = "ad_dpot", }, - .probe = ad_dpot_i2c_probe, + .probe_new = ad_dpot_i2c_probe, .remove = ad_dpot_i2c_remove, .id_table = ad_dpot_id, }; From patchwork Fri Nov 18 22:43:37 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: 22746 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465019wrr; Fri, 18 Nov 2022 15:36:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf72uOd4zS6hDHGAb7grlnTzDJ76UjQPqip9H8fl8lHoH+2ncTW42wfklNxOASWXEM5A0z+C X-Received: by 2002:aa7:d7d3:0:b0:469:906:2ece with SMTP id e19-20020aa7d7d3000000b0046909062ecemr4837742eds.342.1668814581565; Fri, 18 Nov 2022 15:36:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814581; cv=none; d=google.com; s=arc-20160816; b=vACvc1ShKXPGxgHS0jeiXrvL5wIpZAU3NqFGTIfZnC4C2P0zdZOFLqj3VOBbsRRGO8 lGSnqeo+bGIY/63TmmEnxs0oCkNbY02x3dvJIDMH85P9r1w94+I5eirBLGOjSDim1GkG m6KkbY7x/wCLn7+eAfUzmLwcEf2rMfrKx0A+PwbgI+QS2Jn+031H5nJ50TFCdKAthbKc 8ZBb73KFNEf7PyWDrGkW3QR5//TugWXLUaNPK4v+WdwJ5m7USlNMskho1fqYaZwBc4IZ dXrHuIIf7/N2g3Xzj+i8CpxgBWW+Ugbp1EyM4HWbdtfcGEI5C0LJZC83TVjhmByTgFPW 92pA== 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=dbascYgRkxLsyl/49X0aMAPscgDehCGtM2z22fgASVY=; b=OFx2rxrZKgL9P5KTdpogaAacSXHm3xyjGPsKhIxULChrGTPV6GPSRHFpkkGG1WO+Ak Ryoy8yslsBkiQthYE0TDwqZo/n8udaFrEW81Z6pabHdh5xH+Jn5j7ZcFmfehX42AFuFo IchWfET18iq2flcho7a5mZ4UD8mLH75fBVR2+7XowiFHWltLsp7r/de6XLcGtYnyVb6t Jsksfm90qBh8EIVZKT1l9CqgbgUnALh/VFjURWw3SCAAnmw5jENbnuVxM2zQF0bSWxKr Oyvtdb1VypCDdbaPXwvaotVLqyDNTY3FNachIMMNTGcppL8kqhcx5MzOC9Ys4WI0kLKR p0vw== 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 js13-20020a17090797cd00b0078e1e77f443si4755413ejc.418.2022.11.18.15.35.57; Fri, 18 Nov 2022 15:36:21 -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 S236143AbiKRXfL (ORCPT + 99 others); Fri, 18 Nov 2022 18:35:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236088AbiKRXbv (ORCPT ); Fri, 18 Nov 2022 18:31:51 -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 146B426544 for ; Fri, 18 Nov 2022 15:19:28 -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 1owA9O-0004Tj-Qq; Fri, 18 Nov 2022 23:47:58 +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 1owA9M-0058kP-0R; Fri, 18 Nov 2022 23:47:56 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9M-0000OC-AZ; Fri, 18 Nov 2022 23:47:56 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Arnd Bergmann , Greg Kroah-Hartman 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 483/606] misc: apds9802als: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:37 +0100 Message-Id: <20221118224540.619276-484-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?1749878918518397232?= X-GMAIL-MSGID: =?utf-8?q?1749878918518397232?= 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/misc/apds9802als.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/misc/apds9802als.c b/drivers/misc/apds9802als.c index a32431f4b370..0526c55d5cd5 100644 --- a/drivers/misc/apds9802als.c +++ b/drivers/misc/apds9802als.c @@ -212,8 +212,7 @@ static int als_set_default_config(struct i2c_client *client) return ret_val; } -static int apds9802als_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int apds9802als_probe(struct i2c_client *client) { int res; struct als_data *data; @@ -297,7 +296,7 @@ static struct i2c_driver apds9802als_driver = { .name = DRIVER_NAME, .pm = APDS9802ALS_PM_OPS, }, - .probe = apds9802als_probe, + .probe_new = apds9802als_probe, .remove = apds9802als_remove, .id_table = apds9802als_id, }; From patchwork Fri Nov 18 22:43:38 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: 22992 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477176wrr; Fri, 18 Nov 2022 16:10:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf4M6MaLb/KEyToISVfpAOgdUSszJz3ANQDphfopltAY6XaHr98ABnseeryLF0BnJFb1PJlL X-Received: by 2002:a63:4c58:0:b0:476:b165:c83f with SMTP id m24-20020a634c58000000b00476b165c83fmr8485378pgl.602.1668816654223; Fri, 18 Nov 2022 16:10:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816654; cv=none; d=google.com; s=arc-20160816; b=ZQvc65nJ1AwEIVXjaovrQ5Spt2wXcDZj/QC9b4bFIP27oZTrQvPITqQiQ/N+oYwoVE HEKnpXXWOv5UhBWDLjnX75QXuYERcfZA7dFdMjFLTY4OUDNqZKrgYTzIbnYkys84AzW5 U0rRV9ucuLO7RbLYeM0FdJjzpuGE6YqjOv0m6QDDHshrOdepXExpXcTOEhKLdAmDlFlt ETXNlvt0ynOlJD6KUqGPwGDU8BMbLoikMy8+RF00K9K7iJgdaTMbZO6DjSiiEXzElzTQ cWbOdy/PWdDsJf7je6RFOPUSqUb9XsLxG00hyFnBzDNtbhWt7X27FYGW+caFxFEErx2U 2nIw== 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=7tCIT7ziCT0bRHnOi1qoJfmTRDkFPLG7dEFLE4scWEY=; b=BiIxFa1jqGwnhyXEDAk+8xHIFasMCDVJoRcA5JLyQuXWKPrBuvsKv+/iwqrwOjRfVP jhUvshuj/TN1bkjBHdSHBo5o31Y81YBaV0U+EjBPsUv9szRXmNyctX1BOhB1pVHG8uIw 1ITRMFVe2BJvZXHChEuwUNo3zisKlITVt1rgzNWZ4okX/8h96ywyxol1WgV1GEs7s5/3 uF5zrKdRZ+HEKbJopKSZsES0iPRNk0JlLTlEMV7nSZpXMc6VA3ApIB0vDsqAZ9PQWjPd sQMgq0eZINeCCHCRCnyTP+r52MmOREf39uQqjunt/5dQEAg4Pv4YwbiGilW+23/yAJsq KdFw== 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 y10-20020a170902caca00b00182d9015d42si4269119pld.225.2022.11.18.16.10.40; Fri, 18 Nov 2022 16:10:54 -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 S231837AbiKSAKH (ORCPT + 99 others); Fri, 18 Nov 2022 19:10:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237255AbiKSAJk (ORCPT ); Fri, 18 Nov 2022 19:09:40 -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 0ADBCA13FB for ; Fri, 18 Nov 2022 15:32:59 -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 1owA9O-0004Tx-Qy; Fri, 18 Nov 2022 23:47:58 +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 1owA9M-0058kU-4O; Fri, 18 Nov 2022 23:47:57 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9M-0000OH-GF; Fri, 18 Nov 2022 23:47:56 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Arnd Bergmann , Greg Kroah-Hartman 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 484/606] misc: apds990x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:38 +0100 Message-Id: <20221118224540.619276-485-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?1749881091973275280?= X-GMAIL-MSGID: =?utf-8?q?1749881091973275280?= 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/misc/apds990x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/misc/apds990x.c b/drivers/misc/apds990x.c index e2100cc42ce8..0024503ea6db 100644 --- a/drivers/misc/apds990x.c +++ b/drivers/misc/apds990x.c @@ -1051,8 +1051,7 @@ static const struct attribute_group apds990x_attribute_group[] = { {.attrs = sysfs_attrs_ctrl }, }; -static int apds990x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int apds990x_probe(struct i2c_client *client) { struct apds990x_chip *chip; int err; @@ -1272,7 +1271,7 @@ static struct i2c_driver apds990x_driver = { .name = "apds990x", .pm = &apds990x_pm_ops, }, - .probe = apds990x_probe, + .probe_new = apds990x_probe, .remove = apds990x_remove, .id_table = apds990x_id, }; From patchwork Fri Nov 18 22:43:39 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: 22703 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462832wrr; Fri, 18 Nov 2022 15:31:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf5MzUGDSfXUIf3Jfx0dvgV0TJgdttoi3HCFydx2yll0GF2jXitwIEMRFyQ8C8HifAFwiHJg X-Received: by 2002:a05:6402:2404:b0:467:67e1:ca61 with SMTP id t4-20020a056402240400b0046767e1ca61mr8239568eda.27.1668814263178; Fri, 18 Nov 2022 15:31:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814263; cv=none; d=google.com; s=arc-20160816; b=xeBbIZiQMK4wCflF0urNRTXCJQNWRtzMOCAPdE7VenHSpj0yqyFFpaHccjH07JmRnU dEWKeT99iyyEmuhqub/Z6elnNMDSIZkhkExWUO1BXtDAOIsZm+Hfuz8WkRz65OCdBGi7 bHAgzs3Fl3W2PoeilFby1DPkY/6BnGkYflPsC4y4iMhL8LzNBujU8oZdHGtDXa+NEgu/ 6mJfgrkkik9Q/+CywYoEx6oHvYAKgPFhpBDuSPy4/TIaLVVRTWVbbGytde+G8AJEREsR Xup80HP1CQfnDbjJ/2y1Wfl+EgntbDVClQbeevp5bsJQbav2njx0TFHmDXdqNdOZSfqg DcQw== 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=T3NX3Q8t5A9eiAR1yH50QzHMC0dtpW0Uz771eefZGJM=; b=y96ZC+6/r6mXgYtAopMVazvJ+ZoQqDTj8o69ZlgZJIuGdaTBlzRNkMMSEHzCMrkt5U c7IJmBQKtv4VylNpA8iCvrmOJYqNnyebKZhfKwVu/Gwc/yPgL7ZH0cwvLR+inykI0EB6 1vatJWOokYuK6pPDASan9Qltf52/NM3jEQ862wqLJ9xrc9iImxQMcRdVoiMxn7Aw7bXQ Zei/Ssc3qa+fiS5nZ8CIIf9/P2dLmsXfqP5k5hkWqtUZZCA5i2mD6T2Zt72qDZcavU3Z Sfswvz38AYRzkt0QY+NHJ6sdkf9XxlbKANJtADItZXJEU5HEr78B0Tc558mKzsFp75gR ujYA== 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 t10-20020a056402524a00b004634dd8b6edsi4705457edd.296.2022.11.18.15.30.39; Fri, 18 Nov 2022 15:31:03 -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 S235936AbiKRXaH (ORCPT + 99 others); Fri, 18 Nov 2022 18:30:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235818AbiKRX25 (ORCPT ); Fri, 18 Nov 2022 18:28: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 64790BCE40 for ; Fri, 18 Nov 2022 15:17:03 -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 1owA9P-0004Vf-EZ; Fri, 18 Nov 2022 23:47:59 +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 1owA9M-0058kl-QE; Fri, 18 Nov 2022 23:47:57 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9M-0000OK-NP; Fri, 18 Nov 2022 23:47:56 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Arnd Bergmann , Greg Kroah-Hartman 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 485/606] misc: bh1770glc: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:39 +0100 Message-Id: <20221118224540.619276-486-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?1749878584933870132?= X-GMAIL-MSGID: =?utf-8?q?1749878584933870132?= 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/misc/bh1770glc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/misc/bh1770glc.c b/drivers/misc/bh1770glc.c index d0dfa674414c..bedbe0efb330 100644 --- a/drivers/misc/bh1770glc.c +++ b/drivers/misc/bh1770glc.c @@ -1162,8 +1162,7 @@ static const struct attribute_group bh1770_attribute_group = { .attrs = sysfs_attrs }; -static int bh1770_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bh1770_probe(struct i2c_client *client) { struct bh1770_chip *chip; int err; @@ -1379,7 +1378,7 @@ static struct i2c_driver bh1770_driver = { .name = "bh1770glc", .pm = &bh1770_pm_ops, }, - .probe = bh1770_probe, + .probe_new = bh1770_probe, .remove = bh1770_remove, .id_table = bh1770_id, }; From patchwork Fri Nov 18 22:43:40 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: 22638 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460071wrr; Fri, 18 Nov 2022 15:23:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf56XMVNAA6S1DR4F1yPgh+DySN6bz0MkR4n2oqqEn+U9Ci97J3LVB5/r4/wjxLOiByk28qb X-Received: by 2002:a62:2544:0:b0:565:b27d:1f61 with SMTP id l65-20020a622544000000b00565b27d1f61mr10010015pfl.85.1668813792745; Fri, 18 Nov 2022 15:23:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813792; cv=none; d=google.com; s=arc-20160816; b=rS8poB8ViWOlDbeqhAu8tugXhpgVzJSRtGC16jaw5BjXZ1kDpkTl2ijMk63kHeNnB/ GRTUOJs0i4s0VBMQkpy26vIDKqVceDQsqBySZ1p6qSKF+2rtd4XWBTvbuEC2dD6rWAeh s4VFQeu/vKPImPCccyCJelUYm4I7HjHu8vUgZQTdTk9nJsN5Hf6J+N1tojXcV62TpcLw zWzGjRl25y/Iz0ayvrihsHJwNQbb9rKqn7ZTyREWABVp/fUC4uZZtej49yaP/p7Kd3FZ be/spvAoJjL/+sYfDS5rFLTqQh4chzbQZ7F7WjKPcuVAono+/drnmwHumxLqcthvzsXf HPaQ== 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=nUMTEvYCf8VFRcYqxudwEPjype7ogGUniN+DkdR3NhU=; b=BEOiMh5TA+HTgx3vyiZM8WMnt/SWHTjH9cWA91Q6ZIYnmUOdEuxmvjG1Z482ty9kuz seH2jRj30RD3mCUjeWIR5jtuTX7AD3yYVrCKcOBI8wqjG8sgJMU5Z0yctKFfj7+/ry8m lU2g64/CiZMH2udaWaul/NfNKnH6eGjPPe92AnPd+VShTSPV/gsPwdEpESwsOCOm3tn3 sf+EYL9YstCo6yN+THS206cwh3YJLhI5UP4QHgNu8Q+pVlyaYir2Vnghh69O+CLxvW+e AH4v9qWNXhpdoehcH3AQF++RvYCr5QJ7pt5l55IZ9LQoVCKLzCd6jXTR3Jp8++5fiJAA cvPQ== 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 q15-20020a170902eb8f00b001786f5de8f2si4830912plg.95.2022.11.18.15.22.59; Fri, 18 Nov 2022 15:23: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 S235545AbiKRXWF (ORCPT + 99 others); Fri, 18 Nov 2022 18:22:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234597AbiKRXVG (ORCPT ); Fri, 18 Nov 2022 18:21:06 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE8A952141 for ; Fri, 18 Nov 2022 15:12:03 -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 1owA9P-0004VC-5B; Fri, 18 Nov 2022 23:47:59 +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 1owA9M-0058ke-Ko; Fri, 18 Nov 2022 23:47:57 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9M-0000OP-TF; Fri, 18 Nov 2022 23:47:56 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Arnd Bergmann , Greg Kroah-Hartman 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 486/606] misc: ds1682: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:40 +0100 Message-Id: <20221118224540.619276-487-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=ham 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?1749878091506101363?= X-GMAIL-MSGID: =?utf-8?q?1749878091506101363?= 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/misc/ds1682.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/misc/ds1682.c b/drivers/misc/ds1682.c index 0698ddc5f4d5..d517eed32971 100644 --- a/drivers/misc/ds1682.c +++ b/drivers/misc/ds1682.c @@ -200,8 +200,7 @@ static const struct bin_attribute ds1682_eeprom_attr = { /* * Called when a ds1682 device is matched with this driver */ -static int ds1682_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ds1682_probe(struct i2c_client *client) { int rc; @@ -251,7 +250,7 @@ static struct i2c_driver ds1682_driver = { .name = "ds1682", .of_match_table = ds1682_of_match, }, - .probe = ds1682_probe, + .probe_new = ds1682_probe, .remove = ds1682_remove, .id_table = ds1682_id, }; From patchwork Fri Nov 18 22:43:41 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: 23130 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488377wrr; Fri, 18 Nov 2022 16:45:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf5/gYxWHJp1+Nq2H4UZICyKtbJSAzme3K1VOw+eUfdsZd0y4aIcHezcarZfD3bWeDJh+y74 X-Received: by 2002:a17:906:682:b0:78d:a632:59d2 with SMTP id u2-20020a170906068200b0078da63259d2mr7980225ejb.459.1668818747524; Fri, 18 Nov 2022 16:45:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818747; cv=none; d=google.com; s=arc-20160816; b=p4nhxx3FIOiXYvEnyeKx0n+0r8VMxm7x/Blw10eL1H1OigwBqTBjN4Yfzd+eIESWWW sPKSRIdWCiohhUs4xPCwOsMoT7X9D9hcb41mB2t5TEz7L6ult2VSJ3eLEU1LFDZpljgb +u7KtlijhXKrVpVC9w4BwbMqwzn+PyX87Rm2TFJAAyBYaTsA07sLknA4epN6AOThZEp0 vvvyYJFAChoVbZ2o/tLIfh35q4tQedkobqs0y2iX5dDg1RJ6+3HU3i6HO6huvU2OcQjf h6yZc8NvbyI4a5il9OHUp67VYF/3YrEECqo4+Rovm3lrTYHWHsDi4HttvMWS/gWnW6fN uuQg== 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=bap04yR+CAxmAdSDA1dxi4RFrEb2Jh+TM1bAuwvss9o=; b=qHg1P81j1Cz1kH3XehsfSm4jDo1eTW/cU9myv7TburZTUOvWfzoAPsnez5xyI4ixBD HyvWb+xPgf80CXnfJ5jkCPnfX/1FWCG6scWVtyci39uL6KyAxC3w6fvGs8SecgdEx8tW kGszZVT7V6xPajhLa0RxC9ohwY7pemxnK5CRS8ttnY1yNBYBoRCJGEbm/hZZFsABQ/FE Pn3juCxOjDtwMqLWHqce+Qs8we8J2u1yt1Jq2bikRhC354DIXdvEYNZC8OvwIMQU+XDZ g5MRp49ZP8HmBBLMxbvmgZybyzwFr1+HEms2Hqm4fxnsoIJXR+9YNbdUXy26WTrvtSnS jxeg== 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 xh13-20020a170906da8d00b0078e2828052asi3722063ejb.638.2022.11.18.16.45.14; Fri, 18 Nov 2022 16:45:47 -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 S236318AbiKSAnL (ORCPT + 99 others); Fri, 18 Nov 2022 19:43:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236635AbiKSAkT (ORCPT ); Fri, 18 Nov 2022 19:40:19 -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 CC5EDC7682 for ; Fri, 18 Nov 2022 15:44: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 1owA9Q-0004XC-17; Fri, 18 Nov 2022 23:48:00 +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 1owA9N-0058ku-B9; Fri, 18 Nov 2022 23:47:58 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9N-0000OT-2D; Fri, 18 Nov 2022 23:47:57 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jean Delvare , Arnd Bergmann , Greg Kroah-Hartman 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 487/606] misc: eeprom/eeprom: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:41 +0100 Message-Id: <20221118224540.619276-488-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?1749883286867214751?= X-GMAIL-MSGID: =?utf-8?q?1749883286867214751?= 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 Reviewed-by: Jean Delvare --- drivers/misc/eeprom/eeprom.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/misc/eeprom/eeprom.c b/drivers/misc/eeprom/eeprom.c index 8a841a75d893..32611100d5cd 100644 --- a/drivers/misc/eeprom/eeprom.c +++ b/drivers/misc/eeprom/eeprom.c @@ -141,8 +141,7 @@ static int eeprom_detect(struct i2c_client *client, struct i2c_board_info *info) return 0; } -static int eeprom_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int eeprom_probe(struct i2c_client *client) { struct i2c_adapter *adapter = client->adapter; struct eeprom_data *data; @@ -197,7 +196,7 @@ static struct i2c_driver eeprom_driver = { .driver = { .name = "eeprom", }, - .probe = eeprom_probe, + .probe_new = eeprom_probe, .remove = eeprom_remove, .id_table = eeprom_id, From patchwork Fri Nov 18 22:43:42 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: 22939 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474707wrr; Fri, 18 Nov 2022 16:04:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf5JK4JHGYflOae1egs0j5n1nbaQVv+ksuCprECqWw26UjtOrXnL9FefBoh/STm2W20xzpLm X-Received: by 2002:a17:906:1641:b0:7ae:7d78:9fa1 with SMTP id n1-20020a170906164100b007ae7d789fa1mr7713314ejd.98.1668816287910; Fri, 18 Nov 2022 16:04:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816287; cv=none; d=google.com; s=arc-20160816; b=Q/LGkNzKvSjwdk1OTo82bMcjuEBhNsWRGhDPYwQ5u3P4QpSV1MJ0IeiX0qQrCqJM8J 4uCB+8YsawlG/2Y3zMbKKqaRfI2ZzkbOR7Mfcbcv+FeVzBbdOzkeDAtTTeDEK23xSwqd iaMB7mExiWq0+kFKQuFnPj2IL/FBjRG+q0rSGOcBTN5mURwvNohyPGWWsL8hZW5JyXD6 kWXhtplsaEbL27NKK+W0C4YWcQ2F4tAMMSAy7ihiedN+WNsGvG3HtdgzG/jGEaASlejl CgpS3MoEtCv3SOi9TvBrZylbxfbsEW6qZG5QiSboVC/6PHYfDDadAXZU7jK91Vb6eTq4 2vBQ== 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=NsaJmqRkLZShMn2kSrED0hJRsOp1HgydVz6VJlWP4SU=; b=KIRzPCMnQlvnbDYLKC0Xmvgfi9ufVqWvHSmb33dS70/HhrWzRQ5/GrDjRZz5S/9KFc H9nsnYc8Jy1VivaD+I5wGGL+nNyCWDPahXpI00FDOXds3aRtL+K7xskF1v37iezFzE5h liCqwyK8tejRSVLMedtQ3ACoP5lR3vvn1mdrb5V2Cm05QF+D2t9AesuWYQa0owUvuI3+ TImJH6DBJkPAihQsOJC1NdhpZeMtP0q1aDat4W52T0HCufDk3gyhmkDWOmJOlef2WsZX 7Tih66ZJ9tkmMZ4A0+FpqQ+WwdUBpd4Gc2WQLE9QWjW5tJDyoWFfgibbdHukJV+2+lNX 4nFw== 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 u4-20020aa7d544000000b00461b5ba990dsi3868047edr.78.2022.11.18.16.04.22; Fri, 18 Nov 2022 16:04:47 -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 S236868AbiKRXzo (ORCPT + 99 others); Fri, 18 Nov 2022 18:55:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237045AbiKRXyO (ORCPT ); Fri, 18 Nov 2022 18:54:14 -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 9A680D2DEA for ; Fri, 18 Nov 2022 15:27:51 -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 1owA9Q-0004YZ-I4; Fri, 18 Nov 2022 23:48:00 +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 1owA9N-0058l4-RV; Fri, 18 Nov 2022 23:47:58 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9N-0000OX-C3; Fri, 18 Nov 2022 23:47:57 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Arnd Bergmann , Greg Kroah-Hartman , Wolfram Sang , Maximilian Luz , Jean Delvare , Justin Stitt , Dan Carpenter 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 488/606] misc: eeprom/idt_89hpesx: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:42 +0100 Message-Id: <20221118224540.619276-489-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?1749880707916658737?= X-GMAIL-MSGID: =?utf-8?q?1749880707916658737?= 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/misc/eeprom/idt_89hpesx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/eeprom/idt_89hpesx.c b/drivers/misc/eeprom/idt_89hpesx.c index bb3ed352b95f..4e07ee9cb500 100644 --- a/drivers/misc/eeprom/idt_89hpesx.c +++ b/drivers/misc/eeprom/idt_89hpesx.c @@ -1366,7 +1366,7 @@ static void idt_remove_dbgfs_files(struct idt_89hpesx_dev *pdev) /* * idt_probe() - IDT 89HPESx driver probe() callback method */ -static int idt_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int idt_probe(struct i2c_client *client) { struct idt_89hpesx_dev *pdev; int ret; @@ -1556,7 +1556,7 @@ static struct i2c_driver idt_driver = { .name = IDT_NAME, .of_match_table = idt_of_match, }, - .probe = idt_probe, + .probe_new = idt_probe, .remove = idt_remove, .id_table = idt_ids, }; From patchwork Fri Nov 18 22:43: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: 23026 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp479102wrr; Fri, 18 Nov 2022 16:16:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf4mgV7IIUvBukmFfyTUJTzN4EVjmlQzxnUgGWulDdFN5LK5amuUy5x3eUiPb0Ll5Jvrrrb5 X-Received: by 2002:a17:906:274a:b0:7ad:aedb:2e6d with SMTP id a10-20020a170906274a00b007adaedb2e6dmr7792213ejd.536.1668816969108; Fri, 18 Nov 2022 16:16:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816969; cv=none; d=google.com; s=arc-20160816; b=zxqZbOIdp7h1rpLtT5lXk22D+i6ylP6RXwwm9X+40LW5JLyIT1AdGkkcALjTEG+Sr/ EJlKOjF/KEnpQf5301hs9uORbT5FNyVz+TRumiGA0TKhm64j4cYRNCbZbCOzj/UVcEdn Q+HlVjtyCzki5wAlLzIsBxWzz1GozHi9ojw6+6Rua873D5xL8X4dSE/pOBb1YJkErOdB skHNhkpJA8HKbuxf5tDbekZy0yK4WhfKvsHHdhMo4gzw3y9CjFLjeM/SMBRGDKRK/cra FrajBUodbgmMIamCQuc3caC7v5MlJO/z1PXg89Q0tlS2YKHZL9YSgK1FbZvG5sIZKkyN cEww== 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=u08kD9ml+g1WYxscJx7FsW4yRo04IpJOP7Bb99TjQvc=; b=vg07MZ1cC/Ss03i6mXw7IsxrImB1fiHsavlJ6etQ/RgdwCsQMAPBc4Uwe/dcN1lLGu chcof2CHPPEjpB9dt7j1aKyNVN70DEamlKRJTKBy/KtTxqK+jE7YalmoeYa8/1Wh8Wlw 6q/bd6Cz5Ubv6+Xml+0XecRrUVogedJCUEJ55uWHn0c/muSHJP96vI7JipOFUV/+UGmi 2XsAXH0SSZ8JN5eiwp7SHcJIoTRMfCOZX2QnHwP/u6FxY2B/g3/rDUX6rOn3hzl7sN5n ZlKQAWmp7CsA1Q8Ch9NF+A4x7jfHPnJ0XSiVnulHlyr54dqiDu8NXcgYVFUaOUIMiB1N CXHg== 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 v12-20020a056402348c00b0045c2e7e5532si4637603edc.585.2022.11.18.16.15.44; Fri, 18 Nov 2022 16:16:09 -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 S235349AbiKSAOk (ORCPT + 99 others); Fri, 18 Nov 2022 19:14:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237843AbiKSAOH (ORCPT ); Fri, 18 Nov 2022 19:14:07 -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 668BCAFE76 for ; Fri, 18 Nov 2022 15:34:47 -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 1owA9Q-0004YH-Cv; Fri, 18 Nov 2022 23:48:00 +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 1owA9N-0058l0-P4; Fri, 18 Nov 2022 23:47:58 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9N-0000Ob-I0; Fri, 18 Nov 2022 23:47:57 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Arnd Bergmann , Greg Kroah-Hartman , Javier Martinez Canillas , =?utf-8?q?Krzysztof_Ha=C5=82?= =?utf-8?q?asa?= , Luca Ceresoli 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 489/606] misc: eeprom/max6875: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:43 +0100 Message-Id: <20221118224540.619276-490-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?1749881422284874793?= X-GMAIL-MSGID: =?utf-8?q?1749881422284874793?= 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/misc/eeprom/max6875.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/misc/eeprom/max6875.c b/drivers/misc/eeprom/max6875.c index 6bd4f4339af4..79cf8afcef2e 100644 --- a/drivers/misc/eeprom/max6875.c +++ b/drivers/misc/eeprom/max6875.c @@ -130,8 +130,7 @@ static const struct bin_attribute user_eeprom_attr = { .read = max6875_read, }; -static int max6875_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max6875_probe(struct i2c_client *client) { struct i2c_adapter *adapter = client->adapter; struct max6875_data *data; @@ -193,7 +192,7 @@ static struct i2c_driver max6875_driver = { .driver = { .name = "max6875", }, - .probe = max6875_probe, + .probe_new = max6875_probe, .remove = max6875_remove, .id_table = max6875_id, }; From patchwork Fri Nov 18 22:43:44 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: 22944 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474796wrr; Fri, 18 Nov 2022 16:05:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf5j2DAbXXwQ81c6xAS0zLOCu4uJRbUyISibxmEMpiH5K9r75ZFIheMFJ8R3thmys6X5uWKW X-Received: by 2002:a17:906:5db2:b0:7ae:d58b:30f8 with SMTP id n18-20020a1709065db200b007aed58b30f8mr7574114ejv.564.1668816301107; Fri, 18 Nov 2022 16:05:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816301; cv=none; d=google.com; s=arc-20160816; b=N2Q+L/K9m4WDxctb5l3fsmeJxsTuj5rDEdjSBOY1lytflpF8ncC+FHNjcvCt0JxPhM FRMwr3fbDsv1sVMfu6t781FY4xJLwFkD2BnKC4ehJMVbGvuvqBs8XeIrJLVhToL9Yhtu P3mf6PlF4fTBI1NAoGdofwE/AznMPR026bUAR359bj1Br/PX+NWP+FPwrJeFYWXguNih 2x+MjNONEKQ2so9uOk8X5yNny8WAEHmr1yn4T9QSP1IKL758GRXE62Z68MYFhs5UfIjA pr2/6Ory8BT9V/mcDT1ASitskkmTLCONbtFPuKKCERwk7Pg1lBbc7ivGuGwPmN/UUbKy S0NQ== 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=C2S1bOarjA5xK5kAWMeaTanBoUbL7qtgEvwYPsenTxs=; b=iBNosV5JWQF4AweTuXTDs7Iib6ptbUjdVpA0Lil6yOQAaIS1ljwrEptObUoDQfZREQ TeXcdfM2e6f2cS6enUOwLPZVosxHLDLlGkzuGoMebsNK68s1UmSEQMDr8f38+pDGsAPM ABHTXkmmkigzk2zryDGymd2YQj0Nzfb226kyW1T+MushiDdHb/c0RSXXdn1kJRkNf7Oi MRB3weXo//KDj7KB1WHQf/n+Nnp4BVlOwA34QqlKtlTPLqe/tYieLeaNV7PwaOZba1Bn 8seOPj/lWTrTs1Ljh7gqDyPvztn79/8iBB/h7328FdWPvBbk+XZJA/nRVeIUtdM48HZD Mfvg== 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 v22-20020a056402349600b00467570d605esi4462665edc.608.2022.11.18.16.04.34; Fri, 18 Nov 2022 16:05:01 -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 S237193AbiKSAAh (ORCPT + 99 others); Fri, 18 Nov 2022 19:00:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237416AbiKRX5n (ORCPT ); Fri, 18 Nov 2022 18:57:43 -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 4B85FCDFEC for ; Fri, 18 Nov 2022 15:29:11 -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 1owA9Q-0004ZA-Lz; Fri, 18 Nov 2022 23:48:00 +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 1owA9N-0058lE-Vx; Fri, 18 Nov 2022 23:47:58 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9N-0000Of-NT; Fri, 18 Nov 2022 23:47:57 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Arnd Bergmann , Greg Kroah-Hartman 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 490/606] misc: hmc6352: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:44 +0100 Message-Id: <20221118224540.619276-491-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?1749880721948046865?= X-GMAIL-MSGID: =?utf-8?q?1749880721948046865?= 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/misc/hmc6352.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/misc/hmc6352.c b/drivers/misc/hmc6352.c index 42b9adef28a3..8967940ecd1e 100644 --- a/drivers/misc/hmc6352.c +++ b/drivers/misc/hmc6352.c @@ -101,8 +101,7 @@ static const struct attribute_group m_compass_gr = { .attrs = mid_att_compass }; -static int hmc6352_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int hmc6352_probe(struct i2c_client *client) { int res; @@ -132,7 +131,7 @@ static struct i2c_driver hmc6352_driver = { .driver = { .name = "hmc6352", }, - .probe = hmc6352_probe, + .probe_new = hmc6352_probe, .remove = hmc6352_remove, .id_table = hmc6352_id, }; From patchwork Fri Nov 18 22:43:45 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: 22892 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472431wrr; Fri, 18 Nov 2022 16:00:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf64lgUMeO8Bqo5Mukk/3FjUeLfNDR3T8XtCJ5VKCIiiZKR/AzdQ1JyG7lgjzJPjLHPZu4oz X-Received: by 2002:a17:906:348b:b0:78d:9e04:d8c2 with SMTP id g11-20020a170906348b00b0078d9e04d8c2mr7624265ejb.614.1668816013168; Fri, 18 Nov 2022 16:00:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816013; cv=none; d=google.com; s=arc-20160816; b=FIwpBzu8HOf4LGOQeqYjvQT2H7RuAjonGVoZy8U8MqOfO9Qu6UPQBrTMbGlOv0uP3r 9jr+mpEqMoDatPk0/fzUyo3XshgyPN1DXYKtxtPtb68e1VXaKoSXnkfWPJcS+aHiVwlJ DtpVAQ1H6lB8GddIFims+zvJ+8hlQguyN7nS0FnNtKjMoharQRqVdNUOAIaYDtorBVwJ DmPN40DMhY1TohdoJsuuNYOssmSqg8FbvqH1FtBcPJpmQIzRIw6f2IfF/hlAWmx8T+kf p4XXClFCo3koLVdfYtMHZRxs06Lk2KF3hEKR17qlWQsRgEHVDjO6Xrf6Iv4d/5ZbuRd4 88/A== 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=5graJfCjqAL1svonc816EfosuLSG8pQN8bb3QYbRKLA=; b=Rciyvxgh5ulk2bBy5DmZcXrbxc2JmAMSa6VEvIFL77zm8ZsY902ki6HU3kznV/jooK rs9zaqRF70Cdsgfv1UCt9SSkQSNcXwuSkYGYQeCCBfjc9eG+65jgyctBmY3Nvqgmn2ur 9aKaTrnBRnPn3MJ99BjDqFTMzntxQkY7Y0oaF3XCFhx0SFl7x0mI89VN67KjujVsqOpO f6nrzVKA8qSP7hA17ln1OAaBmHzNQ+n32EIO7A2Rx1atmtcm9zQ9RdDE8yZfNMXTP3Ah pZqao2sD4PxrxPKrJjoe2nmwy4P2qYXDd13VJVqwf5Se5HA95h7Hg8m/mzYWoSL+F8Bl SbEg== 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 ck9-20020a170906c44900b0078dcc87b1c4si3446217ejb.923.2022.11.18.15.59.43; Fri, 18 Nov 2022 16:00:13 -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 S235127AbiKRXsN (ORCPT + 99 others); Fri, 18 Nov 2022 18:48:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236851AbiKRXqz (ORCPT ); Fri, 18 Nov 2022 18:46: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 5E7CDDEACB for ; Fri, 18 Nov 2022 15:25:32 -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 1owA9Q-0004Yl-Hf; Fri, 18 Nov 2022 23:48:00 +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 1owA9N-0058l6-Sh; Fri, 18 Nov 2022 23:47:58 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9N-0000Oj-T0; Fri, 18 Nov 2022 23:47:57 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Arnd Bergmann , Greg Kroah-Hartman 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 491/606] misc: ics932s401: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:45 +0100 Message-Id: <20221118224540.619276-492-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?1749880419661558819?= X-GMAIL-MSGID: =?utf-8?q?1749880419661558819?= 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/misc/ics932s401.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/misc/ics932s401.c b/drivers/misc/ics932s401.c index 1cb71df966a4..12108a7b9b40 100644 --- a/drivers/misc/ics932s401.c +++ b/drivers/misc/ics932s401.c @@ -89,8 +89,7 @@ struct ics932s401_data { u8 regs[NUM_REGS]; }; -static int ics932s401_probe(struct i2c_client *client, - const struct i2c_device_id *id); +static int ics932s401_probe(struct i2c_client *client); static int ics932s401_detect(struct i2c_client *client, struct i2c_board_info *info); static void ics932s401_remove(struct i2c_client *client); @@ -106,7 +105,7 @@ static struct i2c_driver ics932s401_driver = { .driver = { .name = "ics932s401", }, - .probe = ics932s401_probe, + .probe_new = ics932s401_probe, .remove = ics932s401_remove, .id_table = ics932s401_id, .detect = ics932s401_detect, @@ -429,8 +428,7 @@ static int ics932s401_detect(struct i2c_client *client, return 0; } -static int ics932s401_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ics932s401_probe(struct i2c_client *client) { struct ics932s401_data *data; int err; From patchwork Fri Nov 18 22:43:46 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: 22989 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477088wrr; Fri, 18 Nov 2022 16:10:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf75OVZr6RM8mjOVHMCgLLa2JO6gfPuY/cFdbJsWDcDnwk9ljqC2Xu+mIn4wcro/q4/oVqPp X-Received: by 2002:a05:6a00:2396:b0:56c:318a:f808 with SMTP id f22-20020a056a00239600b0056c318af808mr10293383pfc.11.1668816638038; Fri, 18 Nov 2022 16:10:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816638; cv=none; d=google.com; s=arc-20160816; b=C/L/OUHW5clsjj/oMRtD7+dblCTOu4MMCD5yap0lARATiSY9VQRKCVHf6jJ6SXpMrv 79MMWm3DcTKlj/aMQf05edYZLkUV/EeqV4TjYJ4bmQznisk1wbnZPsxN/gsOm3R4JOgr kPrP+SaeJL13Qe9WNzbqAgjUIVfducMvTc/RuhCQkzuPd+o34YezCxGlC6hQ/VRDigko R6S25a857MDNwWV/teN2ohiEHRC6bkBgKBCcdsTF+EwCTjN27ja+msLqAiB+kC7XOPSX aKnceBcb0T/d+NygRaWESQYWIA7ekp++CfzzzJqomURO4iQ1FVKgYMxjAc67VctKMdtB leSg== 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=9sjpvSCytkozL0GtxNVjsIEAsCulaaQtwETAoxeKRX0=; b=sGStJ5Fdgvl0smFfQ2KdGHrkBspJqSXScYgXeI4TgZY54m50qmhzasqG5EpuPXqpQh GX1k0cB0SbvhgCu+SqKpvUPs8jZ1Ejc5QVRBfJQuZEC4O7/HGFwKbty0K9IWaOyF+065 eCGrrcwQ30PoyNzNqhJ1z9vRw1SJAiMjIuHyz6WZjj0wNnwl2Es46CfRHxdP9FxDTsBK CR7+mbzETMDGptW9SUzAyWl8M8Lc3ix85IL9LxQqDJ5XwXgLOGF3Ywi4CWjfULCZYjZd 08ezWlmqz6GcdB18cHi7QYRpsh7fDiDe3cVTEaEEbGh0qRRTUYedVDs2q155xvS9EI9n Bo/g== 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 v16-20020a056a00149000b0056ee105315fsi5656158pfu.178.2022.11.18.16.10.21; Fri, 18 Nov 2022 16:10:38 -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 S234476AbiKSAJ7 (ORCPT + 99 others); Fri, 18 Nov 2022 19:09:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237503AbiKSAJf (ORCPT ); Fri, 18 Nov 2022 19:09:35 -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 0DBF8636C for ; Fri, 18 Nov 2022 15:32:47 -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 1owA9Q-0004Z5-M0; Fri, 18 Nov 2022 23:48:00 +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 1owA9N-0058lB-VT; Fri, 18 Nov 2022 23:47:58 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9O-0000Om-2R; Fri, 18 Nov 2022 23:47:58 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Arnd Bergmann , Greg Kroah-Hartman 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 492/606] misc: isl29003: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:46 +0100 Message-Id: <20221118224540.619276-493-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?1749881075433166818?= X-GMAIL-MSGID: =?utf-8?q?1749881075433166818?= 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/misc/isl29003.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/misc/isl29003.c b/drivers/misc/isl29003.c index 8ab61be79c76..aeda2fa89e61 100644 --- a/drivers/misc/isl29003.c +++ b/drivers/misc/isl29003.c @@ -374,8 +374,7 @@ static int isl29003_init_client(struct i2c_client *client) * I2C layer */ -static int isl29003_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int isl29003_probe(struct i2c_client *client) { struct i2c_adapter *adapter = client->adapter; struct isl29003_data *data; @@ -460,7 +459,7 @@ static struct i2c_driver isl29003_driver = { .name = ISL29003_DRV_NAME, .pm = ISL29003_PM_OPS, }, - .probe = isl29003_probe, + .probe_new = isl29003_probe, .remove = isl29003_remove, .id_table = isl29003_id, }; From patchwork Fri Nov 18 22:43:47 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: 23122 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488236wrr; Fri, 18 Nov 2022 16:45:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf4A/GW0KMxfqCODDP/e6BIy/yReVfAabDQVoMSK0liU3RXAE+8A+KXpTi8o15Zg+4z6pdvi X-Received: by 2002:a17:906:5409:b0:7b2:7b45:848f with SMTP id q9-20020a170906540900b007b27b45848fmr7998740ejo.129.1668818616305; Fri, 18 Nov 2022 16:43:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818616; cv=none; d=google.com; s=arc-20160816; b=pGqplSO2cmF18JP6Z/JIGrnAXoFrePUEicuY9OPJNLTT8aJa0JC4H61jTtSuCtwUwC lKSNkv51uL3liOdSOaZiy7tuv6Awf2i/O4HVpKvMjVcxutuYu6+GDp1pUEopR9maXUj4 jV8Hvru0sydL9W+V/rQWWjxxuXV1prf08wkiCNzuzJz+rw/7KCjFE1xT2VW49KevcdqT dKfbE0qCQMlhMRV7h1L9kAjaJxKjDn24dWvrsNTn7IdUs7VkWrgLCtzv7JvkU5DwtaHD LZF81xPAcqwo9TeDqFesH+hHxA7MwJSX+Eda8X4tYy5KsppFpxMqNflv79E6dRekBJdc vMYg== 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=EnPS7HWPknb8szJQ+jZs9T2S0paWz9iKv9QtLzorbOI=; b=F3+QRd6cZfCfpXSfl1iaS46dvEgNjt6omX9L1LBXESntznauhFwYc7qR2yP+F/aZ3h bHHfSWUeVYrhA/CrtkFKp+wETHHnz+52RUa5ZV4XX+D7MSegRW0mP1g1k60Deczbmfbf Opao8vW3oroiFxRPfKj8Moezl4N+panyvh5m4Ti2mbE618apXcxbqwsrrka5c3jSVk8W n1+Wj1k8pYyf1Br1PYyD8RacPf9wkX85ZtJonxYQ8Qrfd0m1/sB1SjE3eMQDPl5Aa28N 3qvSBgNveOydwqYYVLyoa/KTkPskUjpznmg8sm/HnZEWshcvaWKJwvcSUQfxU+vCwqOW O6Lg== 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 r11-20020a05640251cb00b00458ab55ccc9si5000774edd.168.2022.11.18.16.43.04; Fri, 18 Nov 2022 16:43:36 -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 S234494AbiKSAZi (ORCPT + 99 others); Fri, 18 Nov 2022 19:25:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237927AbiKSAZP (ORCPT ); Fri, 18 Nov 2022 19:25:15 -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 B071927FEB for ; Fri, 18 Nov 2022 15:38:33 -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 1owA9R-0004c2-RM; Fri, 18 Nov 2022 23:48:01 +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 1owA9P-0058le-3u; Fri, 18 Nov 2022 23:48:00 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9O-0000Op-80; Fri, 18 Nov 2022 23:47:58 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Arnd Bergmann , Greg Kroah-Hartman 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 493/606] misc: isl29020: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:47 +0100 Message-Id: <20221118224540.619276-494-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=ham 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?1749883148975470323?= X-GMAIL-MSGID: =?utf-8?q?1749883148975470323?= 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/misc/isl29020.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/misc/isl29020.c b/drivers/misc/isl29020.c index c6f2a94f501a..3be02093368c 100644 --- a/drivers/misc/isl29020.c +++ b/drivers/misc/isl29020.c @@ -151,8 +151,7 @@ static int als_set_default_config(struct i2c_client *client) return 0; } -static int isl29020_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int isl29020_probe(struct i2c_client *client) { int res; @@ -215,7 +214,7 @@ static struct i2c_driver isl29020_driver = { .name = "isl29020", .pm = ISL29020_PM_OPS, }, - .probe = isl29020_probe, + .probe_new = isl29020_probe, .remove = isl29020_remove, .id_table = isl29020_id, }; From patchwork Fri Nov 18 22:43:48 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: 22719 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464008wrr; Fri, 18 Nov 2022 15:33:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf5COtMMWKZ/Zzj1j6izUxmKhP/vFlox0M0Ko5ZKVFvwpTCfIESsp9Ygi3pul6dDuL6WN/cC X-Received: by 2002:a17:906:583:b0:78d:9e18:b8f7 with SMTP id 3-20020a170906058300b0078d9e18b8f7mr7494037ejn.657.1668814429276; Fri, 18 Nov 2022 15:33:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814429; cv=none; d=google.com; s=arc-20160816; b=J27S/2z0jSZc1UuG2pnjuyjkYAfOgIJDp62HQ9EspZWaJfk3jfq+Ce0OIW3BSgFaAN JnDO7C3aJZkQYuqmto2x1mfnOE4dFRLEO4qjAoIh2wM3E17wid/bSKTqQb2wR7v1OoXn 5Ks5FBFnDwhsGypUvfzhNrKCHuHOt69k1NQikFEv3JQ6LEMtLPUrXziIeSJ3/prC4t5y Cr3T9/gA8LJWY7JZJtgaCPku5KAbL6Y8QL6rm3A77b40CXaqXXewO2olPFQ0BT2me/8L eLjw+iUbYjH7L8xgyiCaNhb9FMVJMEDV0GIl9Z5DT+Sbx7aiQyqpV8970pmjLaISqVHy w/Yg== 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=NItZp9f/TPI3xPr4zPrjr0EzLN+XUMcieTtRRJOXFwI=; b=TlS+rJtKGup6RzStpboete+AHqezWAnvTN+HXbKCzjhI3ZPDSGcoW1wbSYlDpoErY4 sOOhPaTOyonEamtQVnfo9gcbtHfKXTIXfdv1ugDWUXJdVWPloItffd/XIYA4tWMKRhXw m8C0fZsTuMArZ+Sy559hNQpZ4AATbP+Lc1Lp1YSDadfiS1+5/dSNMnQq5a6ilR5frzK9 DZroAUQau59WOF8t/ciKLWO8oaL/WR8j3NdmO9CIpNOETuADnkckCjlHKGMAdW8RKjyL +cG4YWe20GNhQjCcO/49CibRCR6/5k+0UTohDYTH43QjU9+zGlpNkBJoeYlRxFE8+rXC 2HFA== 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 i3-20020a05640242c300b004573107a5basi4872034edc.352.2022.11.18.15.33.24; Fri, 18 Nov 2022 15:33:49 -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 S236035AbiKRXbN (ORCPT + 99 others); Fri, 18 Nov 2022 18:31:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235810AbiKRX3m (ORCPT ); Fri, 18 Nov 2022 18:29:42 -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 E6FAB6DFF4 for ; Fri, 18 Nov 2022 15:17:53 -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 1owA9S-0004al-FZ; Fri, 18 Nov 2022 23:48:02 +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 1owA9O-0058lO-JH; Fri, 18 Nov 2022 23:47:59 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9O-0000Ot-Ge; Fri, 18 Nov 2022 23:47:58 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Eric Piel , Arnd Bergmann , Greg Kroah-Hartman 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 494/606] misc: lis3lv02d/lis3lv02d_i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:48 +0100 Message-Id: <20221118224540.619276-495-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?1749878759081451522?= X-GMAIL-MSGID: =?utf-8?q?1749878759081451522?= 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/misc/lis3lv02d/lis3lv02d_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/misc/lis3lv02d/lis3lv02d_i2c.c b/drivers/misc/lis3lv02d/lis3lv02d_i2c.c index d7daa01fe7ca..7071412d6bf6 100644 --- a/drivers/misc/lis3lv02d/lis3lv02d_i2c.c +++ b/drivers/misc/lis3lv02d/lis3lv02d_i2c.c @@ -100,8 +100,7 @@ static const struct of_device_id lis3lv02d_i2c_dt_ids[] = { MODULE_DEVICE_TABLE(of, lis3lv02d_i2c_dt_ids); #endif -static int lis3lv02d_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lis3lv02d_i2c_probe(struct i2c_client *client) { int ret = 0; struct lis3lv02d_platform_data *pdata = client->dev.platform_data; @@ -263,7 +262,7 @@ static struct i2c_driver lis3lv02d_i2c_driver = { .pm = &lis3_pm_ops, .of_match_table = of_match_ptr(lis3lv02d_i2c_dt_ids), }, - .probe = lis3lv02d_i2c_probe, + .probe_new = lis3lv02d_i2c_probe, .remove = lis3lv02d_i2c_remove, .id_table = lis3lv02d_id, }; From patchwork Fri Nov 18 22:43:49 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: 22738 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464792wrr; Fri, 18 Nov 2022 15:35:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf7gZx22zG128/JUqdjBl3IrXjgBxvIjoygqe8zradtHgFgxKYoo3Fm1hWXt95Stmh+ZXqDN X-Received: by 2002:aa7:cb8d:0:b0:467:bc1f:ca16 with SMTP id r13-20020aa7cb8d000000b00467bc1fca16mr8213110edt.269.1668814545604; Fri, 18 Nov 2022 15:35:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814545; cv=none; d=google.com; s=arc-20160816; b=gyIoOld9LJC2MXlUEXpOqtqMiTkpLRx9jwQYGc9NnOu77/C4m3Y7aXSijy0HfePq2l IQBJZRgrJ70xmyudJzNCLbi3AQ1AWlTlImbs3RUI2v/pqGN+CLk6jCo0kbP4CBzaasha iCXF1LmF6ElGZy0tn1OUCX0vQTQTR18bvBuSgmjDJvpGNN51PMZW1d+L1hOQZpb7kYsR 3g49v39g7zAmL3DbO0yQs/CyrbwAe5u3td10lMHGQJ4bu2Axozpm59U/Yr6QAwkjwVa3 Y22d2Q++k4Zz8puoSq7RQQRM6p+VN7KGd1oFJeCugL2nfKr0z6icLHxvyVqg/aSIkPPG duvA== 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=2t4pLjDcq+wNPlXQlCgRaFASAyDfqPs/p1obOExfmCY=; b=pk5WIuhAfIdOfHup7zDlHModhyubIUOQpOBAaoki2mphSGYML6o9rKyL1z2eBMIZhB TqDhwsKGjx9FoW2Sma+UlzUNgkQAxEGblLnegiGu3P2pvS9+zrFY12uuqK0Dmcquz/Wj mo3+hUaEc3pHfuXFlTnttwjnYRcT2MsPBXFZMbha8G5c4g92b3cBeLeM5cjWIqw6rHj8 uF+iEvfarS27TDMQzLf6Gl22j/h4N6mKCuigIJV/Ym23c2VCBtLhRzNNyjr3kxmnM55d PejRVSFNXsFI1gVJXWy9WLJOTGHyJWKylC/eUYmJRUPkJHDfKPDYFAk5HqXtmvYL/6x4 8hgg== 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 m6-20020a056402430600b0045d539f05a8si4647367edc.576.2022.11.18.15.35.21; Fri, 18 Nov 2022 15:35:45 -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 S236252AbiKRXek (ORCPT + 99 others); Fri, 18 Nov 2022 18:34:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236062AbiKRXbl (ORCPT ); Fri, 18 Nov 2022 18:31:41 -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 16C359208E for ; Fri, 18 Nov 2022 15:19:05 -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 1owA9R-0004ax-Dd; Fri, 18 Nov 2022 23:48:01 +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 1owA9O-0058lS-Lr; Fri, 18 Nov 2022 23:47:59 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9O-0000Ow-MU; Fri, 18 Nov 2022 23:47:58 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Arnd Bergmann , Greg Kroah-Hartman 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 495/606] misc: tsl2550: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:49 +0100 Message-Id: <20221118224540.619276-496-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?1749878881300302974?= X-GMAIL-MSGID: =?utf-8?q?1749878881300302974?= 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/misc/tsl2550.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/misc/tsl2550.c b/drivers/misc/tsl2550.c index 1652fb9b3856..6c62b94e0acd 100644 --- a/drivers/misc/tsl2550.c +++ b/drivers/misc/tsl2550.c @@ -331,8 +331,7 @@ static int tsl2550_init_client(struct i2c_client *client) */ static struct i2c_driver tsl2550_driver; -static int tsl2550_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tsl2550_probe(struct i2c_client *client) { struct i2c_adapter *adapter = client->adapter; struct tsl2550_data *data; @@ -438,7 +437,7 @@ static struct i2c_driver tsl2550_driver = { .of_match_table = tsl2550_of_match, .pm = TSL2550_PM_OPS, }, - .probe = tsl2550_probe, + .probe_new = tsl2550_probe, .remove = tsl2550_remove, .id_table = tsl2550_id, }; From patchwork Fri Nov 18 22:43:50 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: 23001 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477437wrr; Fri, 18 Nov 2022 16:11:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf78EQOUh4k4mQCYa9dU0632Cna0ZjW4VuYaVKz5HvAlGceuP158ckkufUNZAEWdmLfu0Zxy X-Received: by 2002:a17:90b:2552:b0:212:f8d0:a075 with SMTP id nw18-20020a17090b255200b00212f8d0a075mr9854427pjb.92.1668816694519; Fri, 18 Nov 2022 16:11:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816694; cv=none; d=google.com; s=arc-20160816; b=FGhCc/XN2sDKY5muI/qWgpj6VJ4Iogvl4D5cpdww+3paH1aUMFnULWfJpZ6jwlEEg6 AyKfQrfMXb4YXWwAvBk/tU6r+HHBPPlKCFKqBQ6/eBwahCPbZBnIzg4k/Kpt103CzkTV yk6KoPDa3lbsGqNUYwIzLSbgndGSDhlQGca4cB2ezxbMU1SXBP66tmvE1Pz+Q4SWzsGf UsPTFE4oBpvA0KXjz5xZBQil/x+dGxHwmBm46SkWclXsrIN5+n6b6/LaBfuAx/Xj7+TJ P5eHb2lvMHLu+L6xW7WycuPMkmTjRAa8ANH7+F52q46cEvfvKL3Vew5tY0B9QFYPj02J G0sA== 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=+LSN+Hc7yDof00yCfaz6lS8jib1ITZhzCEMfPUYXQfU=; b=d8N/wTyIE5ELUrI43bF3XwlWTHfDpUddnx77N55I2t2Ficxno87bibtldyPi5Kq0D7 unvd8BwyIpDLQ8EaCuMcSbN0c6AG/kFL4JTx+/WHOTYF3tKkkosbF254ThedDFlixaz4 hJ7x6Jieylclv4nEA09S6TvCM4pCZbNI92a1Aie7rj/ccBQFWDc7vZnZWXewqPPfH4QU jhkHoPM37jqJDNHFW7VLqllFDIhPDgTIxGAUlmVZApNU6MOZ3AiJUZ+5gB/Urn6FRPOf KXEDVOdFtYhuP35Df1mN9NXwcD/vOPtTPNUchw7CwChNRNb9+BZgmdym2LC7Qwarwe0Y Ngtg== 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 g10-20020a636b0a000000b004770122d199si1082587pgc.624.2022.11.18.16.11.21; Fri, 18 Nov 2022 16:11: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 S237545AbiKSAK7 (ORCPT + 99 others); Fri, 18 Nov 2022 19:10:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237532AbiKSAJw (ORCPT ); Fri, 18 Nov 2022 19:09:52 -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 6480F7C6A0 for ; Fri, 18 Nov 2022 15:33:14 -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 1owA9S-0004bO-AB; Fri, 18 Nov 2022 23:48:02 +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 1owA9O-0058lW-QS; Fri, 18 Nov 2022 23:47:59 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9O-0000P1-Rx; Fri, 18 Nov 2022 23:47:58 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Sebastian Reichel , Maximilian Luz , Peter Rosin , Benjamin Mugnier Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 496/606] mtd: maps: pismo: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:50 +0100 Message-Id: <20221118224540.619276-497-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?1749881134100514704?= X-GMAIL-MSGID: =?utf-8?q?1749881134100514704?= 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 Acked-by: Richard Weinberger --- drivers/mtd/maps/pismo.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/maps/pismo.c b/drivers/mtd/maps/pismo.c index 5fcefcd0baca..3e0fff3f129e 100644 --- a/drivers/mtd/maps/pismo.c +++ b/drivers/mtd/maps/pismo.c @@ -206,8 +206,7 @@ static void pismo_remove(struct i2c_client *client) kfree(pismo); } -static int pismo_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int pismo_probe(struct i2c_client *client) { struct pismo_pdata *pdata = client->dev.platform_data; struct pismo_eeprom eeprom; @@ -260,7 +259,7 @@ static struct i2c_driver pismo_driver = { .driver = { .name = "pismo", }, - .probe = pismo_probe, + .probe_new = pismo_probe, .remove = pismo_remove, .id_table = pismo_id, }; From patchwork Fri Nov 18 22:43:51 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: 22775 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466033wrr; Fri, 18 Nov 2022 15:38:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf4xTY4WsX8ZYzIkNTmDfVvnTh/+vLO63655FYSt3K5Tx/PWWzWb81+aNI7AZNcbT0Ism+Zw X-Received: by 2002:a05:6402:4c2:b0:461:3ae6:8bf2 with SMTP id n2-20020a05640204c200b004613ae68bf2mr8043576edw.396.1668814739104; Fri, 18 Nov 2022 15:38:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814739; cv=none; d=google.com; s=arc-20160816; b=vB5zEvdL6royK5QWQp8VOjizF9rBZVM9eyTswpqPAGTTqgHzLSoriPyWX8U+8kmkC7 jakyHHRVa8olCC2AejznQvexvsEoQ5O9U78I/z/cv/ORgUEzXy6/m0qvgAfacg4oiRQG t0plKciMgmuthDemEH3dCyZ0SkB27y1U+qcW47JrCCyi1mQn8cDLUuuTUB4fjdib/xtg O/ZUzNuWd4GfClcO8XgU3XK0GLhVbVlcQrxrjVTcr8SafbSivE7ltaK1AjrGg3B78jSg roB7BVAvHGRy6iQ8BEa2ecA62YtjlViTSYFBS7BulAzf8Vy9bBzEfLyCzMDvX1OONx+U e7Pw== 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=8Oi2zflccy7akjjv/frQElGBtyBClo3hPE/Lj8/hSYE=; b=bKWhhCrgwczWyU26LrmGAh7ITVABo9qmvQp16DO81VZsZXgAuUolKAQI7wOlV3Do7h bncj2p2YFnqHJVfGutn1gJmxIl+BEXE7cFI7Z2zXaGiInB7Maim5j9J4alL7ppEvRBKY 45Ue1R2d0Nd+ddJzO3utx5qtaTGVNEwBNzK5T5LD/m8OLrg/pn664LAD8gIaMCJUEnK7 AVxo89MR3+/hprYXtrU7snrkJi+CtIY3VLOlvExFazOJDFMZltcr/dmdCbtHBu0MV/mH qRCG9WgBVWyLm9446+znV4XRauL8FUysyB5zxBUMX9AbkH2c2lQ7ULrZwTz1TQzEItvp +9kA== 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 b8-20020a056402350800b0043dfc949d31si4675788edd.25.2022.11.18.15.38.33; Fri, 18 Nov 2022 15:38:59 -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 S236552AbiKRXhP (ORCPT + 99 others); Fri, 18 Nov 2022 18:37:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236455AbiKRXdB (ORCPT ); Fri, 18 Nov 2022 18:33:01 -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 2D3DFFD9 for ; Fri, 18 Nov 2022 15:21:05 -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 1owA9R-0004bx-V2; Fri, 18 Nov 2022 23:48:01 +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 1owA9P-0058lb-2T; Fri, 18 Nov 2022 23:48:00 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9P-0000P7-2S; Fri, 18 Nov 2022 23:47:59 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 497/606] net: dsa: lan9303: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:51 +0100 Message-Id: <20221118224540.619276-498-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?1749879083959972912?= X-GMAIL-MSGID: =?utf-8?q?1749879083959972912?= 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/net/dsa/lan9303_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/dsa/lan9303_i2c.c b/drivers/net/dsa/lan9303_i2c.c index 7d746cd9ca1b..1cb41c36bd47 100644 --- a/drivers/net/dsa/lan9303_i2c.c +++ b/drivers/net/dsa/lan9303_i2c.c @@ -29,8 +29,7 @@ static const struct regmap_config lan9303_i2c_regmap_config = { .cache_type = REGCACHE_NONE, }; -static int lan9303_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lan9303_i2c_probe(struct i2c_client *client) { struct lan9303_i2c *sw_dev; int ret; @@ -106,7 +105,7 @@ static struct i2c_driver lan9303_i2c_driver = { .name = "LAN9303_I2C", .of_match_table = of_match_ptr(lan9303_i2c_of_match), }, - .probe = lan9303_i2c_probe, + .probe_new = lan9303_i2c_probe, .remove = lan9303_i2c_remove, .shutdown = lan9303_i2c_shutdown, .id_table = lan9303_i2c_id, From patchwork Fri Nov 18 22:43:52 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: 22790 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466629wrr; Fri, 18 Nov 2022 15:40:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf4eCb931Z4TtOufMVyWk4niijSnBqseuA8iXjVKtF56S+NwKIGl7/hMQZj/BfruO1PGPlO/ X-Received: by 2002:a17:906:32c7:b0:7ad:934f:abc2 with SMTP id k7-20020a17090632c700b007ad934fabc2mr7273181ejk.690.1668814833565; Fri, 18 Nov 2022 15:40:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814833; cv=none; d=google.com; s=arc-20160816; b=js+myKbdJqXbTRznah9ZOBVSqpESt6Hk00qBbWzDpqPzliv9exb+w/wmjzCc/e2CkI tEBEQ6bib/5kYMHLAvXhiBpSX8tvOhpXx1TgqPYGaGtAjjJJY4E4JUQx2Y8Rzf6zyO0N QUFMzxj63bP21GLxytLemm7dnQExfoFr0e6aOtufO93/P7JPPaAm92lIlmijeELrQ8BP hy4fHLqThiIs7uT4wZw87XIg1/VHpEENbiiWYw1ADKjBSTq0U1+Q9dpTgb+dvbKC7ySa /TBfwEWGfue/jWQs/G71CeFGTzMxsAJ4VKz7YDjNyJgnowunnIUP/sGDnvq9F5ff0Raq 84LA== 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=KlUitwJrhCBCd2kOCkIMm/8v04PqG5arxpW2eMJkSrA=; b=YirLg1cjXUBvvw4jo94+KFQGn1nqJEr75on2hlhRQGuRjRnqyJY0C9LvociAoaQD7d VAxWpOkJTIZUT0HdRJJvwWsWu2Z2Seg9ocPDde4qBciJdHWVZ09BzW9Lgiowz4iY7pe5 Fbdr96pSR27/L7rNvAnFn6c8x+mMo59JRq+8P6umlsloqveeA66hkdYvb9beWK/iX073 yQfuETXkrpuk+teragM+st5AmnCRR6aq73584vzuVyqvcss6qkMA3LU2aGe8Hp0owhXB wWKCblReHQLTaC7njgXyHY/Pv8fOuqrUZSJ8umE1VFqPy95EGvF6jilNQ8hIpt33lD4n Da8w== 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 qo14-20020a170907874e00b007ae931d56f9si3577823ejc.89.2022.11.18.15.40.10; Fri, 18 Nov 2022 15:40: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 S236511AbiKRXjF (ORCPT + 99 others); Fri, 18 Nov 2022 18:39:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236032AbiKRXde (ORCPT ); Fri, 18 Nov 2022 18:33:34 -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 A5655AD9A1 for ; Fri, 18 Nov 2022 15:21: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 1owA9S-0004cg-4L; Fri, 18 Nov 2022 23:48:02 +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 1owA9P-0058lj-8x; Fri, 18 Nov 2022 23:48:00 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9P-0000PA-CF; Fri, 18 Nov 2022 23:47:59 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 498/606] net: dsa: microchip: ksz9477: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:52 +0100 Message-Id: <20221118224540.619276-499-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?1749879182570669317?= X-GMAIL-MSGID: =?utf-8?q?1749879182570669317?= 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/net/dsa/microchip/ksz9477_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/dsa/microchip/ksz9477_i2c.c b/drivers/net/dsa/microchip/ksz9477_i2c.c index db4aec0a51dc..c1a633ca1e6d 100644 --- a/drivers/net/dsa/microchip/ksz9477_i2c.c +++ b/drivers/net/dsa/microchip/ksz9477_i2c.c @@ -14,8 +14,7 @@ KSZ_REGMAP_TABLE(ksz9477, not_used, 16, 0, 0); -static int ksz9477_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *i2c_id) +static int ksz9477_i2c_probe(struct i2c_client *i2c) { struct regmap_config rc; struct ksz_device *dev; @@ -120,7 +119,7 @@ static struct i2c_driver ksz9477_i2c_driver = { .name = "ksz9477-switch", .of_match_table = of_match_ptr(ksz9477_dt_ids), }, - .probe = ksz9477_i2c_probe, + .probe_new = ksz9477_i2c_probe, .remove = ksz9477_i2c_remove, .shutdown = ksz9477_i2c_shutdown, .id_table = ksz9477_i2c_id, From patchwork Fri Nov 18 22:43:53 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: 23098 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487628wrr; Fri, 18 Nov 2022 16:43:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf5H9vmMlgVFQJnuLkxanMn1xkOFFJ37QMCQIFjIIoyw2brPWPjJenYdVBjdUlC4I9PJ3yG0 X-Received: by 2002:a05:6402:360b:b0:468:f365:dca with SMTP id el11-20020a056402360b00b00468f3650dcamr7106326edb.41.1668818615543; Fri, 18 Nov 2022 16:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818615; cv=none; d=google.com; s=arc-20160816; b=mu8vqLK5Rx19RBTZKo/KU3f3GpdD+lbp9D9hsUqM5UGqvye78uPP8AdQOA+pG5FZ7b d31CxB7w9HDdfADJT4INNgcGOhS0C9//iw/EJ54g2WFdSYzo3Ie8a5fqS9ph+rv9XoEI 66I2/Ud42tYfUpxsezLSexDnDx0ej1+DkhDx0ksyhH0gZyt0O5EXmwfDI/Q7u30QL/Tc ai1NAm4kbDDmyCSFk9UaANu8nllzo1xJRfDRGkkI4DGpdT54yOzbGnKM3n0Zbgna4s9/ WpjJsL/w/OdGB/02jy/RcpnfgHWqGKecEJ2IbMyQk9EpO2FvKeMZ+MKLM4VWdWf1VKvc elWg== 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=nZaB8VgcLfzcRsD/gVRmDhrGrCFrOZ9nVuVacRxOQW8=; b=NblAl11RrwQmvxb/dNmSsikPc01sEZBKpbyWf59LUdCDDcYyPprOmaDBQDci3jubx3 KTR2tn7vdbr8Nu8rPO5jhAztIIZvUPn64a0w7wLmlYSjEMhrXwc+1B+J/Yst2LV8ZhnH Xa8qlYxRQeSySCC5f5HwBXRteUywdwHir2QHIQWygn8xvbNRHs2kC4pw/IhAV4yr33Hc C979ntyeLU4R+PbCyYvP+nLT/Hiq+UCuf7nHVtgChy4KhIANE0YdDuyw7j+UP8GU4hfH 4+ajz8oThqE9psdjYKzGXsWP5MdmDeE9jU+LbZvgLbH9s0sMBonx6wsKMmkj8vUHp2Ng y88g== 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 xb1-20020a170907070100b007aee7ca1161si4728726ejb.711.2022.11.18.16.43.04; Fri, 18 Nov 2022 16:43: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 S232985AbiKSAdY (ORCPT + 99 others); Fri, 18 Nov 2022 19:33:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234574AbiKSAdD (ORCPT ); Fri, 18 Nov 2022 19:33:03 -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 109D4C621A for ; Fri, 18 Nov 2022 15:42:15 -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 1owA9S-0004cm-1i; Fri, 18 Nov 2022 23:48:02 +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 1owA9P-0058ll-Aw; Fri, 18 Nov 2022 23:48:00 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9P-0000PD-I0; Fri, 18 Nov 2022 23:47:59 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , George McCollister , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 499/606] net: dsa: xrs700x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:53 +0100 Message-Id: <20221118224540.619276-500-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?1749883148855500253?= X-GMAIL-MSGID: =?utf-8?q?1749883148855500253?= 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/net/dsa/xrs700x/xrs700x_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/dsa/xrs700x/xrs700x_i2c.c b/drivers/net/dsa/xrs700x/xrs700x_i2c.c index 54065cdedd35..14ff6887a225 100644 --- a/drivers/net/dsa/xrs700x/xrs700x_i2c.c +++ b/drivers/net/dsa/xrs700x/xrs700x_i2c.c @@ -76,8 +76,7 @@ static const struct regmap_config xrs700x_i2c_regmap_config = { .val_format_endian = REGMAP_ENDIAN_BIG }; -static int xrs700x_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *i2c_id) +static int xrs700x_i2c_probe(struct i2c_client *i2c) { struct xrs700x *priv; int ret; @@ -148,7 +147,7 @@ static struct i2c_driver xrs700x_i2c_driver = { .name = "xrs700x-i2c", .of_match_table = of_match_ptr(xrs700x_i2c_dt_ids), }, - .probe = xrs700x_i2c_probe, + .probe_new = xrs700x_i2c_probe, .remove = xrs700x_i2c_remove, .shutdown = xrs700x_i2c_shutdown, .id_table = xrs700x_i2c_id, From patchwork Fri Nov 18 22:43:54 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: 23116 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488078wrr; Fri, 18 Nov 2022 16:44:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf6fjXQ7yEP/ftYYYAdpZ2JfabQljiD2VJQgoZ2lMXw+vR8W+wpeB2S/Clvr6sazQ7YMygM5 X-Received: by 2002:a17:906:86c9:b0:78d:9324:6f18 with SMTP id j9-20020a17090686c900b0078d93246f18mr8106138ejy.664.1668818696780; Fri, 18 Nov 2022 16:44:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818696; cv=none; d=google.com; s=arc-20160816; b=iAT7pb/o1zyM+iuFd/AkvA/X+Tx+oF00hIQUs+H5yIr7XOZtRYnT9IX478U0vvbJbn a1z71ll5wm4iclUMrR06nDymY6Xl3osXvBREXKOa3WWQN2p5s8EvyxHnU2oeG0lu0+2C UvkiHoUv9nVDo4ZQDjyY2FpNHmhMsdSNlcJFNMv/CIg+iQhQUR+qgla+1yRMzgtmSG1c qy1H8nwNwg0J5DOLJBuFSnFZEIQL2S9YcXczN504K3QICDYYKJzbz+RUGJMZd85IYBfL HR+ahUezKX6NWPpgq860hNbFwFC3G0GzO+uWFF8uUS56HvdNdbtJAc2vXc6KDo5K3tLp h/FQ== 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=yeBnKEyiKADyKKM7D8Dw8cSHLowZYq4S+4Rhio+rRgE=; b=jXtRv8FQPCCsUf5MTTyd3OwvtgkFkGTuOWqW5eauAWkbr5KLidxHeI6EVDG2hvcTQ8 NgmKIAIj0zN6TIa9Jll16dd40T2p1SDubD64zLVAzJG9wtng4eH/miO0oHYIlIrb1ozQ l29SgUk0ZyMVHn79+zqWJljpY7fQNU/6rzNOZpSAB/N8vSKy4MkLTt+0jNzTfL+mS5L0 r/i9/er2t18yI4JEOAjayc3Nbd/Gy3tUAdKZvZWru/7hn99rECfPUapWNhMpStHZGU6v r5m2vk3TUtg1esYeugw2ojMLfn/GYa0fglGSU/8iLrMv7PfWpwHb+Wr2ue0gsI9UsX+4 PnTA== 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 oz40-20020a1709077da800b0078e1246e7d6si4083742ejc.748.2022.11.18.16.44.33; Fri, 18 Nov 2022 16:44:56 -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 S237099AbiKSAl1 (ORCPT + 99 others); Fri, 18 Nov 2022 19:41:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235017AbiKSAkC (ORCPT ); Fri, 18 Nov 2022 19:40:02 -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 40156C76AD for ; Fri, 18 Nov 2022 15:44: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 1owA9S-0004db-6d; Fri, 18 Nov 2022 23:48:02 +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 1owA9P-0058lr-LM; Fri, 18 Nov 2022 23:48:00 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9P-0000PI-NS; Fri, 18 Nov 2022 23:47:59 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Ido Schimmel , Petr Machata , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 500/606] net/mlx5: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:54 +0100 Message-Id: <20221118224540.619276-501-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?1749883233946405630?= X-GMAIL-MSGID: =?utf-8?q?1749883233946405630?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/net/ethernet/mellanox/mlxsw/i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlxsw/i2c.c b/drivers/net/ethernet/mellanox/mlxsw/i2c.c index f5f5f8dc3d19..2c586c2308ae 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/i2c.c +++ b/drivers/net/ethernet/mellanox/mlxsw/i2c.c @@ -632,9 +632,9 @@ static const struct mlxsw_bus mlxsw_i2c_bus = { .cmd_exec = mlxsw_i2c_cmd_exec, }; -static int mlxsw_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mlxsw_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); const struct i2c_adapter_quirks *quirks = client->adapter->quirks; struct mlxsw_i2c *mlxsw_i2c; u8 status; @@ -751,7 +751,7 @@ static void mlxsw_i2c_remove(struct i2c_client *client) int mlxsw_i2c_driver_register(struct i2c_driver *i2c_driver) { - i2c_driver->probe = mlxsw_i2c_probe; + i2c_driver->probe_new = mlxsw_i2c_probe; i2c_driver->remove = mlxsw_i2c_remove; return i2c_add_driver(i2c_driver); } From patchwork Fri Nov 18 22:43:55 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: 22855 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472009wrr; Fri, 18 Nov 2022 15:59:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf76FwH1fCVzRbqV8iaCnDhdFk+zPnS1r+YMla0o1rKgkfreXpGW0pi7YPiQxpYB+F5aTTr9 X-Received: by 2002:a17:903:2305:b0:188:f3b9:7146 with SMTP id d5-20020a170903230500b00188f3b97146mr1740367plh.91.1668815941681; Fri, 18 Nov 2022 15:59:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815941; cv=none; d=google.com; s=arc-20160816; b=opaUwozkNSxlG/MU+XvxesvNJVhJq+Zl0/xFIe3eIPSSKCjk2llr3N9GhYZrFgRn9N +l2RgQg5CbyZqBn9Ul2ypkypz4EcW8YCy/iPN3LA+NX/EH3y4px0gTJYidwP08XwHtA4 9bUjTrxwPB2TmPKnMR/W/QDIhZdhZYc+PUcTZ9+TkiLtD9fE1v7s3gaiR5gFf9Y3ntSa O4t+nwYLTnEa5+MalxpVKAzFooLfpNaRDYRQI3f/G+WSngHuXYov4dCxiCj3GcUxyTkX tzEjiZNU1MKwNR245IHroT4RCsN0TgFFesGqLOk2OtBvmu4mxy4H/iGdjayC/N2gdaCa K8Zg== 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=61pvs0K2Fd4phEAeb6yVOIPJ+vaZRsIXrymwCq1Lz/c=; b=ZsOJz3rYogeuGZxx+OAdrCYYPT9c4P52kODJ1IcyUpMNZiWxK48TldY1yd7Z9QXr6M TBp9h5cB5MVbbeD1GNRgj2upo1N2Vp5ouqM+4J+cP429PuVyF3SPL/+rA+6ZD9taW/x3 Pv9XpxZRw3v1fz0clZIjxKTs08inNR5Yc3ElRoIJTfolmbG9q74a7h5Lpayo/GChYcPJ 9FGXqsdorUt0lQm7bhH69iobeL0qkyUNA7PocGfQo8tuTAcXh4UR1P1aptymMoBm3EQM GLYpdkB3KsIk59mMyFP3lLEo7NOCg1AKzfK8+nRO1CNWGw84I3hyLyclConHzCRXVXW/ D2nw== 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 rm10-20020a17090b3eca00b00218792fa2b3si5213302pjb.160.2022.11.18.15.58.49; Fri, 18 Nov 2022 15:59:01 -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 S235031AbiKRXvQ (ORCPT + 99 others); Fri, 18 Nov 2022 18:51:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235047AbiKRXuN (ORCPT ); Fri, 18 Nov 2022 18:50:13 -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 AC81092092 for ; Fri, 18 Nov 2022 15:26:44 -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 1owA9S-0004eU-GJ; Fri, 18 Nov 2022 23:48:02 +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 1owA9P-0058lz-SN; Fri, 18 Nov 2022 23:48:00 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9P-0000PM-TJ; Fri, 18 Nov 2022 23:47:59 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Krzysztof Kozlowski , Dmitry Torokhov , Maximilian Luz , Heikki Krogerus Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 501/606] nfc: microread: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:55 +0100 Message-Id: <20221118224540.619276-502-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?1749880345065827858?= X-GMAIL-MSGID: =?utf-8?q?1749880345065827858?= 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/nfc/microread/i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/nfc/microread/i2c.c b/drivers/nfc/microread/i2c.c index 5eaa18f81355..e72b358a2a12 100644 --- a/drivers/nfc/microread/i2c.c +++ b/drivers/nfc/microread/i2c.c @@ -231,8 +231,7 @@ static const struct nfc_phy_ops i2c_phy_ops = { .disable = microread_i2c_disable, }; -static int microread_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int microread_i2c_probe(struct i2c_client *client) { struct microread_i2c_phy *phy; int r; @@ -287,7 +286,7 @@ static struct i2c_driver microread_i2c_driver = { .driver = { .name = MICROREAD_I2C_DRIVER_NAME, }, - .probe = microread_i2c_probe, + .probe_new = microread_i2c_probe, .remove = microread_i2c_remove, .id_table = microread_i2c_id, }; From patchwork Fri Nov 18 22:43:56 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: 22991 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477117wrr; Fri, 18 Nov 2022 16:10:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf6VAWcCSiTO01FOQbi0PtdeQ+pvhs3fEadZMCPKtQpe8TPrQRiXGbNgUy+cB7IepTWYhJTO X-Received: by 2002:aa7:8684:0:b0:56c:5afe:67f6 with SMTP id d4-20020aa78684000000b0056c5afe67f6mr10202665pfo.20.1668816643615; Fri, 18 Nov 2022 16:10:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816643; cv=none; d=google.com; s=arc-20160816; b=i0P5q36k78DtwlsZwf0xZU/Fi0y7GP0jxqd8P7ol1hl0sMR20nlQstQs5wwcRtljvw Ayd5Ct3R1D/6vo4jelDS4AQ1Wv1AiRDTlGU27toge6oe1k2kgv/yjnpB8vXLhHwiYjLB kM1V14Gl1G1JnFA3W9EP2ndN1HjkVs5j7jtZ1sL4m7Z7DvFOVuBuuRfeRv4e51qNj3uD yqtfqGCpBtKtLDWK9rHMAMJ/JOMQsPhoSqxChe4wM8DeQNva7sbNVsmvP4Gu9KqN0yBo 3M5VzLUUPjx39rqnSwfxygFCaBOK0bF47jvBr6d3TikUn3/tPZ1AwYDdfDhqPcl5j8Bq 39zw== 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=vwNkzmhHlTnuDoZr3ebZQdKcEPtv56mHUj9uxXaDkUg=; b=UkgTO+Q2Gg0rnB4uGAsqq9D7NQhSX0AMMPqIHyhNsYaHUtTnSk7PoF/egeaPLd9cJn 2rIo2bBqqUQVSBgyGZrSyilB7KA3bhvtT5FIshgdrvnFe3b3nMTkf9kokyvs6LYl+p9D 3iDMc7S+mqODSzndPAToNg2KP8SyBbBzWAbf6t3ujjV3MidfeZcxiTafwHjN4zsxIuRX rnj6dYvrZApQVpwp69sv+LcoXF0HIqGosQwk1cBVEI37Yu5ssu6WfB2DEImxx5o66zp+ LsyoYINdraTxXbSq2yhOKJ2sB5N9MlXJgRUg4h6ofZrosQVf+dYBhxAMqmPm5331jca3 OQBA== 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 e9-20020a170902744900b0017a0fe2e1fdsi4577565plt.450.2022.11.18.16.10.28; Fri, 18 Nov 2022 16:10:43 -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 S237560AbiKSAKD (ORCPT + 99 others); Fri, 18 Nov 2022 19:10:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232098AbiKSAJg (ORCPT ); Fri, 18 Nov 2022 19:09:36 -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 4860E9E976 for ; Fri, 18 Nov 2022 15:32:53 -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 1owA9S-0004f9-M5; Fri, 18 Nov 2022 23:48:02 +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 1owA9Q-0058m3-2P; Fri, 18 Nov 2022 23:48:01 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9Q-0000PR-4Z; Fri, 18 Nov 2022 23:48:00 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Krzysztof Kozlowski , Adrien Grassein , Petr Machata , Luca Ceresoli , Jean Delvare , Shang XiaoJing Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 502/606] nfc: mrvl: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:56 +0100 Message-Id: <20221118224540.619276-503-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?1749881081135774000?= X-GMAIL-MSGID: =?utf-8?q?1749881081135774000?= 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/nfc/nfcmrvl/i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/nfc/nfcmrvl/i2c.c b/drivers/nfc/nfcmrvl/i2c.c index 24436c9e54c9..c3ab49df1e35 100644 --- a/drivers/nfc/nfcmrvl/i2c.c +++ b/drivers/nfc/nfcmrvl/i2c.c @@ -181,8 +181,7 @@ static int nfcmrvl_i2c_parse_dt(struct device_node *node, return 0; } -static int nfcmrvl_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int nfcmrvl_i2c_probe(struct i2c_client *client) { const struct nfcmrvl_platform_data *pdata; struct nfcmrvl_i2c_drv_data *drv_data; @@ -257,7 +256,7 @@ static const struct i2c_device_id nfcmrvl_i2c_id_table[] = { MODULE_DEVICE_TABLE(i2c, nfcmrvl_i2c_id_table); static struct i2c_driver nfcmrvl_i2c_driver = { - .probe = nfcmrvl_i2c_probe, + .probe_new = nfcmrvl_i2c_probe, .id_table = nfcmrvl_i2c_id_table, .remove = nfcmrvl_i2c_remove, .driver = { From patchwork Fri Nov 18 22:43:57 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: 22997 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477323wrr; Fri, 18 Nov 2022 16:11:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ZLi1b03yOmTbeV8olIrBp0wa50fJRWUdZnwE1JfIOsc+YBJN1Rfa+h4cOzpE2TpucePuJ X-Received: by 2002:a17:902:b691:b0:188:5240:50ec with SMTP id c17-20020a170902b69100b00188524050ecmr1680932pls.168.1668816676963; Fri, 18 Nov 2022 16:11:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816676; cv=none; d=google.com; s=arc-20160816; b=d7kghnx6SVaxLIsbb8Ra/igtdOWppMAz61hBrxykhothJfBTgMxreIH1AX9iEcjEbo 8nf7rZtKvZjLORrXLVoIOFHCJ9vTjm1BCJOJwfl1WpFMXFoXcwAbQidZGQ26w5WWZ6SF DR3zGilMfx2J7OgfkZR3Yo0QBJO+N46mdjD+r/lcWeBd/6pGHABgkbwyOsnBUrTn9BG2 b0q1RBSDFC3Enx59VMPG5Rs1Bx621M3yO5NSa0jOB+GwH6pe7WcWe0Hp5t1A6n4Yidqt HSTnWQtQg62/e8qTbbPkXio9GS7PvWH7l35giOid4BrI1/VUVK8gmMKb67KxlrovIgCx zcng== 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=Zprq7DJP+kH55uSH5Or7gokGhb7rqueBHZk/ltjexhY=; b=fg1ahs7rqfGeeTN6CGlufJnA8hPpbGVj/9+EH8hOlOVQUxIVCL0YfLN33SJbQO64Ad fNmgJlmdUpg5ZwXRG7BKhvtgLazlDzn9PEe6Kby6etJgeU6q71IILxrjtVKUUcybrQnH sUvSS5EaEDaysBMGeV+bTv5l9AFLbe+Ooy/9BwdBaI433nMTHCA8lxwtCuEeYkxJYkxq pj0XL5CERxjXfnMUc6NHFdRX5eoVLZu/3sCrUI9icNmsJUBTgMfEAi+K+itd1QrNtu2+ uXCtuRNp2nkPthUcHvtVJl0Bufuaoyfgk0V0Vd+TffNPmCGk826dt+NtxGAWgKctj63A RQ9g== 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 m2-20020a655642000000b004701dd79b18si5196243pgs.432.2022.11.18.16.11.04; Fri, 18 Nov 2022 16:11:16 -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 S237628AbiKSAKa (ORCPT + 99 others); Fri, 18 Nov 2022 19:10:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237494AbiKSAJu (ORCPT ); Fri, 18 Nov 2022 19:09:50 -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 09FFB1EED7 for ; Fri, 18 Nov 2022 15:33:08 -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 1owA9T-0004h6-BL; Fri, 18 Nov 2022 23:48:03 +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 1owA9Q-0058mE-OB; Fri, 18 Nov 2022 23:48:01 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9Q-0000PW-CP; Fri, 18 Nov 2022 23:48:00 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Krzysztof Kozlowski , Michael Walle , "David S. Miller" , Heikki Krogerus Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 503/606] NFC: nxp-nci: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:57 +0100 Message-Id: <20221118224540.619276-504-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?1749881116139626303?= X-GMAIL-MSGID: =?utf-8?q?1749881116139626303?= 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/nfc/nxp-nci/i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/nfc/nxp-nci/i2c.c b/drivers/nfc/nxp-nci/i2c.c index ec6446511984..d4c299be7949 100644 --- a/drivers/nfc/nxp-nci/i2c.c +++ b/drivers/nfc/nxp-nci/i2c.c @@ -263,8 +263,7 @@ static const struct acpi_gpio_mapping acpi_nxp_nci_gpios[] = { { } }; -static int nxp_nci_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int nxp_nci_i2c_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct nxp_nci_i2c_phy *phy; @@ -349,7 +348,7 @@ static struct i2c_driver nxp_nci_i2c_driver = { .acpi_match_table = ACPI_PTR(acpi_id), .of_match_table = of_nxp_nci_i2c_match, }, - .probe = nxp_nci_i2c_probe, + .probe_new = nxp_nci_i2c_probe, .id_table = nxp_nci_i2c_id_table, .remove = nxp_nci_i2c_remove, }; From patchwork Fri Nov 18 22:43:58 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: 22987 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477061wrr; Fri, 18 Nov 2022 16:10:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf5hZETABvPLSfwmjOxfK6YB0GkNcWm8PmIlkIyeA2voTUSwril/xUCluDomBZDmbW6yYDzH X-Received: by 2002:aa7:c7d5:0:b0:44e:bee5:4242 with SMTP id o21-20020aa7c7d5000000b0044ebee54242mr8146284eds.128.1668816634092; Fri, 18 Nov 2022 16:10:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816634; cv=none; d=google.com; s=arc-20160816; b=ryd5fh9vNHGJqOojUf2tQ2/eldMQXTjpu5HuT1QCX9YPIP/w6yY6o6p+82JnrtmXLe y2ppkiWQtMzYV+FU0EIBNc5N5A9aBK7ITRuFH18ORU6QZhUtd6PTmeqIxW8dVX4JFD01 NjvOsrtQgI3pXOj+xhNJmJxmmFehtmkqzU0TlCmef4irYE4vDuW7XLHxWSirqI6yMeCV K3wnPOL5ZIjKVkhhI+A6KsyWL/spj2ppFKNsQhqpFg3bidOfjLEZmZCnJbOI7UM09BSc QIkSA8VVy6uAqKvMkJiJB8JYEPrHT7qwpojbJsd3OhUymPY1CamnQVailKX24NqeLQpx 28Xg== 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=5XSWH+uYRGBbSmyUFdQeJRsiHKBOxZj7Fmoq/OpRN+k=; b=EvWk+sh5XwxH+Lhy6wDli5g0QiOI4HmE3RCELENx3ft0mmLxUDeOcYr8azgOGi5hTX 9uyFAddxqSNAevkeOb7pDc24l61xVwRl4/jEzDzHj8MCaKf9MFGsgYaTo1bVjMpqd0CE lPYmYVvF7ldaVaonRkiaLlJ539QVakFp6kpa8ipwiFdN4H/8WfBeeWOFvt1jZIzr7JVl pZna35TX+DC8u/rwGMZahMFrGph7b1gZeVxfZX1axviXFapzEy0p+uHEEPfZg8lGoKNs OcBo2w6Vvzv5OvF8IphLr7tJAMLnoajrlPI9syAEJPmHRQLqRH95f+cBG8nq0OFF9N1K +Vsg== 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 u1-20020a1709064ac100b007aa35038c6bsi1357634ejt.463.2022.11.18.16.10.03; Fri, 18 Nov 2022 16:10: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 S237476AbiKSAJP (ORCPT + 99 others); Fri, 18 Nov 2022 19:09:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237468AbiKSAIr (ORCPT ); Fri, 18 Nov 2022 19:08:47 -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 368038B856 for ; Fri, 18 Nov 2022 15:32:36 -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 1owA9T-0004hG-6L; Fri, 18 Nov 2022 23:48:03 +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 1owA9Q-0058mG-Pe; Fri, 18 Nov 2022 23:48:01 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9Q-0000PZ-Kx; Fri, 18 Nov 2022 23:48:00 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Krzysztof Kozlowski , Vladimir Oltean , Maximilian Luz , Jean Delvare , =?utf-8?q?Marek_Beh=C3=BAn?= Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 504/606] nfc: pn533: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:58 +0100 Message-Id: <20221118224540.619276-505-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?1749881070909708592?= X-GMAIL-MSGID: =?utf-8?q?1749881070909708592?= 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/nfc/pn533/i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/nfc/pn533/i2c.c b/drivers/nfc/pn533/i2c.c index ddf3db286bad..1503a98f0405 100644 --- a/drivers/nfc/pn533/i2c.c +++ b/drivers/nfc/pn533/i2c.c @@ -163,8 +163,7 @@ static const struct pn533_phy_ops i2c_phy_ops = { }; -static int pn533_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int pn533_i2c_probe(struct i2c_client *client) { struct pn533_i2c_phy *phy; struct pn533 *priv; @@ -260,7 +259,7 @@ static struct i2c_driver pn533_i2c_driver = { .name = PN533_I2C_DRIVER_NAME, .of_match_table = of_match_ptr(of_pn533_i2c_match), }, - .probe = pn533_i2c_probe, + .probe_new = pn533_i2c_probe, .id_table = pn533_i2c_id_table, .remove = pn533_i2c_remove, }; From patchwork Fri Nov 18 22:43:59 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: 22982 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476881wrr; Fri, 18 Nov 2022 16:10:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf7UjYYyRSzduRzSvb6r0Hpun+oPBh7GxBOJ0/InmVU2nf2T7soL1OQ0yuD4Z9qNnNbLt4W/ X-Received: by 2002:a17:90a:cf08:b0:218:6bd8:3114 with SMTP id h8-20020a17090acf0800b002186bd83114mr10114867pju.128.1668816609424; Fri, 18 Nov 2022 16:10:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816609; cv=none; d=google.com; s=arc-20160816; b=CIpoHJ5TOY8i7Is5GoDNif4HfWZqNYiLCICY9YmqPtMAmOa6QHkDjqeyPYMYBY0Kp7 nLZlm65hy5ygp9eZjij5ikH3Vx0Hsv2ULWXFUTabEo+14YfdNxaalGZR2Lbv9bTfarsE XRdJwlsDfNEumKg7JG2H2dO72ugxrheYBmHs06PuQEWfdkze/KTOIIUQTnxnDq38uNZ9 Al4n+iDMYuaBeGKkwdPEU0agveORLz50of6luiszisbeRyK+o6ZwBvoHCazT8vA2m0TB SKJqVKVk67HJY4ABaqXfGG0ciHgrmCYdUDrMSUAClB3Dy0n3aQklnSKCTLRLaHwUPQjT M9HA== 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=nK+3yQRyqHEEz5P7taC2bedukFHdG1D43WDxsyqHrr4=; b=ZnfS0kpraqirWjT9I3P8l66+HjF5nZNzhwh39jW/U9zNE5bUQZtB4C7UYuIcJxJxjF V+0ZFzQ8wMMr8HuOt2H5GpVPF/g2X4b/LuqYg4sOSklDFwSwpucDN8VBHSs/BqxMTtf/ ankWdYlI4kNZk8OK+LEFDX65o6XKMCLEP1F6dTvi0GwsFT17FY4Zf9gEYu7DudhfU/0v Olg58TpKNPcgwTFI1wHWz2lU3+YXdlAHsDlP9InuNzF21XuN42nigetItMoOuFSW9+Ee Sa8nUCmlvGQhG5aTn7uNSEhC9Yx223hgtMWJl6eTti124f8VGjiHjQvcW/Zvp82t8wU3 SK6Q== 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 t16-20020a056a00139000b00571a5c5eaa5si5475111pfg.150.2022.11.18.16.09.56; Fri, 18 Nov 2022 16:10:09 -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 S231894AbiKSAIe (ORCPT + 99 others); Fri, 18 Nov 2022 19:08:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237911AbiKSAHz (ORCPT ); Fri, 18 Nov 2022 19:07: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 4E25597EE0 for ; Fri, 18 Nov 2022 15:32:24 -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 1owA9T-0004gy-A4; Fri, 18 Nov 2022 23:48:03 +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 1owA9Q-0058mB-ML; Fri, 18 Nov 2022 23:48:01 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9Q-0000Pd-QA; Fri, 18 Nov 2022 23:48:00 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Krzysztof Kozlowski , Vladimir Oltean , Hans Verkuil , Luca Ceresoli , Jeremy Kerr , Colin Ian King Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 505/606] nfc: pn544: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:59 +0100 Message-Id: <20221118224540.619276-506-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?1749881045260878640?= X-GMAIL-MSGID: =?utf-8?q?1749881045260878640?= 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/nfc/pn544/i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/nfc/pn544/i2c.c b/drivers/nfc/pn544/i2c.c index 9e754abcfa2a..8b0d910bee06 100644 --- a/drivers/nfc/pn544/i2c.c +++ b/drivers/nfc/pn544/i2c.c @@ -866,8 +866,7 @@ static const struct acpi_gpio_mapping acpi_pn544_gpios[] = { { }, }; -static int pn544_hci_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int pn544_hci_i2c_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct pn544_i2c_phy *phy; @@ -954,7 +953,7 @@ static struct i2c_driver pn544_hci_i2c_driver = { .of_match_table = of_match_ptr(of_pn544_i2c_match), .acpi_match_table = ACPI_PTR(pn544_hci_i2c_acpi_match), }, - .probe = pn544_hci_i2c_probe, + .probe_new = pn544_hci_i2c_probe, .id_table = pn544_hci_i2c_id_table, .remove = pn544_hci_i2c_remove, }; From patchwork Fri Nov 18 22:44:00 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: 22783 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466364wrr; Fri, 18 Nov 2022 15:39:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf5DV6P4sJqWqGrDUpWUc7och2AEhSNkoNLXtBZB/pexDnfkQmKKtF4j0c2y9WLOcmtmQI5z X-Received: by 2002:a17:906:bce9:b0:7ad:960d:3a4d with SMTP id op9-20020a170906bce900b007ad960d3a4dmr7437456ejb.522.1668814788992; Fri, 18 Nov 2022 15:39:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814788; cv=none; d=google.com; s=arc-20160816; b=lYSFzZ7J4Bq6LWfQ0Sl6M7l6fbrBrovzi7Jeo3oSfa7zijoh/DulrEJS2Xz/CfXgLD ujtkLdcvfehu+doeJ76Ur9rLllYfBoqwELebm18pwbYDtMBtqjJtKZvlqNaH89fvomDh Xwdot7oV8bl4g+Wjh/OmFEZWkxj77PErzKN2DKzmONbMVbo/7NzchxnK0MdPycg80Wb9 UKkrw1aM3/Y0HqkYTOHYlhuFJ3KxjZ0yzfWMs+5K1AcKj1AZFr94eQAe7cOKAihBmPiP j3hfCNQ4CMXfLx90YfytaKNy9nOa74QNXihjdhcLvRDBFG948YAI3Y3bYs1WT+8WX14Y L4vA== 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=pXsI9gr23XFThxiezDxXj/aak8C2jyC3qysC+sLIHWU=; b=E/RnouFVD4fpQ7LXoiyW+ENxyR8p2ojoJ3eXnIMIITK6p/bzY5rXF/z3eeNOR4gAAA GhWn0Vz7UtRbg9CfAYr6JUHm9OAW+2zY1ssHlsSi9PgBF29sz0PKh5Dv25g5kSMoT4ZX 18VWrfcXmzYFhLEV86wtCpGHqEHFtCKlZHFXDveV5+m39QYcH09E138G6TtMCkb+DhRY CVWGdAoDfZOlGJIuSJ/SdtESTOYoivReeOtbsAPXbRfd5BfyMeis2bEx6w3+wlMdme38 +5f8Kyp50F+7ZCBWKEAVcwEW5bKGMNlve7LjYFXB2kPYrIHYJY5ESREfVvcwNPpvjD0E D54g== 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 g26-20020a50ee1a000000b00467a8cb10e2si3902821eds.282.2022.11.18.15.39.25; Fri, 18 Nov 2022 15:39:48 -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 S236381AbiKRXib (ORCPT + 99 others); Fri, 18 Nov 2022 18:38:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236280AbiKRXc0 (ORCPT ); Fri, 18 Nov 2022 18:32:26 -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 33CF3A6595 for ; Fri, 18 Nov 2022 15:20:08 -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 1owA9T-0004hO-6g; Fri, 18 Nov 2022 23:48:03 +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 1owA9Q-0058mJ-Qu; Fri, 18 Nov 2022 23:48:01 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9Q-0000Ph-Vt; Fri, 18 Nov 2022 23:48:00 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Krzysztof Kozlowski Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 506/606] nfc: s3fwrn5: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:00 +0100 Message-Id: <20221118224540.619276-507-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?1749879136138859443?= X-GMAIL-MSGID: =?utf-8?q?1749879136138859443?= 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/nfc/s3fwrn5/i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/nfc/s3fwrn5/i2c.c b/drivers/nfc/s3fwrn5/i2c.c index ecdee838d25d..2517ae71f9a4 100644 --- a/drivers/nfc/s3fwrn5/i2c.c +++ b/drivers/nfc/s3fwrn5/i2c.c @@ -177,8 +177,7 @@ static int s3fwrn5_i2c_parse_dt(struct i2c_client *client) return 0; } -static int s3fwrn5_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int s3fwrn5_i2c_probe(struct i2c_client *client) { struct s3fwrn5_i2c_phy *phy; int ret; @@ -262,7 +261,7 @@ static struct i2c_driver s3fwrn5_i2c_driver = { .name = S3FWRN5_I2C_DRIVER_NAME, .of_match_table = of_match_ptr(of_s3fwrn5_i2c_match), }, - .probe = s3fwrn5_i2c_probe, + .probe_new = s3fwrn5_i2c_probe, .remove = s3fwrn5_i2c_remove, .id_table = s3fwrn5_i2c_id_table, }; From patchwork Fri Nov 18 22:44:01 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: 22911 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472917wrr; Fri, 18 Nov 2022 16:01:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf49e3us9qMl5ogkwn9maDakujd7Q3PKU3Gb5zpC3DGVtZQIC77q6dHn45fAJVXQ7T8SrOHX X-Received: by 2002:a62:bd18:0:b0:562:3aed:e40c with SMTP id a24-20020a62bd18000000b005623aede40cmr10303337pff.2.1668816068785; Fri, 18 Nov 2022 16:01:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816068; cv=none; d=google.com; s=arc-20160816; b=teC3IOM0XQI5GUSEunkgFkn6m+i0XSdhmNIwcCPmaQ5y9J59VXtTfI2fzYIFThd8ul C+z0d+2WVnwVKPvvM5MmoNlmcUZ/cNRYGAVqQXPqGmUWBMpWRncUB0G4Irkn4jLyRuYD FOMjB1r9Eo1ebzrV87AO+oWVrRht6Rhe080xp2es7YEG5ezvzlFB+S0UZRFiVkB7A5GQ JoNkEmA3usU6sWIVoVnScsImEBjqLt7U1b73ALDFrOESDYt1iDmfPn+Xn1hRzlM+HQ4J TnmuG0O0+xKDISDd4fcKM79LP0n6hxoJLd2Mp3LSu2C2i8i6VKyGnWARJLTSVEdGqFbK /ncQ== 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=SA8Dw8vgTDfrUr9QH907Y1Y2JZNWlmbRQhByJCR7q+I=; b=v2xE+rsVse56B6qGm4mOqrEW0nj2KfJ8kv/iM4SgLWvZStkRCaioyBmmq1jNt9yl3x bJ9KnauDerAST1WjjkcwZN53Xbu1r8zeKqR8DwWrrcsEoaRoAtdJ8u1c67rKpXJtEFIo XAON3fN0mLZBFaOtDfb7XBJQcziPPOAEQnLVIdw84dykxk61KgjyCJ3nRDzDWOGzBd43 e+Syx41Z12Ph1ykJz+N0GXIDi7eE3gfG4flwiPZ4FfqfJbgADNzYUPlmzTO8tt+iKgss QyXHf3CvUhK+JPxIAySbWG+mvqRtjcrqfWh9SS1j8B+ojj+bnEZ48Op/9C87zf25bXHK Z9tA== 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 lr11-20020a17090b4b8b00b002009d750a2dsi9332007pjb.58.2022.11.18.16.00.55; Fri, 18 Nov 2022 16:01:08 -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 S233604AbiKRX4H (ORCPT + 99 others); Fri, 18 Nov 2022 18:56:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235284AbiKRXyv (ORCPT ); Fri, 18 Nov 2022 18:54:51 -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 D6F29CB694 for ; Fri, 18 Nov 2022 15:27:58 -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 1owA9U-0004j1-0i; Fri, 18 Nov 2022 23:48:04 +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 1owA9R-0058mX-Dd; Fri, 18 Nov 2022 23:48:02 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9R-0000Pl-55; Fri, 18 Nov 2022 23:48:01 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Krzysztof Kozlowski , Andy Shevchenko , Hans Verkuil , Adrien Grassein , Luca Ceresoli Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 507/606] nfc: st-nci: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:01 +0100 Message-Id: <20221118224540.619276-508-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?1749880478094837086?= X-GMAIL-MSGID: =?utf-8?q?1749880478094837086?= 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/nfc/st-nci/i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/nfc/st-nci/i2c.c b/drivers/nfc/st-nci/i2c.c index 89fa24d71bef..6b5eed8a1fbe 100644 --- a/drivers/nfc/st-nci/i2c.c +++ b/drivers/nfc/st-nci/i2c.c @@ -195,8 +195,7 @@ static const struct acpi_gpio_mapping acpi_st_nci_gpios[] = { {}, }; -static int st_nci_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int st_nci_i2c_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct st_nci_i2c_phy *phy; @@ -284,7 +283,7 @@ static struct i2c_driver st_nci_i2c_driver = { .of_match_table = of_match_ptr(of_st_nci_i2c_match), .acpi_match_table = ACPI_PTR(st_nci_i2c_acpi_match), }, - .probe = st_nci_i2c_probe, + .probe_new = st_nci_i2c_probe, .id_table = st_nci_i2c_id_table, .remove = st_nci_i2c_remove, }; From patchwork Fri Nov 18 22:44:02 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: 22866 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472089wrr; Fri, 18 Nov 2022 15:59:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf75DwfrFKwqZqv30/yOj7a8XcsGZeIAPVG5sM7tEv8x3xcMIG+ygYfYSNQNFd8/999GX33n X-Received: by 2002:a17:907:170a:b0:7ad:a198:3177 with SMTP id le10-20020a170907170a00b007ada1983177mr7966752ejc.750.1668815960592; Fri, 18 Nov 2022 15:59:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815960; cv=none; d=google.com; s=arc-20160816; b=OFNlSFI28EYZdfWmJ7cpPJLm3I4C+Dxh2d8W2T0pwrVrYdsvevs1vHlNpn0ypNEfsY ZqdjH5M25bzyGyfpJydqwKun283Zuhx1qL+d1SazQwiokhfbY7EJPktx51kk00vm4RUo JdU38YFmztFBvWKawQZCR/Cs1+TopYdJwxp2YajWw2BSVcT6OSN98ZbThxSht/ld32GK kuaATMiMyVjzOwP7wOaQZmdTfeqNN7nX8SGvQVPY087rvIFo7TvLHlbg0qY1Mkqy3y/a EEkBzfU/66/Dj1poCtCl2DJalEXtqsiaxhdZUMn1xLQdCzA+wlhpJBiECamE+5FVrvoy UO0w== 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=zwNQLyzaIapxdCgz0yvI3Jtq9Zr8wLqKSGY6sRnL028=; b=uHNraxoX6qC0ISbN0PBqSFUtCAUJUdhTm4vsM2z0V2NzOQmwyUhn5LzDczex9yR676 Ll9V4Pk32kZ0xVvXT1TIB2+4ce6X3FKa24BQgf46HOvN45iXGvceVnFcaW1Bwj5g4ScC MKaE7VkgIszuRPiWYh1XG0SCvUbP34swcs4unG+RDCzfPjgW7rPGuHQD/z4TzN06q254 Ug6qfip7g+1lXQgnqdpOlGq8Lwe+usYdt83lobR8XTDDHtuhaV2OpGF/udp0rzmixEfG oRMrcRt7aEB2THYABevQCncI3iGQcMMTrAIg5kH1pNE37iPbtTX5osBK7HwEsRRu20Tt mjww== 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 e17-20020a056402191100b0046013b7e7efsi4584339edz.631.2022.11.18.15.58.55; Fri, 18 Nov 2022 15:59:20 -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 S236551AbiKRXnM (ORCPT + 99 others); Fri, 18 Nov 2022 18:43:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236837AbiKRXl4 (ORCPT ); Fri, 18 Nov 2022 18:41:56 -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 E3D3BC6BE5 for ; Fri, 18 Nov 2022 15:23:20 -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 1owA9U-0004jf-6u; Fri, 18 Nov 2022 23:48:04 +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 1owA9R-0058me-Jl; Fri, 18 Nov 2022 23:48:02 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9R-0000Po-BZ; Fri, 18 Nov 2022 23:48:01 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Krzysztof Kozlowski , Jakub Kicinski , Srinivas Pandruvada , Yang Yingliang , Colin Ian King , Wei Yongjun Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 508/606] nfc: st21nfca: i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:02 +0100 Message-Id: <20221118224540.619276-509-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?1749880365115298848?= X-GMAIL-MSGID: =?utf-8?q?1749880365115298848?= 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/nfc/st21nfca/i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/nfc/st21nfca/i2c.c b/drivers/nfc/st21nfca/i2c.c index 76b55986bcf8..55f7a2391bb1 100644 --- a/drivers/nfc/st21nfca/i2c.c +++ b/drivers/nfc/st21nfca/i2c.c @@ -487,8 +487,7 @@ static const struct acpi_gpio_mapping acpi_st21nfca_gpios[] = { {}, }; -static int st21nfca_hci_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int st21nfca_hci_i2c_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct st21nfca_i2c_phy *phy; @@ -598,7 +597,7 @@ static struct i2c_driver st21nfca_hci_i2c_driver = { .of_match_table = of_match_ptr(of_st21nfca_i2c_match), .acpi_match_table = ACPI_PTR(st21nfca_hci_i2c_acpi_match), }, - .probe = st21nfca_hci_i2c_probe, + .probe_new = st21nfca_hci_i2c_probe, .id_table = st21nfca_hci_i2c_id_table, .remove = st21nfca_hci_i2c_remove, }; From patchwork Fri Nov 18 22:44:03 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: 22762 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465824wrr; Fri, 18 Nov 2022 15:38:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf4PGL6eg921eUbeKtEHoJNNgVhActjNBnCZsKeR0BFSjILVkrQMNfJZM8grdtonpz9h/cCJ X-Received: by 2002:a17:906:cf85:b0:78d:b66d:749f with SMTP id um5-20020a170906cf8500b0078db66d749fmr7526500ejb.566.1668814713876; Fri, 18 Nov 2022 15:38:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814713; cv=none; d=google.com; s=arc-20160816; b=XAQ/nonQXwRu8FAPkYqu65PdiRupg1H47KB/RLI5MFhp4NHmZvSAckL1jUQWggqnvh 1s79cFAb/v2mp5IKFgALGDIbVgkmfQOTyLYlY6lkBsSWJrFKZEOS3h+WwNWPZyx6Vyih 5z+uOEdxHufUQbjiR5gdEglAdVzECmfxCMoqg14sgnri7baP2Egm/Qf7iJYg8ezAjYZH 0WxlMFGhe+1K/0nSaSzdnzByN8fd+eBNyfU+cndm3HDOYuWXY3A9wU/RSbtCWhSB/HZo sesl9XbKp4T2LRcsP0hC1fzjBQwbMjMC5E408AYKzrp1gK1L01WS+cqgEvMyWXhLDXpu OnhQ== 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=zSulsYfqQyJlnhoBFGL+28II5t6XtDx+9jgIQKkJN2Q=; b=rMKv94kJChJ8vSKr3Z7p3K9Zm469sW3iqv/Yy6rOdY1K5kTHrScLeWZzVPcc4/DH8U KyffcA/hNPBo+4/p7TdyhrNPrQRwCB6MZAF6U7iDrzjTlLTBvksrL/sJ8vre9pxpZEJC hycBZz4ETCithnZIYJ35iUo4CbrlSlr3ZpnCRgcjQDoN3+MMokYfGMXwnasuKS2V0naA sMCiSA8T80Vgg0eoCqYZdHEAY964IFjEo5s7B6pZIwkmYYvDAWeudRXUCdbLy/0nSEt8 zmyZXgDv7jy2nlDLpCPVmdXdHW9yaj/y/ShPTev8lHtnSfk1JRrgNF5M5uQ/xAR7tTsX 8J4Q== 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 v6-20020a056402348600b004661ece3fabsi4587742edc.575.2022.11.18.15.38.09; Fri, 18 Nov 2022 15:38: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 S236404AbiKRXgU (ORCPT + 99 others); Fri, 18 Nov 2022 18:36:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236374AbiKRXct (ORCPT ); Fri, 18 Nov 2022 18:32:49 -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 1CE5E65E42 for ; Fri, 18 Nov 2022 15:20:24 -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 1owA9U-0004kI-F9; Fri, 18 Nov 2022 23:48:04 +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 1owA9R-0058mk-PI; Fri, 18 Nov 2022 23:48:02 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9R-0000Pr-H2; Fri, 18 Nov 2022 23:48:01 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Rob Herring , Frank Rowand Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 509/606] of: unittest: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:03 +0100 Message-Id: <20221118224540.619276-510-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?1749879057523856952?= X-GMAIL-MSGID: =?utf-8?q?1749879057523856952?= 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 Reviewed-by: Frank Rowand --- drivers/of/unittest.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index 1d810c0e18f8..bc0f1e50a4be 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c @@ -2508,8 +2508,7 @@ static struct platform_driver unittest_i2c_bus_driver = { }, }; -static int unittest_i2c_dev_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int unittest_i2c_dev_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct device_node *np = client->dev.of_node; @@ -2541,7 +2540,7 @@ static struct i2c_driver unittest_i2c_dev_driver = { .driver = { .name = "unittest-i2c-dev", }, - .probe = unittest_i2c_dev_probe, + .probe_new = unittest_i2c_dev_probe, .remove = unittest_i2c_dev_remove, .id_table = unittest_i2c_dev_id, }; @@ -2553,8 +2552,7 @@ static int unittest_i2c_mux_select_chan(struct i2c_mux_core *muxc, u32 chan) return 0; } -static int unittest_i2c_mux_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int unittest_i2c_mux_probe(struct i2c_client *client) { int i, nchans; struct device *dev = &client->dev; @@ -2619,7 +2617,7 @@ static struct i2c_driver unittest_i2c_mux_driver = { .driver = { .name = "unittest-i2c-mux", }, - .probe = unittest_i2c_mux_probe, + .probe_new = unittest_i2c_mux_probe, .remove = unittest_i2c_mux_remove, .id_table = unittest_i2c_mux_id, }; From patchwork Fri Nov 18 22:44: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: 23039 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp480546wrr; Fri, 18 Nov 2022 16:20:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf6gf3sVSH0MMngaxLsaTRIAmYwYj6KaL4pdgwPRGfNqCF/y1wgCg6Ltjd41o0x9FsNhxZ/6 X-Received: by 2002:aa7:cd74:0:b0:462:3340:757b with SMTP id ca20-20020aa7cd74000000b004623340757bmr8031850edb.308.1668817232268; Fri, 18 Nov 2022 16:20:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668817232; cv=none; d=google.com; s=arc-20160816; b=rWld/UjK4Igytm8jtrHCwAy7zR1gfqJBajyrnG9r+sQIKVG/X0CjGS9eHHQMqokofa fJzqXk3Lo41Z7lOYHNUngNh+KF/nXYduLOFlxRTauwy79kmEpKagcvgHE6ZIqG0tbTWP CW/tGU5TPVamT6Q7MxfSjssmaUASxJmynCaltVlvYooXjes1DQWC3HC1401iGXJdtYF3 mmfpjMSKvfM7XeQDKRKCBvqA1wfRfpLaUflY3gupySc8q3WwHkJf1gPr2XQqbjil72Eq s5Z2Mht+Ee9Wob67NDkCM7Z5IVR2RW5OxKxDwjgGSbB8xi/Qs2yEI3ZWt+IUf2qSJG2G NArw== 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=Re3jTJPsj437JPs77Io4rfhlklaO9tl4iA89zhNsWGw=; b=nBcNNh+j+IyqVPDifPNFV9CTvg+Ocz5sS5rnUEOMWr8WwEwvx3Smh9TfIvEV9Ddg2k KQzDdD2USzbT/LAaqKFj24UxBJ5wkAN6gCl14szK9eMryeewHasjwrfze8xMMPfPFtRe 2kKgOibJEB9FXL0EUUIy1qIgJ1JFWIkIT6lGBoDrhClQjwFjlyp4w5Z0j7k4KeBV7Ik1 Q8eNQrcvLvx0MGoHH1xwoxtyXV19yda7rixZZDaLbGPcap6tebDg1rF4crW5gY79bhJL rNE5Sv8Q/twNJGTyxsZmUptFrJ8WQzm3eWCRnEmPhm31f0rc9fANjegp9NZBO3Ttzw34 8tXA== 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 xb1-20020a170907070100b0078d44c5da0esi4054371ejb.667.2022.11.18.16.20.08; Fri, 18 Nov 2022 16:20:32 -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 S231669AbiKSASz (ORCPT + 99 others); Fri, 18 Nov 2022 19:18:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238370AbiKSARo (ORCPT ); Fri, 18 Nov 2022 19:17:44 -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 B4D2AFAE8A for ; Fri, 18 Nov 2022 15:35:53 -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 1owA9U-0004iz-0C; Fri, 18 Nov 2022 23:48:04 +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 1owA9R-0058mW-DM; Fri, 18 Nov 2022 23:48:02 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9R-0000Pu-Mr; Fri, 18 Nov 2022 23:48:01 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Linus Walleij Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 510/606] pinctrl: mcp23s08: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:04 +0100 Message-Id: <20221118224540.619276-511-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?1749881697733153160?= X-GMAIL-MSGID: =?utf-8?q?1749881697733153160?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/pinctrl/pinctrl-mcp23s08_i2c.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-mcp23s08_i2c.c b/drivers/pinctrl/pinctrl-mcp23s08_i2c.c index e0b001c8c08c..b635c5737e0c 100644 --- a/drivers/pinctrl/pinctrl-mcp23s08_i2c.c +++ b/drivers/pinctrl/pinctrl-mcp23s08_i2c.c @@ -8,8 +8,9 @@ #include "pinctrl-mcp23s08.h" -static int mcp230xx_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int mcp230xx_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; unsigned int type = id->driver_data; struct mcp23s08 *mcp; @@ -100,7 +101,7 @@ static struct i2c_driver mcp230xx_driver = { .name = "mcp230xx", .of_match_table = mcp23s08_i2c_of_match, }, - .probe = mcp230xx_probe, + .probe_new = mcp230xx_probe, .id_table = mcp230xx_id, }; From patchwork Fri Nov 18 22:44:05 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: 22769 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465857wrr; Fri, 18 Nov 2022 15:38:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf5gd8g3GK+DiNxlfX9EV3ah3nSWrWFrLQn0/rGhzeJNjGfIGOCIrWaceWYsRIlAFC4SLuOQ X-Received: by 2002:a17:906:3951:b0:7ae:ed2:5367 with SMTP id g17-20020a170906395100b007ae0ed25367mr7673748eje.521.1668814719276; Fri, 18 Nov 2022 15:38:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814719; cv=none; d=google.com; s=arc-20160816; b=e3LGGwuiupphAsJuverl3raJa1Adch5JmU0HPhPZ1lSI+4JL+WgMIAeBIFR/Kv+13K ATZpxgnUGaihokMUKym+Hbb9QCvz10nJZ9u2h2JrwQ8EEUbx2KXRLQP6N+Lri91IDeQe DkVhlkRZiVmJLyLjjHe7VtNoPuP1uhQ73WgzzUc87iLU/5p3zry3hGxjLW571bqHy3DG ZsTGiCVNTZTlvOaMhAUMRnZxdw2vv6f7c1m3W43f+SIKf6PwQLJ59ljn5XEqzqz2INXm acEyMB+tQHnRdjp2tp5CKI1UPz5Djfguj0cwInj0DNEV5W9egWOC3VxGurOqSj9BIlvs VLLA== 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=KOP+WZGcTwNghN/e+oJnXrCLRIVwRkYtolV5orYZwfU=; b=HBzWdxmsLFzleg16VUYnOCmohy5ttTr5FcVw45kqfOUtRXm3VywJ4AFWO/2RgmswTC ZzT83PTGxJvAu7PlVcWPXiVY1M2j5tcOij0Alj0K9t5NOTh30QlLauKD466ncrcJiuMy HSHL5BaIAfJTz+LqiYvwAIlfyjM2iMbeoKoV9jNii3A6jyX5CKtH1urrxeAojvlkWMiT Mo+ozFFTOm09dDo7+F3SkApsz2G9ElfQweRQQKlO/Ynzj1LP0Lx6uJh07dRtESPx/gp1 rxFZncqLGh2BTpvUYbkBwbzvrmVgz3EBMrb1WMYpsTIbSIqJ5OnO03RNgXAwDpDDMotO 5dEA== 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 i19-20020a1709064fd300b007a087ccd275si4342936ejw.384.2022.11.18.15.38.15; Fri, 18 Nov 2022 15:38:39 -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 S236450AbiKRXgu (ORCPT + 99 others); Fri, 18 Nov 2022 18:36:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236425AbiKRXc5 (ORCPT ); Fri, 18 Nov 2022 18:32: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 CD09883E9A for ; Fri, 18 Nov 2022 15:20:47 -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 1owA9U-0004kF-F6; Fri, 18 Nov 2022 23:48:04 +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 1owA9R-0058mj-PB; Fri, 18 Nov 2022 23:48:02 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9R-0000Q1-SW; Fri, 18 Nov 2022 23:48:01 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Linus Walleij Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 511/606] pinctrl: sx150x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:05 +0100 Message-Id: <20221118224540.619276-512-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?1749879062848812457?= X-GMAIL-MSGID: =?utf-8?q?1749879062848812457?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/pinctrl/pinctrl-sx150x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/pinctrl-sx150x.c b/drivers/pinctrl/pinctrl-sx150x.c index a87ea3b95cf4..0b5ff99641e1 100644 --- a/drivers/pinctrl/pinctrl-sx150x.c +++ b/drivers/pinctrl/pinctrl-sx150x.c @@ -1094,9 +1094,9 @@ static const struct regmap_config sx150x_regmap_config = { .volatile_reg = sx150x_reg_volatile, }; -static int sx150x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sx150x_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); static const u32 i2c_funcs = I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WRITE_WORD_DATA; struct device *dev = &client->dev; @@ -1252,7 +1252,7 @@ static struct i2c_driver sx150x_driver = { .name = "sx150x-pinctrl", .of_match_table = of_match_ptr(sx150x_of_match), }, - .probe = sx150x_probe, + .probe_new = sx150x_probe, .id_table = sx150x_id, }; From patchwork Fri Nov 18 22:44:06 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: 23004 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477567wrr; Fri, 18 Nov 2022 16:11:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf4qUhJpz10YKTeK3y/BQ7CDl+zAa4kpWJG9wruaMINa75qZhw8H63Gymyrl0XFD5yWQRoTN X-Received: by 2002:a05:6a00:140c:b0:56b:b520:3751 with SMTP id l12-20020a056a00140c00b0056bb5203751mr10098100pfu.29.1668816713974; Fri, 18 Nov 2022 16:11:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816713; cv=none; d=google.com; s=arc-20160816; b=d1bA+C1P+w2b/pXGQliOlFRanPpGAKKxWn0DiQxiaeOTh2hFVg5HQn2W0helTN9gWh g0SwKuoJA2Ede596fEQhZkWd7sRoajCaV1IRe5decxVUTuPSzZMQFoQ8pHML42zsNCWE TRmuL0dyoYFliM3XeFsIrNYrd/Sppei8E9i4xR2yT7Yjog8sIaXe45lcGUe7NK4v1nBc WV9tBJsExt6FK7bHxRbBgCq6LD5ovqI1/V0LyUnq57uVMKhDb2x8E8z02yMYFo/FhI8o OmhAsHnOr9wQYQZf9Wd33/jTR3j6IyInMO1G0C7SMGysN+sKuCuQsafutj1CVpI3K2Pq roMA== 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=ovBOkhecBsqw6tAv5Gvs5vNJSMB73MdoyA6k5D/aVzk=; b=jEC+unbwbhDXtEyUqvOINRIpXCZPqNozJJwyfrsn9cwvtdlIej2LVFgEYs85w3NcXa xYYqOs6qIldgtPcQ6XrFmLQgRe6hjzap5yJ3OKG8neQGm3ciZOsuSJI/NuVKr6xyJVsJ qTMvNf2HPX22G0gpumOPNfLP6n+Eit9EJE2WkWERK1qc2VA1xodo0nzTs4mMG9IwuoAr C00HIGAyE8DqGciXwKAXhXWOaPe9XJ6stRxMLaBWTozm1zf4Npwn7diGYU+egdpxlh1f lqgREQF2aRzaKyOGXXU62tCLdag0YKr1X0Tdtcy9pM8WjoID62ei6Mjm0oiHNcI7i+rO +tkQ== 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 bx26-20020a056a00429a00b0056cd91516b6si4828318pfb.325.2022.11.18.16.11.40; Fri, 18 Nov 2022 16:11:53 -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 S237707AbiKSALQ (ORCPT + 99 others); Fri, 18 Nov 2022 19:11:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233639AbiKSAJ5 (ORCPT ); Fri, 18 Nov 2022 19:09: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 9048CFD9 for ; Fri, 18 Nov 2022 15:33:20 -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 1owA9V-0004lN-9L; Fri, 18 Nov 2022 23:48:05 +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 1owA9S-0058mw-AK; Fri, 18 Nov 2022 23:48:03 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9S-0000Q4-1n; Fri, 18 Nov 2022 23:48:02 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Benson Leung Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Guenter Roeck , chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 512/606] platform/chrome: cros_ec: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:06 +0100 Message-Id: <20221118224540.619276-513-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?1749877991349618548?= X-GMAIL-MSGID: =?utf-8?q?1749881154511177817?= 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/platform/chrome/cros_ec_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/platform/chrome/cros_ec_i2c.c b/drivers/platform/chrome/cros_ec_i2c.c index b6823c654c3f..dbe698f33128 100644 --- a/drivers/platform/chrome/cros_ec_i2c.c +++ b/drivers/platform/chrome/cros_ec_i2c.c @@ -286,8 +286,7 @@ static int cros_ec_cmd_xfer_i2c(struct cros_ec_device *ec_dev, return ret; } -static int cros_ec_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *dev_id) +static int cros_ec_i2c_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct cros_ec_device *ec_dev = NULL; @@ -373,7 +372,7 @@ static struct i2c_driver cros_ec_driver = { .of_match_table = of_match_ptr(cros_ec_i2c_of_match), .pm = &cros_ec_i2c_pm_ops, }, - .probe = cros_ec_i2c_probe, + .probe_new = cros_ec_i2c_probe, .remove = cros_ec_i2c_remove, .id_table = cros_ec_i2c_id, }; From patchwork Fri Nov 18 22:44:07 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: 22807 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466930wrr; Fri, 18 Nov 2022 15:41:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf6sBADoGaxU6unTtokbToj/DHtCyofU74EAuvA2CvZ64rpIRE8RgyXGOMX4sVpGmsDBoSeL X-Received: by 2002:a17:907:2bc2:b0:7ae:bfdb:7706 with SMTP id gv2-20020a1709072bc200b007aebfdb7706mr8152279ejc.207.1668814893647; Fri, 18 Nov 2022 15:41:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814893; cv=none; d=google.com; s=arc-20160816; b=AB2ZBn2mdn3hNs3rNyca2Zd73BOzJpMkvPGKAKwq5xWb7C3voS0Q55KO0q6esWXTFg iFEs3FAZCiS1q168KMAgZKxeycTrUsOSmvkE+7ReT8LIuOyiISwnQVI5iKUlcoum+E9L izlj4RmQvXkc/LN4W+a5Wnwu2Nw2OL0MEsLZVqV+ZGqOJV2u6HSJi3JQ9b88Lymlcpzk R9XksJBresXRhiV4DL48PIGkWlqQPEiwd4wDU/TWmMCa+qslKOjpvrmrlNBgnfYR158C xMfNTPW4OAPZfMJOZqyG39hIrIi4oBLwRuK95IASlgyn0pdlUSU9+LZxWfzPf5zTk9uu irEw== 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=lIXhaDyBv7LQ0Sb/4MysKkC1Je6VN8c3zoOg0nro6d4=; b=N5aIxxfsRZBYbwPguWkAz9TALYuzzigbM4RB3o5Dc/Ry6hUyEjdKaumQ3FEkr0ET33 WyFQmXvuCrLXQlfEd3lULgpF3JThEAj596uSyLbGhpdymtTAxZsy/SrFlumVydW+r5Px DMH9DDW4iemUpXEhBOS+gHjA6baCbOZ1LoxKAL7z+bV5+ioiKF07048FaZ2vCED9gp6x tr7HT3BkbOzlA3/4kUCZISPyTVIYp/hRN+ld4hfx/tKWNArYo4ls12JbK/rcRDflPLys Uvn4BYOqCiypNiBHWhkj3yLPs+VDTiK3a5WttPby15rtDwYOWvFA5qcyq6S+rgppPtw2 29hA== 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 b6-20020aa7dc06000000b00459528ef81bsi3773517edu.324.2022.11.18.15.41.09; Fri, 18 Nov 2022 15:41: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 S236698AbiKRXkV (ORCPT + 99 others); Fri, 18 Nov 2022 18:40:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236782AbiKRXhy (ORCPT ); Fri, 18 Nov 2022 18:37:54 -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 00D496D978 for ; Fri, 18 Nov 2022 15:22:32 -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 1owA9V-0004la-29; Fri, 18 Nov 2022 23:48:05 +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 1owA9S-0058n0-CQ; Fri, 18 Nov 2022 23:48:03 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9S-0000Q7-7d; Fri, 18 Nov 2022 23:48:02 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Michael Hennerich , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 513/606] power: supply: adp5061: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:07 +0100 Message-Id: <20221118224540.619276-514-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?1749879246272793327?= X-GMAIL-MSGID: =?utf-8?q?1749879246272793327?= 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 Acked-by: Michael Hennerich --- drivers/power/supply/adp5061.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/adp5061.c b/drivers/power/supply/adp5061.c index fcf8ff0bc974..840db629a46c 100644 --- a/drivers/power/supply/adp5061.c +++ b/drivers/power/supply/adp5061.c @@ -694,8 +694,7 @@ static const struct power_supply_desc adp5061_desc = { .num_properties = ARRAY_SIZE(adp5061_props), }; -static int adp5061_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adp5061_probe(struct i2c_client *client) { struct power_supply_config psy_cfg = {}; struct adp5061_state *st; @@ -737,7 +736,7 @@ static struct i2c_driver adp5061_driver = { .driver = { .name = KBUILD_MODNAME, }, - .probe = adp5061_probe, + .probe_new = adp5061_probe, .id_table = adp5061_id, }; module_i2c_driver(adp5061_driver); From patchwork Fri Nov 18 22:44:08 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: 22802 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466835wrr; Fri, 18 Nov 2022 15:41:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf4I1s6cuqKpPfJ8TYxdUzUiLfBqdM6Ds3Nym8brBc9PF0cyuHlVCFRHupofnfG5z+v+Ku0y X-Received: by 2002:a17:906:ad9a:b0:7ad:8bc6:48e4 with SMTP id la26-20020a170906ad9a00b007ad8bc648e4mr7910958ejb.514.1668814872773; Fri, 18 Nov 2022 15:41:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814872; cv=none; d=google.com; s=arc-20160816; b=qiX00XZs9c+bNvvLwygfPOtAiMnjVRVxWfF378VKVdSTn4Pl/N2MZWlfqzCXOWipAl DuBwo+V4eQGQBkef4Y1m/DxyG5rdgz1H2Epp1e4cLZPyYEw5PDe92T0a+J3ecb0tgsO2 CmHsilhfDZliYGPWLYvHCUe0EDiZYjoAJQh/6PFfGOpxdd5Ay0opHT13jb7Hl7pcOhYK oqlu0+8aVkDXe1dVtNi4ecZj+2VfqJQyJSBJeze2yun0i0yxxE6CAOQDxgCD2012u6x8 ACzS0pwy9vmLvudke9Rn4dn7aNOrTIXrclzF6p7GDL1n08e4Ha33c+aFPSUIyCudTwZF KyGw== 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=LhpKb/JZ1TZXhIhggjPoaL/llhkIUyqvvQx1Zg5GoKw=; b=f/YTElGSkLRWEwP029rNzhQXPiEU5y5GfMJ3vBPJHSXmtOFYKxQvaJxQCgZsS/IXRB CSDbBk7r6UQESnjJ+GnN/PmcETJrXXdjO1V9FE0Zcajno8SWF6NJUMBG8Ss6d7RzPWeE kIBBAwBb7QPkeGOmO86dcRWoRd4TdYB4Cw8UhGQWcYNXeuib3KF13gJJK4xfz86KprT8 qn5nmQHCP+yWpslylsNCx4ZuK3dBQCA6+IYHEv7/exWlXWCS7uq0zJ7gdBH9h+vk2s5+ r/kwEKq3sC0SC0mS51hzefMp0vk2fJZnPmdUza61KgI6+HIb6K9Ea0UjG8DQ4MVHZigr q/Vw== 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 xb1-20020a170907070100b007aee7ca1161si4630874ejb.711.2022.11.18.15.40.48; Fri, 18 Nov 2022 15:41: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 S236647AbiKRXj4 (ORCPT + 99 others); Fri, 18 Nov 2022 18:39:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236761AbiKRXhv (ORCPT ); Fri, 18 Nov 2022 18:37:51 -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 2F87D6D96D for ; Fri, 18 Nov 2022 15:22:26 -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 1owA9U-0004l2-NY; Fri, 18 Nov 2022 23:48:04 +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 1owA9S-0058mt-6f; Fri, 18 Nov 2022 23:48:03 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9S-0000QC-F4; Fri, 18 Nov 2022 23:48:02 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , =?utf-8?q?Pali_Roh?= =?utf-8?q?=C3=A1r?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 514/606] power: supply: bq2415x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:08 +0100 Message-Id: <20221118224540.619276-515-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?1749879224090564115?= X-GMAIL-MSGID: =?utf-8?q?1749879224090564115?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/power/supply/bq2415x_charger.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/bq2415x_charger.c b/drivers/power/supply/bq2415x_charger.c index 6b99e1c675b8..d2cb7431dced 100644 --- a/drivers/power/supply/bq2415x_charger.c +++ b/drivers/power/supply/bq2415x_charger.c @@ -1520,9 +1520,9 @@ static int bq2415x_power_supply_init(struct bq2415x_device *bq) } /* main bq2415x probe function */ -static int bq2415x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bq2415x_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); int ret; int num; char *name = NULL; @@ -1780,7 +1780,7 @@ static struct i2c_driver bq2415x_driver = { .of_match_table = of_match_ptr(bq2415x_of_match_table), .acpi_match_table = ACPI_PTR(bq2415x_i2c_acpi_match), }, - .probe = bq2415x_probe, + .probe_new = bq2415x_probe, .remove = bq2415x_remove, .id_table = bq2415x_i2c_id_table, }; From patchwork Fri Nov 18 22:44:09 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: 23148 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488730wrr; Fri, 18 Nov 2022 16:46:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf5MyjPtM0yMB1IfhZRtKdSwDzpcN+Hy/RcBTVyMDopS3L1hcLoRsdmtsMaKCeDtfF9NuEeu X-Received: by 2002:aa7:c2d5:0:b0:467:8fb6:d11 with SMTP id m21-20020aa7c2d5000000b004678fb60d11mr8412815edp.421.1668818813001; Fri, 18 Nov 2022 16:46:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818812; cv=none; d=google.com; s=arc-20160816; b=opiSDu45qTddmuZcBg8FL+gtDq/GHiWR4t/SnlmE1J6amPxR1n56mDjKuKBRrOdQSr 20qfKrXC1d81xgxcZE7hOgu2JDSoz5xoN1PokioAh05vV51ZtrDPkQdmxwrw2IVZLwGg UiFTHEiVUJLs0TKaZkssPC3Hj6pc2+CxYQ9PZABnTAjoltUJqeD/5zIFQvsNEonRh5mC QEWuCY+ZQOisqltdBkrC7SlH4X0Zm4MAkYJZvCAlDOmWH1Vu/LMhT5kuBIkOMf9vs0Hg gov+tmobZw1ZfZEzzXwp+3YRiDiT0D8yL8+lpJ9PIYLvS9os319Y7JLCt7n0nnu/1sqk IIPw== 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=ocisA+Y1K27YroadLVwq5gTBpf9/Fxj3tmCZrZgPc1E=; b=XXDLCh96b3IeKMRoZOD5SthG1ljvQ9h6ukJnUabqZI79hKGrt97ZHuRLTXWhzd7iX+ WYLP8jKKXvJZEIrqubhQVv9Ul/Uw59YlHM7Qv+5laMm5LM4REX77MMqx+s4FclC5+oO3 U2396GbB9b/sqaodpPhVi2b7EPqQqVCEzqeumVLdRH81EfXG7e40nGPWKOTeGzHJ2QO/ r6hsRwlHIHO51ki+OGf1lphVmuBe2GG5nJBmw6HYutQOolLcy2DS2bzyAbrD4Cik7VtZ AmLcFgQbi+KtPVuGE4fEXWkPyRR30w92RMn7n4EEi6xM/1o16joPf0hxTdjWmJKRD/l9 AcGA== 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 d12-20020a170906640c00b00780ec98afafsi3647294ejm.113.2022.11.18.16.46.28; Fri, 18 Nov 2022 16:46:52 -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 S233071AbiKSAlN (ORCPT + 99 others); Fri, 18 Nov 2022 19:41:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235587AbiKSAjt (ORCPT ); Fri, 18 Nov 2022 19:39:49 -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 1FD89118676 for ; Fri, 18 Nov 2022 15:44:33 -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 1owA9V-0004mm-Fk; Fri, 18 Nov 2022 23:48:05 +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 1owA9S-0058n8-Sf; Fri, 18 Nov 2022 23:48:03 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9S-0000QG-M3; Fri, 18 Nov 2022 23:48:02 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 515/606] power: supply: bq24190: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:09 +0100 Message-Id: <20221118224540.619276-516-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?1749883355593165138?= X-GMAIL-MSGID: =?utf-8?q?1749883355593165138?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/power/supply/bq24190_charger.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/bq24190_charger.c b/drivers/power/supply/bq24190_charger.c index 2274679c5ddd..2b2c3a4391c1 100644 --- a/drivers/power/supply/bq24190_charger.c +++ b/drivers/power/supply/bq24190_charger.c @@ -1767,9 +1767,9 @@ static int bq24190_get_config(struct bq24190_dev_info *bdi) return 0; } -static int bq24190_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bq24190_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct i2c_adapter *adapter = client->adapter; struct device *dev = &client->dev; struct power_supply_config charger_cfg = {}, battery_cfg = {}; @@ -2032,7 +2032,7 @@ static const struct of_device_id bq24190_of_match[] = { MODULE_DEVICE_TABLE(of, bq24190_of_match); static struct i2c_driver bq24190_driver = { - .probe = bq24190_probe, + .probe_new = bq24190_probe, .remove = bq24190_remove, .shutdown = bq24190_shutdown, .id_table = bq24190_i2c_ids, From patchwork Fri Nov 18 22:44:10 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: 23033 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp480012wrr; Fri, 18 Nov 2022 16:18:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf4XTVehBAAm6l60+mT2Znhj7mI5EK97dWWxKSSNaIAO5mMO+9za+Rq5eq3Ye3ul5K597lFp X-Received: by 2002:a17:906:8419:b0:7a3:28c7:5835 with SMTP id n25-20020a170906841900b007a328c75835mr8278298ejx.32.1668817138687; Fri, 18 Nov 2022 16:18:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668817138; cv=none; d=google.com; s=arc-20160816; b=zMvf4iSAzTOYlSown4p7JqaXHA6ikpIAAzJGBOf3kBuQ2+qSitXNqXKxKU9zr+11Sk B4r1ZCHQxMhu+lgPLft+Xj6wJ0//BZbaQbwnleRiKTOr5g5mwQD8QAb/qjrHVH8PmyPj GMuxaGcmwVTW2KD4XuG2frHIzZj3gTSGtkwYxA/wE99+7/m/pDDQ8qsCZ4oXa4+HuMr+ 6ctnhvfis1Oy70f5mE1J6brdQRYauRRvVAa9rVayAPKCp/q7+bEdDNG7owEpY+dXmarE WWkZYEbzPjThzh3bSyokSRhke0Z2Vtd1zg1r7xEC4/uPj1Radc5oVE70brGLMhHve9kb SeCw== 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=6ZAVN6tQs+HhCLaO83wzDcZA72RX5zXKAGbqY8ylpc0=; b=I68ayEtKr7eayHlIunbRLJI/x3BoBquf7wjPV2VkyEcaFO6UsYsnw1MbEob2hgH1hg YOf9/oLwn2iQhgv44vmKuS3cNsqynHtMNiA6bBlF6/bE9KE8ovCwEmx5oFHx3uhVq2Tw RY5tBAhstJBhhRqRBc6wTEjRoWb/n2VMYhN61SRx1WZVnJLocd9RCOD686PYK36Q/cHl oSH0Ug2H1omaYKUQtI0Ui4oNH6KXzBnInNJopNpnmtcfCCMLaQPg+7dodpdVMykIDOEO 4Ij/sPtY8T5mLDSFMGoInx0RgcS48amlOzqo5egVgTBcOfVzYlM3DwwV7VG23lw+vew7 RqJg== 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 g14-20020a1709065d0e00b007ae9abf1990si4696966ejt.352.2022.11.18.16.18.35; Fri, 18 Nov 2022 16:18:58 -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 S231925AbiKSAQP (ORCPT + 99 others); Fri, 18 Nov 2022 19:16:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237846AbiKSAPs (ORCPT ); Fri, 18 Nov 2022 19:15: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 86AAEF7348 for ; Fri, 18 Nov 2022 15:35:14 -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 1owA9V-0004mo-Go; Fri, 18 Nov 2022 23:48:05 +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 1owA9S-0058n9-Sm; Fri, 18 Nov 2022 23:48:03 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9S-0000QL-S4; Fri, 18 Nov 2022 23:48:02 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 516/606] power: supply: bq24257: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:10 +0100 Message-Id: <20221118224540.619276-517-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?1749881599546901400?= X-GMAIL-MSGID: =?utf-8?q?1749881599546901400?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/power/supply/bq24257_charger.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/bq24257_charger.c b/drivers/power/supply/bq24257_charger.c index a309bbedfe52..ab4c49788c58 100644 --- a/drivers/power/supply/bq24257_charger.c +++ b/drivers/power/supply/bq24257_charger.c @@ -947,9 +947,9 @@ static int bq24257_fw_probe(struct bq24257_device *bq) return 0; } -static int bq24257_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bq24257_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct i2c_adapter *adapter = client->adapter; struct device *dev = &client->dev; const struct acpi_device_id *acpi_id; @@ -1167,7 +1167,7 @@ static struct i2c_driver bq24257_driver = { .acpi_match_table = ACPI_PTR(bq24257_acpi_match), .pm = &bq24257_pm, }, - .probe = bq24257_probe, + .probe_new = bq24257_probe, .remove = bq24257_remove, .id_table = bq24257_i2c_ids, }; From patchwork Fri Nov 18 22:44:11 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: 23075 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487022wrr; Fri, 18 Nov 2022 16:41:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Uz3tdJisTJPhkl3clf/cs7wv2Jx714LeaXq39aDjskqNWVtwqhEnw++IYn9XA9j+puCL6 X-Received: by 2002:aa7:cd74:0:b0:462:3340:757b with SMTP id ca20-20020aa7cd74000000b004623340757bmr8071242edb.308.1668818510868; Fri, 18 Nov 2022 16:41:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818510; cv=none; d=google.com; s=arc-20160816; b=wApc+DufJRK3YjLWLBaP8am3wszzOa7ySJ/IpqFh7j5rbM6QnXe5rzPfYKTabYSBBI Fdpdmx7k2wqFiUAfSVlgQovCNEfjr4AhdSof7YuAtg0dfSxssCfj641TZaS60CE4o6Ya Cg1D8BeTlrqFLQrsm25g0MeILnypHLPmM6roFI86vxQEpnicbmNnWZthmVo8Ab0jIKQm 6I8tCkgfECu2P5s+IpyPGkrqwF7DyuXpCcISe3NcnGsbF4VF2ZmDF0OVJ2eCgb2DdfJq dRtonu9YUO91PzrnTIcj/QDUtOJOtVeIUET5oQ/ivaT65Sy0uz2x1JG9KZkwv4guY1XO CnSw== 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=81U5Y1LJSuj0Jl1i5Jv2hJQ8IPoYTijXBEVbN49LbvE=; b=05+GFEiGqfKdzrpwi3XpMUSSLRzHC4hGR/7p7ILh5hq3da85Zkg8jNwjhDrqCekL1a MV2bmgQu1EOkLktZQLHQsnHY2DvlhZhOcF27BCgtDny35xSeYztFODpc5rAaMkdPj/Yi lJQ0J/D2edkrJduRTiWBy8vGC/Q6hCmSv6S1M5OTO9SJKrUFLtkXA8VMX2bpMqHLUkXr HJwTFtqx12ztKb4Ln7F6rUgWXeCr/npOjFdD0UFN571NqJGZAzDk8k9p6lQF+IQCLsK2 Z6nQHmYa2x2hPosi5Zwj21yJRPLL2ycpZTs95gykGaQDLKI9LNuYtC/h+uHJoRGJtkMz QtDA== 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 ht22-20020a170907609600b007919dbd3770si3907619ejc.485.2022.11.18.16.41.25; Fri, 18 Nov 2022 16:41:50 -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 S233900AbiKSA12 (ORCPT + 99 others); Fri, 18 Nov 2022 19:27:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235382AbiKSA0x (ORCPT ); Fri, 18 Nov 2022 19:26:53 -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 38BCDBF595 for ; Fri, 18 Nov 2022 15:39:19 -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 1owA9V-0004mn-E4; Fri, 18 Nov 2022 23:48:05 +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 1owA9S-0058nA-TA; Fri, 18 Nov 2022 23:48:03 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9T-0000QO-2T; Fri, 18 Nov 2022 23:48:03 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 517/606] power: supply: bq24735: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:11 +0100 Message-Id: <20221118224540.619276-518-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?1749883038855984004?= X-GMAIL-MSGID: =?utf-8?q?1749883038855984004?= 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/power/supply/bq24735-charger.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/bq24735-charger.c b/drivers/power/supply/bq24735-charger.c index 3ce36d09c017..cfca3a82d5a8 100644 --- a/drivers/power/supply/bq24735-charger.c +++ b/drivers/power/supply/bq24735-charger.c @@ -352,8 +352,7 @@ static struct bq24735_platform *bq24735_parse_dt_data(struct i2c_client *client) return pdata; } -static int bq24735_charger_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bq24735_charger_probe(struct i2c_client *client) { int ret; struct bq24735 *charger; @@ -506,7 +505,7 @@ static struct i2c_driver bq24735_charger_driver = { .name = "bq24735-charger", .of_match_table = bq24735_match_ids, }, - .probe = bq24735_charger_probe, + .probe_new = bq24735_charger_probe, .id_table = bq24735_charger_id, }; From patchwork Fri Nov 18 22:44:12 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: 23090 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487614wrr; Fri, 18 Nov 2022 16:43:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Drfqo9GFHtT60Da90tpMNM/4tbFcV8ZFZUfdoLb1f8VRiTZg52vFLnqy5vAmojlBOZzxW X-Received: by 2002:a17:906:bce9:b0:7ad:960d:3a4d with SMTP id op9-20020a170906bce900b007ad960d3a4dmr7561508ejb.522.1668818614677; 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=fAbSe8jh3mkiZg29iAtTnCsKuuGIeYttKX6FFXzhOztXkdFaPqNeiC/yRkN5SGAIVj lJEFqzpaOZb2Ve6fS2Qq5zFVtoGOcaLU1DInsuD63X2/lTJ5H+g8QVyzxvcqwBxJx3pG H6I3Oo8MoFcj4A0YwTCIymCzFiwbhOBi4bv3zewJbesyJfdMXzbVmKnTW+Vq3EMbGG9b fbMHO9+qF/S1Zv/9YTENMSdr6wyzlk4k/KbVgaqqIvqwADrcbcBDmXjZs5l2E/ebBhfW NSFnwJq2TghceAqsYyGLSCd4CmAa4DIAIV82AAUf1q5iSoP600FdopQjdaJnCnZabwNe pILA== 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=uYRk4gVoeNdTMb0SdPtRXc+wy2TLdKKkZkgKxkd0N2s=; b=Cgha3D8GqKw9eqqKbIYdFeCPJkCWFevN/3zUDsLBVtS2Q4Dju3umB1knbMSEX/WkaW 6qXwO31toPy3l+rLuDuEoUG+gVhWkv/EPxewUb9/echyeSNdc4v06Rf5rjbJ61jdPN8K gbcgKNueqqni6p6tEH8X/h2U5tsN3nAcCP5Nc9kAwnXMeg8qokXpR2j/OAD9I7PwOJnX 07r3B4nBOB70+cFJMjl2GDmYDeg701xyyir8nR749JeM07UhVsbw6tXe522G3IvNK2JB ST2wRfxUXP+w3RAzNq/kQ6UIB/5ahevhUrRxaNv+sRfDQnIkSiKqBld3P1E9t2zS2dya NA3Q== 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-20020a1709072ce300b0078e06df0d29si3825350ejc.705.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 S237974AbiKSAZo (ORCPT + 99 others); Fri, 18 Nov 2022 19:25:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236919AbiKSAZP (ORCPT ); Fri, 18 Nov 2022 19:25:15 -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 B11664A051 for ; Fri, 18 Nov 2022 15:38:33 -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 1owA9V-0004nI-Nw; Fri, 18 Nov 2022 23:48:05 +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 1owA9T-0058nI-27; Fri, 18 Nov 2022 23:48:04 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9T-0000QU-Cf; Fri, 18 Nov 2022 23:48:03 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 518/606] power: supply: bq2515x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:12 +0100 Message-Id: <20221118224540.619276-519-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?1749883147324724486?= X-GMAIL-MSGID: =?utf-8?q?1749883147324724486?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/power/supply/bq2515x_charger.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/bq2515x_charger.c b/drivers/power/supply/bq2515x_charger.c index 4f76ad9c2f18..da224ae8dc61 100644 --- a/drivers/power/supply/bq2515x_charger.c +++ b/drivers/power/supply/bq2515x_charger.c @@ -1078,9 +1078,9 @@ static const struct regmap_config bq25155_regmap_config = { .volatile_reg = bq2515x_volatile_register, }; -static int bq2515x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bq2515x_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; struct bq2515x_device *bq2515x; struct power_supply_config charger_cfg = {}; @@ -1158,7 +1158,7 @@ static struct i2c_driver bq2515x_driver = { .name = "bq2515x-charger", .of_match_table = bq2515x_of_match, }, - .probe = bq2515x_probe, + .probe_new = bq2515x_probe, .id_table = bq2515x_i2c_ids, }; module_i2c_driver(bq2515x_driver); From patchwork Fri Nov 18 22:44:13 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: 22813 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp470292wrr; Fri, 18 Nov 2022 15:52:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf6p8aEURmZ9+sAYWbcCERqO6tXpxisitAayaGE2FFaJ+scqyam7u8phhtmNLSxKc+HMbpJF X-Received: by 2002:a17:906:34d0:b0:78d:c16e:dfc9 with SMTP id h16-20020a17090634d000b0078dc16edfc9mr7877734ejb.327.1668815575541; Fri, 18 Nov 2022 15:52:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815575; cv=none; d=google.com; s=arc-20160816; b=L82z1/2sWRYMELR9I5WSAyMgH1BT9urkWg/aNPpx2rujK3K8P+ZFWcLXpsuSFfgCnr 7e5+H8dGbQ3gZs/2NdQu1WuJp4WLGU8xGEGENnXea9hzMarK2Zydw9kG7tCPBeH9tflf Mvr8IYTzN1dJVweVKnup7pURPxmuq8yeeV2QKoG0/QL92mtzFJ2yu/lGDhcKoiq6sW/N l9pvjkoEr5Q90YBJCnAGuIJGn6uGVgHM+0G+O1Xi+BMBGKqoJnc8A2ZXy0ZUZ5TEK6vM zpRz7saWgdUc7yrzeRJL7SR4uM0C+wFUxsFlvilh2E2CJDF2aYz3VSSoZGmBPrFjytKQ 47+A== 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=e2EdW8ZXSsrqXSzeygdqWCsLw9BQPco1sfP2FhrkRs4=; b=waN6g71G3JdTf51++dX0h4SEYMvxtiSvIvK7s2Mxp8D5W8obUVyGb/S6xF3xYShG3w ii6A4DAyzeGk4OjJgCTge9wyjBGEvsJrNcvVDeSNHLUr/kpaw7crYh416Ssx4zRNCtid bb0IHqrX9orjN/Tg6kAobUtZRfEOt0bl3xrnv1UJxUJh9/8KMfv9ulkPiQpcjuDFD95B OMpax/E4QGvng2x2EqHKJU6axlYPZLocVlja20i3KKd2eoibLH8Pn/TGJsb28M0OXovw qTFAYQ7it532wXJUfMQgEOcDXV0Ae4a/pQU+46oeN+RkBrHE1BjN/nq4scMVwPwlpdV1 Js6g== 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 x24-20020a1709064a9800b007adeb7f8e5bsi3172575eju.913.2022.11.18.15.52.30; Fri, 18 Nov 2022 15:52:55 -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 S236734AbiKRXkj (ORCPT + 99 others); Fri, 18 Nov 2022 18:40:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236794AbiKRXhz (ORCPT ); Fri, 18 Nov 2022 18:37: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 E072D950F5 for ; Fri, 18 Nov 2022 15:22: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 1owA9W-0004oT-4d; Fri, 18 Nov 2022 23:48:06 +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 1owA9T-0058nQ-Ga; Fri, 18 Nov 2022 23:48:04 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9T-0000QY-IR; Fri, 18 Nov 2022 23:48:03 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 519/606] power: supply: bq256xx: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:13 +0100 Message-Id: <20221118224540.619276-520-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?1749879960491164664?= X-GMAIL-MSGID: =?utf-8?q?1749879960491164664?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/power/supply/bq256xx_charger.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/bq256xx_charger.c b/drivers/power/supply/bq256xx_charger.c index 01ad84fd147c..db13e288e439 100644 --- a/drivers/power/supply/bq256xx_charger.c +++ b/drivers/power/supply/bq256xx_charger.c @@ -1619,9 +1619,9 @@ static int bq256xx_parse_dt(struct bq256xx_device *bq, return 0; } -static int bq256xx_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bq256xx_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; struct bq256xx_device *bq; struct power_supply_config psy_cfg = { }; @@ -1744,7 +1744,7 @@ static struct i2c_driver bq256xx_driver = { .of_match_table = bq256xx_of_match, .acpi_match_table = bq256xx_acpi_match, }, - .probe = bq256xx_probe, + .probe_new = bq256xx_probe, .id_table = bq256xx_i2c_ids, }; module_i2c_driver(bq256xx_driver); From patchwork Fri Nov 18 22:44:14 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: 22831 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471412wrr; Fri, 18 Nov 2022 15:56:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf4F/MagqM2ZQxHZYBST3Xs4GZ8EJQkyu6PG5AHFnisUfo/8Me/xByvABZH3U/eaLUYD3c9V X-Received: by 2002:a17:907:a709:b0:79f:cd7c:e861 with SMTP id vw9-20020a170907a70900b0079fcd7ce861mr7611758ejc.339.1668815805762; Fri, 18 Nov 2022 15:56:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815805; cv=none; d=google.com; s=arc-20160816; b=lmFZA4h7yKEn7a4Bxdzchp7XNgCgjPEn7JBcpAs5zFQFlo5yjofn1c/NQgwKX+8WSF JQlxjjbDdkgxHF/LMimP+z2nzWh1kyHHcmejIQPWrxI/zFIhKgyiPmvnNsI3MxVYa7PY A9A8tD/ijCpstMBQEjTHix1lCijw66NfGAmNdnE8zOZSFtK2XHX/485mlREILwn4pMRF YPhaX8CN82lYUuWz3TFoxxAMySwo2fJ34GykFU3eCyvsmBmvZU6k8M0Nj7yUVvVVqeb/ r+yWn55JwjhY1dpIkKWnqmYnrFAKZ/DYorX+jYqOrq7vITP05HWVpw7q6UMvW1eaNvFV ABhA== 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=ffY0BOiAySzPlg/xoq6lG+DiDCFQiYMirlrHuY75+Vw=; b=vAtEiSApoF0urIg542KQ1k7MuRehzyk4IqczjQpUWQY2iZ5L4pXmaFP4qH+GbgQ8SW wXYOd7cYoxi3FwNQV2VE2yT2p44S4Rojz513mVF0qRTOBEGPY1F8LNsUHi/kg9kLIHCx mEQY4MXap0+PKo+mbEVD7meEDx7FRlaumvIC8+C5XMUg6kgGMDhyoM6Qc1poWGnBxxuu U8bUpfAXbVE1Xa9WamhfUaSpD/yv1g8k6qtdINohciKPPo+FhsQ7rqpjdMfRcwmlMsqR QupC2VGTTVHcucxv3Xp9RcKGRwR3qUBJeGBpF/DlVlY5D6lRi8B6AM7I22DCs2rwpRUr r54w== 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 m9-20020a170906848900b007adf9d69424si3185181ejx.586.2022.11.18.15.56.21; Fri, 18 Nov 2022 15:56:45 -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 S236835AbiKRXqz (ORCPT + 99 others); Fri, 18 Nov 2022 18:46:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234291AbiKRXqb (ORCPT ); Fri, 18 Nov 2022 18:46:31 -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 83D88D9B91 for ; Fri, 18 Nov 2022 15:25:20 -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 1owA9W-0004on-2o; Fri, 18 Nov 2022 23:48:06 +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 1owA9T-0058nV-Lb; Fri, 18 Nov 2022 23:48:04 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9T-0000Qb-P1; Fri, 18 Nov 2022 23:48:03 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 520/606] power: supply: bq25890: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:14 +0100 Message-Id: <20221118224540.619276-521-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?1749880202180807234?= X-GMAIL-MSGID: =?utf-8?q?1749880202180807234?= 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/power/supply/bq25890_charger.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index f0362dcb935e..bfdd2213ba69 100644 --- a/drivers/power/supply/bq25890_charger.c +++ b/drivers/power/supply/bq25890_charger.c @@ -1315,8 +1315,7 @@ static int bq25890_fw_probe(struct bq25890_device *bq) return 0; } -static int bq25890_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bq25890_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct bq25890_device *bq; @@ -1515,7 +1514,7 @@ static struct i2c_driver bq25890_driver = { .acpi_match_table = ACPI_PTR(bq25890_acpi_match), .pm = &bq25890_pm, }, - .probe = bq25890_probe, + .probe_new = bq25890_probe, .remove = bq25890_remove, .shutdown = bq25890_shutdown, .id_table = bq25890_i2c_ids, From patchwork Fri Nov 18 22:44:15 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: 22646 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460545wrr; Fri, 18 Nov 2022 15:24:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf5T5pP+LMVPXKYpWiXbSkvopaHHIi/rxLlKBzkuskAUFCH4Jf7MSqQDviP4HbngU717yfIC X-Received: by 2002:a17:906:4a55:b0:7ad:9ada:79c6 with SMTP id a21-20020a1709064a5500b007ad9ada79c6mr7937785ejv.86.1668813875571; Fri, 18 Nov 2022 15:24:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813875; cv=none; d=google.com; s=arc-20160816; b=r3oTmEvPQUUKLZrhAqt9nQKBvA/6ph7V9K2CiEVmzGk91DGBwyBDA3ICL3/Te7hajo UnDs2PVL9S3cbjvH+s8Tbi7F8bWz6QTDzXnQlv41kxiGzdUb9NFBsFviD9XL+ms/A7Kb In3vzKwErWbnc3aEbyc8Eu3WlQQxX4GW8ZEjIzAOK4s3Zr0sb9/pVXUb2P/NcdIht8Qn j0BkHnF3WxoQ7Pj0rZFDy8/MKDTt4hjlFbYA3IG/F37OWhoX/8yD0mTRviz8goovgvtY lvdZFGBtMnFevcU5P8QNzTMKpp3SOhHaZjBex5epa1aJxySv5+8MHxGpKpVGAUMix2XQ c9TQ== 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=3Z718y96JRpo+5s0poO+J3ljurHtE5Sx2KsQCynyORc=; b=m9UaaJENTMgeeHvIbN5KRzLST2J/cOb4bLyXzhas5qJ5JebTdv7o2KBqbQ1vln77t4 LaWC7pUjUyaZ1uogzSFUq8gWha46zOS3XwbNOdUV3kSx/xZ4Q76CfEjUB6jrgxlwuZep 1Dk24eomEFWkmdZDB095n9s9MJjk6fH87m/fRbSYPTyaqp9Kpz6saDbG+1mOE2XH3erW k92zpwRANEXKpPi4iIqDhYrOM5OrY2lAZZdl+Vlb6So/NysIyS8tk7px5CogIP4Pvy85 z0nMIle3JuKXshk+SXA4QSIWvYCmpoiETjBpe0TBTUU4IdT7TtJ11SzXwvfa7xb63ncr 6eUw== 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 wu9-20020a170906eec900b0073ce34d1a13si4417065ejb.499.2022.11.18.15.24.08; Fri, 18 Nov 2022 15:24: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 S232445AbiKRXVp (ORCPT + 99 others); Fri, 18 Nov 2022 18:21:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234130AbiKRXVD (ORCPT ); Fri, 18 Nov 2022 18:21:03 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6650F4F1B5 for ; Fri, 18 Nov 2022 15:11:54 -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 1owA9W-0004ph-Jt; Fri, 18 Nov 2022 23:48:06 +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 1owA9U-0058na-2O; Fri, 18 Nov 2022 23:48:05 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9U-0000Qh-2J; Fri, 18 Nov 2022 23:48:04 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 521/606] power: supply: bq25980: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:15 +0100 Message-Id: <20221118224540.619276-522-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?1749878178531831866?= X-GMAIL-MSGID: =?utf-8?q?1749878178531831866?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/power/supply/bq25980_charger.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/bq25980_charger.c b/drivers/power/supply/bq25980_charger.c index 9339f5649282..a59d9762bc91 100644 --- a/drivers/power/supply/bq25980_charger.c +++ b/drivers/power/supply/bq25980_charger.c @@ -1207,9 +1207,9 @@ static int bq25980_parse_dt(struct bq25980_device *bq) return 0; } -static int bq25980_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bq25980_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; struct bq25980_device *bq; int ret; @@ -1287,7 +1287,7 @@ static struct i2c_driver bq25980_driver = { .name = "bq25980-charger", .of_match_table = bq25980_of_match, }, - .probe = bq25980_probe, + .probe_new = bq25980_probe, .id_table = bq25980_i2c_ids, }; module_i2c_driver(bq25980_driver); From patchwork Fri Nov 18 22:44:16 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: 22757 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465282wrr; Fri, 18 Nov 2022 15:37:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf6f1bVhkoDSgjgEeB4X1mfTnkcikQVKouP9S0JaNjzLaiqv8xCZaNupZGKhBqw75kCoAE1T X-Received: by 2002:a05:6402:a41:b0:462:273b:6b5c with SMTP id bt1-20020a0564020a4100b00462273b6b5cmr7839279edb.57.1668814625020; Fri, 18 Nov 2022 15:37:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814625; cv=none; d=google.com; s=arc-20160816; b=EqUFx5skbJfg5vBN9I+GCf17LxkzOQlHznrAFWDmVpK9FBfFAWWdnA1FPJ5wo0IT2e IpRNpcc9uNdkLsrjPv4ymFTemA4G2W3TJJiGQkwHtluTR46IaTY/cxRwWqWxb2pf/M7X PA3v28wWCp27m4+T9wojXLShMh8xvLt4BxFgWQRlHY/uVq4zvCBIOQtr6d3kOiB8xgGM C2x3smwPb6oKh9HqL1nDwozssXoWM+4HHcqRcWRhiD1vMp+1WzIifPtRUJ/ibyfgHKbb LHVbd89do/9RwQsnhur7Eq2uJZHh3Bm6tSjk9VCsVp8dSSOv6/5E0wRpAn/PbghXqxnH gdgQ== 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=VXz8xfugSKtdBp8m2OfH0KHkDBj1XlLP/WanhB9WvrE=; b=p/Hg9D9s6ZpCxgAB70A9E6G19xAibUUdO0Zvb8YyT9lYf9cOYAUmJ4UTd7HktbktXJ MQn3vOVwSee57cbitALXGnG85VPbvK+VhaYb2KucSx7pnAInxcyK7Ma98f4WtoeeZDoB Oh+R4hVoijIdVDzrsyW+eWFf+R3wE77QBaRqPyFDspNRPcJuniEn5HEJcTyjnCf0/4uy 87dgCoO07VVHZjgmzqr7ZMcmHEj+K16qFYTUg8cYaiN6wQKmM6A94NVMhJeVq0uf3YdM 9PldaUdpu4Xpw3dKiq057IjeJtFq3D20LHgl3LiGnx726C4KTVcprz/r6vmwF5WESy0K xR2w== 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 mp9-20020a1709071b0900b0078ed891fef3si4104185ejc.440.2022.11.18.15.36.41; Fri, 18 Nov 2022 15:37:05 -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 S236108AbiKRXgC (ORCPT + 99 others); Fri, 18 Nov 2022 18:36:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236286AbiKRXc3 (ORCPT ); Fri, 18 Nov 2022 18:32:29 -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 B7753A659B for ; Fri, 18 Nov 2022 15:20:08 -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 1owA9X-0004rH-4T; Fri, 18 Nov 2022 23:48:07 +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 1owA9U-0058nj-J4; Fri, 18 Nov 2022 23:48:05 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9U-0000Qm-IZ; Fri, 18 Nov 2022 23:48:04 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , =?utf-8?q?Pali_Roh?= =?utf-8?q?=C3=A1r?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 522/606] power: supply: bq27xxx: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:16 +0100 Message-Id: <20221118224540.619276-523-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?1749878964516716883?= X-GMAIL-MSGID: =?utf-8?q?1749878964516716883?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/power/supply/bq27xxx_battery_i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/bq27xxx_battery_i2c.c b/drivers/power/supply/bq27xxx_battery_i2c.c index 94b00bb89c17..f8768997333b 100644 --- a/drivers/power/supply/bq27xxx_battery_i2c.c +++ b/drivers/power/supply/bq27xxx_battery_i2c.c @@ -136,9 +136,9 @@ static int bq27xxx_battery_i2c_bulk_write(struct bq27xxx_device_info *di, return 0; } -static int bq27xxx_battery_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bq27xxx_battery_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct bq27xxx_device_info *di; int ret; char *name; @@ -295,7 +295,7 @@ static struct i2c_driver bq27xxx_battery_i2c_driver = { .name = "bq27xxx-battery", .of_match_table = of_match_ptr(bq27xxx_battery_i2c_of_match_table), }, - .probe = bq27xxx_battery_i2c_probe, + .probe_new = bq27xxx_battery_i2c_probe, .remove = bq27xxx_battery_i2c_remove, .id_table = bq27xxx_i2c_id_table, }; From patchwork Fri Nov 18 22:44:17 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: 22711 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp463151wrr; Fri, 18 Nov 2022 15:31:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf6tawdORJ9jcJYVCfRBI9RIzXZiTQZRWXH1kALlVaTnTVRR6LdT6xZBxTiVyyOhPCtCtsRv X-Received: by 2002:a05:6402:1002:b0:467:7c62:64 with SMTP id c2-20020a056402100200b004677c620064mr7882054edu.82.1668814305851; Fri, 18 Nov 2022 15:31:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814305; cv=none; d=google.com; s=arc-20160816; b=xoAblId6ZFHYQji4zdWQg54A1eTPcbNscexzBE+FyD7LGxzQ15p45SP6AONUEqZsKX K0rqUlKEIAput57DSBHExT338Z+JfgTKPYJi+KtA7GchWsIv+LZx5WvvaCMoiDXDI8A/ hLQHoujdPObH4229nY+ha70vg1on2t0/UF9CKZLpl1lD9Z5PIu0lmDgSGpF1Cth2c7Jh gVYMdOySv3h5l5pjV626gv8OVcqWz7BbMrHKW1NuMEIA0ASu7g1vxyC0JNew5kK4291l R8231y+vHsJvzY0xbHbpU/uXkWajbqqmMFUukZL7WV8JkXt/egxWeHraB0CyCaCf7aqH K6GA== 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=2AyJG7YZGZjgvC0KRekcoM2iRdzWfm0yEyTHZEWLJMM=; b=EV0bK7ee09iYJxTpWvOcZOHPQoscIEEHX0KJPADeezgm1ZP1WAcY8Wx5HFELcON+p1 aWy15Z84/9Pc9c4YCoMF+bohsasjWzWFX/29RFtK9o06FJVWEFZyZPX+dEVo5LfB4xxQ FoBLpvg68rzg1wbFD4wzSeYLeJL0t9daMYzza9KaH0drb+1229ykyeAmxzsHRjtOdFGT OSNk4GYzmTs6pn+x2BifXEnkITgylPaGTZ6NmiGlGaI2Y4a1zUw3+/cW2YrXnFfJlqw7 NcGCtO88C5PgVBIJT57NK6xxuawZ6SJYO5JpH/dffRhibrsKB19zlP6I4VxFvkTxuhbI fCHg== 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 i2-20020a05640242c200b0046453c385e4si4521592edc.365.2022.11.18.15.31.22; Fri, 18 Nov 2022 15:31:45 -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 S235993AbiKRXaj (ORCPT + 99 others); Fri, 18 Nov 2022 18:30:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235755AbiKRX3P (ORCPT ); Fri, 18 Nov 2022 18:29:15 -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 6BEF6C1F42 for ; Fri, 18 Nov 2022 15:17:24 -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 1owA9X-0004rK-6R; Fri, 18 Nov 2022 23:48:07 +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 1owA9U-0058nl-KB; Fri, 18 Nov 2022 23:48:05 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9U-0000Qq-S8; Fri, 18 Nov 2022 23:48:04 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 523/606] power: supply: ds2782: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:17 +0100 Message-Id: <20221118224540.619276-524-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?1749878629759831778?= X-GMAIL-MSGID: =?utf-8?q?1749878629759831778?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/power/supply/ds2782_battery.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/ds2782_battery.c b/drivers/power/supply/ds2782_battery.c index d78cd05402f6..9b9619246902 100644 --- a/drivers/power/supply/ds2782_battery.c +++ b/drivers/power/supply/ds2782_battery.c @@ -368,9 +368,9 @@ static const struct ds278x_battery_ops ds278x_ops[] = { } }; -static int ds278x_battery_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ds278x_battery_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct ds278x_platform_data *pdata = client->dev.platform_data; struct power_supply_config psy_cfg = {}; struct ds278x_info *info; @@ -458,7 +458,7 @@ static struct i2c_driver ds278x_battery_driver = { .name = "ds2782-battery", .pm = &ds278x_battery_pm_ops, }, - .probe = ds278x_battery_probe, + .probe_new = ds278x_battery_probe, .remove = ds278x_battery_remove, .id_table = ds278x_id, }; From patchwork Fri Nov 18 22:44: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: 22740 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464854wrr; Fri, 18 Nov 2022 15:35:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf486nlQs71/RRqwqz79Gk0hNlGG2S5Af20p+rTmQS5cWop5pPq8ECLiI+68syi0uvZW1P6I X-Received: by 2002:a17:906:49c2:b0:7aa:23ac:608e with SMTP id w2-20020a17090649c200b007aa23ac608emr7723536ejv.450.1668814555386; Fri, 18 Nov 2022 15:35:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814555; cv=none; d=google.com; s=arc-20160816; b=z+5Ri1YYl5OFTyzp/cj69OgejiQr86qCdrVYY17xaLQNId4ybpe5ZSzMBiHAQ/FiXM Ozgvbb12zVbtcF+FSalkWaVA2u/FeQXtw37vqinR/j2dSxAvRifR2GHszUztHMKRV4ls lXeYQ7+IEl4QXWhGkbrepHvNMwlRPyTsqxEzXKElEcpIlzQpfiQj/+rLWmSQ7hwdwfTc 1aeDV8jttbt2m7qQs9VhzOtCOtYPsr7KjDaZMtEIV5RYjf08KziIRZVSf1rRHrxdrDNP cdbd08Fd8MSU0Ypi6RLj0BWj6c5YLwrzL9AZgp8WNjDYo8C/zk/Do3Vp76Fe6WLp42lQ qilQ== 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=E7OnWvNtJkEz9rSNpM4euAuicfhecMncO47qpMbVBmk=; b=OLB9NCTszs/mqvmBnSyLUL+/gGYbgQeDlRpAPihqSTf/MrUis0RXYKTI+8AsvAdD+L wD+ofRPLvuRZNyriQUvbWYzs8NcbHlDsENTjE/huyQrarOwYf7ugduniy7XWsI/nIPiU niy/+2rCjNzmQhUfw9RTDV1/DBJ6V5McAVMXkbXjBMv9h8EDPXW3nuEVLY75Fr5wsOPn sVZoJJFO1n7dfhnfYNw968XcoLY1vCJksAeNHU6KdwXvgDqwfF/nhXB2iALezJVJWnV5 zpWFavgCKaeBmLPxzLVRacLNCvGuEW/Tt3BLp1PVL1MhY8SgOpAcMz/a2NMuWj+5/wD0 5lBA== 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 o2-20020a056402444200b00461f9648c7dsi3882324edb.422.2022.11.18.15.35.31; Fri, 18 Nov 2022 15:35:55 -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 S235971AbiKRXes (ORCPT + 99 others); Fri, 18 Nov 2022 18:34:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235966AbiKRXbn (ORCPT ); Fri, 18 Nov 2022 18:31:43 -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 4DEEE970A6 for ; Fri, 18 Nov 2022 15:19:11 -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 1owA9X-0004s7-Gi; Fri, 18 Nov 2022 23:48:07 +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 1owA9U-0058nt-TU; Fri, 18 Nov 2022 23:48:05 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9V-0000Qt-1Y; Fri, 18 Nov 2022 23:48:05 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 524/606] power: supply: lp8727: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:18 +0100 Message-Id: <20221118224540.619276-525-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=ham 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?1749878891359301809?= X-GMAIL-MSGID: =?utf-8?q?1749878891359301809?= 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/power/supply/lp8727_charger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/lp8727_charger.c b/drivers/power/supply/lp8727_charger.c index 384a374b52c1..e6c21377d53c 100644 --- a/drivers/power/supply/lp8727_charger.c +++ b/drivers/power/supply/lp8727_charger.c @@ -540,7 +540,7 @@ static struct lp8727_platform_data *lp8727_parse_dt(struct device *dev) } #endif -static int lp8727_probe(struct i2c_client *cl, const struct i2c_device_id *id) +static int lp8727_probe(struct i2c_client *cl) { struct lp8727_chg *pchg; struct lp8727_platform_data *pdata; @@ -615,7 +615,7 @@ static struct i2c_driver lp8727_driver = { .name = "lp8727", .of_match_table = of_match_ptr(lp8727_dt_ids), }, - .probe = lp8727_probe, + .probe_new = lp8727_probe, .remove = lp8727_remove, .id_table = lp8727_ids, }; From patchwork Fri Nov 18 22:44:19 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: 23029 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp479144wrr; Fri, 18 Nov 2022 16:16:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf4/LoLnOD5hkqBLBwK+h3rsnj07ELrpcMp0BOG4VULYE3wllll1nvkkzreJDc8kQAoUV8DT X-Received: by 2002:a17:906:1546:b0:741:5c0e:1058 with SMTP id c6-20020a170906154600b007415c0e1058mr7775370ejd.472.1668816976645; Fri, 18 Nov 2022 16:16:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816976; cv=none; d=google.com; s=arc-20160816; b=wrPfVxPm7cNH3QjIjCkHijfR7AzDjJjPk6ZUKsolZoDYoq18hBaKcVseZmHg8lRV0z m1EewyaWLlnIX9r/bt0F9gPziEX1lJLrFi2IB3A04lELwqAFBpRfOpG4quBvkOn/blpm fHw5ZXpAUw6l7iw64F0dhVRkNFV5uXaE/i/H1qIxR9l0TNJcIF1dG2nY9LsArwdt21jV m2cONzTMWcp3mmlqs3SAqIMBY83Op0I6b0X59gt2I1ULBgJ3LwA8L7GhSpleCHmiuHft qgQNsAMqaiXfaSbmDL5HZ/CP7/3Qb1mYpEQ4srBFm4X7fTw6zlKJFzXvDi3AVCBfIE7t arZg== 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=V2X1SVbxGVdp8rgFYv8VGrIuJE4LMFEs7XmXX6GQcFE=; b=KBsSlV4DXlOJt/DUm7846fHnkgw7zf/CYP4j/Exe3I4ndgkYmqSWUygHPYXCvKMvG+ bly8NAV5qkFLaeMQ0yjvcsKSw2JtjGo55GD+WQ9MfKV477PbcgZ1FxrrEIDl8wSyfbHg Kjx3x5PjWV/gkIs4BDYtfHZ1KRfF8gxM7PpLDq9O6X4m2p+6/RFfaZzKgBHNBr1wpZ01 LARf0ReCbeQ1j+B41m5upk6iMEKtxNQEjMCcZ8dhtxRwOJPN4hhBXENTlcysJzjCjoLM qJ9GTsiULjre6NQ2Sj058lhwi8VCB1JRF5B+1jrR5ZQgUTDeM2nwOg7YBxdjch6XAeYW 3Dvw== 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 m11-20020a170906258b00b00767e24156dbsi3221802ejb.256.2022.11.18.16.15.52; Fri, 18 Nov 2022 16:16:16 -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 S237862AbiKSAPE (ORCPT + 99 others); Fri, 18 Nov 2022 19:15:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237654AbiKSAOZ (ORCPT ); Fri, 18 Nov 2022 19:14:25 -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 4D881B6B0C for ; Fri, 18 Nov 2022 15:34:50 -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 1owA9X-0004sr-R0; Fri, 18 Nov 2022 23:48:07 +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 1owA9V-0058nz-6E; Fri, 18 Nov 2022 23:48:06 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9V-0000Qx-7f; Fri, 18 Nov 2022 23:48:05 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 525/606] power: supply: ltc2941: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:19 +0100 Message-Id: <20221118224540.619276-526-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?1749881430178757739?= X-GMAIL-MSGID: =?utf-8?q?1749881430178757739?= 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/power/supply/ltc2941-battery-gauge.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/ltc2941-battery-gauge.c b/drivers/power/supply/ltc2941-battery-gauge.c index 657305214d68..d3fb42825983 100644 --- a/drivers/power/supply/ltc2941-battery-gauge.c +++ b/drivers/power/supply/ltc2941-battery-gauge.c @@ -439,8 +439,7 @@ static enum power_supply_property ltc294x_properties[] = { POWER_SUPPLY_PROP_CURRENT_NOW, }; -static int ltc294x_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ltc294x_i2c_probe(struct i2c_client *client) { struct power_supply_config psy_cfg = {}; struct ltc294x_info *info; @@ -636,7 +635,7 @@ static struct i2c_driver ltc294x_driver = { .of_match_table = ltc294x_i2c_of_match, .pm = LTC294X_PM_OPS, }, - .probe = ltc294x_i2c_probe, + .probe_new = ltc294x_i2c_probe, .shutdown = ltc294x_i2c_shutdown, .id_table = ltc294x_i2c_id, }; From patchwork Fri Nov 18 22:44:20 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: 22792 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466684wrr; Fri, 18 Nov 2022 15:40:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf7xLdQ2ypKPhoLwmWHsNbZLRyEviGGfrBgH6mYvMLTsglbA8aVY6D6XDne3a3fhthFL3iI+ X-Received: by 2002:a17:906:c249:b0:7ad:9f03:fd44 with SMTP id bl9-20020a170906c24900b007ad9f03fd44mr7789144ejb.73.1668814843353; Fri, 18 Nov 2022 15:40:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814843; cv=none; d=google.com; s=arc-20160816; b=mDt56qw/iJQbeGX2sIsOwsKpaWsccyFVc4fEXQ5madN8fycmMN76b5DpjdY6iZOR4Y 46Vxekzfr37Ct2uW0AC3O7Pb3apbhzNHzj6FRNogQje8ZdN7huuctsaqbU97801crua0 F0ULVPEoEe/bG+sTsTg9DuSuihXkNUDCIa7BN3lqh+8LA9KenvzsatNoaMwlzZ68zaXG e7H/nUpSQntGL6PqJkxkMD8Uq0TotlvmYp/C/xQ7Y+ktEsxisR+ekN9we7qK23XvhSvH bZJHOs/PqsQ33DL3gUpBs228eo92K4NuyuTQ6yM3MtE7Z4r/sA+XISC2gCKrG/vqkm79 oq/A== 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=GBYmoA295M2+zkRzESo/pVo2GEq9DMh5U6rFlwgwqsg=; b=BaFF3csBtRaAeRDOIEvJ+EPbDpLkZEwwbHFuoZTyNiVt+yB5IVQjXNNpgGtBzJHOyQ t6GKUBcU+9eQeOcmDFedSG2tm/AOkppSM5ZixXeg09scYoTwS4Hq0xtEzlEgngs6OkaI yqikdNkoavX5MkGSCi+fuQTs/WXeV0XOMqZYTFEqTBOQP66MpSPCcp95fxYJiUz1lBgQ 9j3O5fp3PlTNwclQZ1iAPYr1UHXuV27fceW3vkX1khTybijtlVmxxZjpy5JIZWqhpx1+ H91Tl42UPs1jXMlxf2dIbAa+tk7NrMBgi3xeplkfy5//27NH25AdDk69z629FqQa9JrJ yRMw== 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 jg8-20020a170907970800b007aea2b23905si4158656ejc.812.2022.11.18.15.40.19; Fri, 18 Nov 2022 15:40:43 -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 S236585AbiKRXjO (ORCPT + 99 others); Fri, 18 Nov 2022 18:39:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236250AbiKRXgO (ORCPT ); Fri, 18 Nov 2022 18:36:14 -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 3915DAEBE6 for ; Fri, 18 Nov 2022 15:21:50 -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 1owA9X-0004st-Qz; Fri, 18 Nov 2022 23:48:07 +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 1owA9V-0058ny-5v; Fri, 18 Nov 2022 23:48:06 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9V-0000R0-Fc; Fri, 18 Nov 2022 23:48:05 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 526/606] power: supply: ltc4162-l: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:20 +0100 Message-Id: <20221118224540.619276-527-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?1749879192840617312?= X-GMAIL-MSGID: =?utf-8?q?1749879192840617312?= 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/power/supply/ltc4162-l-charger.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/ltc4162-l-charger.c b/drivers/power/supply/ltc4162-l-charger.c index 1a5cb4405ee3..db2bb5233570 100644 --- a/drivers/power/supply/ltc4162-l-charger.c +++ b/drivers/power/supply/ltc4162-l-charger.c @@ -819,8 +819,7 @@ static void ltc4162l_clear_interrupts(struct ltc4162l_info *info) regmap_write(info->regmap, LTC4162L_CHARGE_STATUS_ALERTS_REG, 0); } -static int ltc4162l_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ltc4162l_probe(struct i2c_client *client) { struct i2c_adapter *adapter = client->adapter; struct device *dev = &client->dev; @@ -916,7 +915,7 @@ static const struct of_device_id ltc4162l_of_match[] = { MODULE_DEVICE_TABLE(of, ltc4162l_of_match); static struct i2c_driver ltc4162l_driver = { - .probe = ltc4162l_probe, + .probe_new = ltc4162l_probe, .alert = ltc4162l_alert, .id_table = ltc4162l_i2c_id_table, .driver = { From patchwork Fri Nov 18 22:44:21 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: 22751 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465104wrr; Fri, 18 Nov 2022 15:36:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf6USoEJ2+b3zEyMJJ/aeBIKSjT4wAIIKNb6RdMUvTp4WGiJk1MzVIzznHTI5MwWawM+iEY/ X-Received: by 2002:a17:906:1b4a:b0:7ad:aeda:f81d with SMTP id p10-20020a1709061b4a00b007adaedaf81dmr7970902ejg.588.1668814599766; Fri, 18 Nov 2022 15:36:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814599; cv=none; d=google.com; s=arc-20160816; b=tMY2CzMt4Ag+GzMj3VsB4FCPHA7NGmBJ51QFtw8fNGKC1lzi+WgEheSQq3/fLe/EnC iLaJIYC1vUFMsNNWzq5tx0EFSUnWcrvpbF64G5wzxPpOm8CVpsIIAD0arIiwAgCisWH5 D7p+GUlgPrAeMK5Fe1GTIe4Mo9WBBrH4Xh7NzgY7K4BlmsoFuDKWAXc5jR8JHqjrL85R NV0nXiVXkjAODjcd6wOBF/T23orLB36bL09yj4BqdiIykypgUTYUR8bAdhACzCSWnAZr ple83WiKqlcZA6Vh9135ME57Nd6nRJ+76nrg1Rssb/OkM0JBTwAOqYDPKv1gM50RArUr bATg== 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=esdBEh31uJ6Yw9drBUD3p6WOnFEe62dnvKCevCDCq7o=; b=kfA+AVq3yNcFSE5n6I7W0Z3etyJrDT7fbspfqZuOm8quLLTqz4inrRMN/t3Ov8AluD jKZmtgt0lRYhQCGfs5q5jyqXMkLJ2edJ4eyo/yuK43jgiUKec4PZ50amzOIQlJflpg69 X1cuyRKGPMP92Js+otbByr4IivFD5wYz0Q6zTps7R2V04Go6dGsUZJIzvKG0IKk50BYx H0PowEZiDypZfci/H1p4GsC8dsFEriGyhz6kDUCtvAW21TJJWc4drmoQmP3G1QJGC8nP tNEsNYH32zRSNHIsPfs6odL5CDJGP01lPDc0Lm/V0XBHB3N45NeA2Uft//ZZpRUIaiZs PNyQ== 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 b10-20020a056402084a00b0046904a196b7si3428808edz.272.2022.11.18.15.36.15; Fri, 18 Nov 2022 15:36:39 -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 S236223AbiKRXff (ORCPT + 99 others); Fri, 18 Nov 2022 18:35:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236151AbiKRXcG (ORCPT ); Fri, 18 Nov 2022 18:32:06 -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 4D45497EFD for ; Fri, 18 Nov 2022 15:19: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 1owA9Y-0004tj-7W; Fri, 18 Nov 2022 23:48:08 +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 1owA9V-0058o7-GA; Fri, 18 Nov 2022 23:48:06 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9V-0000R5-L9; Fri, 18 Nov 2022 23:48:05 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 527/606] power: supply: max14656: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:21 +0100 Message-Id: <20221118224540.619276-528-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?1749878937980781630?= X-GMAIL-MSGID: =?utf-8?q?1749878937980781630?= 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/power/supply/max14656_charger_detector.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/max14656_charger_detector.c b/drivers/power/supply/max14656_charger_detector.c index fc36828895bf..0d0180fcfa63 100644 --- a/drivers/power/supply/max14656_charger_detector.c +++ b/drivers/power/supply/max14656_charger_detector.c @@ -234,8 +234,7 @@ static enum power_supply_property max14656_battery_props[] = { POWER_SUPPLY_PROP_MANUFACTURER, }; -static int max14656_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max14656_probe(struct i2c_client *client) { struct i2c_adapter *adapter = client->adapter; struct device *dev = &client->dev; @@ -317,7 +316,7 @@ static struct i2c_driver max14656_i2c_driver = { .name = "max14656", .of_match_table = max14656_match_table, }, - .probe = max14656_probe, + .probe_new = max14656_probe, .id_table = max14656_id, }; module_i2c_driver(max14656_i2c_driver); From patchwork Fri Nov 18 22:44:22 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: 22897 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472507wrr; Fri, 18 Nov 2022 16:00:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf60fTXwLlGGyXmNP1KR/DhRv0VyyCCpMX5i9fLgltsWybvRwKAdYikb8QFJPSEQnwC3UoO5 X-Received: by 2002:a63:224c:0:b0:46b:8e9:747 with SMTP id t12-20020a63224c000000b0046b08e90747mr8602274pgm.365.1668816020192; Fri, 18 Nov 2022 16:00:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816020; cv=none; d=google.com; s=arc-20160816; b=lmPZT6QbPeaF1JWkdeRBkpykbvSMoakL4bDvzyo9RkarHyBnvopjyIgdWrtCzqrsDi hsFQab0s9N/SQtu1D7tHn3Nmb/kzC4yN0DW5CJU/4RCy/t1Q5NcxmxanqEWVc1eNg+Qk v8V/gyTZPzDFyA5RH5pyonZDG20kiLQF7t7PWol5z68u525EGr6fyfZyfOChX3P4T6je olsRPDOK7RKUDwGtXMnPyMuga4RsJpd4fiobb7tle8E9XptWrgjK4tRrB36urZxkc3U6 BAGv+p9Uq0U4ZqT+VDtFv46i4LSf/XfVif1QefODBjwHPHejezVcUx7L9e57r7TqO2PK zvwQ== 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=8xvBNcNdHgyb6+dbWeC6g2rG3CqKjXZP+uE8WQ2eFyA=; b=dscs7iL4T7pBZjXVroiyn9vnF3SiQUIhCYruDKEkbqy89VkFbUNDkSTaKHjseGSyEK B1llGSxeQyBuEgpCuWxJSh8acT53tiiaUNVbwfBNzNSmCXhgDKgIEwg6EVb+YdHhARAt EYjzUy/8h7T5kKedDRm/5B0AixhKsChAMVj53WZCBZz7MaLjmFiqV3UwS/jwWLHg4LD5 5fBIrLthVi0HOhJFhSErTpLboLsJJ/GiNT8CJZfJ2D+g5T8VqJo1RQWbyPM3F/liyAyz NMZzewHnSlezcHpfja/ezteqX8wgNWZJcJYJ2xjGIcLZ6eTkcPd3MdYSPRkZaX6zAnSb +QHw== 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 u18-20020a170902e5d200b00186bc66d2cdsi5851160plf.75.2022.11.18.16.00.04; Fri, 18 Nov 2022 16:00:20 -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 S234361AbiKRXyt (ORCPT + 99 others); Fri, 18 Nov 2022 18:54:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236872AbiKRXwd (ORCPT ); Fri, 18 Nov 2022 18:52:33 -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 9D212C75B0 for ; Fri, 18 Nov 2022 15:27:39 -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 1owA9a-0004uZ-5o; Fri, 18 Nov 2022 23:48:10 +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 1owA9V-0058oG-Sz; Fri, 18 Nov 2022 23:48:06 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9V-0000R8-R0; Fri, 18 Nov 2022 23:48:05 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Iskren Chernev , Krzysztof Kozlowski , Marek Szyprowski , Matheus Castello , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 528/606] power: supply: max17040: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:22 +0100 Message-Id: <20221118224540.619276-529-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?1749880427053756098?= X-GMAIL-MSGID: =?utf-8?q?1749880427053756098?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/power/supply/max17040_battery.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/max17040_battery.c b/drivers/power/supply/max17040_battery.c index a9aef1e8b186..d1075959dd46 100644 --- a/drivers/power/supply/max17040_battery.c +++ b/drivers/power/supply/max17040_battery.c @@ -430,9 +430,9 @@ static const struct power_supply_desc max17040_battery_desc = { .num_properties = ARRAY_SIZE(max17040_battery_props), }; -static int max17040_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max17040_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct i2c_adapter *adapter = client->adapter; struct power_supply_config psy_cfg = {}; struct max17040_chip *chip; @@ -599,7 +599,7 @@ static struct i2c_driver max17040_i2c_driver = { .of_match_table = max17040_of_match, .pm = MAX17040_PM_OPS, }, - .probe = max17040_probe, + .probe_new = max17040_probe, .id_table = max17040_id, }; module_i2c_driver(max17040_i2c_driver); From patchwork Fri Nov 18 22:44:23 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: 22754 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465216wrr; Fri, 18 Nov 2022 15:36:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf5cy/VPwTJ1ylmI/bkCQvgAt5cMKn4kb5Z4+4z+cuv01OyUuVFQbcDL71BDNDvI6rEtVp99 X-Received: by 2002:a05:6402:2a09:b0:461:30d8:6742 with SMTP id ey9-20020a0564022a0900b0046130d86742mr8000811edb.172.1668814615068; Fri, 18 Nov 2022 15:36:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814615; cv=none; d=google.com; s=arc-20160816; b=ZZ45aqcUCQO1YfRHoTxZBpQ5guNk/wFejAl4ntvHWhCUCUmlu8fp60vEDF66Ln06vV QEZwt7ME2fon/4H+Oec6bQfGAJvCCxQyCZDGcTvXedHF9e8jUt+pUqwAZnueKT7yH+j1 BKQ36QX3PuW71ZNpsVkzXe7EXUwcmeWWVSfwSMJglw9qNW/xdvINhvQ6Q4B/gxQ8Rbea IdX2lxqgQ3bmC1+ojNGBRA1wOq05VV7zMtpOEfSiomre3wKaqqkZoRro3TL8FvrBFa4e N16njc+EtdsUxDyADoXIdjZCPC3/qgHaZ8V76LQEygTAHoOchYYRHjrd2Af0lV0/hUDS AFyw== 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=4T1NseUmSS62gKzb3hK4f5MmGx0d8ZLL1xtH56hnOWY=; b=fV6CMofGparSnUpYBdYz3BOwAajEXferLBshi+S0Nuzx1p2DaZsm6VftWLTW03OV7K CgBsSKmDxznijVZFmYwPd4p+mS88vbi+gMECFIkw93WFbZAIS6g9KFsSHcWLECUeRjkT scTZDSaDDhzDukhSGSXbvqRf4nwF0mcaWAGNAMA3qMJSC6JwMG2mh2sI14em0wFw3j60 B5UUCk8nTL629kd5C24PujERkYa+/3FlmzwGXG3oCAw7t2iuT1dlJjFITrsBR3Ugontm ULijVSzcVH8ivSbjOf2rZZW4N/zPpLv0jKG0U54qjfnVx2FhB5Kq5bZyH8OWUfIchIxS upYw== 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 x11-20020a05640226cb00b0046311e80ebcsi4742088edd.151.2022.11.18.15.36.31; Fri, 18 Nov 2022 15:36:55 -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 S236356AbiKRXfx (ORCPT + 99 others); Fri, 18 Nov 2022 18:35:53 -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 S236193AbiKRXcM (ORCPT ); Fri, 18 Nov 2022 18:32:12 -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 B88F46587E for ; Fri, 18 Nov 2022 15:19:54 -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 1owA9Y-0004uG-R7; Fri, 18 Nov 2022 23:48:08 +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 1owA9V-0058oB-NL; Fri, 18 Nov 2022 23:48:06 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9W-0000RC-10; Fri, 18 Nov 2022 23:48:06 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Hans de Goede , Krzysztof Kozlowski , Marek Szyprowski , Sebastian Krzyszkowiak , Purism Kernel Team , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 529/606] power: supply: max17042_battery: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:23 +0100 Message-Id: <20221118224540.619276-530-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?1749878954227283165?= X-GMAIL-MSGID: =?utf-8?q?1749878954227283165?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Reviewed-by: Hans de Goede --- drivers/power/supply/max17042_battery.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/max17042_battery.c b/drivers/power/supply/max17042_battery.c index ab031bbfbe78..89cabe8ed3b0 100644 --- a/drivers/power/supply/max17042_battery.c +++ b/drivers/power/supply/max17042_battery.c @@ -1031,9 +1031,9 @@ static const struct power_supply_desc max17042_no_current_sense_psy_desc = { .num_properties = ARRAY_SIZE(max17042_battery_props) - 2, }; -static int max17042_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max17042_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct i2c_adapter *adapter = client->adapter; const struct power_supply_desc *max17042_desc = &max17042_psy_desc; struct power_supply_config psy_cfg = {}; @@ -1220,7 +1220,7 @@ static struct i2c_driver max17042_i2c_driver = { .of_match_table = of_match_ptr(max17042_dt_match), .pm = &max17042_pm_ops, }, - .probe = max17042_probe, + .probe_new = max17042_probe, .id_table = max17042_id, }; module_i2c_driver(max17042_i2c_driver); From patchwork Fri Nov 18 22:44:24 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: 23055 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486698wrr; Fri, 18 Nov 2022 16:40:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Kayxz7pYvf+DbK2mBrOvA1eq7zPjS7vQ93IxEXHtnpf115xTS5JRPVHklbfGmuLpppSW0 X-Received: by 2002:a17:907:7650:b0:781:e568:294f with SMTP id kj16-20020a170907765000b00781e568294fmr8023025ejc.447.1668818454215; Fri, 18 Nov 2022 16:40:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818454; cv=none; d=google.com; s=arc-20160816; b=k0dQvVZR3cHm6EfWBaEPw9T38dzGutEk4Cod2pJUzoI3L+/InF+mGOfS1f9cw1X7yY r/IKIkV1kxctdy0ZZno5hcPyRyPmH5XlcwCIMD9E8UAyaJ6jqv6wlOxVhuqmrJefDvWr tAO4YnhbH3fc8sBBaz3/4PrOMGUS5/cIHr4iGZ3iA5lJgF2u4okBrwwzzH79tStk+QR7 yYBFVmgJ7B78EDTGPG++a4sfw/XXf3pcc+LXkFKFAvRRwXOOgW54To7hJCGRDEfBjoo1 RH/M21IMSKmQ4VJ4iyLF6FystN2E9aLvRGpOxYT0Utwd+otvC2h7vZflt6Csvg7hUZ81 8D0w== 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=Oynwy1MXW4WUI34ZfjYuqsrlc7OkvFF2ET1QKlO7bfw=; b=kVnTI9qC1FDvwms07vH5fdhsnQBvws/SwfcB/QKSzRpAkUr+eOwCBTAShguJY1gHNR AliJ/n4bg93ONe4s69d3bX3Xu5u2rb7uHogZf2IKDaEiONGktj6N08W0h1NrtBu9VWAK QBDrG2pnEg3qJIGoc6FhHYzpXhFgD55pKYSpYsWyKeNvfhW32un5k0UDrlqR94gwHKnJ KF3oLp4Cj6bTIuhL4w8wElrgwo0k6SXaWOoigPrAwoAVXi6hZd4yWmMfIsJFnl5Xh6qf 9Ok75iN2lMG+SvjaGruGAZ7fQt2wLOFralmaKcyGnfoqmIA0lL5zPbP5MgfWXfOdQ0zw JDvw== 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 t35-20020a056402242300b0046197a8b7a1si4255611eda.485.2022.11.18.16.40.30; Fri, 18 Nov 2022 16:40:54 -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 S237505AbiKSA0b (ORCPT + 99 others); Fri, 18 Nov 2022 19:26:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237273AbiKSA0I (ORCPT ); Fri, 18 Nov 2022 19:26:08 -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 E64E0107E69 for ; Fri, 18 Nov 2022 15:38:50 -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 1owA9Y-0004uz-Oa; Fri, 18 Nov 2022 23:48:08 +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 1owA9W-0058oK-0J; Fri, 18 Nov 2022 23:48:06 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9W-0000RH-73; Fri, 18 Nov 2022 23:48:06 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 530/606] power: supply: rt5033_battery: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:24 +0100 Message-Id: <20221118224540.619276-531-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?1749882979322345549?= X-GMAIL-MSGID: =?utf-8?q?1749882979322345549?= 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/power/supply/rt5033_battery.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/rt5033_battery.c b/drivers/power/supply/rt5033_battery.c index 736dec608ff6..5c04cf305219 100644 --- a/drivers/power/supply/rt5033_battery.c +++ b/drivers/power/supply/rt5033_battery.c @@ -112,8 +112,7 @@ static const struct power_supply_desc rt5033_battery_desc = { .num_properties = ARRAY_SIZE(rt5033_battery_props), }; -static int rt5033_battery_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int rt5033_battery_probe(struct i2c_client *client) { struct i2c_adapter *adapter = client->adapter; struct power_supply_config psy_cfg = {}; @@ -173,7 +172,7 @@ static struct i2c_driver rt5033_battery_driver = { .name = "rt5033-battery", .of_match_table = rt5033_battery_of_match, }, - .probe = rt5033_battery_probe, + .probe_new = rt5033_battery_probe, .remove = rt5033_battery_remove, .id_table = rt5033_battery_id, }; From patchwork Fri Nov 18 22:44:25 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: 22759 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465331wrr; Fri, 18 Nov 2022 15:37:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf5dtHls52CH0eWgPRQlQuzB4AjmcqKGiZqHT3uZri7DZ1tlYGP/SwsiR6qcnvgw0caeDd+q X-Received: by 2002:a17:906:8613:b0:7a6:a48b:5e2a with SMTP id o19-20020a170906861300b007a6a48b5e2amr7677943ejx.338.1668814631569; Fri, 18 Nov 2022 15:37:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814631; cv=none; d=google.com; s=arc-20160816; b=NjqHCjJn48H9/6faILz3U3XN0NNCIVjpAO1EtGpgBpuncLi3Tnx5IPPqBpEFPt6Jrx 3yzc/wXHlzhyy2Q0PfZyMp0DwC13bPzrplluJRtkb1sSeGcJxtQqW9eSLD3U8um7u/2T HKQYSGugpWnOjMO1uSTqoCIVhjk5UgxXRRNgAnXdDi1Xvq0Rg2XQnHV6IsxoKY2zBZ92 0yptAokBBfMKzzQGTfluixooud5oXfGdxeUCAqJz85QZ0s8gFF8ZN7c7QS5pYodos6la iBUaAleLzDh0GvhPEVThVhgNGfxJyhfz4oRIAEzVOoN7N3IywuuAPzAo7dMXwih5+3QE wfVw== 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=Zgt3SjZBLRCZNQv/xaEfspRFlra4JoIcnef9DrnzmdQ=; b=Torj8mUjIaPR0ffxm0NiqeR7bijclGm2T7Hey/VQ3I7GIJQNPvLLowRZjovGisL2q+ yoBCY31ThqLFa4eaDYT0OooKDtYpzbS7wSFXcFIK7WsJQKpGts62j97FnA6OERvVrO/i 15rwTOCDN5evTfSK8SbLDh8LueyKL/DDMcQ784agBbfO9FxXVOasp+Z+t+Ej3uHLCvZb eeKQWK9NDSjWmEP6/padHs2e1Wb3/BeGsboSbYmfAB75YHLOGKR7Fc2Wye3RjkFJF7eN EEjdPj8fHV/UKyozE3ZRxc0J5iVQ7PWHhylFr2csaGS2YcU8hvJKTHEpPK8A0Ir9LDFM KLZw== 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 g16-20020a1709065d1000b007b2c4e84adbsi1528471ejt.280.2022.11.18.15.36.47; Fri, 18 Nov 2022 15:37:11 -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 S235979AbiKRXgK (ORCPT + 99 others); Fri, 18 Nov 2022 18:36:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236337AbiKRXcn (ORCPT ); Fri, 18 Nov 2022 18:32:43 -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 B4A44A8D47 for ; Fri, 18 Nov 2022 15:20:15 -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 1owA9Z-0004vu-4i; Fri, 18 Nov 2022 23:48:09 +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 1owA9W-0058oR-C5; Fri, 18 Nov 2022 23:48:07 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9W-0000RL-FB; Fri, 18 Nov 2022 23:48:06 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 531/606] power: supply: rt9455: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:25 +0100 Message-Id: <20221118224540.619276-532-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?1749878971123127049?= X-GMAIL-MSGID: =?utf-8?q?1749878971123127049?= 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/power/supply/rt9455_charger.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/rt9455_charger.c b/drivers/power/supply/rt9455_charger.c index 72962286d704..31fb6526a1fd 100644 --- a/drivers/power/supply/rt9455_charger.c +++ b/drivers/power/supply/rt9455_charger.c @@ -1581,8 +1581,7 @@ static const struct regmap_config rt9455_regmap_config = { .cache_type = REGCACHE_RBTREE, }; -static int rt9455_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int rt9455_probe(struct i2c_client *client) { struct i2c_adapter *adapter = client->adapter; struct device *dev = &client->dev; @@ -1738,7 +1737,7 @@ MODULE_DEVICE_TABLE(acpi, rt9455_i2c_acpi_match); #endif static struct i2c_driver rt9455_driver = { - .probe = rt9455_probe, + .probe_new = rt9455_probe, .remove = rt9455_remove, .id_table = rt9455_i2c_id_table, .driver = { From patchwork Fri Nov 18 22:44:26 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: 22742 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464922wrr; Fri, 18 Nov 2022 15:36:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Jl5QvEkyYKmacd74tO888nkc2bu3kKFtoIBnbWLrX4t2DVZjCMez4zK3UxqthnQgPDnEX X-Received: by 2002:a17:906:4904:b0:78d:6a9b:216c with SMTP id b4-20020a170906490400b0078d6a9b216cmr7765859ejq.602.1668814567204; Fri, 18 Nov 2022 15:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814567; cv=none; d=google.com; s=arc-20160816; b=cHUAz5jioksSGzO6JqPN6bmr6csnFjmHaHlUZlD5Jf9L4yZhnbAjvzLozRpx1NiuCV sHP2wvDvVPoEIOCYKdjz6vMNzTAD653LgleFJDYzrQTdp371LAE0cx2LsPeLYM+4/6vQ jDX0umBA2CfED3rNoy1NvUZesy9FqlU1z0YtIMWOrYPYt11gII34o7kKgGsD9+VAle3V RpLs3KFAHw/oajawdfcjUP4RLvotktSMLzKpNd3sDL4nDJjs4Xh/XaW11Y1iAE+E5Ssh LsQZlzd6c5qRkYl4BBjU1uEYqZqrINVzYs97qEf5d2jdEwLvi8aIi3G3EWy5pfj+Wmtm 1JlA== 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=GbCgqO009WQ48vYWz/ldp8yUbm/X5/xVxYeXXKe218c=; b=0TFIRIovPeGi1bnQ5OAKRFzzIABJPDXOrTBIcdsThLpHJOxIJB+sV0O47KkUSa/WSz a5GEbL5v6mpIPd/DYAeVGhkSVj0Cgmf+TVVPwU5XYMTTOBSvYPSfkMuewrN7Fg6JSao4 N9jaRkPXEHWO3TsR5/mjfFrbu5RgbeQi/t6/PbiCYba1HGZzRU/GXRZtQbCKAknHnoSX Cc4HqCL7fIJnOiPPL9aPO/hhcFstgE7qZW+sZ8BLVEIO+Q1Iv6kWhGyULaJA+HbypwGB N/tsKU6vC8NgO6bIfYkBxd2bIOxd6fF696W9/GBjl3EamYRg3nCX2lMbliJ810oRt1hJ H9uQ== 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 hv8-20020a17090760c800b007aeec2bf18fsi4566899ejc.543.2022.11.18.15.35.43; Fri, 18 Nov 2022 15:36:07 -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 S236031AbiKRXez (ORCPT + 99 others); Fri, 18 Nov 2022 18:34:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235845AbiKRXbo (ORCPT ); Fri, 18 Nov 2022 18:31:44 -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 CC89710A1 for ; Fri, 18 Nov 2022 15:19:16 -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 1owA9Y-0004wK-US; Fri, 18 Nov 2022 23:48:08 +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 1owA9W-0058oU-F8; Fri, 18 Nov 2022 23:48:07 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9W-0000RP-L2; Fri, 18 Nov 2022 23:48:06 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 532/606] power: supply: sbs: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:26 +0100 Message-Id: <20221118224540.619276-533-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?1749878903725334074?= X-GMAIL-MSGID: =?utf-8?q?1749878903725334074?= 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/power/supply/sbs-charger.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/sbs-charger.c b/drivers/power/supply/sbs-charger.c index b08f7d0c4181..75ebcbf0a788 100644 --- a/drivers/power/supply/sbs-charger.c +++ b/drivers/power/supply/sbs-charger.c @@ -162,8 +162,7 @@ static const struct power_supply_desc sbs_desc = { .get_property = sbs_get_property, }; -static int sbs_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sbs_probe(struct i2c_client *client) { struct power_supply_config psy_cfg = {}; struct sbs_info *chip; @@ -241,7 +240,7 @@ static const struct i2c_device_id sbs_id[] = { MODULE_DEVICE_TABLE(i2c, sbs_id); static struct i2c_driver sbs_driver = { - .probe = sbs_probe, + .probe_new = sbs_probe, .id_table = sbs_id, .driver = { .name = "sbs-charger", From patchwork Fri Nov 18 22:44:27 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: 22908 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472847wrr; Fri, 18 Nov 2022 16:01:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf6x+G/Q8FrXM9GXphV6lJXlIu0NPLh7FXbyZLCr4+5QhUvZaQiTneTH7moG9wCE3SXwdYSK X-Received: by 2002:a17:90a:e60f:b0:218:95b9:f2f7 with SMTP id j15-20020a17090ae60f00b0021895b9f2f7mr1661918pjy.131.1668816061087; Fri, 18 Nov 2022 16:01:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816061; cv=none; d=google.com; s=arc-20160816; b=iqOWY+UUT6E0eKddPvtyiKdTMH+uqEZueYip8Q24LslvenoxeycBcZgp9hwlh149Ji MNJ29KSYOcU7CVDFZOjSQ2nRc6PtIzH1Xr1saJcRvgVaYnJYNi2Qb01Ew4lBDafYo45N RYIdDtrVmw5ko9gpsbuNQirZ/qmLK2eTTy+PfC0SG+IfNzhD0PE42p8fiGQbeZ0z0CKj +6nStD60T6MvHDWvg0mwDyM3Rl1qKNqq/QOVpUF2FJJ6m7kCfId6uD9U0T/8gyeiL44X 2/CzlsvvNXh399R4F9Z1ieOcO2b5CxSDCHLnLXimoW1SMQeVVhqncnkeSgld+E4BNkuS nrIQ== 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=vrpL71U4Mmcg4QzDalVskqmxhJ8khANqIpi0ew73CRA=; b=McJUk9CMvLD6NDhkC64EMyjAWHL6xuDZkXLolhSkFD1Iu6idZmYCUsBZGy/XZbBH68 ho3hYELjvqy+eYFZmi4fN1VZPNFokOv+TyTbbs/zeGkCI6rtU1YTGbWu11QzOMzrBHjU IQKGUalrLPBN7pw7zb0GyrFacVsVI9TkAsZa9zv7PcbFmSIFqCvzUhVZfifYUelj9Qxt K9vCxF0wwJSnws8q8rDLg/CSqY5jqBLUANUoJx6GjIIy+F3b6uqsc/5TDRDjoO1tUyyF eoTshUXbapfFl9cU++T43qu2Y2g/oh2C987lqz6Kf8LSm/JKzFnCyZO6ltsAJ59zd1cH qoMw== 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 m18-20020a170902f21200b00186a43ad5d0si4386653plc.604.2022.11.18.16.00.46; Fri, 18 Nov 2022 16:01:01 -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 S234642AbiKRXzz (ORCPT + 99 others); Fri, 18 Nov 2022 18:55:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235608AbiKRXyW (ORCPT ); Fri, 18 Nov 2022 18:54:22 -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 B4BFACB68C for ; Fri, 18 Nov 2022 15:27:54 -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 1owA9Z-0004yb-RH; Fri, 18 Nov 2022 23:48:09 +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 1owA9X-0058oh-4L; Fri, 18 Nov 2022 23:48:08 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9W-0000RT-QW; Fri, 18 Nov 2022 23:48:06 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 533/606] power: supply: sbs-manager: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:27 +0100 Message-Id: <20221118224540.619276-534-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?1749880469909150610?= X-GMAIL-MSGID: =?utf-8?q?1749880469909150610?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/power/supply/sbs-manager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/sbs-manager.c b/drivers/power/supply/sbs-manager.c index 71ec8f74f835..bde977391fd4 100644 --- a/drivers/power/supply/sbs-manager.c +++ b/drivers/power/supply/sbs-manager.c @@ -315,9 +315,9 @@ static void sbsm_del_mux_adapter(void *data) i2c_mux_del_adapters(sbsm->muxc); } -static int sbsm_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sbsm_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct i2c_adapter *adapter = client->adapter; struct sbsm_data *data; struct device *dev = &client->dev; @@ -409,7 +409,7 @@ static struct i2c_driver sbsm_driver = { .name = "sbsm", .of_match_table = of_match_ptr(sbsm_dt_ids), }, - .probe = sbsm_probe, + .probe_new = sbsm_probe, .alert = sbsm_alert, .id_table = sbsm_ids }; From patchwork Fri Nov 18 22:44:28 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: 22975 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476538wrr; Fri, 18 Nov 2022 16:09:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf4LZdSWCz3P+HlTRQMOfjjWUQipcjqGFu0g61fPfawWiD0kdXqQO8d/IsMdnFcmHTcH4rPK X-Received: by 2002:a17:90a:b011:b0:20a:97e2:5373 with SMTP id x17-20020a17090ab01100b0020a97e25373mr9888845pjq.200.1668816557663; Fri, 18 Nov 2022 16:09:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816557; cv=none; d=google.com; s=arc-20160816; b=wc/baKUZWaBXZ+purPuOSaapO+ro9MXxsEmUF2sAljletxj3k8860cNcvjdb/iIcY3 lbimTeVWLwdXdZeEKeoD3dbixuFcTxz8OFm6K3Yu51dKem8dVzvYX2MIxk02QnXUFTKb W/mZMIhYFUCIBgDLRP3aOGGLDMKnbYcdEizhPGbY6JXbbAV6NV12zKb77N5wD+H7SmOx 8uobCQaGujcM9ZgW/cMWH4a65CELy8ZA2bthEK+Co2cWdxLWLj3tggdeNe4vkf3VExoh KXujxJQsoTbd7M8x9T/tmBrtbetayf4xV8Oe4ExEOa+dqN2oHWnEfuwmTvDO43Z/r8rb IV+Q== 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=gKwdhSp0UDizj4/5OY/+OEExWERtMsTxm9ghH8zjdyg=; b=ybbKewzHBIc+HPOn7eSBmX6Br2GWhe/Wke/7hoPlvEcLHmbt/nVzDOex/hJJ3v3eJn wpvHwhbinesddZC1QB7Svq5zw3FvpPgr+E9o7YY9NcUdp4i4SrvNMYRVIU5k680yjR8x rqZJ2PNXDJGkTNpftLbWti9lG32ckgeY0MN/exf0Ldm4rM44GQkCxxSO0XCqvY+hfucO dNfNE2AOy1tR60ipuYQ+tl3NPEG3fO4v4NCIdkAwOrdMEoYj24PL12322WfYAgt+PWZQ ccf5OC/gvzwHjJZxEjlCC1RDpsxKKkmQ4W1NnpW3y1RJAPCQj+IrzmXhICIykHW7Z8zm l7OQ== 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 u6-20020a170902b28600b00188ffe7f69fsi2444267plr.251.2022.11.18.16.09.04; Fri, 18 Nov 2022 16:09:17 -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 S237419AbiKSAEc (ORCPT + 99 others); Fri, 18 Nov 2022 19:04:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238040AbiKSADm (ORCPT ); Fri, 18 Nov 2022 19:03:42 -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 539F6E9160 for ; Fri, 18 Nov 2022 15:30:53 -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 1owA9Z-0004zc-W3; Fri, 18 Nov 2022 23:48:10 +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 1owA9X-0058ot-Hi; Fri, 18 Nov 2022 23:48:08 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9X-0000RX-0D; Fri, 18 Nov 2022 23:48:07 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 534/606] power: supply: smb347: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:28 +0100 Message-Id: <20221118224540.619276-535-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?1749880990799242680?= X-GMAIL-MSGID: =?utf-8?q?1749880990799242680?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/power/supply/smb347-charger.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/smb347-charger.c b/drivers/power/supply/smb347-charger.c index 996a82f8a2a1..b5f038310282 100644 --- a/drivers/power/supply/smb347-charger.c +++ b/drivers/power/supply/smb347-charger.c @@ -1528,9 +1528,9 @@ static const struct regulator_desc smb347_usb_vbus_regulator_desc = { .n_voltages = 1, }; -static int smb347_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int smb347_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct power_supply_config mains_usb_cfg = {}; struct regulator_config usb_rdev_cfg = {}; struct device *dev = &client->dev; @@ -1629,7 +1629,7 @@ static struct i2c_driver smb347_driver = { .name = "smb347", .of_match_table = smb3xx_of_match, }, - .probe = smb347_probe, + .probe_new = smb347_probe, .remove = smb347_remove, .shutdown = smb347_shutdown, .id_table = smb347_id, From patchwork Fri Nov 18 22:44: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: 23139 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488489wrr; Fri, 18 Nov 2022 16:46:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Tt722K3PCHsAMxYiEiJ7HmlI/b4N16kp9GYbE1pkJd3+KWzCr/pohxmRz5jIQAbqGGvZS X-Received: by 2002:a17:906:a0d7:b0:7b2:7af0:c231 with SMTP id bh23-20020a170906a0d700b007b27af0c231mr7779985ejb.240.1668818766222; Fri, 18 Nov 2022 16:46:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818766; cv=none; d=google.com; s=arc-20160816; b=JkpY19AxS8L9UYjB9301aP+w3yIM2pdHP7empjEC8aVC7g4OW6BDEwQQObZN5I+2Pw J5X57A3mxcc2l7EsrRg+1umhmv4RVrXeirm3zIHhDuijRg37GgCbp/Wv84vyULTybl1N 0up9W0UwHDggWF3lLWJ96JYKwj2edFN0nWtj+RlBOzQtrqaGy20c4IMgin+aCAWD2RcO NTBOvwduTV8/c/d0T8eUHQbdWjzXq5Rl0fuhuAvsWwU2J8fmqLYfJB5XESMQEV1S2OYI rCo2aqJo0CW1aPHrebDccBZD5woGllG/f8wC0ri5hClHfrhf+ABD5GGZvpX2aSzYYXe3 Y12g== 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=y0+mlYE9GVx2pXR9nVhfExlQgFzd9LHH/11Hh3VVsRM=; b=gVaQ1pCSJKZzfwjZUoY6VFV6Mw4jjLtO0swkTSbAQF6DOopwLR+XZ5UFzX3zWrHcx9 yMRr+gJwsYp8FdRovhBs7WbbTlMHdx4SrhCz+moOO3A8KBuolpugyHxPxhZFKVaydf1M WvlI31jWv0pUfKNtZ4e9HSnkM7rz2PByL7hu45ZwK1cLYt2yHXn7Vv+i2EIvN/0rb3AO X3f5KsgBgdFBcluRb8eZy0PAAhHER5AEHtRcKsjEDsRpW4Mi9a/QkOMhDbS01oM1055+ W8+5GbtMf/X/RQwaoOkcfw2SnvV8JYEJnUuEuZ6mY0FdGhyo9atkOE+CGrbJI+S3PXvi QIBQ== 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 l18-20020a056402255200b00463d1e263b1si4691312edb.364.2022.11.18.16.45.35; Fri, 18 Nov 2022 16:46:06 -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 S237623AbiKSAn7 (ORCPT + 99 others); Fri, 18 Nov 2022 19:43:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237249AbiKSAlr (ORCPT ); Fri, 18 Nov 2022 19:41:47 -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 C39CEC80C7 for ; Fri, 18 Nov 2022 15:45:01 -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 1owA9Z-0004yN-Mt; Fri, 18 Nov 2022 23:48:09 +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 1owA9X-0058oe-1N; Fri, 18 Nov 2022 23:48:07 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9X-0000Rb-5O; Fri, 18 Nov 2022 23:48:07 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 535/606] power: supply: ucs1002: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:29 +0100 Message-Id: <20221118224540.619276-536-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?1749883306416572222?= X-GMAIL-MSGID: =?utf-8?q?1749883306416572222?= 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/power/supply/ucs1002_power.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/ucs1002_power.c b/drivers/power/supply/ucs1002_power.c index ef673ec3db56..836d44c9fb74 100644 --- a/drivers/power/supply/ucs1002_power.c +++ b/drivers/power/supply/ucs1002_power.c @@ -532,8 +532,7 @@ static const struct regulator_desc ucs1002_regulator_descriptor = { .n_voltages = 1, }; -static int ucs1002_probe(struct i2c_client *client, - const struct i2c_device_id *dev_id) +static int ucs1002_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct power_supply_config charger_config = {}; @@ -681,7 +680,7 @@ static struct i2c_driver ucs1002_driver = { .name = "ucs1002", .of_match_table = ucs1002_of_match, }, - .probe = ucs1002_probe, + .probe_new = ucs1002_probe, }; module_i2c_driver(ucs1002_driver); From patchwork Fri Nov 18 22:44:30 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: 22725 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464053wrr; Fri, 18 Nov 2022 15:33:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf5mf7O9IMOFKJqGPqAZx+4jgDrnuxbu3DaFQte24RWG0TSlhTGvDMFmMIQGaQQ0OnFELE5T X-Received: by 2002:a17:906:b250:b0:7b2:86d5:8b14 with SMTP id ce16-20020a170906b25000b007b286d58b14mr7897140ejb.230.1668814437377; Fri, 18 Nov 2022 15:33:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814437; cv=none; d=google.com; s=arc-20160816; b=M38Dvi68h9h4cUstfhTL5UQfyzD69lxYkUF+hkvqNu8PAYufY48mvhpTLJ5p9wTMIA alx/8CVlC57hnTAcHRIA4PssqToFbpvC8l5cs4TOauLUpn1ZijKWKCeHEN55T7K6DsmJ ZoFZgqIq8AB8LcFgAkdqB2eE6YtYw1jJTEdH/OmB6JzZ+YV+hQxE/Nt3PfmAza0K3WSo eUEHCsIxK/S8pEG8qBl6YlVz056Bv4NAtq5ipCKRPRcRPwXDHwVBzCeqSAj8MtMvsb7q HG1qFk+zUU9OMw85+F/HhCo5ZcE/cly+FLA2EA3f+yf45pzXaBVVt1QQO0HrFUBqzzZz iGqA== 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=VO6c5SYSzmD6ZDJFIPPcTxgrxgFyK5Aj4wi1xZetjGc=; b=NPI0Mwt1/28k5E3Juo1jGlTUhaD1BgkbFrMl6bhBVZpO+WkZWSIGmdTusviKaUVhnJ 7Yowl7mTItl8saVtGVFuQ1wFhOfgRgLCAE10qe2rvHJn5qrLUbVRq6uLCbczszRFoG+k ZJDEc/+HF2kneFfW6+qeBEaUKb5jWQMrhnQ6zLPMdQi8dyi8gt5ky+PM9kD6uwsw1gFT UJnSjLsDd1gQc24A2eI+8K4u1IjOGCmMmoxBNIGZuRxyxDoz/7myS7TCHh9ekvJZU6CA erJjJevKBb+Rp5y5m1UIj6zVvFgKknxLrUVFQGsxXoJAYMKVOCi9p5PH03Q8AZJvuX3f M5iw== 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 y15-20020a056402270f00b0045d4a88c735si4282290edd.220.2022.11.18.15.33.33; Fri, 18 Nov 2022 15:33:57 -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 S235963AbiKRXbt (ORCPT + 99 others); Fri, 18 Nov 2022 18:31:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235964AbiKRXaX (ORCPT ); Fri, 18 Nov 2022 18:30:23 -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 C0C1575D96 for ; Fri, 18 Nov 2022 15:18:09 -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 1owA9Z-0004yi-Vo; Fri, 18 Nov 2022 23:48:10 +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 1owA9X-0058ok-5v; Fri, 18 Nov 2022 23:48:08 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9X-0000Re-B7; Fri, 18 Nov 2022 23:48:07 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Sebastian Reichel Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 536/606] power: supply: z2_battery: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:30 +0100 Message-Id: <20221118224540.619276-537-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?1749878766984569762?= X-GMAIL-MSGID: =?utf-8?q?1749878766984569762?= 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/power/supply/z2_battery.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/z2_battery.c b/drivers/power/supply/z2_battery.c index 1897c2984860..eb01b01bf593 100644 --- a/drivers/power/supply/z2_battery.c +++ b/drivers/power/supply/z2_battery.c @@ -176,8 +176,7 @@ static int z2_batt_ps_init(struct z2_charger *charger, int props) return 0; } -static int z2_batt_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int z2_batt_probe(struct i2c_client *client) { int ret = 0; int props = 1; /* POWER_SUPPLY_PROP_PRESENT */ @@ -306,7 +305,7 @@ static struct i2c_driver z2_batt_driver = { .name = "z2-battery", .pm = Z2_BATTERY_PM_OPS }, - .probe = z2_batt_probe, + .probe_new = z2_batt_probe, .remove = z2_batt_remove, .id_table = z2_batt_id, }; From patchwork Fri Nov 18 22:44:31 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: 23006 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477910wrr; Fri, 18 Nov 2022 16:12:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf5sfzFnbgaQrrRuHTZdv3ZxI7YPV7HtcD5pfnRmorcOqMHJPdt9GFwivUeLZQupIM/L0p6h X-Received: by 2002:a17:90b:2494:b0:211:906a:f8ef with SMTP id nt20-20020a17090b249400b00211906af8efmr10182090pjb.71.1668816765547; Fri, 18 Nov 2022 16:12:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816765; cv=none; d=google.com; s=arc-20160816; b=sTfBbTHhU4SDJwxS7fWIJdylxjwbZ0OiWQzsnAKotu3zUaCyhBRzu3N3JnFTq6Nn7k fBb6PhWXgEDeVUGCWIidqbkWf6mPs5A0qWFMBfj9IH/X9WA5Jdna4kDvotBy/AzHpqIr apM6j6uQL5rg8P7Jdtz700XmLwyCXQRYs/rLliKhxwTq4ve6++LNw8V7acOYOuxyfFrv Hk8pPLGy23nG6z8LOyNPoyt0Bvo7KtBAAomhsC/O4PiDusy/GWcgihCCvN/7rnIOFMZV YJ8tJR6/KWfUEWRyKpo4dwDSVV38qSPqKRnKpEoh3RiZ0fW5VHC0jlYWaiYCttc+tXfL lHzw== 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=lrwLQkBaq6D/afi58T/VHNEwm2G0P4w6Fhkgf/o0JSs=; b=WfSRLdzZ67QzGSxSjN8fC9K0jVixgPff8jcD0jRaE0CgqpXn0GzRWE1MTxiynhHBI/ 2ScG3gG3Mfxo/4+UiwtzD7TfWWkv/NZB/TWq/c7qAKwj75s3sRNDOvj4aSVmT1dYKmv5 hXJaQlLH9OO6aNv5jz3UcwoE8iIWF09tzlykVF1NY3rsZMsQoXdr5ZQI9c3Cz1EGxB7M y0OJ0iLMc0FpMFr6pH/PFp8GLWs2C7Maaayo8eyoCc8bCCZX8IsssuNM0EP4GsDxX6QZ U5iZPkEs/KUJNfdFbQigNTh73wNg7ZKg0tBclKZvnoy/S1QMgsRI4RaLAaxx4Dk8FDCZ A8SQ== 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 a5-20020a656545000000b00430b00f507dsi5175942pgw.430.2022.11.18.16.12.32; Fri, 18 Nov 2022 16:12:45 -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 S237686AbiKSALJ (ORCPT + 99 others); Fri, 18 Nov 2022 19:11:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237537AbiKSAJx (ORCPT ); Fri, 18 Nov 2022 19:09:53 -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 46CB67DEFB for ; Fri, 18 Nov 2022 15:33:17 -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 1owA9a-0004zU-5G; Fri, 18 Nov 2022 23:48:10 +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 1owA9X-0058oq-GA; Fri, 18 Nov 2022 23:48:08 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9X-0000Rj-Gr; Fri, 18 Nov 2022 23:48:07 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Thierry Reding Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 537/606] pwm: pca9685: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:31 +0100 Message-Id: <20221118224540.619276-538-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?1749881208698379777?= X-GMAIL-MSGID: =?utf-8?q?1749881208698379777?= 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/pwm/pwm-pca9685.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-pca9685.c b/drivers/pwm/pwm-pca9685.c index f230c10d28bb..e00152257cbe 100644 --- a/drivers/pwm/pwm-pca9685.c +++ b/drivers/pwm/pwm-pca9685.c @@ -513,8 +513,7 @@ static const struct regmap_config pca9685_regmap_i2c_config = { .cache_type = REGCACHE_NONE, }; -static int pca9685_pwm_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int pca9685_pwm_probe(struct i2c_client *client) { struct pca9685 *pca; unsigned int reg; @@ -664,7 +663,7 @@ static struct i2c_driver pca9685_i2c_driver = { .of_match_table = of_match_ptr(pca9685_dt_ids), .pm = &pca9685_pwm_pm, }, - .probe = pca9685_pwm_probe, + .probe_new = pca9685_pwm_probe, .remove = pca9685_pwm_remove, .id_table = pca9685_id, }; From patchwork Fri Nov 18 22:44:32 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: 22988 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477086wrr; Fri, 18 Nov 2022 16:10:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf55KDoqGWvWN3cH2WEMuVVFOinfgIR0sQ2PjLWscp+rOLoMMt0aAEgR/G59+dgImH7qLtA9 X-Received: by 2002:aa7:d999:0:b0:461:7f5a:e04e with SMTP id u25-20020aa7d999000000b004617f5ae04emr7906186eds.389.1668816637981; Fri, 18 Nov 2022 16:10:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816637; cv=none; d=google.com; s=arc-20160816; b=TNHNcCU3HBsjFtPXg+MwNSBe0pJRJqlKGdtuTzHADmsiztPjo8Ei5Fm5akgBWd5DVO oeanmGW674GjbG1IoMAWb1+DCLWjdOfFu47cb3XYwKgK79DMMTphANzaYmgQbXVLmxhP 2kmYC/LpfTyRbAKXUhLdxsc2nzn4RQGB1ZTY8SFovJwNIVtRKSunKb8M4qGzF2rMDR19 VkUc/ft38Qg50cN2QEk0myvSLbPsIeUm9u2IRgvWxJsn6sC6dkF7dfZvo5ABBtykPmBr TL2O06EAlIuYTf+MCXp7WwYEpcOVMq8d7s4wyC8c0vYykgT3jgqlnym22SMAabNzYC78 mXMA== 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=nvbzu+bzJoP0AefqpZyrAij92iV4fkLsStQqWQ/xoZQ=; b=Kb7BPINALq0f5XDdbgOVzOE/xuK5bhTJMNNo7ZgrGxQdZcRsAOvjDAkilLQNTFMTNr Bxy/LTzQ6mXtcUEGIswb31F2UG/J9iGzGRKenPH3AdAByC7P79fXmuDlS0ZvBHwhoqv8 LUbzTXOrbyrFn2RDxxxRPdNuBJ9ySMXBcdRLFV68SdJICSukFtqgW6DkGc/BtEcQ/lhG N0j2LgB+jNbWgckQb7/t2/sQ0LeurOVaVWalLDyaIOCzMtRjXTrs4OwGdSXizepkpgpk kKGUSSgQqakVPuloZeMHXLliAiYfKa7nePTE6qDCdK5RCVv9f48DOKHBhTB6T0161eOC sK6Q== 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 y16-20020a056402359000b00461d28ac266si4691807edc.579.2022.11.18.16.10.10; Fri, 18 Nov 2022 16:10:37 -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 S237523AbiKSAJv (ORCPT + 99 others); Fri, 18 Nov 2022 19:09:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237443AbiKSAJS (ORCPT ); Fri, 18 Nov 2022 19:09:18 -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 0D86B10F8 for ; Fri, 18 Nov 2022 15:32:45 -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 1owA9a-0004zr-Ay; Fri, 18 Nov 2022 23:48:10 +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 1owA9X-0058p0-MH; Fri, 18 Nov 2022 23:48:08 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9X-0000Rm-ML; Fri, 18 Nov 2022 23:48:07 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 538/606] regulator: act8865-regulator: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:32 +0100 Message-Id: <20221118224540.619276-539-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?1749881075221838225?= X-GMAIL-MSGID: =?utf-8?q?1749881075221838225?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/regulator/act8865-regulator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/act8865-regulator.c b/drivers/regulator/act8865-regulator.c index 19b9742c9ecc..53f2c75cdeb4 100644 --- a/drivers/regulator/act8865-regulator.c +++ b/drivers/regulator/act8865-regulator.c @@ -651,9 +651,9 @@ static int act8600_charger_probe(struct device *dev, struct regmap *regmap) return PTR_ERR_OR_ZERO(charger); } -static int act8865_pmic_probe(struct i2c_client *client, - const struct i2c_device_id *i2c_id) +static int act8865_pmic_probe(struct i2c_client *client) { + const struct i2c_device_id *i2c_id = i2c_client_get_device_id(client); const struct regulator_desc *regulators; struct act8865_platform_data *pdata = NULL; struct device *dev = &client->dev; @@ -790,7 +790,7 @@ static struct i2c_driver act8865_pmic_driver = { .driver = { .name = "act8865", }, - .probe = act8865_pmic_probe, + .probe_new = act8865_pmic_probe, .id_table = act8865_ids, }; From patchwork Fri Nov 18 22:44:33 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: 23108 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487798wrr; Fri, 18 Nov 2022 16:44:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf4dFD+gkusBmaa/tdYaJzwWgbnymnbQpbjPAEagWHv75despU307D/ILWI9kX7VLxjDE/He X-Received: by 2002:a50:ed06:0:b0:469:4468:aaf with SMTP id j6-20020a50ed06000000b0046944680aafmr607687eds.393.1668818646477; Fri, 18 Nov 2022 16:44:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818646; cv=none; d=google.com; s=arc-20160816; b=qs5WKFpJaZSVxLfkgp53s5Sb5NJw8uN3xnPat4FY9J9wTM40mC/ZgLMMQpr45v68tm xSvbgHfeyyiuA4ZreOku7Th74jnRiTkGF+hr1LURdAwTJws8EssS0HqStex0R05/revm 4LKuvYmgWJKeEACGCliFserdRjtBnmINPQbKadY73rQ7OrqkYJC77NDtATpDLDkJujhG DIIixYSpECMpPDPH5T4x2R3UdEi44YrGLJuvJLJoraDh5SstszTmgztPtH1SqVM8plFm uBxrOiX2Rn298ds6a7ecz/pytuUXRsJAzM/HXNCvOeAP2FaXpIm+wd0D8yN9/krcOAQ8 1GMQ== 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=x6Zs+PUpMlABpM7ynH8yJF2MartlpgEHY9V45dI42i8=; b=gSPcKSPmxJjLw+rCZSvVkT9VmGLziNkz3A2hG0y2Ffxugrj2TX2CjXqtAwFOpfDwqP ymx2zERVx14nSuPT/bf+H8vpgvEZWNi0P4+SPS8MsBV4yua4BmYeRjNheFQCLVi0ogid yAVKXVRugDzeaR3VfVFQrd8MU9T7jtpwDyarwR/JW737SXKB1NbxmV1oAFR9PGqajJTV 3k5W38UcREc5uTvBTPABfwUIP9Lj+QZtpc4j7SaV6y6zpIwi+9PcRMBkAwo7n3FKRy8x usxVmktex2uMpZCcvMMud8XeEsj44y93Tfn1VNzKepKcoAnUIdHNU2ZSUGqwi4mrfmTX jnbA== 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 y16-20020aa7d510000000b0045a11b60c57si3823192edq.121.2022.11.18.16.43.36; Fri, 18 Nov 2022 16:44:06 -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 S236404AbiKSAi6 (ORCPT + 99 others); Fri, 18 Nov 2022 19:38:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235647AbiKSAiX (ORCPT ); Fri, 18 Nov 2022 19:38:23 -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 B8CEC13F81 for ; Fri, 18 Nov 2022 15:44:05 -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 1owA9a-0004zh-5o; Fri, 18 Nov 2022 23:48:10 +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 1owA9X-0058ow-JO; Fri, 18 Nov 2022 23:48:08 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9X-0000Rp-RV; Fri, 18 Nov 2022 23:48:07 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Michael Hennerich , Liam Girdwood , Mark Brown 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 539/606] regulator: ad5398: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:33 +0100 Message-Id: <20221118224540.619276-540-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?1749883181024963844?= X-GMAIL-MSGID: =?utf-8?q?1749883181024963844?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Acked-by: Michael Hennerich --- drivers/regulator/ad5398.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/ad5398.c b/drivers/regulator/ad5398.c index 75f432f61e91..2ba8ac1773d1 100644 --- a/drivers/regulator/ad5398.c +++ b/drivers/regulator/ad5398.c @@ -212,9 +212,9 @@ static const struct i2c_device_id ad5398_id[] = { }; MODULE_DEVICE_TABLE(i2c, ad5398_id); -static int ad5398_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ad5398_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct regulator_init_data *init_data = dev_get_platdata(&client->dev); struct regulator_config config = { }; struct ad5398_chip_info *chip; @@ -254,7 +254,7 @@ static int ad5398_probe(struct i2c_client *client, } static struct i2c_driver ad5398_driver = { - .probe = ad5398_probe, + .probe_new = ad5398_probe, .driver = { .name = "ad5398", }, From patchwork Fri Nov 18 22:44:34 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: 22827 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471344wrr; Fri, 18 Nov 2022 15:56:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf7pUDa9denWTSEHkIAO5bP9W6ylLkKo6NOb/0j2cMgPECnRHsl1sTbwlIpIjNhV6pM+ww04 X-Received: by 2002:a17:906:68cd:b0:7ac:f8e3:d547 with SMTP id y13-20020a17090668cd00b007acf8e3d547mr7929458ejr.53.1668815791755; Fri, 18 Nov 2022 15:56:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815791; cv=none; d=google.com; s=arc-20160816; b=T7y8jzNBS+Pq+yI5P9+o7v9nK449SWjaumL6JEU3AS0bfiTyd4r5KcZBxbsCsvETZ/ kPpb7H1S9Hids5D60yURW5QryldVlQPnVaS1RqaJ8XF8c2nHInhJ5ttdQ3wxtUwviUFV Q59mvZVVVRtYwJJnIdBSVZjSiidbZg7HXR3PzqtKOJYdRzxyw2Ncsf3x8xVsw2nMImyi pjYXmtpssTkHoRr6NeetnWI3LOgkxjfqBrsIHYGSXmanTg0UggbhHd3benAGgv2t98zY U2inb+7LR70ikMCK0NnxoCk/QdAWEpMijTusxaq5ZtIWb1fC4cAZkPOO81dDxVweR3wC MpoA== 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=dsRuCAwcynpV3BcfmBUnIseouD8Ay2ZnVLzW5gNZu0Y=; b=vXXrit4J7+vAvnsOuNtbTNMszgS1kvFAug0mWiNYADWRhELRzDFs7vY3co5D2OocFY s1dpMcNTxFCk0nLBTARa8/wsNbpabcXrydoQbJ3s+VCnqBtdNe/CW8HEPNUUXDrm7w1t EldhC1E4c8g95ckFSjc0O//dlKdbp+nPr0UAN2xy+68CYEfLn7w0m5kEBm286H9ecKWR OsGpK6mkY0qhN4qYyv7mLnd9Sc+DwnjBsmRk5icUhoDQlSDfqi81IlE9T6ljBevo6hOo G7ogkJly8giESn8R6wiFppX896p+dWH2Icc0R4H9F9EuIUyDFef8/oyTCS3dEqok9bTJ htxQ== 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 xf9-20020a17090731c900b0078e15c30a6csi4496037ejb.559.2022.11.18.15.56.07; Fri, 18 Nov 2022 15:56:31 -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 S233420AbiKRXpH (ORCPT + 99 others); Fri, 18 Nov 2022 18:45:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229993AbiKRXo2 (ORCPT ); Fri, 18 Nov 2022 18:44:28 -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 0355493709 for ; Fri, 18 Nov 2022 15:24:32 -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 1owA9a-00051k-L1; Fri, 18 Nov 2022 23:48:10 +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 1owA9Y-0058p9-76; Fri, 18 Nov 2022 23:48:09 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9Y-0000Rs-3K; Fri, 18 Nov 2022 23:48:08 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Support Opensource , Liam Girdwood , Mark Brown 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 540/606] regulator: da9121-regulator: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:34 +0100 Message-Id: <20221118224540.619276-541-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?1749880187864487545?= X-GMAIL-MSGID: =?utf-8?q?1749880187864487545?= 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/regulator/da9121-regulator.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/da9121-regulator.c b/drivers/regulator/da9121-regulator.c index e4c753b83088..d016e049d264 100644 --- a/drivers/regulator/da9121-regulator.c +++ b/drivers/regulator/da9121-regulator.c @@ -1128,8 +1128,7 @@ static inline int da9121_of_get_id(struct device *dev) return (uintptr_t)id->data; } -static int da9121_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int da9121_i2c_probe(struct i2c_client *i2c) { struct da9121 *chip; const int mask_all[4] = { 0xFF, 0xFF, 0xFF, 0xFF }; @@ -1197,7 +1196,7 @@ static struct i2c_driver da9121_regulator_driver = { .name = "da9121", .of_match_table = of_match_ptr(da9121_dt_ids), }, - .probe = da9121_i2c_probe, + .probe_new = da9121_i2c_probe, .remove = da9121_i2c_remove, .id_table = da9121_i2c_id, }; From patchwork Fri Nov 18 22:44: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: 23036 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp480325wrr; Fri, 18 Nov 2022 16:19:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf4IIPzB+C1XDnrTBYedsCUjAfJuYsI7oGEHDt3BsPgmTNj3riGzI2HePDq99VCPCpCpzKub X-Received: by 2002:a17:906:79c4:b0:778:e3e2:8311 with SMTP id m4-20020a17090679c400b00778e3e28311mr8179138ejo.342.1668817195656; Fri, 18 Nov 2022 16:19:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668817195; cv=none; d=google.com; s=arc-20160816; b=eV+NBgq+krl4gClPWG9skpm5QQOhwPHRbdI4pGRgt7mGII0dztUx0nEKjayCf/U2hD miRNVrHX7muMMor+VwZxEpbQDPM4XWDdSgLPYi2kghcm3bX7Gf0bGf3eL3K1oV7vMlO2 3hdJC0iFE5A8jpxX0+CCvZ3fZhY5R+vd4+mOOKmma1BO1Mlw+QIZcdimu+noykywte5o mV2Zg75aHSMs09sWe+FvHcirMbzsqfigPwv+FXq+oakgE1Q86irB9Z/gTuKZURH0PYZG 7ZX7Gka8WDWbFa/Rp6zdnSizliMj8aPk2SVElwb/TJDkFtWR566QaymEmkwYA5zTZgxI 2T0w== 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=JQ54Mh19u1kuKGauDFrSFDaoWJQsOuNcMokkcDat2AY=; b=qUKG3FUdUM9KM61J4UxWeeLMf32kDntWVx7/Yo0RvZBcVoEhoKEYh52uSUnhHnOzkE 3YlI5HDC1Cy63YuJlfUciPrFCgwqPcKYA1ku/tWAqMNmxN3/wajiMgNRK3aCcMrkFYZM bhqWTpYDigRSzYYFtoqaAgeMad9W7mKx8Gb0sRsvRlNJSuT2bDfVt8O+U8l1NanH3+lD X5lHTeuZR3rVT8odjqf1PkgExjt3qOP7X0IdH3GSh9cs2YVfw+nONZAphSF6rE6NSGEY 7OEcJdi/S1RJD2dvh4mBCa1rIwNrLkGzzrR5Siv/q5Z/E/rs7lhKkxyA6j+GwhwVB6Vp Flyg== 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 tc17-20020a1709078d1100b007aea5ae3956si3691218ejc.820.2022.11.18.16.19.32; Fri, 18 Nov 2022 16:19:55 -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 S237503AbiKSASh (ORCPT + 99 others); Fri, 18 Nov 2022 19:18:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235144AbiKSAQp (ORCPT ); Fri, 18 Nov 2022 19:16:45 -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 E60EFB700B for ; Fri, 18 Nov 2022 15:35: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 1owA9a-00051h-J9; Fri, 18 Nov 2022 23:48:10 +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 1owA9Y-0058p8-6E; Fri, 18 Nov 2022 23:48:09 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9Y-0000Ry-Bj; Fri, 18 Nov 2022 23:48:08 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 541/606] regulator: fan53555: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:35 +0100 Message-Id: <20221118224540.619276-542-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=ham 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?1749881659676926993?= X-GMAIL-MSGID: =?utf-8?q?1749881659676926993?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/regulator/fan53555.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c index dac1fb584fa3..529963a7e4f5 100644 --- a/drivers/regulator/fan53555.c +++ b/drivers/regulator/fan53555.c @@ -549,9 +549,9 @@ static const struct of_device_id __maybe_unused fan53555_dt_ids[] = { }; MODULE_DEVICE_TABLE(of, fan53555_dt_ids); -static int fan53555_regulator_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int fan53555_regulator_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device_node *np = client->dev.of_node; struct fan53555_device_info *di; struct fan53555_platform_data *pdata; @@ -665,7 +665,7 @@ static struct i2c_driver fan53555_regulator_driver = { .name = "fan53555-regulator", .of_match_table = of_match_ptr(fan53555_dt_ids), }, - .probe = fan53555_regulator_probe, + .probe_new = fan53555_regulator_probe, .id_table = fan53555_id, }; From patchwork Fri Nov 18 22:44:36 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: 22938 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474694wrr; Fri, 18 Nov 2022 16:04:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf6qQi1PuHPkn2UOS1ulneP3lG5MR+9DkTLXH5rwU7AE68wYgvNI0MCPLSnlFSJIWMCyZziV X-Received: by 2002:a17:906:7d50:b0:79e:4880:dd83 with SMTP id l16-20020a1709067d5000b0079e4880dd83mr7869176ejp.166.1668816286552; Fri, 18 Nov 2022 16:04:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816286; cv=none; d=google.com; s=arc-20160816; b=JrIpWO92BNwRsGxfa5YPG6SES2m3gj17SgyJswWhAQIlnXV+Lh2UsGlNbohnE4kGvn MekEVVWeE9otsMvW7aLkuJA6Wp3x9GbtmMy8nRLfo3Bd5gV+a6379NdtSazoaLwuMuqt OtZhNpJK4hjZFtQ+7fXOkWvWuYD9nqmqlfZgEiT35V5IHKbcbiAwVMe9JrvVPasRysT9 20yZdjoyTA3rqHczlvC2QaJUIl2ifdZJ5gRISb36J4//7SBjpyZ46HX6tWgX8s0PcQtO 1D3LBSvu7bqaCeDAamSCZJBGjcDgiXbVExZezc0Wuk1/tsLZqu0jxG6KY5LkpDgdTY37 BvNA== 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=qRzhyKC6nnMVzB1Tc7d6iVChVf8dHmz+TGaHcoOce5Y=; b=l4IGwN4Ch5L7dVewpV9w++zXoi3WNYLCmbWrRYWdutSCju08KoH6+RDYtKxvguqUk9 iZza+CfE7oOqNluECIPwGRHFaU0v03d4qpVMKwMTTQL0nnXZEWhrWc6+yrY5dxPww6vq VoKs1yXAY0TX5BBEYtudYU+dOeH7LjT551iAsGMYZdZ9CXFbbR26nTOlBQYTENfy25Gk HHP9vpArZMszhRLNudfhse8uuBNhdrdOs3vfHSGq7tQ1iWriug0Oq9PAR3BBoDWXBNIQ 8ytmzSKEKwgLXJnf9M05sUWMorg1EQKXzLIJ6DJUraFfabIq2sHrZoPD2HnHCHwJK5lH Br9A== 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 hp36-20020a1709073e2400b00782a33f2850si4460029ejc.736.2022.11.18.16.04.22; Fri, 18 Nov 2022 16:04:46 -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 S235221AbiKSAAF (ORCPT + 99 others); Fri, 18 Nov 2022 19:00:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237235AbiKRX5M (ORCPT ); Fri, 18 Nov 2022 18:57:12 -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 B75C4B220C for ; Fri, 18 Nov 2022 15:28:55 -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 1owA9b-00052c-3A; Fri, 18 Nov 2022 23:48:11 +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 1owA9Y-0058pH-G5; Fri, 18 Nov 2022 23:48:09 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9Y-0000S2-Gl; Fri, 18 Nov 2022 23:48:08 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 542/606] regulator: isl6271a-regulator: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:36 +0100 Message-Id: <20221118224540.619276-543-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=ham 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?1749880706613422595?= X-GMAIL-MSGID: =?utf-8?q?1749880706613422595?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/regulator/isl6271a-regulator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/isl6271a-regulator.c b/drivers/regulator/isl6271a-regulator.c index 591a64e1ca61..b23b052eab10 100644 --- a/drivers/regulator/isl6271a-regulator.c +++ b/drivers/regulator/isl6271a-regulator.c @@ -97,9 +97,9 @@ static const struct regulator_desc isl_rd[] = { }, }; -static int isl6271a_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int isl6271a_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct regulator_dev *rdev; struct regulator_config config = { }; struct regulator_init_data *init_data = dev_get_platdata(&i2c->dev); @@ -148,7 +148,7 @@ static struct i2c_driver isl6271a_i2c_driver = { .driver = { .name = "isl6271a", }, - .probe = isl6271a_probe, + .probe_new = isl6271a_probe, .id_table = isl6271a_id, }; From patchwork Fri Nov 18 22:44:37 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: 22715 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp463331wrr; Fri, 18 Nov 2022 15:32:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf5/jmUa9zuy380XOEET9AVFFysQ7aOpyk14ikVdL512mj15X+RgdMfRu8Bi+xBVJomnxHhW X-Received: by 2002:a05:6402:2404:b0:467:67e1:ca61 with SMTP id t4-20020a056402240400b0046767e1ca61mr8242188eda.27.1668814329751; Fri, 18 Nov 2022 15:32:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814329; cv=none; d=google.com; s=arc-20160816; b=0shG4pKO0YvR2FERe5nqZ0ORpBeqcPwcxj8YQVlX5qktb2S0HWURZ0K3gCXA7RTfKR ccHnj5HzmHiZMHyiTAiCSkSKkbPfTB8E0uuVFQIyGD5FRJW65+X7wC9XRlfX80R/K+Zh jO6J7pLpcC7U4AesMofeKQO7lekXla3p0cMQW1bNunnHNLRp6Tjzu63kUkrOkeBiHWcB vhX4bCW4/FFNdzVoUQJcS0NO9HSTIRvZ2wwMIyBc5NemNLcszyXY/86Ngmmvtce1H54L ph0UETRw/3M8O+/HFrOFbkkbjfeoujTQsRPxhITGu+z64ZO8dxhb/B6kiLeAOWNcE7wu dPgA== 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=91QUcJVwv/tC16mWWsWtQRcRBugEjocwGpRNI4xRx/E=; b=U2wDJb5vZJDL0zLtbNaw8GjOfT9ViaW785zYkxJPa0JdlGn8a+91UP3MpaC5JmAbtC ClicnmlYyPfiYrWKo+qGU0zkCiV8+1JXDFrM9jYc6OHuiIHsYiJJxbwckJ3eoincnv3B NH9cZuOFgiWIFWwRVwC8boX5z/gdWdAC1hwCWuwBO1grl3ytVc641aG1Ibl+eeJnoK7k aTiPuyZsETNSPPjHm0sznhvsJxQn6J8e48oi1CuH86ig23ErIN0eP/vgbhp307IxKpKG L49ICiywT2HM3hwaFEqcZ4GgigsDKtRFbov/bJcv49HgXH+rh/R12a7mrOQSTFwWM/uq fyuA== 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 j14-20020a05640211ce00b00456eaa4fb1fsi4204114edw.223.2022.11.18.15.31.45; Fri, 18 Nov 2022 15:32:09 -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 S236021AbiKRXbC (ORCPT + 99 others); Fri, 18 Nov 2022 18:31:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235795AbiKRX32 (ORCPT ); Fri, 18 Nov 2022 18:29:28 -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 BF118C2846 for ; Fri, 18 Nov 2022 15:17:45 -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 1owA9a-00052o-Tc; Fri, 18 Nov 2022 23:48:10 +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 1owA9Y-0058pK-JC; Fri, 18 Nov 2022 23:48:09 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9Y-0000S7-M2; Fri, 18 Nov 2022 23:48:08 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 543/606] regulator: lp3972: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:37 +0100 Message-Id: <20221118224540.619276-544-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?1749878654390521339?= X-GMAIL-MSGID: =?utf-8?q?1749878654390521339?= 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/regulator/lp3972.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/lp3972.c b/drivers/regulator/lp3972.c index 2d276bbeedf2..27b216bf18fc 100644 --- a/drivers/regulator/lp3972.c +++ b/drivers/regulator/lp3972.c @@ -495,8 +495,7 @@ static int setup_regulators(struct lp3972 *lp3972, return 0; } -static int lp3972_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int lp3972_i2c_probe(struct i2c_client *i2c) { struct lp3972 *lp3972; struct lp3972_platform_data *pdata = dev_get_platdata(&i2c->dev); @@ -547,7 +546,7 @@ static struct i2c_driver lp3972_i2c_driver = { .driver = { .name = "lp3972", }, - .probe = lp3972_i2c_probe, + .probe_new = lp3972_i2c_probe, .id_table = lp3972_i2c_id, }; From patchwork Fri Nov 18 22:44:38 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: 23085 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487262wrr; Fri, 18 Nov 2022 16:42:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Ml73ljvL3bNFqf7zy81YtqkglQha0tEecPs4ps74AwaFk0wAhujXeVKPo+4PcdJXVpwno X-Received: by 2002:a05:6402:707:b0:467:6035:285c with SMTP id w7-20020a056402070700b004676035285cmr8126507edx.386.1668818546441; Fri, 18 Nov 2022 16:42:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818546; cv=none; d=google.com; s=arc-20160816; b=b01NfB1YUtB8+a0X8NS5lz8JalTh8VAJ0GTTiNuECMeN+P4FKxRQFe/oHRKRIsYqRj 4LpSTNivcCrBtWrcjRQ8huKYSyLMaaa/kXradHWb1t4aHA48P6p66NiqVIFrGaa6hQN6 Y8MS8s2xSSppHwhHPHdMCM1N1eDKznyMOGsQm/DE8iiewgxKaqbQ6ZOh458lIWJNGGl2 yMKRotvY55O8BUn8Jh6MRYNjU+BlGMx6FV71eOyAriO0eN0Sn2ekYL8nIZWw8wfFDsuz 19AYRQZQYgxSRS1nl1eA9+o/d9xtRYXRDzls9ehO68159TXKL2lk3TKI1AppQ+gLjGJo uH8Q== 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=SbDppgtIJr06gKvxP/fitiKBEEyUmYylar9VaXBcjfc=; b=1BwGlNKKpYGc8ZqJQ2p7vAUxEdQsClIxzdxGy4urNsicMj/14OwiVOWotQq40B2l+I Y/35qEEZEV3G7NEfGngBPOrAfcj+L2s6wVyOYoQAqqTfauA+9twJ910ovIDwjxE4sJnb zHrTwPW287da66o8nOOw3wTMwYq43JFw9mmOFXHMp5t+Com15nR+ORNM1FS6bR3j3IKP UiFpzeQQFpBDQCgA/JA2VX5QW2j++VA3r7GhELyp3in4b3apdtIU30ea4PqipW1z610k 5+umMYcJPDlqbLeZlk/Y4jYb56ahI0kjn7V7TjC+7dvS1uo3Gs0ItfJJHPkQ1+FYIC7I +Sgw== 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 z22-20020a056402275600b004618ed2dfe2si4997904edd.6.2022.11.18.16.41.59; Fri, 18 Nov 2022 16:42:26 -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 S233166AbiKSAhR (ORCPT + 99 others); Fri, 18 Nov 2022 19:37:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236434AbiKSAf6 (ORCPT ); Fri, 18 Nov 2022 19:35:58 -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 E9F48116A9D for ; Fri, 18 Nov 2022 15:43:20 -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 1owA9b-00053Q-Ae; Fri, 18 Nov 2022 23:48:11 +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 1owA9Y-0058pO-Qp; Fri, 18 Nov 2022 23:48:09 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9Y-0000SB-TE; Fri, 18 Nov 2022 23:48:08 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 544/606] regulator: lp872x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:38 +0100 Message-Id: <20221118224540.619276-545-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?1749883076331182144?= X-GMAIL-MSGID: =?utf-8?q?1749883076331182144?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/regulator/lp872x.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/lp872x.c b/drivers/regulator/lp872x.c index 35d826fe9def..c576894c3d52 100644 --- a/drivers/regulator/lp872x.c +++ b/drivers/regulator/lp872x.c @@ -879,8 +879,9 @@ static struct lp872x_platform_data } #endif -static int lp872x_probe(struct i2c_client *cl, const struct i2c_device_id *id) +static int lp872x_probe(struct i2c_client *cl) { + const struct i2c_device_id *id = i2c_client_get_device_id(cl); struct lp872x *lp; struct lp872x_platform_data *pdata; int ret; @@ -946,7 +947,7 @@ static struct i2c_driver lp872x_driver = { .name = "lp872x", .of_match_table = of_match_ptr(lp872x_dt_ids), }, - .probe = lp872x_probe, + .probe_new = lp872x_probe, .id_table = lp872x_ids, }; From patchwork Fri Nov 18 22:44:39 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: 22696 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462642wrr; Fri, 18 Nov 2022 15:30:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf6g8pWxykNtWtAbwxhZGI9ILcB4LpejuZB15+ckp+8wTer2CLDaW/Y9Hk5YQgRKSQNx6q9z X-Received: by 2002:a17:907:774e:b0:7ae:39b4:7208 with SMTP id kx14-20020a170907774e00b007ae39b47208mr7620840ejc.766.1668814240676; Fri, 18 Nov 2022 15:30:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814240; cv=none; d=google.com; s=arc-20160816; b=nn231nMED3MG+ej2phbVlY51NYUjwITB1pESB+Ueos821F/svR0RGoXQSAE9vx7ojb IjsoiVmz0hnQ63CIy8J/hL9fhJ2BAcjor+gyO+IEOOcEnXfz7fdZTNxUldpvZaLq1Mps BZo84AkHVGqxWPWF8Y31Td3bFNTMQJAIi+UasjBXBQb7Oonf4Okm+y+4xtDYb0qIuJQp xEDtHTu9xM2TeL0BeVm5duMNrDtt5CbqklvBOVGbCFwIrx4al6jmcY8GVrUYGv3n4Cl0 oYqtcZ2DPo9Vg0IOKg5gtdyw4BfdqAHkWmGsfyN7DbWJ7C0ZVjpobwbC6tnyyrveFrRg 7PRA== 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=+2fbOGYMP2+EISSKwdI0IasQkYygGQOUT9pltUECwNg=; b=KC/r7mksDqFfNpHWXyiLgmRGXsfVs9P251JYzjGmpTU7MR0/G7/DyX600qu98R2y15 z9X4iEwdkYMo1+gvqpHkXsyFO0yw2I7VTczdmAvtkwCYxAwQVgiOZlDOjSPJ85eDv6qZ 5hO3qonFAOnFekguA/zcm0bNx/HKYREn661mjkRWFgtwS7MwLrqmn0g/rMF3PQ9IPBYm bHVtcX0y47istnXjgF2MTFpDwjXCksk9AvVvyyLbsb1PasO3yZXhRvurZ5dBSkaPsT4i 0VrPewACQJtpjkkHHC0U5XtBWiOmpFGAuwRCf06nAZVS/gKN26lnN/u6osFh4BQL24aG +yfg== 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 er26-20020a056402449a00b00459c1e64776si3897542edb.412.2022.11.18.15.30.16; Fri, 18 Nov 2022 15:30:40 -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 S235895AbiKRX3o (ORCPT + 99 others); Fri, 18 Nov 2022 18:29:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235788AbiKRX2o (ORCPT ); Fri, 18 Nov 2022 18:28:44 -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 48C4BA84F2 for ; Fri, 18 Nov 2022 15:16: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 1owA9b-00053s-O2; Fri, 18 Nov 2022 23:48:11 +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 1owA9Y-0058pT-VM; Fri, 18 Nov 2022 23:48:09 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9Z-0000SE-2S; Fri, 18 Nov 2022 23:48:09 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 545/606] regulator: lp8755: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:39 +0100 Message-Id: <20221118224540.619276-546-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?1749878560920687782?= X-GMAIL-MSGID: =?utf-8?q?1749878560920687782?= 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/regulator/lp8755.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/lp8755.c b/drivers/regulator/lp8755.c index 31b43426d47c..467dfdcebc91 100644 --- a/drivers/regulator/lp8755.c +++ b/drivers/regulator/lp8755.c @@ -357,8 +357,7 @@ static const struct regmap_config lp8755_regmap = { .max_register = LP8755_REG_MAX, }; -static int lp8755_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lp8755_probe(struct i2c_client *client) { int ret, icnt; struct lp8755_chip *pchip; @@ -442,7 +441,7 @@ static struct i2c_driver lp8755_i2c_driver = { .driver = { .name = LP8755_NAME, }, - .probe = lp8755_probe, + .probe_new = lp8755_probe, .remove = lp8755_remove, .id_table = lp8755_id, }; From patchwork Fri Nov 18 22:44:40 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: 23048 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486620wrr; Fri, 18 Nov 2022 16:40:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf4k7NdFSb3CoZEpQls6t9sdRWj5Vy1X8cTgY9vUm7AP2vTh03F7w/cT5uehuVCYy16Pnv7Q X-Received: by 2002:aa7:cb09:0:b0:463:ff10:4ff with SMTP id s9-20020aa7cb09000000b00463ff1004ffmr8373138edt.290.1668818441550; Fri, 18 Nov 2022 16:40:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818441; cv=none; d=google.com; s=arc-20160816; b=RUpYuJhY21fc39d52PxP0m40vMQWtTwAvGaIiuBvLPK8bMK1xqSO0z8/j1jNbPXJjf swih0Ejeb8pD08kyymgKxcwzTf4S0+CgLSz1oe6JcN/sovjaL/urkL4RYjKq9O23sxWY B4Pvj/qsrcb1HkxCLugo52MiBPIq4jtnqa6z1hgJjfqG3n5DGSjyl+qOEI/twlpsg1UP gnfwUZ/+6aowz7qDGzI1l9Zol6lcdFWe5W8IS8SLE50/xZ9FKiwfwS/U6YvaTrhuBa6N hZ0fGSHtGpqbpragYaqEw7RbdJ5K0jEly/D+xsgLkPSjkEfNrQQWdSPHWt/d0q03tEla 341g== 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=1B3ZJusadl/WGqulMtDgmL4DDgOs9JeWTkbyyyKg6AM=; b=0uaqqiUTurC0Ya9FJO3YcjXLFapqvKGk49/RhSR1cdvcWUhshqOhGsNm8gFlavllt1 eUQmu+b6v+ozk0TuLU3MY7uWh72u7m7VOFs4iJw2DW5dz6jfexj+vc6x03ZT3488Cn94 0qg9X+HevtLVNn6qulzXcgFAVk6j2UWlIHRSrY64hSDiUzrNR7Bpx1JfbbcgaG0SII6g LaXnfdL0THGoRJ1L6YZzLHXwABI8we1i8OJMibLd1ky0iEW+vRYO3zD5/xcFcmiNQcA1 hIIibPdXqGHjjKX6tu+EGlKn6r9GbIEvsL4zPQM9bOP9COv3W9lWOUvqZGCTe49glp6j CQXg== 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 z8-20020a05640235c800b00461d60a86casi5064645edc.135.2022.11.18.16.40.18; Fri, 18 Nov 2022 16:40:41 -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 S237962AbiKSAXq (ORCPT + 99 others); Fri, 18 Nov 2022 19:23:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237417AbiKSAXQ (ORCPT ); Fri, 18 Nov 2022 19:23:16 -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 532315216B for ; Fri, 18 Nov 2022 15:37:49 -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 1owA9c-000555-4X; Fri, 18 Nov 2022 23:48:12 +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 1owA9Z-0058pe-D5; Fri, 18 Nov 2022 23:48:10 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9Z-0000SJ-CQ; Fri, 18 Nov 2022 23:48:09 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 546/606] regulator: ltc3589: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:40 +0100 Message-Id: <20221118224540.619276-547-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=ham 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?1749882966107082022?= X-GMAIL-MSGID: =?utf-8?q?1749882966107082022?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/regulator/ltc3589.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/ltc3589.c b/drivers/regulator/ltc3589.c index 5e0b669c3a01..460d34c50fb0 100644 --- a/drivers/regulator/ltc3589.c +++ b/drivers/regulator/ltc3589.c @@ -378,9 +378,9 @@ static irqreturn_t ltc3589_isr(int irq, void *dev_id) return IRQ_HANDLED; } -static int ltc3589_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ltc3589_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; struct regulator_desc *descs; struct ltc3589 *ltc3589; @@ -476,7 +476,7 @@ static struct i2c_driver ltc3589_driver = { .name = DRIVER_NAME, .of_match_table = of_match_ptr(ltc3589_of_match), }, - .probe = ltc3589_probe, + .probe_new = ltc3589_probe, .id_table = ltc3589_i2c_id, }; module_i2c_driver(ltc3589_driver); From patchwork Fri Nov 18 22:44:41 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: 23087 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487608wrr; Fri, 18 Nov 2022 16:43:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf54HDMPF1fj/FRMSHnGfCRnAAgoUlQpo9HmmU14Mi+IK/207gOlno1cQFUzpZCgsbSXQMFP X-Received: by 2002:a17:906:e286:b0:7ae:71d4:37b with SMTP id gg6-20020a170906e28600b007ae71d4037bmr7978181ejb.237.1668818614173; 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=ZWNnzXmOY47yg5AsG7jatiRxzlCerV9apuoZcR6aN4FSQDHaqYsCRjgS3Qpf1iwx0/ 9qbJHIsdJddEdjB28F8mFimVpZuFfr03QCoCiZ+k3mIkvqRFvjdIPgUvVWDhYtmUlexJ 8XbCPD0A20D6HmOoJ3hJGkaLr+Co9GNyIk9Az0opCyyLo8BBlLVdnJ/QsWhPFdUSyvog tvLYfENrcqQncKYEfuU3j6ZOQ9tjVwxHIIntoM92Ubk3aGiduPBFj7jU+c8rMpCYJrh/ e2vdDIGjUMZ9T/zs7mE/nV1f33SDf6/VmBe9oDqfNTrIrqyGh5xrUC8SXToqzY6mJ98c PbTA== 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=gNHpim9SqrOCVi3EAgnIRH1qhUFKEjflwX86MkGlS0Y=; b=k5DLgQGGUg1U5tU63nTkIRwhtZzfdlnxQaN2y+CMjPLI7vpPagIb1F+O3gFbYXdlc0 SQCwLtn+UyGSDMVhqKQrNFdY07iWIec4zxMfVmsHY8rlEzK3cV+auMKp02QLRJb+3uFb YtuiQFS4m2TFIkLjc4yW09HDcyM41qbhyGLjC8q0cxm2I2v+02a/vEp8cIF9Xq2/CXxX Ye69Aa7igfbO4aLPYQgrqqXZRFxoO2tJFeKmfKSDIcTVNTgOmMl2UsGCeR865iRHXRYL 7t/9kX/bGnOagQJ988MpcZVZ0uyKxur+uY9KfI/DrjYICgu1zVFaipMMmnP9QDrYqb07 RAyA== 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 hz5-20020a1709072ce500b0078c2c22d6cesi4319184ejc.70.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 S234497AbiKSA0m (ORCPT + 99 others); Fri, 18 Nov 2022 19:26:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233147AbiKSA0U (ORCPT ); Fri, 18 Nov 2022 19:26:20 -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 AC9A5107E70 for ; Fri, 18 Nov 2022 15:38:56 -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 1owA9d-00058d-GZ; Fri, 18 Nov 2022 23:48:13 +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 1owA9a-0058q4-Sx; Fri, 18 Nov 2022 23:48:11 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9Z-0000SN-JC; Fri, 18 Nov 2022 23:48:09 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 547/606] regulator: max1586: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:41 +0100 Message-Id: <20221118224540.619276-548-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?1749883146876843588?= X-GMAIL-MSGID: =?utf-8?q?1749883146876843588?= 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/regulator/max1586.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/max1586.c b/drivers/regulator/max1586.c index d4958394e608..a00aa2e8ff3f 100644 --- a/drivers/regulator/max1586.c +++ b/drivers/regulator/max1586.c @@ -207,8 +207,7 @@ static const struct of_device_id __maybe_unused max1586_of_match[] = { }; MODULE_DEVICE_TABLE(of, max1586_of_match); -static int max1586_pmic_probe(struct i2c_client *client, - const struct i2c_device_id *i2c_id) +static int max1586_pmic_probe(struct i2c_client *client) { struct max1586_platform_data *pdata, pdata_of; struct regulator_config config = { }; @@ -290,7 +289,7 @@ static const struct i2c_device_id max1586_id[] = { MODULE_DEVICE_TABLE(i2c, max1586_id); static struct i2c_driver max1586_pmic_driver = { - .probe = max1586_pmic_probe, + .probe_new = max1586_pmic_probe, .driver = { .name = "max1586", .of_match_table = of_match_ptr(max1586_of_match), From patchwork Fri Nov 18 22:44:42 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: 22894 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472440wrr; Fri, 18 Nov 2022 16:00:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf4aKqusIHjF0A3EWLezOyT9uOq4qNCUMWjY3OyijdYDkBcVkdM4QQV7dd51XDnM7KuMVG/U X-Received: by 2002:a17:90b:2711:b0:213:9b80:ceee with SMTP id px17-20020a17090b271100b002139b80ceeemr16082617pjb.243.1668816013543; Fri, 18 Nov 2022 16:00:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816013; cv=none; d=google.com; s=arc-20160816; b=g4OGdDUjZ4KZ4N8NA2Tnsxf2H2qTLBr+ZVKcdFGyqxSf0oQ2jpSNMxJxlu1vKHPAXI yxoA2AyEa6XgFyBnezHRTWVmNmjFIwhQldCogCpu7/IAf+lo1e8Iq/utcYXt63D7Fg84 sZ1Ob+pk6MOcb2aCsQu3byNLqkrHAEI2G7M/josz7uLhyVceamYhta6/7HUfP0/MK1yD MTwTXfO/v7kakQxqA94re5C+ycIbVDMgYNNjJIRnbQCwHBRyv8I0Ce8LkcEopIv/L9GZ xy6TGebkXsVE71gvsEvYOshYRzqibX6ap9450JCqy5liHxyJ6GH6VuoQJ/BVam4XTRPv kleA== 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=fOho1TO6T4bY7g+fVsj/snITRp/S1UNWOKuM7bavUYc=; b=VaApkzfFrU7VODJ8K1p9wHvwdtCK6II0wHoD8SA22iPwthg/Tlcbk1Pe50dDxhwm/J YY+CWlczr9rvGl4iuxb1jXB3JLj0keRY1KZ/yPVVwGqA00iZTXXW8MpSIJxAc7mdBuz2 VSI81hIJhIBZnfj8yJkngx9EI8PRpxI/Cf04Pa2vmb2stcO7FqMyXso35bfveG0V9rpr gAG7F0zr058OI2fphxhcRH1wF9KZDmjfe9FcFyKAR1pmPgvWLt7O3Org0954auiUoRrR xIqZQeoOvJNc72X02aYfrt92ufSuIng0M/mU89T5PVFr1++Isy/gGOIV9CbDfu+N3k3j Lsiw== 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 j17-20020a63fc11000000b004630aa449c2si5209026pgi.242.2022.11.18.15.59.57; Fri, 18 Nov 2022 16:00:13 -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 S231939AbiKRXyV (ORCPT + 99 others); Fri, 18 Nov 2022 18:54:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237100AbiKRXwS (ORCPT ); Fri, 18 Nov 2022 18:52:18 -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 9BB36C75AF for ; Fri, 18 Nov 2022 15:27:32 -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 1owA9c-00056X-My; Fri, 18 Nov 2022 23:48:12 +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 1owA9a-0058pq-0o; Fri, 18 Nov 2022 23:48:10 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9Z-0000SR-OT; Fri, 18 Nov 2022 23:48:09 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 548/606] regulator: max8649: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:42 +0100 Message-Id: <20221118224540.619276-549-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?1749880420225436127?= X-GMAIL-MSGID: =?utf-8?q?1749880420225436127?= 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/regulator/max8649.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/max8649.c b/drivers/regulator/max8649.c index e86d8bd25fdc..aed5443d88e1 100644 --- a/drivers/regulator/max8649.c +++ b/drivers/regulator/max8649.c @@ -145,8 +145,7 @@ static const struct regmap_config max8649_regmap_config = { .val_bits = 8, }; -static int max8649_regulator_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max8649_regulator_probe(struct i2c_client *client) { struct max8649_platform_data *pdata = dev_get_platdata(&client->dev); struct max8649_regulator_info *info = NULL; @@ -247,7 +246,7 @@ static const struct i2c_device_id max8649_id[] = { MODULE_DEVICE_TABLE(i2c, max8649_id); static struct i2c_driver max8649_driver = { - .probe = max8649_regulator_probe, + .probe_new = max8649_regulator_probe, .driver = { .name = "max8649", }, From patchwork Fri Nov 18 22:44: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: 22995 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477310wrr; Fri, 18 Nov 2022 16:11:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf5CCfu8X4jEZorBqtpwCPgTSOCkmQRR8E30wwksmnhGmApnak28uxACl3w+Xud/2VQ+gqsv X-Received: by 2002:a17:90a:df06:b0:212:d299:4758 with SMTP id gp6-20020a17090adf0600b00212d2994758mr15974979pjb.120.1668816672620; Fri, 18 Nov 2022 16:11:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816672; cv=none; d=google.com; s=arc-20160816; b=TWacdgU9uvdQyFgphJL3UikBTYg7ahyZFf6WxRIW3MHgJWwuJ45RCumn3lxh4ThmJN 1WO1aOb4nhiM2wsnKvjvTHhVOtxLVaiWF/4I4KfKnfaFuHrCnUJeLG3ExqjaaO/FS/oQ HE1imCrlWCn+4fkkyVF2jdjx3QHSmUSgKvUNnVhCO7jQ12Cv6W4kDiP6YEYFaHNCwaYA OvGez4soKRaDRK/79YT6DfZdHWgtITh/6KHR7eCy3R4FInXUS5bILzMck5iisohbs3Ta 8isJpa0uCliQMGAi0FSQPWoPThQyEI6dwRhIji8DwiF+dw6N3MoRQ36UmR/V/TXm1uae 9Psw== 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=/k8H23rLVMqJ5EpQGiHa/UWRrH9RZLqzXabIK5hYRsA=; b=One+XJEeRPeaDVfwwDcAYcC0gBWmxkE5cVWa6oQ6IQRmqYpgGVEFMlnYw/e3XQ3U1R 9rido3LfJmO01PQKsVhzaAWFmmVaT+mQd9FC+Z1eN/gHpRt7dWs2ucuuduTBwpInWGj3 3jThxlnoK41sAjLG0RHjv9xnXNq9gYwS+ex/0J42IrtLVDSHHdQZDzdZcWeAu/qkfOjj udQMgENiHd6f38IFx0QE9efwkyKysjTlZVWOM/zDqlndGEWlx/6JvurOWcZGQXNJM320 6cJKPL69P578T9tCtsh8VrwTBrSSbfMVJJGxNGMgU/Hzygupkojx71HKC9FQ0JAbp3i+ wb3g== 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 g11-20020a056a001a0b00b0056c8c1324f3si5288391pfv.103.2022.11.18.16.10.59; Fri, 18 Nov 2022 16:11: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 S237615AbiKSAKT (ORCPT + 99 others); Fri, 18 Nov 2022 19:10:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237469AbiKSAJs (ORCPT ); Fri, 18 Nov 2022 19:09: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 2F6FBA659A for ; Fri, 18 Nov 2022 15:33:02 -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 1owA9c-000565-EZ; Fri, 18 Nov 2022 23:48:12 +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 1owA9Z-0058pm-Qh; Fri, 18 Nov 2022 23:48:10 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9Z-0000SV-UD; Fri, 18 Nov 2022 23:48:09 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 549/606] regulator: max8660: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:43 +0100 Message-Id: <20221118224540.619276-550-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?1749881111010757149?= X-GMAIL-MSGID: =?utf-8?q?1749881111010757149?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/regulator/max8660.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/max8660.c b/drivers/regulator/max8660.c index 347043a5a9a7..711623be8eb5 100644 --- a/drivers/regulator/max8660.c +++ b/drivers/regulator/max8660.c @@ -367,9 +367,9 @@ static inline int max8660_pdata_from_dt(struct device *dev, } #endif -static int max8660_probe(struct i2c_client *client, - const struct i2c_device_id *i2c_id) +static int max8660_probe(struct i2c_client *client) { + const struct i2c_device_id *i2c_id = i2c_client_get_device_id(client); struct device *dev = &client->dev; struct max8660_platform_data pdata_of, *pdata = dev_get_platdata(dev); struct regulator_config config = { }; @@ -503,7 +503,7 @@ static const struct i2c_device_id max8660_id[] = { MODULE_DEVICE_TABLE(i2c, max8660_id); static struct i2c_driver max8660_driver = { - .probe = max8660_probe, + .probe_new = max8660_probe, .driver = { .name = "max8660", }, From patchwork Fri Nov 18 22:44:44 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: 22969 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476438wrr; Fri, 18 Nov 2022 16:09:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf6A+y/Nxn4QHxP073kGCWgLwBP9NeeKtLzYS734+FLTqUADlx7nQuqonnKSz/6jVi+zIRv6 X-Received: by 2002:a17:906:2dcb:b0:7b2:8a70:8fb7 with SMTP id h11-20020a1709062dcb00b007b28a708fb7mr7935841eji.163.1668816543969; Fri, 18 Nov 2022 16:09:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816543; cv=none; d=google.com; s=arc-20160816; b=PtUczHMumTw+nhjLkR+bGzYF6vjPRwA2FeaOUO0NnVGVpsX6UxBRfruvZRDUjkDZ1F kKzj8drpHJ/2iLk3q64gYjlb9jO+u5xCDltPtldKB/Zc/m6lJl2bsFUYVVCQyzG3m8kJ F1NuOWlxiilY4LsyuhrhUCjOlcGZrNFJLlxkbT8KtRhq8wtVN3Y+VFSUO46kQ5idu9MQ RsnGZGbN+bQiSb3NlUMJBoLdnw8E6EXaf+Nw/OEqC5EG0qw9hkS+tdRPgRqknfaQ83RJ NY3ZiD0X6FWC5f5TqGBZ8AK5uc3eS+7jDWQxp5ASdlb1+5Xh5RtFMCqu0K1HAfGmw6z4 VcWQ== 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=dblu4o7rPyjLfgGV+WETN2+QdJcKX8yJxXl+rZqOqUk=; b=UuqoMZdUjwyvC4XMmG90+x+eGcbjgLRjetwVQ0tK5OCUqQeiGsptv8isdtQFaHv5NB 5F7qnIqLzHLCptCHdjz38z0IgUx7iBa0+jYGr1cBa0bG42XKoKtmk2Cv2ilT5gegBngO g4C5AYU0OcEVu493hJ6FJzYpIUdanL/XZ7m8ffQvec5eos/v3RGHcLcmeeWEG1+kZ7ZW BzRYgVLOXMvie8L+ri5vJ1Gbny/GCWK2VV+tOVmshB6qmU0og5U34lh0ZnChnU3BWbsq wj/fJtaRFdDt0z+YxqwAvkcbQJsOyT40oUuWrlcrYWRfpUbnJHG02BVNyP0BoVs6UHv8 13KQ== 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 qc23-20020a170906d8b700b0078df948151esi3591206ejb.946.2022.11.18.16.08.36; Fri, 18 Nov 2022 16:09:03 -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 S237400AbiKSAEX (ORCPT + 99 others); Fri, 18 Nov 2022 19:04:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237547AbiKSAC1 (ORCPT ); Fri, 18 Nov 2022 19:02:27 -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 D3241E5B24 for ; Fri, 18 Nov 2022 15:30:13 -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 1owA9d-00057N-4V; Fri, 18 Nov 2022 23:48:13 +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 1owA9a-0058py-EG; Fri, 18 Nov 2022 23:48:11 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9a-0000SZ-3H; Fri, 18 Nov 2022 23:48:10 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 550/606] regulator: max8952: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:44 +0100 Message-Id: <20221118224540.619276-551-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?1749880976471109550?= X-GMAIL-MSGID: =?utf-8?q?1749880976471109550?= 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/regulator/max8952.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/max8952.c b/drivers/regulator/max8952.c index ccd5da63cdf2..360a33ecc093 100644 --- a/drivers/regulator/max8952.c +++ b/drivers/regulator/max8952.c @@ -171,8 +171,7 @@ static struct max8952_platform_data *max8952_parse_dt(struct device *dev) } #endif -static int max8952_pmic_probe(struct i2c_client *client, - const struct i2c_device_id *i2c_id) +static int max8952_pmic_probe(struct i2c_client *client) { struct i2c_adapter *adapter = client->adapter; struct max8952_platform_data *pdata = dev_get_platdata(&client->dev); @@ -314,7 +313,7 @@ static const struct i2c_device_id max8952_ids[] = { MODULE_DEVICE_TABLE(i2c, max8952_ids); static struct i2c_driver max8952_pmic_driver = { - .probe = max8952_pmic_probe, + .probe_new = max8952_pmic_probe, .driver = { .name = "max8952", .of_match_table = of_match_ptr(max8952_dt_match), From patchwork Fri Nov 18 22:44:45 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: 22910 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472881wrr; Fri, 18 Nov 2022 16:01:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Gk7WW970fpcjW/DDv8qfgFQRwPpvlh4RuAFSJD2PonQIB20JuY5PUmrCrEdvLQIlFEbfi X-Received: by 2002:a17:90a:4ece:b0:218:7c55:47de with SMTP id v14-20020a17090a4ece00b002187c5547demr7668586pjl.172.1668816065084; Fri, 18 Nov 2022 16:01:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816065; cv=none; d=google.com; s=arc-20160816; b=LQfQGmrq18sCMBBKGL70YMCzciBPm9Gg7hTVU11uZhdRq7gZwBO0JTkZ/7dUC0inJt F4o4Q5cYzXP2kyVU7w+b4t01a9Rk7I69TGa2udRy5wE+3WbGr24l1+4ILh6TRKx7LB/R wckMKC5BZMrpKOHd/JQw9owKAmDfYPcHb6nMCL/2LJl0h9DChElNnCH3fdHjS4Yu13d5 608gJyDoOo3Lsy7sotllleXZ3WzMJwOo0xUAWzeIJ+9ZDSk2oYvMVA410OYFjsOA9t3I RjZNIWWRtR623AhXX5SM8COynZ/cxOmpClsE25C8vWIXh23mnzfvPxmtLfJIq92qB5ez 9Q7w== 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=BvjUmXTNFB2p9GQ5Blvl/D7ptBUSTVHPRNH+njjETTs=; b=Nzc355F+XpH+SI2D2KPeG8nvu7NKizUIuQzhF7Ko20HvH+TjrTkfhGPq+5gadXvnbz dfo94U7hqBve4k3/oDTY8tWEt7HWxK3QY28PYB5PIuHNVDjhRABWuTljXq2wWytF6iGz mdD5fPUQ+AJIucgMVgGizr8c3ziuvp1wNJlBaIPF3fZDW5bmK32ZxofoXEKdkMxGMJ3v NHbP04UJ8P2wMckmzh+MqLj7Idqxa9Y3ImPLxhfMfcK/dRfRd1pPYMnve59CMmRxEKiH 07x+SGs6I8woy1Jaa5shUc31IOU36m9F0Npf8tHTkZlX/sSbXwkNZM43rPcgbvt7HaLX VZbQ== 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 f34-20020a635122000000b00477055c8479si4999658pgb.525.2022.11.18.16.00.51; Fri, 18 Nov 2022 16:01:05 -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 S236615AbiKRX4D (ORCPT + 99 others); Fri, 18 Nov 2022 18:56:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233817AbiKRXyo (ORCPT ); Fri, 18 Nov 2022 18:54:44 -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 09C9CCB686 for ; Fri, 18 Nov 2022 15:27:57 -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 1owA9d-00058r-IE; Fri, 18 Nov 2022 23:48:13 +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 1owA9a-0058q7-Ui; Fri, 18 Nov 2022 23:48:11 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9a-0000Sc-C5; Fri, 18 Nov 2022 23:48:10 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 551/606] regulator: max8973-regulator: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:45 +0100 Message-Id: <20221118224540.619276-552-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=ham 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?1749880474725349874?= X-GMAIL-MSGID: =?utf-8?q?1749880474725349874?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/regulator/max8973-regulator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/max8973-regulator.c b/drivers/regulator/max8973-regulator.c index 596cc36aaff6..7e00a45db26a 100644 --- a/drivers/regulator/max8973-regulator.c +++ b/drivers/regulator/max8973-regulator.c @@ -586,9 +586,9 @@ static const struct of_device_id of_max8973_match_tbl[] = { }; MODULE_DEVICE_TABLE(of, of_max8973_match_tbl); -static int max8973_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max8973_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct max8973_regulator_platform_data *pdata; struct regulator_init_data *ridata; struct regulator_config config = { }; @@ -806,7 +806,7 @@ static struct i2c_driver max8973_i2c_driver = { .name = "max8973", .of_match_table = of_max8973_match_tbl, }, - .probe = max8973_probe, + .probe_new = max8973_probe, .id_table = max8973_id, }; From patchwork Fri Nov 18 22:44:46 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: 22772 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465904wrr; Fri, 18 Nov 2022 15:38:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Cp2pC6iZ/R5ovh4k95172OllFGXfBhA+p4cf7f6w5ndMl2WCtJ9KMOuXy4kof7mEPl5yh X-Received: by 2002:a17:906:4e46:b0:7ae:129b:2d3a with SMTP id g6-20020a1709064e4600b007ae129b2d3amr7755971ejw.552.1668814723499; Fri, 18 Nov 2022 15:38:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814723; cv=none; d=google.com; s=arc-20160816; b=ZxDkirjg+LrfFd5IppJd8b8A/9grOB5LZjiV81F1OdazUL1a/hJNgkCfgceBnkZ6cZ Pqu4QuiOr8DULvQBMpYEWkRIDGonhy8DjuuDB9i1iRMHupIb4bnOBh21DxaR9ZMotHhJ XRresKNBpjBwrYICedrw3Wtl7pm5qdXsQf2FzmaGITZ8CnRU+CF3DQYWaxOSb/KtAP/i nW8a0R/nRr3MX0UwMcvDh4V2bBhQxbtzNdPPPc2jzQohqBS1+fum7NJabhDWgy5YPSgc LxARUx+xxKvTQw7nztnDhg2gJzW3Bq5K+xv8nVodov3+Q0k4ig23H8dOYNg2N8g2gAc2 6z0A== 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=ZicU9dz3bLQKi8Wsr/atx+Crgt5nKAtMF1CWa1158Ik=; b=ZLqgq1a6jz8d97Pd8rm4zdQnpzssvLc4/yfFC7+bYsCqjUHFeANwNmFWHdfgrrUaPu LaMJV+NpYNNXgkyK5mBu/fgl7P0Fo7M2gmWgo944ngkV7Mi2OgMvp1WviOh7DZg+kRnx v3T+vyhvEl/d8m+wWYL8qPi6gLmmkQwFfJqi8/hBCCGqUjHF5pPAeRppl3KWWNJJdzbg 9PmhjaTDEBC8gZgAY0kK3Jczo3cEVrP3KOx6BmcdqW+WS++bsM8JCPSqfQUFfKR+WCpe RAkMdCSDXYeBCYaMOijfcT9JaOv8SKauJiVlGC7UkJbKpMjZizuz0fn4zeBYhY2a273h Cp3g== 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 m18-20020a056402431200b00450c1de6234si3960378edc.587.2022.11.18.15.38.20; Fri, 18 Nov 2022 15:38:43 -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 S236504AbiKRXhE (ORCPT + 99 others); Fri, 18 Nov 2022 18:37:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236438AbiKRXdA (ORCPT ); Fri, 18 Nov 2022 18:33:00 -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 95AC7881B4 for ; Fri, 18 Nov 2022 15:20:53 -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 1owA9d-00059Y-RW; Fri, 18 Nov 2022 23:48:13 +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 1owA9b-0058qH-69; Fri, 18 Nov 2022 23:48:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9a-0000Sg-IQ; Fri, 18 Nov 2022 23:48:10 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 552/606] regulator: pca9450-regulator: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:46 +0100 Message-Id: <20221118224540.619276-553-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?1749879067548479282?= X-GMAIL-MSGID: =?utf-8?q?1749879067548479282?= 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/regulator/pca9450-regulator.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/pca9450-regulator.c b/drivers/regulator/pca9450-regulator.c index 14b7d3376516..c6351fac9f4d 100644 --- a/drivers/regulator/pca9450-regulator.c +++ b/drivers/regulator/pca9450-regulator.c @@ -701,8 +701,7 @@ static irqreturn_t pca9450_irq_handler(int irq, void *data) return IRQ_HANDLED; } -static int pca9450_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int pca9450_i2c_probe(struct i2c_client *i2c) { enum pca9450_chip_type type = (unsigned int)(uintptr_t) of_device_get_match_data(&i2c->dev); @@ -875,7 +874,7 @@ static struct i2c_driver pca9450_i2c_driver = { .name = "nxp-pca9450", .of_match_table = pca9450_of_match, }, - .probe = pca9450_i2c_probe, + .probe_new = pca9450_i2c_probe, }; module_i2c_driver(pca9450_i2c_driver); From patchwork Fri Nov 18 22:44:47 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: 22965 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp475685wrr; Fri, 18 Nov 2022 16:07:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf4sFxc1tpltf4tFsiseIeX4JaISPXucd8k2uNaFO4MIiChz/kOm2PoSN5R61ONLQpq9QigN X-Received: by 2002:a17:906:2599:b0:78d:474c:2a59 with SMTP id m25-20020a170906259900b0078d474c2a59mr7836220ejb.759.1668816420280; Fri, 18 Nov 2022 16:07:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816420; cv=none; d=google.com; s=arc-20160816; b=qkthiz17UwWeqZxbUkGM04tCmEMFtI+NN6XD4/++AdgGoCdHr4NNVENDkQxbBP1Gmo u7LAA1ynaaeVJzjmeE52ctH8KlBCYQJMeXU2k1JPr9z43+rhvPwUiODy7eD36p4BAFN6 09CZdIIg5QuboVuk6s2DldtgAhRsLhxcDGGTkLe7MdRPe1kTwHyMroHZ6jUfNpOAMX9p E38aTW43W9hgEB2mCYcENJ7M+W8nnMLyrUfJluiV/LFFTKahyttX5ZMEa3TKNaLCs2dc xbUqjITJC89zYfZW0J6Z0H4tNpzHWn2SamX6VzmPzB2iemE11Tv43dCirhD3RIvR0mt0 NaXA== 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=fpKb/gqcZXsOvRpCcf0nAepHHv36wQuSYSufPxHDfLc=; b=N6q9J5agre2c8UAqqC4OEISrqhZ0nOFZTY59z9OYFFcmYTLCCqHwtYX4sfKgkXv0CF 7oOwRT7glTLo4+8eFucG8QGrGLLfxtfXsj2RVpsekdPv5DZ3TpluvuC4D/8eNhs6YRck cvRoTIwFQn16TcGqwJEzjSECQQC+JleVQSacZAO6LcVy/Dt81S9JBKhP64COD/s4dWB3 5tLxtqxlS0OnLjShRmwvW6l9jh33IOGMuRmVWAcpd4XCulhQS6GbIKmmDp0MPXZoWqow T3XFzTbBgGAEuEL+icokr2xOKxrfDOOwA7Kf1P8IE7l9Lv7i8rTha14FH3AVao321N88 o+hQ== 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 et19-20020a170907295300b0078d9cec6a5asi3367069ejc.191.2022.11.18.16.06.36; Fri, 18 Nov 2022 16:07:00 -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 S231272AbiKSAAd (ORCPT + 99 others); Fri, 18 Nov 2022 19:00:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237388AbiKRX5j (ORCPT ); Fri, 18 Nov 2022 18:57:39 -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 D0B68C68BE for ; Fri, 18 Nov 2022 15:29:07 -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 1owA9d-00059V-Oq; Fri, 18 Nov 2022 23:48:13 +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 1owA9b-0058qG-5V; Fri, 18 Nov 2022 23:48:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9a-0000Sj-Nd; Fri, 18 Nov 2022 23:48:10 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 553/606] regulator: pfuze100-regulator: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:47 +0100 Message-Id: <20221118224540.619276-554-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?1749880846650577412?= X-GMAIL-MSGID: =?utf-8?q?1749880846650577412?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/regulator/pfuze100-regulator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c index d899d6e98fb8..9ab604289b5c 100644 --- a/drivers/regulator/pfuze100-regulator.c +++ b/drivers/regulator/pfuze100-regulator.c @@ -683,9 +683,9 @@ static const struct regmap_config pfuze_regmap_config = { .cache_type = REGCACHE_RBTREE, }; -static int pfuze100_regulator_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int pfuze100_regulator_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct pfuze_chip *pfuze_chip; struct regulator_config config = { }; int i, ret; @@ -847,7 +847,7 @@ static struct i2c_driver pfuze_driver = { .name = "pfuze100-regulator", .of_match_table = pfuze_dt_ids, }, - .probe = pfuze100_regulator_probe, + .probe_new = pfuze100_regulator_probe, }; module_i2c_driver(pfuze_driver); From patchwork Fri Nov 18 22:44:48 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: 22920 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp473077wrr; Fri, 18 Nov 2022 16:01:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf6RoIf+WGuTjtpg+c+Pkl1HExib8XW2Dcxi9kX4VgzfL1TScY2G8ikgrvj4czmIndJxLV/W X-Received: by 2002:a17:902:bf44:b0:188:64b8:2402 with SMTP id u4-20020a170902bf4400b0018864b82402mr1777813pls.81.1668816083702; Fri, 18 Nov 2022 16:01:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816083; cv=none; d=google.com; s=arc-20160816; b=dktbjPLZ8pd7gbdrpJrRvCE6OrPilwxzrMwkedJvsuobJvp0A4cEIpFqrczioyec+o oIHdI6pDzfGDElCIji1HEyWkiOGCZ2nMUO/r4cJgBI0ZlCpPHtSLX89Jc298frVEaLAF jIBgP8NhzIJf7YCgomNzlZ6I7WDkyKcqsxWFgdWXhm2HHkuiadsYxqGEFc7IccYYpoBc ACNrttmRNGvDvKMExhYHCT7s/HQF5YsAK/4RHsbk8PpKcDcYLJedzADxDs3dKSXMGVa/ SIV6YoMrkcQGNlzDHYy1LmzRZSIkRI4o4nCc+6kxV4wWWedzDtPJ5Ogm5AQpwo0ca3iH xJHw== 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=3KagSV5ywun2h7JvW5IxIVY3eZWt4e08ZpdHuMLegNw=; b=MEe9+4fhT82wocKaqiY59Xn1Ev/Bk3r8EKVHm2YDQm3EFy2tI2b2lCOEIWIj9/yLxQ yLJR1dqKluPchIQ6BoA4ympZFJnKjpEOf2zGvVQkvUUDwSQYfGRp2Qx/r2DpLLTqviCx DukuEF5nXoYqpHtnVZmx6+Vq3qx/6rZxoAdJl0nI7XMK6HMGH8yLzH8JMkzQGtrqI5od 1Y136yxmkpPIp8Y2Tiebs4aj6hUq4Q25LaOmWTq5aIZcgRCSUsKOrUcyGOoRxRJmP/aB rtr9GyBwToV77u9LbuyK4RIjPX0etW7sqqVdagwHw8dnNOm1tMJ5CbrL5mN6IcJqAMid t3Gg== 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 c4-20020a621c04000000b0056e109212d8si4485224pfc.287.2022.11.18.16.01.10; Fri, 18 Nov 2022 16:01:23 -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 S231448AbiKRX4s (ORCPT + 99 others); Fri, 18 Nov 2022 18:56:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237008AbiKRXzM (ORCPT ); Fri, 18 Nov 2022 18:55:12 -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 4218ACB6A7 for ; Fri, 18 Nov 2022 15:28:10 -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 1owA9d-00059n-Rd; Fri, 18 Nov 2022 23:48:13 +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 1owA9b-0058qM-9F; Fri, 18 Nov 2022 23:48:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9a-0000Sn-Sw; Fri, 18 Nov 2022 23:48:10 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 554/606] regulator: pv88080-regulator: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:48 +0100 Message-Id: <20221118224540.619276-555-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?1749880493692388822?= X-GMAIL-MSGID: =?utf-8?q?1749880493692388822?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/regulator/pv88080-regulator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/pv88080-regulator.c b/drivers/regulator/pv88080-regulator.c index 2a74cc05acfe..15a67c05f519 100644 --- a/drivers/regulator/pv88080-regulator.c +++ b/drivers/regulator/pv88080-regulator.c @@ -374,9 +374,9 @@ static irqreturn_t pv88080_irq_handler(int irq, void *data) /* * I2C driver interface functions */ -static int pv88080_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int pv88080_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct regulator_init_data *init_data = dev_get_platdata(&i2c->dev); struct pv88080 *chip; const struct pv88080_compatible_regmap *regmap_config; @@ -559,7 +559,7 @@ static struct i2c_driver pv88080_regulator_driver = { .name = "pv88080", .of_match_table = of_match_ptr(pv88080_dt_ids), }, - .probe = pv88080_i2c_probe, + .probe_new = pv88080_i2c_probe, .id_table = pv88080_i2c_id, }; From patchwork Fri Nov 18 22:44:49 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: 22979 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476773wrr; Fri, 18 Nov 2022 16:09:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf4iJlgs5HJidg41irYgVcHbE2uiDo6IzNnOvT+eXrbMiLQFj4KHDYd9cQ/Zo/H9QQndKdHO X-Received: by 2002:a05:6402:205c:b0:461:92bd:21cf with SMTP id bc28-20020a056402205c00b0046192bd21cfmr7879225edb.405.1668816594870; Fri, 18 Nov 2022 16:09:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816594; cv=none; d=google.com; s=arc-20160816; b=sW8IO4x4DhHYNru8zxneZ6G9ZRNV1nuenhbx5pbu4j6qX0DgQcRzuLVwKLE54e1Zvn N12hekZ/l4fePuN3np/8w7sJ9aIqWI5fjTmD5RNLC4v/1mLC7ztl2n52x1CAWWknalMg PXLHSR08zhtzRrLIe5yQPecg6sSmNfkizu6IrUDH2JivdHJ4AWchBZW98mMqQkyqIWUX BBE+tj002bFlhEf/+MLXknCHIB+ogk+jDrAuf2+UmBE5GzUfIszrY/VuTRw7svIvcEJF /bIMLARBxw37uKoqiqQRGrpVQXfVONXNzx2XJl2kDMFnOQYHhDnkZwOrO+1FbqTxoe2d kxIA== 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=n4nw7AXdQeo+fFkDQPPUrXSligRVqmCpslc7Z8Sq7Ck=; b=T4DDj0qs1Fuq7d/eekh4bEtAvwxDksbkmElUYVHmEPV5nTvYOuAjgASqSlEoU6LTK9 TQUkUgn7ZKtndj/bQhU82xEhMId7daxmBE37TkMIttCeYn/wNM+k/OuO0upycTPFnKaP 3FZ9mapc8ZEuoW20iF3E5gSiLNnD15bRKtgswUKgP9JWjTPjheIwsBWAEwDRrpix0JCF KLZtPQ8vQRC9AYc2T7EA9eey08Iw5l8Zd/2VzCFo6i/KbFPEZE/HJYYkbkbQIE/JXsJf i06aqEYBlZ0v/NGadpTO7chuGBVjYro9B3rwRGuUL3G6DcQGoS3hkY1CJrFqtHb0OxYo +WMg== 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 w18-20020a056402269200b00461e122a4e4si4620803edd.314.2022.11.18.16.09.31; Fri, 18 Nov 2022 16:09:54 -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 S232748AbiKSAIS (ORCPT + 99 others); Fri, 18 Nov 2022 19:08:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237629AbiKSAHP (ORCPT ); Fri, 18 Nov 2022 19:07:15 -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 DCDABD5659 for ; Fri, 18 Nov 2022 15:32:01 -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 1owA9e-0005AZ-Gq; Fri, 18 Nov 2022 23:48:14 +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 1owA9b-0058qY-O1; Fri, 18 Nov 2022 23:48:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9b-0000Sr-1m; Fri, 18 Nov 2022 23:48:11 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 555/606] regulator: rpi-panel-attiny-regulator: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:49 +0100 Message-Id: <20221118224540.619276-556-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?1749881029657783893?= X-GMAIL-MSGID: =?utf-8?q?1749881029657783893?= 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/regulator/rpi-panel-attiny-regulator.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/rpi-panel-attiny-regulator.c b/drivers/regulator/rpi-panel-attiny-regulator.c index 308f7972941b..34514976475e 100644 --- a/drivers/regulator/rpi-panel-attiny-regulator.c +++ b/drivers/regulator/rpi-panel-attiny-regulator.c @@ -282,8 +282,7 @@ static int attiny_i2c_read(struct i2c_client *client, u8 reg, unsigned int *buf) /* * I2C driver interface functions */ -static int attiny_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int attiny_i2c_probe(struct i2c_client *i2c) { struct backlight_properties props = { }; struct regulator_config config = { }; @@ -399,7 +398,7 @@ static struct i2c_driver attiny_regulator_driver = { .name = "rpi_touchscreen_attiny", .of_match_table = of_match_ptr(attiny_dt_ids), }, - .probe = attiny_i2c_probe, + .probe_new = attiny_i2c_probe, .remove = attiny_i2c_remove, }; From patchwork Fri Nov 18 22:44:50 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: 23023 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp478748wrr; Fri, 18 Nov 2022 16:15:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf4LSJjniRAQ48sL1iUx+21XppuwW2pXfvFvApEaYdQISNB7NOQjZecLiQKC2jE4S1RVH+5I X-Received: by 2002:a17:906:2416:b0:7ad:4a55:d6f5 with SMTP id z22-20020a170906241600b007ad4a55d6f5mr7965595eja.220.1668816909069; Fri, 18 Nov 2022 16:15:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816909; cv=none; d=google.com; s=arc-20160816; b=UooPWCY4Niq/toDsnhecda4niweuxgY6qAtgAipwi95qjm1GCqwh5dEyz10TIk6IY5 pHzkO2U3PpPkmLy+kAaJDy57u36JQdu00uEQuvC2eRvo8zYQP9tsSOj+yOZFNA9FtCHA BTfXBVtwSnKUyhdR+e0f+vfCgyhXoxonh15HbGVAmcWoV3DMnVEwNraIVlz2mhm/605a PmtHl9A9rPwWrAZSYrGZ5jjzflwRU0FZ8oBGtXdXJzeUh9d1Cj6A7kfpRtcteCMDRtHO hkgpL4r5LiZ+jtVqXvJfT6Qa1FPs4MC76XJrK01KQzJbno2crbl/ncrt3J4TQKLkK5GP ZT7Q== 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=IQlMqSCAeUNlVKc0uDjgSDkoxOpPsRokYqFpYePX7Dk=; b=kbVtmYmzE1ez7xGlnmGdMJSkyoC1GZy0ulB3RDUiA+RRClKjN0K8UuX+FRTsWxpzsw SWXC4OAHLyH8Plm2sD5TFOEslePtSnnVZ7NC1MQbqOaVHnRX5F5Qds33dMWBwG0cNm4l JvQ580Hpwtg2FQY2aOMJ2gQRA/2rguJFmlyr62Y4LtsyM02+rYsJOQ4OPXlotllUmnl0 HohK01rLQcJK6Sr2Siq1TO7nQbYwsbDGWKSA2OHMtDJ3aEB3wUldWVLs5o0wsCJnY4Ef BkBqzAcsvicfGq+BFJ+6bxMtOyb2OTCtqpftwj3kjhjr7R+j1NjDhl2ZLCzn5Idzam2n 1iWQ== 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 tb19-20020a1709078b9300b007adb2862222si3656192ejc.828.2022.11.18.16.14.43; Fri, 18 Nov 2022 16:15:09 -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 S237758AbiKSANz (ORCPT + 99 others); Fri, 18 Nov 2022 19:13:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237702AbiKSANU (ORCPT ); Fri, 18 Nov 2022 19:13:20 -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 35205F2776 for ; Fri, 18 Nov 2022 15:34:30 -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 1owA9d-00059C-KK; Fri, 18 Nov 2022 23:48:13 +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 1owA9b-0058qC-2t; Fri, 18 Nov 2022 23:48:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9b-0000Su-7G; Fri, 18 Nov 2022 23:48:11 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 556/606] regulator: tps51632-regulator: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:50 +0100 Message-Id: <20221118224540.619276-557-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?1749881359252429894?= X-GMAIL-MSGID: =?utf-8?q?1749881359252429894?= 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/regulator/tps51632-regulator.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/tps51632-regulator.c b/drivers/regulator/tps51632-regulator.c index 85e3326b99eb..152c5ad6709c 100644 --- a/drivers/regulator/tps51632-regulator.c +++ b/drivers/regulator/tps51632-regulator.c @@ -247,8 +247,7 @@ static struct tps51632_regulator_platform_data * } #endif -static int tps51632_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tps51632_probe(struct i2c_client *client) { struct tps51632_regulator_platform_data *pdata; struct regulator_dev *rdev; @@ -354,7 +353,7 @@ static struct i2c_driver tps51632_i2c_driver = { .name = "tps51632", .of_match_table = of_match_ptr(tps51632_of_match), }, - .probe = tps51632_probe, + .probe_new = tps51632_probe, .id_table = tps51632_id, }; From patchwork Fri Nov 18 22:44:51 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: 22878 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472216wrr; Fri, 18 Nov 2022 15:59:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf602Fg3sh07hv/Sc2yW/gnSQpt4NectbP0g/n8G1oNDxleEto1JZ7xhb+MzZ4SAe9q+qye9 X-Received: by 2002:aa7:d14f:0:b0:462:73ba:b73d with SMTP id r15-20020aa7d14f000000b0046273bab73dmr8209354edo.225.1668815984352; Fri, 18 Nov 2022 15:59:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815984; cv=none; d=google.com; s=arc-20160816; b=eZIKUjH+eOXXh/IxXQ95GDUBXaXAruHlQQtDSqHVYO9KSskc/bcS/RqtVD/9MWYV4E vfUyNEW41lIVlCaJLR5yEBZP5SCsgt0mLOygiapAVIsokQ8+8Q69hKrkFyl8zqFDiA1M dDs+d1UdFZl+5U+GR22a8OeJYPd/8Wzq/l/kwXUllYGX/kKhSupd66lWDy9gRlMANFMQ X0SDUOlgzEgDyBi/aeyY4xfJPEl0Q3TqKGgxCoGbWsqmok/ddZrcvvIM1LGt7I24hVpz Lu3v5pj5yQFphEUX9/kB9sGirMFZ2uIOPH9y2QFA4o/pzaJhO1YXx10Y1DBFV8tFWwym oR+w== 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=Z6RsRYlB/faK2K3u55Ahuyj4rsSKsMXI5nv7LtkRIl8=; b=a0rdMNT7w0p+JATcSbFwVZ9JgArFlkqhvOcyUyWKIsNCcin1vLe0ftxD09xnot0v+R Q+kGbcGyRm5/X08MKqNX3+w9TSyyaE9cIvPXJBoeZlk5WL9H0+sAMGxrRRGuYSOheLQd p6JaK/XMxmnGkM7yDvaO3szsPzk1DtZzS2xzXeKGvKXSnM85rMDi82uV2hUgfloI112g QS6RgLpXv+PI2kStcTEOmyL7SwPVFAQGQFB+FVK5oiLAlHEjONbD2qQB1v7lAKHFUTuY XcmhsEGZantg6a0mUQnnlxQcMhaLU87m1sTVY9aV8Q8GKJC/i+n4S9STsrBQt326FctH VT9Q== 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 hq20-20020a1709073f1400b0079dc9dcbbb6si4350521ejc.337.2022.11.18.15.59.19; Fri, 18 Nov 2022 15:59:44 -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 S232947AbiKRXqS (ORCPT + 99 others); Fri, 18 Nov 2022 18:46:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236198AbiKRXpy (ORCPT ); Fri, 18 Nov 2022 18:45:54 -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 37E5BD2F67 for ; Fri, 18 Nov 2022 15:25:02 -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 1owA9d-0005A4-VN; Fri, 18 Nov 2022 23:48:14 +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 1owA9b-0058qR-DX; Fri, 18 Nov 2022 23:48:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9b-0000Sy-Fj; Fri, 18 Nov 2022 23:48:11 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 557/606] regulator: tps62360-regulator: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:51 +0100 Message-Id: <20221118224540.619276-558-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=ham 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?1749880389512088325?= X-GMAIL-MSGID: =?utf-8?q?1749880389512088325?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/regulator/tps62360-regulator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/tps62360-regulator.c b/drivers/regulator/tps62360-regulator.c index 7c697bdf344e..da1b2b1341ae 100644 --- a/drivers/regulator/tps62360-regulator.c +++ b/drivers/regulator/tps62360-regulator.c @@ -322,9 +322,9 @@ static const struct of_device_id tps62360_of_match[] = { MODULE_DEVICE_TABLE(of, tps62360_of_match); #endif -static int tps62360_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tps62360_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct regulator_config config = { }; struct tps62360_regulator_platform_data *pdata; struct regulator_dev *rdev; @@ -497,7 +497,7 @@ static struct i2c_driver tps62360_i2c_driver = { .name = "tps62360", .of_match_table = of_match_ptr(tps62360_of_match), }, - .probe = tps62360_probe, + .probe_new = tps62360_probe, .shutdown = tps62360_shutdown, .id_table = tps62360_id, }; From patchwork Fri Nov 18 22:44:52 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: 22635 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460033wrr; Fri, 18 Nov 2022 15:23:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf68Q1rRFCm/cVKI1hYA3GVVjAkN+DkCU8KzVLUJud0Ey2mFuNqE/Mak7sMnelGy7SWLQSDi X-Received: by 2002:a62:198d:0:b0:572:5a7f:9f4a with SMTP id 135-20020a62198d000000b005725a7f9f4amr9941798pfz.33.1668813785331; Fri, 18 Nov 2022 15:23:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813785; cv=none; d=google.com; s=arc-20160816; b=0scsCPQq5Ml2rk15C6rzOjS4osiTABk3c31f/FMUofDMFR2i03czODByv6xspaDYXg UslzxCbPgs0dl0ME0ZwIafI2CsWdkxpRouCJUpciy1QTUEiuH/4JJXgNiRAjhaaBEA+q ZQRWjNtmn2JxpUXLZKm+srC3XRV2SYsy8TrY6XkWbhXH/p74bQyWg6qkStc4371sydVk c0Hi7Lu9w2WKLjYmLbtVzJO3D6k5TLGW11avfx/3X5mIBj/QzYEjMs2NTETpcXtLIxVO 9k+IHlVrGdAQDyg9gfYhHh/t7ZUmycVzjWVhjruCde6zfqhZ415DutYw3eBjWd7TvrMA WH4A== 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=TMctZxAXpmWQPBFfCdgOaQbOjv4GI+TewI1ZwNnALws=; b=jD4fdhlziMVy8SABur85/qw028Kvin4EEDTAs+erVmI1U+eA7FVzAf1axT5+QLea4q MGrpF0Tpz4T0CPYGt1C8kG2NZPUUtE+EHl/Nm+Ep3H07uPALjgE5oO256EMukSNiiTUk KDwIgNQUOr+jtd18PM0Z1HQL/0t9OIDvPXPZFJ/cqS8ywnX0UEQBuDtqQeXyxDrWUhyr ohzRJHnbsQc0Kb36OOFtH/tCU0ItMluU4GILSyUBIexz3Wc3MvZiVB1RKzcEG/80JD9l TxF9+8inEBgodSdeQA+w4S1qvnuzn9ZVSZquiyN2ZdFR7wjDBfwcaXqQktVWnGL/ott3 uJ2A== 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 73-20020a63064c000000b00462f77bcd1esi5024154pgg.90.2022.11.18.15.22.50; Fri, 18 Nov 2022 15:23:05 -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 S231148AbiKRXVx (ORCPT + 99 others); Fri, 18 Nov 2022 18:21:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbiKRXVD (ORCPT ); Fri, 18 Nov 2022 18:21:03 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 062F84F1BD for ; Fri, 18 Nov 2022 15:11:56 -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 1owA9e-0005Ae-IC; Fri, 18 Nov 2022 23:48:14 +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 1owA9b-0058qa-Of; Fri, 18 Nov 2022 23:48:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9b-0000T1-Ku; Fri, 18 Nov 2022 23:48:11 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 558/606] regulator: tps6286x-regulator: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:52 +0100 Message-Id: <20221118224540.619276-559-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?1749878083879945408?= X-GMAIL-MSGID: =?utf-8?q?1749878083879945408?= 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/regulator/tps6286x-regulator.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/tps6286x-regulator.c b/drivers/regulator/tps6286x-regulator.c index e29deda30d75..207ac1d1d88d 100644 --- a/drivers/regulator/tps6286x-regulator.c +++ b/drivers/regulator/tps6286x-regulator.c @@ -111,8 +111,7 @@ static const struct of_device_id tps6286x_dt_ids[] = { }; MODULE_DEVICE_TABLE(of, tps6286x_dt_ids); -static int tps6286x_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int tps6286x_i2c_probe(struct i2c_client *i2c) { struct device *dev = &i2c->dev; struct regulator_config config = {}; @@ -150,7 +149,7 @@ static struct i2c_driver tps6286x_regulator_driver = { .name = "tps6286x", .of_match_table = of_match_ptr(tps6286x_dt_ids), }, - .probe = tps6286x_i2c_probe, + .probe_new = tps6286x_i2c_probe, .id_table = tps6286x_i2c_id, }; From patchwork Fri Nov 18 22:44:53 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: 22940 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474708wrr; Fri, 18 Nov 2022 16:04:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf7jVTYFHGNyW/VkOyZ0TUGY+Ww3s1g5JHPChVZQe0A9CNk3laNBqbPVF5Qjo9C7DS2Vj0tW X-Received: by 2002:a17:906:2510:b0:78d:3be1:8d3d with SMTP id i16-20020a170906251000b0078d3be18d3dmr7894114ejb.304.1668816288779; Fri, 18 Nov 2022 16:04:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816288; cv=none; d=google.com; s=arc-20160816; b=knJaODCS5zYtYp3QlNilFfoDRCQztfdsiQha0HtCULpah2s4D4ipmAwlHsH6BwopjJ tek3hECysed3NYE7vh7ucHfcIX+83rXcNW596yPYWuKzNbQx51TNEQg6g83eBU+h9TRL ooEpv+3FGwz1yJV/rUS7OR0hPQKn9c4E3e7DnLoAHMJ7V4NmRfiLzWKJKIWGqkbZBEkY K0g+0eY6yhJqFqw9EBFqQ+0Eddvx+YeATmPb2ZArFa1GTMOuztLNmxkRgj+IEd17phZp YYltm0+FIVUa1oqWzx8hdAZkafDM6/c4qWRO26uq2hP0Y5We2aEWX3GygzuFvZTMulf3 zF3g== 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=OPsjCM5RzAATl8z+Xwx/BxYNW2NZJbfYDN4+BJb7zF4=; b=fFixw/FvFHnizGIP5KIVB/lLzCviVR7qH1T9HcHfCubrzffEmU2XqfjzXAEZ7435T6 ZCJwAFlbHtQtPeglYmOce3snw7QMUiIpFwIDqpJgv6z1m8F0tz1bGkddi27WJWnEFKBL UVdnfTvFzFT4eljMy5RkJNB4wCiblB/pB5zpdYDlXfIHJ528c2Tx5yt18Cwzojxhcrlf raI0Dp9UFcCbX6/iD1nL3MdrRz4NdiHLrcjQi0Vm4OCd+mnZ1tyxbNcFGeNDckvhPIu4 oUAa0YCeqSOlHwamifRr2LelcE63zoT8Xb562iWRUdaX6DQXN+DEeXtwZPIdiZrFarRB FtKg== 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 r17-20020a05640251d100b0046356ff4d4esi4387750edd.593.2022.11.18.16.04.23; Fri, 18 Nov 2022 16:04:48 -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 S237035AbiKSAAN (ORCPT + 99 others); Fri, 18 Nov 2022 19:00:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237286AbiKRX5X (ORCPT ); Fri, 18 Nov 2022 18:57:23 -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 123D2BEB42 for ; Fri, 18 Nov 2022 15:28:59 -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 1owA9e-0005AV-Df; Fri, 18 Nov 2022 23:48:14 +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 1owA9b-0058qX-Nb; Fri, 18 Nov 2022 23:48:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9b-0000T4-QF; Fri, 18 Nov 2022 23:48:11 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown 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 559/606] regulator: tps65023-regulator: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:53 +0100 Message-Id: <20221118224540.619276-560-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?1749880708924431039?= X-GMAIL-MSGID: =?utf-8?q?1749880708924431039?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/regulator/tps65023-regulator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/tps65023-regulator.c b/drivers/regulator/tps65023-regulator.c index d24333344f93..680a57ff0837 100644 --- a/drivers/regulator/tps65023-regulator.c +++ b/drivers/regulator/tps65023-regulator.c @@ -257,9 +257,9 @@ static struct tps_driver_data tps65023_drv_data = { .core_regulator = TPS65023_DCDC_1, }; -static int tps_65023_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tps_65023_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct regulator_init_data *init_data = dev_get_platdata(&client->dev); struct regulator_config config = { }; struct tps_pmic *tps; @@ -336,7 +336,7 @@ static struct i2c_driver tps_65023_i2c_driver = { .name = "tps65023", .of_match_table = of_match_ptr(tps65023_of_match), }, - .probe = tps_65023_probe, + .probe_new = tps_65023_probe, .id_table = tps_65023_id, }; From patchwork Fri Nov 18 22:44:54 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: 22798 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466761wrr; Fri, 18 Nov 2022 15:40:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf7KhOHXmaq1pB3ETXmMgL9BcaXhnFyaYWKgR96wX7BhUotVnnHyfaMZXRRQA5kepSv39Ehs X-Received: by 2002:a17:906:719:b0:781:8003:9b08 with SMTP id y25-20020a170906071900b0078180039b08mr8364594ejb.180.1668814856092; Fri, 18 Nov 2022 15:40:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814856; cv=none; d=google.com; s=arc-20160816; b=MF3WYulQkwAXpkdDczjGgcHba3YkZmeOw/WAweckGwaF9fU2zc4R/ngNmY4kBV03G/ nFXyX+kEaTDye+/vr1JXBYKsjIY4G7nKp2CjGqcwr10YMizPZd/DKHcjQSr1YCuCtlgP NxlGKv1daUtzM5LoFH3EmNfa/8zjVvWRbFGtBPlCLSwTu1KMw7X6YOi3aBQzRqroIDbA m4mma4is+GPsb+KAFgxHx0aQNyadlUbpwsYw+p7bFy+zsaxYQ9f8SGPd4fi0AVepU0OU 1iZ2aKemwtyaNehfle4LQBn+2fTfJRwVedZnM3pJWQkvYEngYCYOEjx3reirid6Bs0Wa VHKw== 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=kmjBD/QNR+aaxx2imjzbvcJcUB4cyerr5Q8BQp5mrBc=; b=Lt82L0aMekJOwlgqhp49y0PjKcwJagFPFQFWLjbNDqVqvZPS4Zb3TigFhp2gz4Uyqo O8Wun1Evbk8rc8Q3/7ex8Lx963BJzfqQ2QViH/jYZV3T8lsmZx9ID9J4WvzJDXCYr2tT qoOAvnHO8WwJe5ZvF1KHIw+UIk/upaQy1qvp+nVkiwLycbY2ox39elPEpZBvHJNWmTkh dZf16kJUaOvaf5aO13SHtBNfDy71qojoeuK0XsmxwVZEi4UwAGmbJFT7pMznTNBgLZC4 qpIrF9fhD7pzUTs5I0s19ubVHIKuOOqy4LQ9K90rdBTTESCL7nsSWIAul1YWsK5+OGXL m/JA== 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 y8-20020a056402170800b0046938445a51si810939edu.499.2022.11.18.15.40.32; Fri, 18 Nov 2022 15:40:56 -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 S236610AbiKRXje (ORCPT + 99 others); Fri, 18 Nov 2022 18:39:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236711AbiKRXhn (ORCPT ); Fri, 18 Nov 2022 18:37:43 -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 CE96EC2873 for ; Fri, 18 Nov 2022 15:22:18 -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 1owA9e-0005Ao-U5; Fri, 18 Nov 2022 23:48:14 +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 1owA9b-0058qi-Sl; Fri, 18 Nov 2022 23:48:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9c-0000TB-0A; Fri, 18 Nov 2022 23:48:12 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Alessandro Zummo , Alexandre Belloni Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 560/606] rtc: ds1307: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:54 +0100 Message-Id: <20221118224540.619276-561-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?1749879206110436081?= X-GMAIL-MSGID: =?utf-8?q?1749879206110436081?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/rtc/rtc-ds1307.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index 7c2276cf5514..b49c02fd78f7 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -1713,9 +1713,9 @@ static const struct regmap_config regmap_config = { .val_bits = 8, }; -static int ds1307_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ds1307_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct ds1307 *ds1307; const void *match; int err = -ENODEV; @@ -2012,7 +2012,7 @@ static struct i2c_driver ds1307_driver = { .name = "rtc-ds1307", .of_match_table = ds1307_of_match, }, - .probe = ds1307_probe, + .probe_new = ds1307_probe, .id_table = ds1307_id, }; From patchwork Fri Nov 18 22:44:55 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: 22865 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472085wrr; Fri, 18 Nov 2022 15:59:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf79OED4/jg/e4zQMjHHpARgCJKhGqxMkwj2OgQfzEDlOtwgU6mgMPbjsYa6U1YobQn8zqLk X-Received: by 2002:a17:90a:71c5:b0:213:b0e:ede8 with SMTP id m5-20020a17090a71c500b002130b0eede8mr15973864pjs.89.1668815959829; Fri, 18 Nov 2022 15:59:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815959; cv=none; d=google.com; s=arc-20160816; b=WPPQikcAdEFi5SDdl5lQXP/+bcmyDbI6xQTp0U8TNtqezoTOvfMOodCUYiVTQ0w24L 9jc83ojtjbrUc9puLoxxJgFlwRy4cTDDQIXQBBjWYoU0Wna7R4FB2kxWLAzg3i9653Be CW7q/bvtSG3ErmnmQqHk0sZZn9Li5dL2q2qeEp5E+lEUqCinns20Cp1cIeRbaNdC9M2C JGf5/4F5S7upcTLx6k9FeDJiLH7a2k0fg8f7R7jWNl/DiTBNaN/AqrvOM8aPpY53whHr Of3lkq5piX6rh4QCfNxhU7t6+/W+jryYjcNhkzy67WmAwWttBp3qux8jkP0taJZvSTYD fWLw== 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=CpHlp3mXXb3hhrZmgHIaF5zTSWzY+c7VdiTonCgNEBA=; b=K5Nvq1TBexLfywMWJBwaLUx6u547k6qyk1OAwFLfNtrqEbJVCZ7cBmBu/HYeaw444Y OLsljzeHe6viBRXEK7ygYgVEkkeXfmUiMTd3XyTVjASSRgUqBbW4/cMKwuhsKoFfs1Gr t+Xa0dqLsNvXOiQ59e6fonjYITXx7okNlXy5WY0P6xaA//0XZjdJMeCXJRCLy3aFbTFL PX/VcS/3TMntui5/MKCGrcu7sZxbU6I2dVQiEMTBuEh7BKucRyUz5QMoEDqAkLdWdDyX m/jfJbBULHKlCZOC23A7/JTpPXJkESdMNmwJrbm1NeADXwj/PiPJjq7m2NDE7r18Ub4f PBpQ== 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 p15-20020a056a000b4f00b0056ce0f64370si4966962pfo.108.2022.11.18.15.59.07; Fri, 18 Nov 2022 15:59:19 -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 S236932AbiKRXwf (ORCPT + 99 others); Fri, 18 Nov 2022 18:52:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231152AbiKRXva (ORCPT ); Fri, 18 Nov 2022 18:51:30 -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 B7719B9B95 for ; Fri, 18 Nov 2022 15:27:00 -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 1owA9f-0005Bs-8L; Fri, 18 Nov 2022 23:48:15 +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 1owA9c-0058qs-CO; Fri, 18 Nov 2022 23:48:13 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9c-0000TH-6i; Fri, 18 Nov 2022 23:48:12 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Alessandro Zummo , Alexandre Belloni Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 561/606] rtc: isl1208: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:55 +0100 Message-Id: <20221118224540.619276-562-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?1749880364024836817?= X-GMAIL-MSGID: =?utf-8?q?1749880364024836817?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/rtc/rtc-isl1208.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-isl1208.c b/drivers/rtc/rtc-isl1208.c index 73cc6aaf9b8b..fca9cc440296 100644 --- a/drivers/rtc/rtc-isl1208.c +++ b/drivers/rtc/rtc-isl1208.c @@ -799,6 +799,7 @@ static int isl1208_setup_irq(struct i2c_client *client, int irq) static int isl1208_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); int rc = 0; struct isl1208_state *isl1208; int evdet_irq = -1; From patchwork Fri Nov 18 22:44:56 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: 23013 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp478194wrr; Fri, 18 Nov 2022 16:13:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Ea8yPI8Woiz5cSknwRZROJb0WeJHak5HGNwwMeN8hQdsB55P/h1gN0MYvTbq4Stmv4K3R X-Received: by 2002:a63:6242:0:b0:46f:ec9c:b239 with SMTP id w63-20020a636242000000b0046fec9cb239mr8887062pgb.33.1668816813991; Fri, 18 Nov 2022 16:13:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816813; cv=none; d=google.com; s=arc-20160816; b=su7mZI0jJBOuIdprLTixPXCXCmZteqz/YnNj4CpgbwmrClGwIVZqRsNsFXKBYGqFeI 9R/rMNd2U5iKUBjxjQEyk141Z5hZt4Wh7CXt0X8jK0MHRTF/tQgvobGCbYJQWAk1orHy Nqim4LWPHtPS0l69cVEp9KIY7u5CRyBkbmgB7W/4z4dY1AxMgzkD8+9WBvLOuQwuSKPi mQ0agD5tZD8xmWptTLzGlSNuuD1FcpGkcqN58lMcianv55A/8kM2RYE1YDd2LHWayTTY TMuRErPg0xSwfWkwxF34hr8tB+H6LT1WyTfxcwmEE5CcTRJsnpcO1toQ6zqj5z8GAIQn uCiw== 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=Zg1qdIsMxatdmRDP5rgSeZzzko38klhCCs1y566WDX4=; b=gkrx8pvTpLtuXQqGWhpkib/KCnzdgxV6R0GuWSpCkoW1rloFzlMBBxe/BfMRB5ftEv V/QHek0MrxwnHMwNArNKLHVNrnkjQlC4SbNuPTZ9DDZ+9zkIONcpC0ze/sVH0oyCuWUU qfXB85742uxamlmD6/1yOXTFI7UTNbzJL6r4k8TV3P1aS+pHx1vu5dXn37T6lYnG4+j9 I2A1NO/MwqfO+r/882tGGMUM6c2Y7RuXou8liOROWVTuD65W75P5Yp/6vYrO3xjUowVd JtH1xMvbxZDarUQkiRsuPwxes6juyu5ns/gPl9sV6uNRvbf0KFIJ/p7ZeuD0mpxit1DH L9Dg== 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 j3-20020a056a00130300b005726f0e2c7fsi5203371pfu.168.2022.11.18.16.13.20; Fri, 18 Nov 2022 16:13: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 S237719AbiKSAMj (ORCPT + 99 others); Fri, 18 Nov 2022 19:12:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237677AbiKSALD (ORCPT ); Fri, 18 Nov 2022 19:11:03 -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 5FC592A41A for ; Fri, 18 Nov 2022 15:33:36 -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 1owA9e-0005BJ-U5; Fri, 18 Nov 2022 23:48:14 +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 1owA9c-0058qm-28; Fri, 18 Nov 2022 23:48:13 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9c-0000TL-CR; Fri, 18 Nov 2022 23:48:12 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Alessandro Zummo , Alexandre Belloni Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 562/606] rtc: m41t80: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:56 +0100 Message-Id: <20221118224540.619276-563-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?1749881259457646905?= X-GMAIL-MSGID: =?utf-8?q?1749881259457646905?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/rtc/rtc-m41t80.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c index d3144ffdebb5..d1a6cd9a7074 100644 --- a/drivers/rtc/rtc-m41t80.c +++ b/drivers/rtc/rtc-m41t80.c @@ -878,6 +878,7 @@ static struct notifier_block wdt_notifier = { static int m41t80_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct i2c_adapter *adapter = client->adapter; int rc = 0; struct rtc_time tm; From patchwork Fri Nov 18 22:44:57 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: 23091 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487615wrr; Fri, 18 Nov 2022 16:43:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf5u2/w58kd+ddvT8YN9zdUgHUVdP/XDYVgQ/BuCSkTH9YKeWVLHcFrRxusiy84Q2VQRVFSX X-Received: by 2002:a17:906:88d:b0:783:978:b39d with SMTP id n13-20020a170906088d00b007830978b39dmr7958251eje.349.1668818614670; 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=J+n/Al8OVt4FJKZoYZkPsI/tmCPyRcNJEibZAcwh+TFZcupNeF6u186U/rb5a7Sbwa wkBjSk+YIOWzLnOEXTHmVexzbFyc0d9Zf3qyg8S/a8HHdx2LqVdjtHqrOu1/XG920Cs1 4gb260N0duqSrFUF5AVhvXM1UfP0uSmTGp6+tVUddTkN2+jYBC1DAfRxYWbMYlXC4ANI vkW7YtNBN1vwQL7QvrmKmn37ZmKctaYbtFb/h8Ef7hMZXU2QDeJSkEHn/1Ysz1Xx71SX 4IA9aZrgHkx2DH0oS1l7m/jJAt0qJ1qX+wP8IIstpdI17DgQPkqlKb5rQUp/jm8oKzHg OSNA== 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=K00rkPxu4Erv1vgDeOV8o5c0SYB0XqDo+yQhkURCrxw=; b=ALZ22sDbjISEW+WSbQxNE88HoPZGImELZQL+snB38oirxWMoC2oW7NyMWUfkrFERKw o9uvNb9rbPHaCjP5Ss6khBfpcm3v8CQzxNf1gJ/mLDJe0GbQ8Bri39ST/r9LuV4ehB1u KLmxonNgS5C2JNWIbsdM5XYSfrvxzQuPv9C2A6giSplEnh1zHtVha/dY2oRgg1cFcODp ak838wdU2u+zoIAtWoL1whLOG1MfUHMaUtOgbK2suaroDGys9DLLFYNkht8JyZ4S5kNL ECxslyzhULois1IXZ9aMkGNo2aUqpY5nsesBVeHIrQ2MDzAD0OdyjN7cJzxmHfL5/KMK zdCg== 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 s23-20020a05640217d700b004692dec65dbsi1395773edy.259.2022.11.18.16.43.04; 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 S237950AbiKSA0W (ORCPT + 99 others); Fri, 18 Nov 2022 19:26:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238016AbiKSAZy (ORCPT ); Fri, 18 Nov 2022 19:25:54 -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 5D8E8107B76 for ; Fri, 18 Nov 2022 15:38:45 -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 1owA9f-0005Bv-65; Fri, 18 Nov 2022 23:48:15 +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 1owA9c-0058qt-Cv; Fri, 18 Nov 2022 23:48:13 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9c-0000TP-Hf; Fri, 18 Nov 2022 23:48:12 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Alessandro Zummo , Alexandre Belloni Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 563/606] rtc: rs5c372: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:57 +0100 Message-Id: <20221118224540.619276-564-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?1749883147812637920?= X-GMAIL-MSGID: =?utf-8?q?1749883147812637920?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/rtc/rtc-rs5c372.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-rs5c372.c b/drivers/rtc/rtc-rs5c372.c index 5047afefcceb..41f10dcbb360 100644 --- a/drivers/rtc/rtc-rs5c372.c +++ b/drivers/rtc/rtc-rs5c372.c @@ -793,6 +793,7 @@ static int rs5c_oscillator_setup(struct rs5c372 *rs5c372) static int rs5c372_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); int err = 0; int smbus_mode = 0; struct rs5c372 *rs5c372; From patchwork Fri Nov 18 22:44:58 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: 23074 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487018wrr; Fri, 18 Nov 2022 16:41:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf4H3BRiOSew+WG1Zmnz3I6iHLAugIFYvae1GM1Fq0nLLAVj2LHlZkVSQ9YOXvaUA3KtZoTT X-Received: by 2002:a05:6402:50a:b0:469:4cda:5466 with SMTP id m10-20020a056402050a00b004694cda5466mr1397edv.301.1668818510309; Fri, 18 Nov 2022 16:41:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818510; cv=none; d=google.com; s=arc-20160816; b=n6E1taXHHnniKWpSdZNtUhwfLLVy/kb+hR1JztxaHtE4WrQLURsZN24+52f9jihmdO 7g86Y1Hh8uLfPRFUC/HqXTrQPkmtMBGvUqy/pqHJqA3pr9UeOE6ptocJbTRv8uGXk+Tt NtySNPox38LTLEd5E8uexqqLvHuD2asCahYB1Og1u7UOpfFgOX66XMXRTRYCFcJmRwJ6 wKWx9qb2KZYBIqPlKEwREw1X6V9vgp0mf2suiwsuNEwEFkJxf5Dha3l+rfAM7EWiIRLM YI5+FuWBBK/Le++7IbnW0WNeGYQkra9wI4EMUJVJay6UnwErXs2bnYZc8zlGVpx1gKGE f/xQ== 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=eEIuErLoUGUSJ2pW4t58YRInWZ61mXptQ2Eqs8C/UhA=; b=lJAdenxY17VFPOuEPTazHu6BvutxarRbSfXy20/3Nzg6mv8pHpkORGjuRSg5cPGGRi wkVA2mWrYsq9BhODx8Da+RMFCOReZeCE0DiPoCuikBGo1jq4NIpW5OCPnF4ANqxfpC3A TkiNEtgP12vf5QLOKl9YwEmNRKbWH0zQVZ/iCBRN9jlkiKs8EpJ/wwUMjs1IYmYEO7S/ ewWaTXQ/H6xSeGRYvNZERYmhe3W04hKALqdk7zfAoXQ3bkU3a7T2skwmxCcuQ+XO/ZNw YNnQpvRBHuh/i2XPTs90pqwu41M/HmMt74194OEe18gGfvPNtIbHtf7sDuxCWdANdFn6 4/LA== 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 r9-20020a1709063d6900b007ad7e81a30csi3057613ejf.167.2022.11.18.16.41.23; Fri, 18 Nov 2022 16:41:50 -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 S230131AbiKSAhU (ORCPT + 99 others); Fri, 18 Nov 2022 19:37:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234813AbiKSAgD (ORCPT ); Fri, 18 Nov 2022 19:36:03 -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 6EA7A116AAD for ; Fri, 18 Nov 2022 15:43:22 -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 1owA9f-0005C6-BQ; Fri, 18 Nov 2022 23:48:15 +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 1owA9c-0058qy-G3; Fri, 18 Nov 2022 23:48:13 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9c-0000TS-NA; Fri, 18 Nov 2022 23:48:12 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mark Brown Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 564/606] spi: sc18is602: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:58 +0100 Message-Id: <20221118224540.619276-565-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?1749883038253718183?= X-GMAIL-MSGID: =?utf-8?q?1749883038253718183?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/spi/spi-sc18is602.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-sc18is602.c b/drivers/spi/spi-sc18is602.c index 5d27ee482237..983b3621bc2a 100644 --- a/drivers/spi/spi-sc18is602.c +++ b/drivers/spi/spi-sc18is602.c @@ -235,9 +235,9 @@ static int sc18is602_setup(struct spi_device *spi) return 0; } -static int sc18is602_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sc18is602_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; struct device_node *np = dev->of_node; struct sc18is602_platform_data *pdata = dev_get_platdata(dev); @@ -337,7 +337,7 @@ static struct i2c_driver sc18is602_driver = { .name = "sc18is602", .of_match_table = of_match_ptr(sc18is602_of_match), }, - .probe = sc18is602_probe, + .probe_new = sc18is602_probe, .id_table = sc18is602_id, }; From patchwork Fri Nov 18 22:44:59 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: 22869 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472093wrr; Fri, 18 Nov 2022 15:59:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf7I9HRFzECPExthQbu6M7TTELkDttiIa5GFx4LmLtc/b3fzWFXV3OOh0j5jsEAdjSJtB5X+ X-Received: by 2002:a05:6402:4516:b0:467:b88c:f3af with SMTP id ez22-20020a056402451600b00467b88cf3afmr8261274edb.24.1668815960978; Fri, 18 Nov 2022 15:59:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815960; cv=none; d=google.com; s=arc-20160816; b=ZsSfyQgeuqWvPnI/LnfE9Gf4iccF7Bs5Ncgmm0lnLftID4ilMvtjcHF5fQHGTGMTlH U6LuJqynFHI0zsRFxwjTlNz3z8S9Bm0TVd5sCEOrFKXxOqXdMeHdIkznva9x4W+/A2FY WxsHx6Ex7GRonEBZdrQ2Su773qJwv+wxE6mcMAbyCLWZ5L/M08li3DN/mj1xCevHwysh tTOCilGayb5mwAklW14k/uNmXOaGuLVyyKY8JTdGNWjim/WpP8bQ3lTr8Fb9LOVlIpCE O+n7neWCBxZRzUwfZtY9b2WRkjZ5W40dGSp+h5qUEZO1ggSipN4rllT5PsCRgSq2QX+A iHFA== 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=33ZrjOU1kzPqsMjCXV42A50MHolMh2eRr6p2nE8DqK8=; b=pKDYZ1+smt75AigwVh8JZfKXGUh+rrqr3sfjYsjwyFRv+XuDc4fDYlROjs8H7IY2p8 +UXmvovyeLDtCyBrKOPtJGaZ50rU8jUpyfEUAojn4jqWluezyVsYO4XHEedUBJT4qbIv tZkAFZfYKrfTi/+Q69ml2kBpvWN5ZVX1M22IXZvPRzosoYoaCGeTlNfSYwBlzcjdHVF0 HvsnyYlQkUmyUJIFmK5yOgcP8aW7zn/Bp9yWfVTH5tpUub8iixbbi/bflFg2hXTYUcS9 48+uXB8FudNKXUOXTrF4luL7BBdlaDjnFO2J/Qg3/j3eRnhLRW6FsbUlUzjEpchnRVB9 HddQ== 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 b6-20020aa7dc06000000b004675cf238cbsi3782685edu.322.2022.11.18.15.58.56; Fri, 18 Nov 2022 15:59:20 -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 S236939AbiKRXvz (ORCPT + 99 others); Fri, 18 Nov 2022 18:51:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233214AbiKRXuu (ORCPT ); Fri, 18 Nov 2022 18:50:50 -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 3C554C662C for ; Fri, 18 Nov 2022 15:26:53 -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 1owA9f-0005DI-Ol; Fri, 18 Nov 2022 23:48:15 +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 1owA9c-0058rB-Uc; Fri, 18 Nov 2022 23:48:13 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9c-0000TY-SG; Fri, 18 Nov 2022 23:48:12 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mark Brown Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 565/606] spi: xcomm: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:59 +0100 Message-Id: <20221118224540.619276-566-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?1749880364792921179?= X-GMAIL-MSGID: =?utf-8?q?1749880364792921179?= 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/spi/spi-xcomm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-xcomm.c b/drivers/spi/spi-xcomm.c index 1d9b3f03d986..8628241ec99e 100644 --- a/drivers/spi/spi-xcomm.c +++ b/drivers/spi/spi-xcomm.c @@ -202,8 +202,7 @@ static int spi_xcomm_transfer_one(struct spi_master *master, return status; } -static int spi_xcomm_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int spi_xcomm_probe(struct i2c_client *i2c) { struct spi_xcomm *spi_xcomm; struct spi_master *master; @@ -242,7 +241,7 @@ static struct i2c_driver spi_xcomm_driver = { .name = "spi-xcomm", }, .id_table = spi_xcomm_ids, - .probe = spi_xcomm_probe, + .probe_new = spi_xcomm_probe, }; module_i2c_driver(spi_xcomm_driver); From patchwork Fri Nov 18 22:45:00 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: 22660 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460899wrr; Fri, 18 Nov 2022 15:25:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf4cS/fZiF4eO0ij2PnppARabSs4fVLKV7QeeNbbARtMQpgeo1rcJNMgkjc0U2PSNp4+9ltF X-Received: by 2002:a17:906:22d0:b0:7b2:a7aa:173d with SMTP id q16-20020a17090622d000b007b2a7aa173dmr5746256eja.140.1668813941063; Fri, 18 Nov 2022 15:25:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813941; cv=none; d=google.com; s=arc-20160816; b=XZaobMJ8gPmcDhxbzvELIzvezknPhSSmJcFX/q+GhVPglA7UNgWI1hQzAe+rj89ZQi zBx0yNmaO9WATzoH4trFopor91bobLjUPutfrCu8jtD4XAHzuVHbkVBMg8qTaQ+Hm+HW WmLXTQrZikCpaG2Z6Hmid/Ek0yEsvXhSb+FRl1szQPK4Xwk46J1mpLwG4+a5h0K8J8G7 mkBBZSPZx4GbmMHdEMFiteaWoXGwvokAYR1ZNu6q5AXfNe4gvYjns1VxaqJYVR2kopj8 PY+I0x1WYHjjJuR3fZSLjM1BgD6P0MCvXcxVU5rlH0Q+ylm4aSMl0+g8ychmtTwChOpO hDYw== 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=N/jizgGcAvcf/SaYReb7ypONzrIThn0Qi0cYrYfZxIE=; b=SdotEmFX3ljMfhZtkbPpgFb08XPazFt5qpsL1KaLcE6HQ2XlJ/CGKqXpQ96DqVmUpK OOs3jOtqmahUOwDBNzgnkyoX53v2KVKYB6huAzqlqB0GHlVvE7zH1qXRP83ybgdMwcMw 6zGHvYU6Vf4CpxSgBrxwxWy8L4NIkBudH21SreaQ4pJEBMJg2fATCj00w8hAqD0v3dtC q4IWnWTlhyDaARKOsXuHrJpXWrT/p4tQ00PPuBEkGcpaA47HoND84GIVGoda370NGlRy b29fjAMu78VaZDwYNC7RwojIEYk3x4qXVJcLvLPi1ipbrbZDwOdvBz7rbMkteMoahagx BXkg== 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 dd22-20020a1709069b9600b007ae50c64522si4441675ejc.520.2022.11.18.15.25.17; Fri, 18 Nov 2022 15:25:41 -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 S230271AbiKRXYX (ORCPT + 99 others); Fri, 18 Nov 2022 18:24:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235567AbiKRXWJ (ORCPT ); Fri, 18 Nov 2022 18:22:09 -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 56FEA97EC4 for ; Fri, 18 Nov 2022 15:13:07 -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 1owA9f-0005Ck-P7; Fri, 18 Nov 2022 23:48:15 +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 1owA9c-0058r6-QT; Fri, 18 Nov 2022 23:48:13 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9d-0000Te-1g; 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 , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Greg Kroah-Hartman Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-iio@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 566/606] staging: iio: adt7316: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:00 +0100 Message-Id: <20221118224540.619276-567-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?1749878246909553918?= X-GMAIL-MSGID: =?utf-8?q?1749878246909553918?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/staging/iio/addac/adt7316-i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/iio/addac/adt7316-i2c.c b/drivers/staging/iio/addac/adt7316-i2c.c index 5543cc909707..7e3d1a6f30ba 100644 --- a/drivers/staging/iio/addac/adt7316-i2c.c +++ b/drivers/staging/iio/addac/adt7316-i2c.c @@ -93,9 +93,9 @@ static int adt7316_i2c_multi_write(void *client, u8 reg, u8 count, u8 *data) * device probe and remove */ -static int adt7316_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adt7316_i2c_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct adt7316_bus bus = { .client = client, .irq = client->irq, @@ -138,7 +138,7 @@ static struct i2c_driver adt7316_driver = { .of_match_table = adt7316_of_match, .pm = ADT7316_PM_OPS, }, - .probe = adt7316_i2c_probe, + .probe_new = adt7316_i2c_probe, .id_table = adt7316_i2c_id, }; module_i2c_driver(adt7316_driver); From patchwork Fri Nov 18 22:45:01 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: 22659 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460859wrr; Fri, 18 Nov 2022 15:25:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf6tonFDhOWHcOcBXlTyGFpRs5i/ScMXvLt+TiPS1WoYJ24gZ0Di8gkqxCC8hJ7isCJwm5+N X-Received: by 2002:a05:6402:1519:b0:463:6346:40f with SMTP id f25-20020a056402151900b004636346040fmr8173773edw.420.1668813934008; Fri, 18 Nov 2022 15:25:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813934; cv=none; d=google.com; s=arc-20160816; b=UUU7AEu9nIFRcVJK9WdWAU5gyZoJ2qcx3RgfR1qNp/kwkVsWHDsxDYCcm8QVuPDWZA JRwil7IfrPnCx08vdpFzU1TMlHPdzb1YQuucugmYjfLrOdHkCdjxroAd5IVOTT0mtxiQ RiS4rNbOpj4GQajWhCePUrIZpe1rvHnEAWZHc6Q8XC1QY/HBpGTTyL/7KIMQXEnn4LMb PJs9H/UYfa7XARTHOnqE3UyAJAJhGPPjgL4vP5LOXdOWHrovuVPNfNK0Fu/VEl4f42g7 rUWJWoWxs28DkyU3m2pASFCHCdNer+wILRZF6+teutCg7mC7+eAKuKr1s4uER9hkaTok 0vtQ== 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=ebb7SyCevpPeGFi+5KOWsMJztBgpqamt9w+SAb5trDw=; b=gEVm7LbM/V1YPTLMlAXj+ttYzEmWhGHtw4Ld/vduelZFGlT+PaDXOc7WCkWRCh4pv4 TzSTBTWJqkj1ufuihBFh0icwKC0f7XyicoQ/URY4uVtVekC+j6yKzDVEatR9bt8JkIQE EycaZKfWvCT+Ca2NtOLMFKKO2T0CUR4SETDGMFsDvMew8P7dHzY9eFXJtRvtoE1fMT77 6o00JQP+OVAlfMhSRPs8GMAHVD/L/BwhdXDRAY43pHgsWS/en1B41dA/mNJcK5qHWLgf L1wfh1C2jQH1lcr4KUdKMhHOnNPFd/TICIPaHWW7+doJGUsuxDvuuZzLWZqgypMZsjTj apFg== 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 gn42-20020a1709070d2a00b0078e319dcca7si3977337ejc.744.2022.11.18.15.25.09; Fri, 18 Nov 2022 15:25: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 S235576AbiKRXYI (ORCPT + 99 others); Fri, 18 Nov 2022 18:24:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235548AbiKRXWG (ORCPT ); Fri, 18 Nov 2022 18:22:06 -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 84A9D950F8 for ; Fri, 18 Nov 2022 15:13:06 -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-0005Dq-1Q; 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-0058rK-3q; 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-0000Ti-6m; 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 , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Greg Kroah-Hartman Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-iio@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 567/606] staging: iio: ad5933: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:01 +0100 Message-Id: <20221118224540.619276-568-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?1749878239280820096?= X-GMAIL-MSGID: =?utf-8?q?1749878239280820096?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/staging/iio/impedance-analyzer/ad5933.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.c b/drivers/staging/iio/impedance-analyzer/ad5933.c index f177b20f0f2d..b3152f7153fb 100644 --- a/drivers/staging/iio/impedance-analyzer/ad5933.c +++ b/drivers/staging/iio/impedance-analyzer/ad5933.c @@ -674,9 +674,9 @@ static void ad5933_clk_disable(void *data) clk_disable_unprepare(st->mclk); } -static int ad5933_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ad5933_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); int ret; struct ad5933_state *st; struct iio_dev *indio_dev; @@ -781,7 +781,7 @@ static struct i2c_driver ad5933_driver = { .name = "ad5933", .of_match_table = ad5933_of_match, }, - .probe = ad5933_probe, + .probe_new = ad5933_probe, .id_table = ad5933_id, }; module_i2c_driver(ad5933_driver); From patchwork Fri Nov 18 22:45:02 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: 22655 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460757wrr; Fri, 18 Nov 2022 15:25:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf7U3f4BExpA44zJ2QiCTJgtqlsY1H72g3x3m5ReYqCCABSAKPD+n74zVTz3go9Wx/TF96mU X-Received: by 2002:a17:90b:2684:b0:218:907c:da24 with SMTP id pl4-20020a17090b268400b00218907cda24mr2948118pjb.18.1668813913725; Fri, 18 Nov 2022 15:25:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813913; cv=none; d=google.com; s=arc-20160816; b=UDAJUv4uWDD5uLB/xr116GL90CrmXsIcax96a/2wNBZ3kenEpoTkjsktw1ICVUP4Xw F42e5Rd9bnR9Aji7ZsdmF9d8Lf3nHaEr+dPzmsiCZX44GCgQVZFYJk89cn27mvPFgiDI +EndrWGi4BmkFArhvl1I4KYZ4AXSVkxOOuCqMtPooEz1vbjuN3e1XVbC/Y4z2zjDecsZ fDw5jtxdDtOASqtTGYVCAsPoyiF5MjpI960GKSEa8zGGZWJj6+emFqUNwU4ZJ5fT9PZs cACTpFOFJBVvBrlNnBgdz3pGZ2cj1/3/4sMW/Iex09YXzlJUK1eYTmjtcUMwyoomAEtY 3pEg== 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=aA8Kc3p1cyeml/kr6ICZRS+mEeK8ypqj11fTfDhyN7w=; b=QHql6D/kunNzyJzdZFP+ucjYZDG3UpMl7+nhzHgvqESpxGz57hMKA0dyxmKzWy3Itv 0YSVPj0Z/c2y9NUCHVph0tVU5W09FczOQI4jKshL4ZXcfYGic4Xd5t2hWC1Q7xQcOUo7 uKqjzFpkXZypbHs4eoWF5QZDjTxI4BwzTK/DtXJkGJWa+Qyx9a3P/w4YN4d+I7qC9pqZ Y14nzJcJ3HlPm2ZBmdYGZMHMSmCrOX6azVJWnDVy7K4NeMCjoY+K/1/sJ2BIf6XnZLjx aytVRvS9h3PtHBj24x3x9inpoI8k0D9B9kKe1giJNEcWJWPUiAFjtMCPwkjFnndUwfa3 fdgw== 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 h8-20020a170902f70800b0017d9b373175si4808909plo.415.2022.11.18.15.25.00; Fri, 18 Nov 2022 15:25:13 -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 S235546AbiKRXX5 (ORCPT + 99 others); Fri, 18 Nov 2022 18:23:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235534AbiKRXWE (ORCPT ); Fri, 18 Nov 2022 18:22: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 B5BCB6D97C for ; Fri, 18 Nov 2022 15:13:02 -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 1owA9f-0005Dg-Vg; 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-0058rG-0g; Fri, 18 Nov 2022 23:48:13 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9d-0000Tl-C9; 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 , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Greg Kroah-Hartman Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-iio@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 568/606] staging: iio: ade7854: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:02 +0100 Message-Id: <20221118224540.619276-569-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?1749878218620685850?= X-GMAIL-MSGID: =?utf-8?q?1749878218620685850?= 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/iio/meter/ade7854-i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/iio/meter/ade7854-i2c.c b/drivers/staging/iio/meter/ade7854-i2c.c index 71b67dd3c8e9..572d714eb0dd 100644 --- a/drivers/staging/iio/meter/ade7854-i2c.c +++ b/drivers/staging/iio/meter/ade7854-i2c.c @@ -112,8 +112,7 @@ static int ade7854_i2c_read_reg(struct device *dev, return ret; } -static int ade7854_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ade7854_i2c_probe(struct i2c_client *client) { struct ade7854_state *st; struct iio_dev *indio_dev; @@ -144,7 +143,7 @@ static struct i2c_driver ade7854_i2c_driver = { .driver = { .name = "ade7854", }, - .probe = ade7854_i2c_probe, + .probe_new = ade7854_i2c_probe, .id_table = ade7854_id, }; module_i2c_driver(ade7854_i2c_driver); From patchwork Fri Nov 18 22:45:03 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: 22741 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464888wrr; Fri, 18 Nov 2022 15:36:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf5PL/ACZCIl8EmuJ8p7K1CtCd0bGwxldCC2e6PCip1+eKgSKS48nNFILuS2SlWW3pW+aTAW X-Received: by 2002:a17:906:85d2:b0:78e:ebd:bf96 with SMTP id i18-20020a17090685d200b0078e0ebdbf96mr7769601ejy.625.1668814561005; Fri, 18 Nov 2022 15:36:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814560; cv=none; d=google.com; s=arc-20160816; b=cNL7/Xw6DRXlLun/Q6Y0bPxGTRJVKohky0nMshpQ3mRe3+kL3DfArFC8x7wA3juCZM Rusyw8cWQKnpU2swm9CkaqT1YNR2y5JBic6hIkrk+Cm7I6JHzBQSfz7fgBpCDTFvPdjg hQSA2lntSLpEUPYn9tGd3GXAINVWLJabirKnCDJgHff5ZHN1D7VUKadQs08naPQejBnR k5Hdm70YpIWKYB8XE6tye8m12aYUAkZIYHsKXtWB3DqGQWQf8BLXjralQR69ofy7xnTv XM2xIkyeHnr7Lbi4F0HU9lQXoZnqnYj5m1x440GUtwVz0NNQ7fQLoUiRoR3sG8ssqj1n p4rQ== 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=R9X1IvSKEYvr9w2TCDOC3JqX2NaPFkrDWgN8ZCNIOeA=; b=AlehXFM64yBzuRjm7R+dk97AiN758yKVa7JfSslklcztymc0KiHuH7f14vqiGQrk/k 94KSUhfto49Kr7gv+l3+g3b+D193ZBFbQV4WBCnv60oigs8Ekm7wkWMtMZmEEkPki6ob 5bsh3084iHIA4ynZeU+bjfh6m6mc0ZxbJZr8w6nRo9NchiyMQJlMDxjP+Bmi44IP/ixt Gamj0Ewjw6MsTGzKPvTDSJFKKi9xn6lzSoHC6SFrlILhf+tl4r2PULJX4T4yIiBZMkt0 HzI/X/n99Tqr/qTJKGXaGjWDtWkUiiQK9MZ+oFsvdRJ5OvrZ4cR/yy+kBGJ8jwWPyfNh O+hg== 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 xd4-20020a170907078400b007ae98a880dcsi4208075ejb.424.2022.11.18.15.35.36; Fri, 18 Nov 2022 15:36:00 -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 S236010AbiKRXev (ORCPT + 99 others); Fri, 18 Nov 2022 18:34:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236074AbiKRXbn (ORCPT ); Fri, 18 Nov 2022 18:31:43 -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 68D82BC2 for ; Fri, 18 Nov 2022 15:19:15 -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-0005EN-0c; 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-0058rP-Bu; 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-0000Tr-Ha; 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 , Greg Kroah-Hartman , Petr Machata , Peter Rosin , Srinivas Pandruvada , Peter Senna Tschudin 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 569/606] staging: most: i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:03 +0100 Message-Id: <20221118224540.619276-570-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?1749878897367890367?= X-GMAIL-MSGID: =?utf-8?q?1749878897367890367?= 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/most/i2c/i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/most/i2c/i2c.c b/drivers/staging/most/i2c/i2c.c index 285a071f02be..df53a4c4f850 100644 --- a/drivers/staging/most/i2c/i2c.c +++ b/drivers/staging/most/i2c/i2c.c @@ -284,7 +284,7 @@ static irqreturn_t most_irq_handler(int irq, void *_dev) * * Register the i2c client device as a MOST interface */ -static int i2c_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int i2c_probe(struct i2c_client *client) { struct hdm_i2c *dev; int ret, i; @@ -359,7 +359,7 @@ static struct i2c_driver i2c_driver = { .driver = { .name = "hdm_i2c", }, - .probe = i2c_probe, + .probe_new = i2c_probe, .remove = i2c_remove, .id_table = i2c_id, }; 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, From patchwork Fri Nov 18 22:45:05 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: 23100 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487631wrr; Fri, 18 Nov 2022 16:43:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf6CtV5KT/1kUJSkivgLPjSaUrRUPrJ92V/mwWcvWZLmE2GE8VGWYPyYa5x8aCr3KM+K7tbD X-Received: by 2002:aa7:cc14:0:b0:468:58d4:a10e with SMTP id q20-20020aa7cc14000000b0046858d4a10emr8361087edt.222.1668818615941; Fri, 18 Nov 2022 16:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818615; cv=none; d=google.com; s=arc-20160816; b=ZhduaFo0JPLtRJu2fk2SzGyY5E6fgWkWjvVWxCYGFOBESZ0Uo/T6OkfjvOs+iSYlcb SDrMcZOB0S7cvHcyKhRsx7GOtAjr0Dp8hSMd16A7x0hkD8/0vGvccdq/fozNKYrEhVBT faEYppP9dXK0ZFO8dHQs1ZU3HOZI6abrepG9355k6gVKw7Y6bjStyyB0zYC00TAI/s3o vM/wZ/4n5SW1hhmMARA3KgRhp3dxuxlqz6gfjAvPJKOb/4pgsNRz12j2K9lllddYCz+D iP/S3Jg+34RV/vEUMstiIWFsZBPgUHVwUkNAfLfnELkGoCZJv//urB0CspYHJgsYWRt3 85Gw== 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=0h+GPv8j8Y3DlZBl6u+2uw46VBRng1/kSn3F+NppSRU=; b=hmnQtEnDs4FmAZhZc4jM254G3AcK/PhnIoxB1zM1Rzj9dAUcfSCz9S3z+ufM4jQQfY 6CRFBr2MvJvMTBBevND+pWQAmgGnFKuqJaD9y7RVnpQ0/ueTarTM/ptnHjNMD8bMkSrG O1fOTq3T5XnwpkMuzZMb4/tr8nQpPYEVB+8l84h9CtmFZu0uwdrbRWY6gctVf/Um5UvP PZPVf/FH7VV20m2Q5bpDGKQFsyC0nzz6XXbHKmn6KNijmcv+cqsL89K0ygm+UmTLxJcg y5EgrW9oaJtZ0qzyUp1K9hlMVMcbywEQuyVGXsGLqe0XABlvWCe4Wm5w+RAyaz4ruG71 BXeA== 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 oz36-20020a1709077da400b007b2a8df055csi3678418ejc.217.2022.11.18.16.43.05; Fri, 18 Nov 2022 16:43: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 S236619AbiKSAkS (ORCPT + 99 others); Fri, 18 Nov 2022 19:40:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235692AbiKSAjI (ORCPT ); Fri, 18 Nov 2022 19:39:08 -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 EBFBAC78EA for ; Fri, 18 Nov 2022 15:44:23 -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 1owA9h-0005GQ-GO; Fri, 18 Nov 2022 23:48:17 +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 1owA9e-0058rl-B2; Fri, 18 Nov 2022 23:48:15 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9d-0000Ty-Sg; 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 , Greg Kroah-Hartman , Jiri Slaby Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 571/606] serial: sc16is7xx: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:05 +0100 Message-Id: <20221118224540.619276-572-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?1749883148959143262?= X-GMAIL-MSGID: =?utf-8?q?1749883148959143262?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Reviewed-by: Greg Kroah-Hartman --- drivers/tty/serial/sc16is7xx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c index 39f92eb1e698..8412b25eac86 100644 --- a/drivers/tty/serial/sc16is7xx.c +++ b/drivers/tty/serial/sc16is7xx.c @@ -1665,9 +1665,9 @@ MODULE_ALIAS("spi:sc16is7xx"); #endif #ifdef CONFIG_SERIAL_SC16IS7XX_I2C -static int sc16is7xx_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int sc16is7xx_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); const struct sc16is7xx_devtype *devtype; struct regmap *regmap; @@ -1708,7 +1708,7 @@ static struct i2c_driver sc16is7xx_i2c_uart_driver = { .name = SC16IS7XX_NAME, .of_match_table = sc16is7xx_dt_ids, }, - .probe = sc16is7xx_i2c_probe, + .probe_new = sc16is7xx_i2c_probe, .remove = sc16is7xx_i2c_remove, .id_table = sc16is7xx_i2c_id_table, }; From patchwork Fri Nov 18 22:45:06 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: 23109 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487799wrr; Fri, 18 Nov 2022 16:44:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf76Y6scK5EweOjBJBrhnEawbAGA5CvV0CFIe6KCy7qfR9dqYI2YtAy9xRZUePKRAUVgtWrC X-Received: by 2002:a05:6402:528f:b0:461:9cbd:8fba with SMTP id en15-20020a056402528f00b004619cbd8fbamr8334377edb.19.1668818646474; Fri, 18 Nov 2022 16:44:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818646; cv=none; d=google.com; s=arc-20160816; b=kvpFiP0J/9ue59V071Rw5HXvu30lgMeqd0CxbL8zAhD6qBuZ+nxDhjm0vHfh9aMef8 9NK0ll8ik+8e1sTlUXNKCD7ciq1vybMdu33IPuch6xpc5MeGxmHcJWANKWQmNOG/NQFc Ftm7lvZIsFhAajGJZMYm9ErHfiVHQ+niESDobagKGvYzdTtGwiBvRUSOCXSm3n6nv3MV UHZhMJql+Bvy2cLA05YslC02lcLsfoGgBTqVeTZdyMQGvjcxIvn2l/pJfdg3T+QlsNbf 6qXZn+yAVBeEpMCOMFG/fIiEunGTl7GQmw7Y65PAQr03XWZ0lJJDClM4obtV7kU+edBH xW0g== 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=kHtJPLQBDGH03PrAGQTPTS3yuf++dY6Yo7gvHKmg6m8=; b=gcCYZfqvDGfwzFHx01RhAMOVOXRAwx1GETXisnCTn9jh5JdYpVm4l5YcsDsWT33r9J ATkYvLrknioqI+qbbah0l2pfDkW7W3+bO3CTSWGMtVFlj4coPh7UpdKBPGQ4TDF6UM4X SO+3QBIncEi5s34M779DKAtLyJVPL/rNibluZ5ThxA8TNxyBuWQFX4ex22FQkqwG99iF D358OgRZeun0ni5RIFFh16YWe9HtPzt8CtgvJAds3evrq+f26NV6XeVEHeRE/RklfbKT zCqp7agOfCGSFsGDtfuPTTXvQkITBXmio0eXvvxzRo5s4fhBJZGIZdBKHt8N0a3a4rMg F5kg== 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 xg2-20020a170907320200b00780e89ce0b0si4285428ejb.600.2022.11.18.16.43.37; Fri, 18 Nov 2022 16:44:06 -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 S236285AbiKSAgI (ORCPT + 99 others); Fri, 18 Nov 2022 19:36:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236319AbiKSAfe (ORCPT ); Fri, 18 Nov 2022 19:35:34 -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 84500116061 for ; Fri, 18 Nov 2022 15:43:13 -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 1owA9h-0005GO-DZ; Fri, 18 Nov 2022 23:48:17 +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 1owA9e-0058rg-9A; Fri, 18 Nov 2022 23:48:15 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9e-0000U3-2o; Fri, 18 Nov 2022 23:48:14 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Richard Leitner , Greg Kroah-Hartman Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 572/606] usb: usb251xb: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:06 +0100 Message-Id: <20221118224540.619276-573-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?1749883180976712319?= X-GMAIL-MSGID: =?utf-8?q?1749883180976712319?= 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 Acked-by: Richard Leitner --- drivers/usb/misc/usb251xb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/misc/usb251xb.c b/drivers/usb/misc/usb251xb.c index 54337d72bb9f..e3abe67a155d 100644 --- a/drivers/usb/misc/usb251xb.c +++ b/drivers/usb/misc/usb251xb.c @@ -699,8 +699,7 @@ static int usb251xb_probe(struct usb251xb *hub) return 0; } -static int usb251xb_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int usb251xb_i2c_probe(struct i2c_client *i2c) { struct usb251xb *hub; @@ -758,7 +757,7 @@ static struct i2c_driver usb251xb_i2c_driver = { .of_match_table = of_match_ptr(usb251xb_of_match), .pm = &usb251xb_pm_ops, }, - .probe = usb251xb_i2c_probe, + .probe_new = usb251xb_i2c_probe, .id_table = usb251xb_id, }; From patchwork Fri Nov 18 22:45:07 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: 22737 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464729wrr; Fri, 18 Nov 2022 15:35:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf6RxVaA1AePVsPIl4vQujI+7QWzJEealJ4AHEnR1ZFq+h4xnvSiP4fc5+srw/M1f/AyiwuS X-Received: by 2002:a17:906:3a5b:b0:78d:f3f4:b1a0 with SMTP id a27-20020a1709063a5b00b0078df3f4b1a0mr7843509ejf.489.1668814537968; Fri, 18 Nov 2022 15:35:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814537; cv=none; d=google.com; s=arc-20160816; b=oMtV+gHLlmD+EZ/FMuRxM6ByimvDt0TMsJnNxB6pvW0ql4DNBijf6FL9GNnH6hj5PH qUvSLB5+DIHxIRUWi0THLKw6TjF6v/jf4BHUDwdZ6vnze25d4xEyhr8pCNTbaw3N5xLG 00V10JCUsJotufPsOSS7T6yCy6M3tGZuG71WeUqv4hb0aMObcdL6vnHveE22oqp6xcph Hg9G1mRYJhcs1Dfkby75gpcTwNBPV0wilqP3y1C1mwqGLbB2d0Rm3ZG97PC9KOMH/VX6 QSW+ongSDjiYImFq+bDp85Qzcs7ee/aX8u3aFNNgluY4fGXn6z4QM55xTqQUyF2p5LAS 74vg== 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=V3tD1XWMDDJEL3NQsvWacyd2hbTT462cVmTDyoRuDLo=; b=pJcH9SsjW3D8qxy2Q1u/TnOIswKv+cnkiYH3cahmClKalFOjeatM+Cv+wV38hnukP/ f86GttX5yDnsLwYF1MlhpdaykkQ1+a26BZM3/gsenjQK5VvKjJlDE+eroUaU2zrxPnQ/ SB2yFs2V+mj0djnhQgqTlQM52t4y/B/Qq6h4fugrtMqqd8HQLKBHqqFBZ12Jz06PWtXf nmUmvv4EmzZlu58gUYz/TwfCwjszJkEEe/qS3VGbK6HbWZzraCxl6HLmm3kGm6gfh2KZ 8PQrfYCtT2v4tC7dzsAKZFPbHgmqe+iYjR3BiMYPBI5F51K4VApwd3Ne/I+1rCbq1IJi T6Mg== 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 i8-20020a05640242c800b00458c130870esi1564257edc.385.2022.11.18.15.35.12; Fri, 18 Nov 2022 15:35:37 -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 S236267AbiKRXef (ORCPT + 99 others); Fri, 18 Nov 2022 18:34:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235959AbiKRXbl (ORCPT ); Fri, 18 Nov 2022 18:31:41 -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 C6E0D93CC0 for ; Fri, 18 Nov 2022 15:19:05 -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 1owA9h-0005Go-Ey; Fri, 18 Nov 2022 23:48:17 +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 1owA9e-0058rv-Gf; Fri, 18 Nov 2022 23:48:15 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9e-0000U7-8n; Fri, 18 Nov 2022 23:48:14 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Greg Kroah-Hartman , Dongliang Mu , Javier Martinez Canillas , Srinivas Pandruvada Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 573/606] usb: misc: usb3503: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:07 +0100 Message-Id: <20221118224540.619276-574-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?1749878872949188182?= X-GMAIL-MSGID: =?utf-8?q?1749878872949188182?= 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/usb/misc/usb3503.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/misc/usb3503.c b/drivers/usb/misc/usb3503.c index c70ca475c7c7..bd47c4437ca4 100644 --- a/drivers/usb/misc/usb3503.c +++ b/drivers/usb/misc/usb3503.c @@ -280,8 +280,7 @@ static int usb3503_probe(struct usb3503 *hub) return err; } -static int usb3503_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int usb3503_i2c_probe(struct i2c_client *i2c) { struct usb3503 *hub; int err; @@ -400,7 +399,7 @@ static struct i2c_driver usb3503_i2c_driver = { .pm = pm_ptr(&usb3503_i2c_pm_ops), .of_match_table = of_match_ptr(usb3503_of_match), }, - .probe = usb3503_i2c_probe, + .probe_new = usb3503_i2c_probe, .remove = usb3503_i2c_remove, .id_table = usb3503_id, }; From patchwork Fri Nov 18 22:45:08 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: 22891 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472422wrr; Fri, 18 Nov 2022 16:00:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf62T25Xl2LxLJPTSAag1c/qIqDhPdNxYUSwYVdPWT5ETPiWjBxtFk3n4BeofyDfnTqVu9pg X-Received: by 2002:a17:902:b682:b0:188:f8bd:9589 with SMTP id c2-20020a170902b68200b00188f8bd9589mr1734103pls.91.1668816012316; Fri, 18 Nov 2022 16:00:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816012; cv=none; d=google.com; s=arc-20160816; b=vDluyehLK3VEBOsdHgezgcs5fZXP9CkprWu2f7nZBHX8Hd5m5eChSTi6wLW5pUhJcy uuV+lw1Y1bPoj5KsDrUfYI/P8NqXlUOSi3LBHfT2cqQqSFbMYFiKXwUOc7gioU6lTHIa C18HSeZ69wMeuzccw3pbO4iqkeIpJNrII7Zrza5SlHrwFADxS2VIvyUn1X/tUuQiV7f7 pubhkfrlFliSOH7tvl57WlTHs2Bz6lEcWQ0+VUL688hK3206NzVSCO7uRbMqISMSiUu5 H1T6WtbsPJ3uRdmYG+p6vNox9RU0Am5WV11sQxMINAVm9lh/a5zJb3jgCggATdh+PFHy S1WA== 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=oFTtvwJm9Ueby1KPTUFzgUdYnf/CFq/Emif3D7/OPXg=; b=mbDmBM+UNXuWlw+MA5iOoJk1bEREx9YWoqQHP3URhZNDRB62F2gsvVyRj3DMYEDhlW Neden4Zqa8u0pANJ3RKyDL+40vK7KFMZ6QYsLWWN9EjZbq5FD87QwBFsBQLPdXyltRZQ ZfYuPR+IfrHzMxKzckWCSvk+iK6pC6343O3j3IdPLpYm2y1EZD88ss14lO4FyHmgESp6 do0SqgPicv02bmhab37buixpLkVHwBQ/uRl095aXTPmdia8768+7i4TBfa4YEfcWZdqa gz/cjaW9P9YBaQmvV04x+g+rOFGoQIlTi5DMiYGdOIQz1Z+WxI75LV22X9wnUusYQA7f khoQ== 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 194-20020a6304cb000000b0046f1263abd6si4865527pge.661.2022.11.18.15.59.56; Fri, 18 Nov 2022 16:00: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 S231445AbiKRXyR (ORCPT + 99 others); Fri, 18 Nov 2022 18:54:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237086AbiKRXwQ (ORCPT ); Fri, 18 Nov 2022 18:52:16 -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 10001C75A3 for ; Fri, 18 Nov 2022 15:27:30 -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-0005GN-Sq; 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 1owA9e-0058rf-9E; Fri, 18 Nov 2022 23:48:15 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9e-0000UB-G3; Fri, 18 Nov 2022 23:48:14 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Greg Kroah-Hartman Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 574/606] usb: usb4604: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:08 +0100 Message-Id: <20221118224540.619276-575-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?1749880419426719235?= X-GMAIL-MSGID: =?utf-8?q?1749880419426719235?= 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/usb/misc/usb4604.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/misc/usb4604.c b/drivers/usb/misc/usb4604.c index 2142af9bbdec..6b5e77231efa 100644 --- a/drivers/usb/misc/usb4604.c +++ b/drivers/usb/misc/usb4604.c @@ -97,8 +97,7 @@ static int usb4604_probe(struct usb4604 *hub) return usb4604_switch_mode(hub, hub->mode); } -static int usb4604_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int usb4604_i2c_probe(struct i2c_client *i2c) { struct usb4604 *hub; @@ -155,7 +154,7 @@ static struct i2c_driver usb4604_i2c_driver = { .pm = pm_ptr(&usb4604_i2c_pm_ops), .of_match_table = of_match_ptr(usb4604_of_match), }, - .probe = usb4604_i2c_probe, + .probe_new = usb4604_i2c_probe, .id_table = usb4604_id, }; module_i2c_driver(usb4604_i2c_driver); From patchwork Fri Nov 18 22:45:09 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: 23104 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487786wrr; Fri, 18 Nov 2022 16:44:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf6PPYnCqexkWTbxX8Jhi91I+FgAHC8Xe2Y998WFxyq3VEh39Vq1WrKQR7fA8ghje5HAPUr8 X-Received: by 2002:a05:6402:657:b0:461:bcf0:86dc with SMTP id u23-20020a056402065700b00461bcf086dcmr8318570edx.368.1668818644035; Fri, 18 Nov 2022 16:44:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818644; cv=none; d=google.com; s=arc-20160816; b=hZg4UE2hxHRylhP6GElRORAKYMpP7NvFZnztKPHrp/Sr3NU+BBAJzbvRT0XxxD+H5I NZm9RCBPUEYdJ6N4JNb7Qr/oKgz+jNfH3HL3Y52sIioXiB+twaxEXyLFE+METWHkrZm1 tgb3zC0g/BgqZzSXYbudrPswWZgKUNPqam63fHGZz3AOBPWPTrQ/SbhfpEE5XDOJFKpk CILcOqI/T8nUC+A0VThCo4sOP0TUg7JEQkJ0USZ8K0dlRkYZYYSbc1Mf4SDLnX171r6b IpmZHf/tyLh7apCigmEzwrkomQlyXAnAF09BQYlw1J0nnIswEckhGkVOOG21IQIsNkfz YbMA== 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=AreGQ51OVaT6z7aj/qwwNLITbXEa5uZhxYBnXGBzMqU=; b=TcG5f5MdVb7aljIZ26FRAl+fXiHRb84n9Vro86mYLVxmNeNCLDkI9aDzUt/EUUFI27 3jMLIY3vSM35yqvIgpx/x47sUpazuBzGHMLQXnJdK7xV/Ieqm29ebZWQJO5JtsXVowFP E4Ni2EWZyOuSykx/iKmslvC7wRuFz2HGq5LNC4puJZMELnK3Dq4m+KIdOP6xzBJ1lARO Eev+Ws9Xsu5FR+hI6ajzHcXn0rjkhQYXdQHT/VxRvmusE7yy2Mg7V97vD8GNQz4dqlTU u8LN0xBEKqoHZwL3OWkZaQaVwFYvk96KHGLd5N6B6SJLau9kHz8Uhbj6OiFPpqg/Bsk1 krWA== 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 e22-20020a17090658d600b007b2a6aaff06si4550791ejs.50.2022.11.18.16.43.34; Fri, 18 Nov 2022 16:44:04 -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 S235162AbiKSAfk (ORCPT + 99 others); Fri, 18 Nov 2022 19:35:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235440AbiKSAfH (ORCPT ); Fri, 18 Nov 2022 19:35:07 -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 6E605115D05 for ; Fri, 18 Nov 2022 15:43:02 -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 1owA9h-0005GX-7Q; Fri, 18 Nov 2022 23:48:17 +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 1owA9e-0058rp-Cb; Fri, 18 Nov 2022 23:48:15 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9e-0000UF-Lg; Fri, 18 Nov 2022 23:48:14 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Greg Kroah-Hartman , Tony Lindgren , Arnd Bergmann , Felipe Balbi Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 575/606] usb: isp1301-omap: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:09 +0100 Message-Id: <20221118224540.619276-576-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?1749883178448814703?= X-GMAIL-MSGID: =?utf-8?q?1749883178448814703?= 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/usb/phy/phy-isp1301-omap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/phy/phy-isp1301-omap.c b/drivers/usb/phy/phy-isp1301-omap.c index e5d3f206097c..931610b76f3d 100644 --- a/drivers/usb/phy/phy-isp1301-omap.c +++ b/drivers/usb/phy/phy-isp1301-omap.c @@ -1471,7 +1471,7 @@ isp1301_start_hnp(struct usb_otg *otg) /*-------------------------------------------------------------------------*/ static int -isp1301_probe(struct i2c_client *i2c, const struct i2c_device_id *id) +isp1301_probe(struct i2c_client *i2c) { int status; struct isp1301 *isp; @@ -1616,7 +1616,7 @@ static struct i2c_driver isp1301_driver = { .driver = { .name = "isp1301_omap", }, - .probe = isp1301_probe, + .probe_new = isp1301_probe, .remove = isp1301_remove, .id_table = isp1301_id, }; From patchwork Fri Nov 18 22:45:10 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: 22812 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp470282wrr; Fri, 18 Nov 2022 15:52:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf4wzrjghbANjfTx3r9PQjysrd1IhmnGazcWaUcOadfT3kTzCQcDoLVaSaNpy/pCUfFalSeg X-Received: by 2002:a05:6402:5307:b0:461:e3e1:bc3b with SMTP id eo7-20020a056402530700b00461e3e1bc3bmr8152573edb.145.1668815571268; Fri, 18 Nov 2022 15:52:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815571; cv=none; d=google.com; s=arc-20160816; b=pqnSUU7mLvO1IGNmCTQJtUb4pYPPYLfvTvsxjwryJIEuOrbY4Uw1qVHcUbY3eGnh+j wUk26RRUqbDuv/+QseK0R/kBHp9Oy5M16+F2JYRLhYtNRLrMAOJ8qrL+K4W5Nda+BekZ nMPvU5XxCPn9j3YeCNvQGHZHTN/uGY7E+65btMNzsmvfH0qpdxCxG3CiKkRM9Jy/WvYD K+Phri7i5jdiqUI5DisHez2WhAFORdp3pF+smBPUSg3gjJhJLTMdH0M0N0SOocKEPpj3 R3+EOhJfwNTdQQtqs5Aipsmgrmk9ge3p1u8hSUqo/Z0zsOy+W5npwfZRXpfmhB8OlpHX n80w== 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=SSoeA/W1o16wT91CeL6+N1HLId/soxweWKGCN0P0XB4=; b=NhztT6L1BgrzCCz37hJAGimCPI9vWhgSZR357JTWEXmHtb+unTT1BQjZwtSvFNxvu/ ZGrePF01r2jSZ7pxbOOllOzzvcQTng5QUh6mKCsfF3TbqQjGevXVFoh/j76avmYqPX/B iVpk1g6lKIS2MrUSgQiLMO5MaDE+S+bYENVToydxpIEsA78vOUcsAwapN1tJaLm9OoD/ MBzeShvmET4K6ZkTC6gox8Gw+M7SCxHXiyhlyN1GuPzQKp4/OGKQKNsze5EXA6k7FJta fFspK1VxgRVt/7EVD/qeXWF7DvpyjdK3Wm53H0e+QK19trc16cVTZEQvMhgMFpl+/nqa mqGw== 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 gs1-20020a170906f18100b007708400bee5si3376627ejb.1003.2022.11.18.15.52.26; Fri, 18 Nov 2022 15:52:51 -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 S236751AbiKRXku (ORCPT + 99 others); Fri, 18 Nov 2022 18:40:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236828AbiKRXh6 (ORCPT ); Fri, 18 Nov 2022 18:37:58 -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 DA1AFA6A1F for ; Fri, 18 Nov 2022 15:22:49 -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 1owA9h-0005Gw-DA; Fri, 18 Nov 2022 23:48:17 +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 1owA9e-0058ry-JI; Fri, 18 Nov 2022 23:48:15 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9e-0000UI-R3; Fri, 18 Nov 2022 23:48:14 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Greg Kroah-Hartman , Ajay Gupta , Maximilian Luz , Petr Machata , Benjamin Mugnier Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 576/606] usb: phy: isp1301: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:10 +0100 Message-Id: <20221118224540.619276-577-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?1749879956580013106?= X-GMAIL-MSGID: =?utf-8?q?1749879956580013106?= 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/usb/phy/phy-isp1301.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/phy/phy-isp1301.c b/drivers/usb/phy/phy-isp1301.c index c2777a5c1f4e..f4ee14d98585 100644 --- a/drivers/usb/phy/phy-isp1301.c +++ b/drivers/usb/phy/phy-isp1301.c @@ -92,8 +92,7 @@ static int isp1301_phy_set_vbus(struct usb_phy *phy, int on) return 0; } -static int isp1301_probe(struct i2c_client *client, - const struct i2c_device_id *i2c_id) +static int isp1301_probe(struct i2c_client *client) { struct isp1301 *isp; struct usb_phy *phy; @@ -133,7 +132,7 @@ static struct i2c_driver isp1301_driver = { .name = DRV_NAME, .of_match_table = isp1301_of_match, }, - .probe = isp1301_probe, + .probe_new = isp1301_probe, .remove = isp1301_remove, .id_table = isp1301_id, }; From patchwork Fri Nov 18 22:45:11 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: 22699 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462729wrr; Fri, 18 Nov 2022 15:30:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf42Dvgx6+7z+HLkC1He5vUwC14+Kcjia4iLOK+SAKifh/wTMtA4JkeEOB1popZdsYA9mxwV X-Received: by 2002:a17:906:70ca:b0:7ae:fbe8:a73f with SMTP id g10-20020a17090670ca00b007aefbe8a73fmr7697719ejk.479.1668814251077; Fri, 18 Nov 2022 15:30:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814251; cv=none; d=google.com; s=arc-20160816; b=MOaNGcXsWn3oGKsr2BN9MRKb5QcSmx+7uPDUGwKOW+sQaed0M8HWWvvkoCxcu6Zcyy V8fHP1TNkdJlQg15/SzaYJ8rZ99TazhCa92+7/PMpJCDY0ZJMasJq2uMZLC59ZZDWZIb 9kwXM+J/PR81BKnK82k78macSXrot69FQFFMUZjdy7T0EyCX+ZdgEPg31513YCVInuZa pd/TnHNvH9B4PbS9FfU/IxrAkvMOpzLSR8cQJ7GNplKdZUDR/G+sbGoDjyW3v0a8oDJA CDYymMrK5qvMmEuBjk4+cMsy+Dl6fN5T0v3/+x+1COnLaX+6Q01JoVuivCeyVzcisf4H cMqA== 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=lh+UtZsBICVx9+/9qD1rkanpNgyVk/MbBWkVlmjrHtI=; b=F183tmuJxf6zfPwuuwOqudZ42oRZJNi2TJnjeWOXjnxTN1l2Lms3qvUq0o3j27bymN +FBdiFQIsYJJ9k1PzuQxetZW3jcn5aDpPfyknGPE8VTaCnpCH9rtXU3I+4YlPek1iOsc vqBiC5v9YNNeuQfNuS3nkBsQoaZIb8UzuM1K94V7cHGLYaKqA1yH9gMpEK6qEfe095qO A07VYDoQkReAu7AAeNtGcrE7GOdQgzDBtjTr3XyeTkNzhh+GrX2GKHJ+/OwqhZGxmbmC 0W2XiwtWxVJwjoWynZdKDjChIpLeDbCZePq1oqnZ2EDeNkPrk76uFo7aiDHdalWG4/MY jE3A== 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 gs15-20020a1709072d0f00b0078d4b605b71si4898066ejc.338.2022.11.18.15.30.26; Fri, 18 Nov 2022 15:30:51 -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 S235913AbiKRX3x (ORCPT + 99 others); Fri, 18 Nov 2022 18:29:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235797AbiKRX2q (ORCPT ); Fri, 18 Nov 2022 18:28:46 -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 6C001B94BC for ; Fri, 18 Nov 2022 15:16:53 -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 1owA9h-0005Hu-Tt; Fri, 18 Nov 2022 23:48:17 +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 1owA9f-0058s6-3D; Fri, 18 Nov 2022 23:48:16 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9f-0000UL-3i; Fri, 18 Nov 2022 23:48:15 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Heikki Krogerus , Greg Kroah-Hartman Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 577/606] usb: typec: anx7411: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:11 +0100 Message-Id: <20221118224540.619276-578-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?1749878572159009025?= X-GMAIL-MSGID: =?utf-8?q?1749878572159009025?= 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/usb/typec/anx7411.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/typec/anx7411.c b/drivers/usb/typec/anx7411.c index b8f3b75fd7eb..3d5edce270a4 100644 --- a/drivers/usb/typec/anx7411.c +++ b/drivers/usb/typec/anx7411.c @@ -1440,8 +1440,7 @@ static int anx7411_psy_register(struct anx7411_data *ctx) return PTR_ERR_OR_ZERO(ctx->psy); } -static int anx7411_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int anx7411_i2c_probe(struct i2c_client *client) { struct anx7411_data *plat; struct device *dev = &client->dev; @@ -1585,7 +1584,7 @@ static struct i2c_driver anx7411_driver = { .of_match_table = anx_match_table, .pm = &anx7411_pm_ops, }, - .probe = anx7411_i2c_probe, + .probe_new = anx7411_i2c_probe, .remove = anx7411_i2c_remove, .id_table = anx7411_id, From patchwork Fri Nov 18 22:45:12 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: 22972 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476445wrr; Fri, 18 Nov 2022 16:09:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf7MSavTG4SW4NFj9rnadtyrXsjsSRTMXNze7zli2gRhw3UzWxmfYNpWuA8BQNGngbNgGzIg X-Received: by 2002:a05:6402:1050:b0:467:e9a5:77c5 with SMTP id e16-20020a056402105000b00467e9a577c5mr8074284edu.289.1668816544694; Fri, 18 Nov 2022 16:09:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816544; cv=none; d=google.com; s=arc-20160816; b=nwTDXWOv5L6E1eKM2nzvHU+ig2Kv8N2p3uw2yHB93DcY4AJmhTTKnZftLjTSeDb3B/ ri8N+Gu5/VuaZ1Q/ODtn490pUGwThpEvSH7QuRvQc7jfPXdOrMlqGHPn5Rh5E0l/y+Dr qVUXHDIExboOXw+h0hgeT1NM7fK09lZG01h1n3QVdp9hqCzOEpTTC+VzNEuswvUU3hRa Qeb+M4Peyjya+SnUkMuXgQqb+9HxHSb0MAix0Y9weHVjLFE0zg1YYE1IhuE8Ub21DuZL 8FxIZbm1l1/MGK2cIJAHf6N8+B99eUiDDcMAWzc3u8lK5MNzYMANzEhZxDBhq9rIqZtv a8+w== 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=xSGDdzaORC+IOZypruHIQlC/4ZlUvFky+Cn4fKoiSI4=; b=xYXxjI++dNSyWmsDLcan6ts2g5wWS8r27aAwZpWsNfWyVz/Rdi5h3VE/qO/JQ39F+M cUiZTffatRmOZh6tncu2Xhiqc9Xxh+QF9p/FsgVrKtpGBxi/i93r4GJYyJhmcv6w7U7M rlgKQfN8d9JMfjhyEKgRZe0KK8ybffSwIgcaFbFe5wIO/vpgfms8X+f162FMDiVJN+qT D38E7kfDJE8qtOlqy+goXs0yXWqawMymaNgAXDsusGJ2wPafR8/RtOvPnn+i4SJMqVmQ hJPUZ8P2o6o9cI/YSpTlfopVLw6SnQxrLAXHqyHhoSphpBY8Mc+3Vvwj87OHtq1OQLau fW2Q== 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 dz12-20020a0564021d4c00b0046107f9520csi4750671edb.210.2022.11.18.16.08.36; Fri, 18 Nov 2022 16:09:04 -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 S237311AbiKSAEU (ORCPT + 99 others); Fri, 18 Nov 2022 19:04:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237282AbiKSABt (ORCPT ); Fri, 18 Nov 2022 19:01:49 -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 51613E1217 for ; Fri, 18 Nov 2022 15:29:52 -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 1owA9h-0005I6-U0; Fri, 18 Nov 2022 23:48:17 +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 1owA9f-0058sA-5s; Fri, 18 Nov 2022 23:48:16 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9f-0000UQ-CZ; Fri, 18 Nov 2022 23:48:15 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Heikki Krogerus , Greg Kroah-Hartman Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 578/606] usb: typec: hd3ss3220: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:12 +0100 Message-Id: <20221118224540.619276-579-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?1749880976975231788?= X-GMAIL-MSGID: =?utf-8?q?1749880976975231788?= 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 Reviewed-by: Heikki Krogerus --- drivers/usb/typec/hd3ss3220.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/typec/hd3ss3220.c b/drivers/usb/typec/hd3ss3220.c index 2a58185fb14c..f128664cb130 100644 --- a/drivers/usb/typec/hd3ss3220.c +++ b/drivers/usb/typec/hd3ss3220.c @@ -148,8 +148,7 @@ static const struct regmap_config config = { .max_register = 0x0A, }; -static int hd3ss3220_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int hd3ss3220_probe(struct i2c_client *client) { struct typec_capability typec_cap = { }; struct hd3ss3220 *hd3ss3220; @@ -264,7 +263,7 @@ static struct i2c_driver hd3ss3220_driver = { .name = "hd3ss3220", .of_match_table = of_match_ptr(dev_ids), }, - .probe = hd3ss3220_probe, + .probe_new = hd3ss3220_probe, .remove = hd3ss3220_remove, }; From patchwork Fri Nov 18 22:45:13 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: 22836 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp471523wrr; Fri, 18 Nov 2022 15:57:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf6gDpy/eeBX0uRbep+ggygwY4TOf4Fh6dzf/Ql551ls21I78ne0o7ptbr9er4nS9FnMDZMP X-Received: by 2002:a17:906:3096:b0:7ae:eae9:25a5 with SMTP id 22-20020a170906309600b007aeeae925a5mr7865634ejv.394.1668815826768; Fri, 18 Nov 2022 15:57:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815826; cv=none; d=google.com; s=arc-20160816; b=zOY4gEKxsHhrUnp387lqkcpqTDeicFVS3l7zRk2OtKiuIEQ2i2hC+6RZMSat0AsbQz JOwNckvXt0Z4ytvKzxkeupDG3Wt09rvCDxdq2oDIZOsZifq6dUpMD1eeTHybaxCTM4lq tLeeF/xm9GyFloYPCtVLaASjq0Xf2j5EJBtzw9e17GwbQpOBnOYTiR4uz7IkeMzBJsks fOwQfqdxNJEihNGwCkQtckaF1wUl9QNLd3Do0rGSCjKlgepitucsmxamK4eWteNpz9Vo ln02M5KbgYmJ7NX6/8+HkixpN+KXwevX+j1yy8gOizttHBbI48BTx8s81VA1kM+KknD5 tI5Q== 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=9UvdD07M4JS7AwbcI8TC0Mz/ImYQQ97s3Ak6IdbDa5Y=; b=0wbmHu99OK3ZTkarD5C4wT19u6davvGXEV830a1oDE7oNhWgKvq7kbmsR99D9WiRAJ 0X1Gj0Nbl2XSiFe0d/kf/lN6um3imuICMpUTax6TGb3qhAAw4HzTqqcRXLClI4LPA8S1 jukjpjR5pyedouv9QLllH5BYELk8dnrzJNXCFPJg/4c2v+k1GYaDzCa5Oa7JbTZ0KPft elam56VLvppgqZz5sPRLFF2Sti/SS807g4cPJFOzfQNj8lBiuap/N5LUqAPx7ESvbflF xZ4+MbpAtKcFZyC3QnYChLf6R6oG5qNjFgZpLR6eAxgk/ZaaJ38QpqxQlJVEl6IQQ/D2 MPLw== 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 qk40-20020a1709077fa800b0078d3b940ec5si5063848ejc.373.2022.11.18.15.56.41; Fri, 18 Nov 2022 15:57:06 -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 S236679AbiKRXsY (ORCPT + 99 others); Fri, 18 Nov 2022 18:48:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237030AbiKRXrV (ORCPT ); Fri, 18 Nov 2022 18:47:21 -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 0F008E3D05 for ; Fri, 18 Nov 2022 15:25:47 -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 1owA9i-0005JE-71; Fri, 18 Nov 2022 23:48:18 +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 1owA9f-0058sI-EK; Fri, 18 Nov 2022 23:48:16 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9f-0000UW-Hv; Fri, 18 Nov 2022 23:48:15 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Guenter Roeck , Heikki Krogerus , Greg Kroah-Hartman Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 579/606] usb: typec: tcpm/fusb302: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:13 +0100 Message-Id: <20221118224540.619276-580-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?1749877996837830251?= X-GMAIL-MSGID: =?utf-8?q?1749880224195857102?= 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 Reviewed-by: Heikki Krogerus --- drivers/usb/typec/tcpm/fusb302.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/typec/tcpm/fusb302.c b/drivers/usb/typec/tcpm/fusb302.c index 721b2a548084..1ffce00d94b4 100644 --- a/drivers/usb/typec/tcpm/fusb302.c +++ b/drivers/usb/typec/tcpm/fusb302.c @@ -1677,8 +1677,7 @@ static struct fwnode_handle *fusb302_fwnode_get(struct device *dev) return fwnode; } -static int fusb302_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int fusb302_probe(struct i2c_client *client) { struct fusb302_chip *chip; struct i2c_adapter *adapter = client->adapter; @@ -1837,7 +1836,7 @@ static struct i2c_driver fusb302_driver = { .pm = &fusb302_pm_ops, .of_match_table = of_match_ptr(fusb302_dt_match), }, - .probe = fusb302_probe, + .probe_new = fusb302_probe, .remove = fusb302_remove, .id_table = fusb302_i2c_device_id, }; From patchwork Fri Nov 18 22:45:14 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: 22998 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp477342wrr; Fri, 18 Nov 2022 16:11:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ratBGUDaM1b6+qBuSN8C8ABEZxNUSm8QkAfUvqTGLkreriaBKvLugkSAOR1vBtEO8zjHA X-Received: by 2002:a63:31d1:0:b0:476:f92f:874f with SMTP id x200-20020a6331d1000000b00476f92f874fmr8565320pgx.24.1668816680150; Fri, 18 Nov 2022 16:11:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816680; cv=none; d=google.com; s=arc-20160816; b=Hs1FVd7TIj0gD0Nw084u6E2utNda5le2zEMITFOoVIFdV4KHAD8ZgMADalfVMrwRti km4R2FnYr63dmmIHq5Vr4wyjyORHYiWB9mKhHNbVPNUkH0lLzx9osSRn3CZbJvnnfTLD JKG35h4mq1/CjCg1tD3l5lPLhgD16fWcNfvSyV0iwYfkcI07HIB6Ug8r0WuX/Lq6EF8b FpHpmtLIBLybpj3v80HKawTCvuyZdHacvzTsFtmpRNJlesy39lw+yTk90PQIhHOx06EQ GtlFKJKHqlwciOJF9XsxttMxotjuHH7Sq+uy+3NB8O88qveWKHL5WANKp9tHkrTVMS8I ptiA== 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=o8T9YZRz02EbhoFX5A0inlERBcK2usVPdx/UrxvF9DY=; b=IaP4mkoJfT0+6+1mwCVrEgLL+Ctpm5FreZxOilKjJh2/O9il9Gorv6pp2w6SxwS0eX ukdpPdiA6uSR4w6CG1ocu+90YS4e9HcmQgkgOOQ+QQvwtf6Lrc7XKSbuoe4PKZwtJaZ6 aKMvccWdtlTDDlL7iADSjJQt8H2+VVw3vec/SPaIktalr1EBTBhYGkmQx+R4HvDUMUVD Ykw5WYr7NrQkNLk/X+LjEPHSE2fD1Ou1rFzS5JQTbmNtM/Zw2CX4vPuxH+jgzCMeVDJS 2tAdt5iQsCEzXFpJpmyICbYcy4Ni3Qt4p0qntAMvUZ/LaYJ1DApLZ8ihZwYgOs1Yoh3O za7g== 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 l22-20020a63ea56000000b00476f238d231si4927878pgk.807.2022.11.18.16.11.07; Fri, 18 Nov 2022 16:11:20 -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 S237633AbiKSAKk (ORCPT + 99 others); Fri, 18 Nov 2022 19:10:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237501AbiKSAJu (ORCPT ); Fri, 18 Nov 2022 19:09:50 -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 7BE1CBC8F for ; Fri, 18 Nov 2022 15:33:08 -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 1owA9i-0005JC-73; Fri, 18 Nov 2022 23:48:18 +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 1owA9f-0058sH-Dw; Fri, 18 Nov 2022 23:48:16 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9f-0000Ua-N3; Fri, 18 Nov 2022 23:48:15 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Guenter Roeck , Heikki Krogerus , Greg Kroah-Hartman Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 580/606] usb: typec: tcpm/tcpci: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:14 +0100 Message-Id: <20221118224540.619276-581-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?1749877997450130919?= X-GMAIL-MSGID: =?utf-8?q?1749881119195961371?= 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 Reviewed-by: Heikki Krogerus --- drivers/usb/typec/tcpm/tcpci.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/typec/tcpm/tcpci.c b/drivers/usb/typec/tcpm/tcpci.c index b2bfcebe218f..d3efb9665901 100644 --- a/drivers/usb/typec/tcpm/tcpci.c +++ b/drivers/usb/typec/tcpm/tcpci.c @@ -807,8 +807,7 @@ void tcpci_unregister_port(struct tcpci *tcpci) } EXPORT_SYMBOL_GPL(tcpci_unregister_port); -static int tcpci_probe(struct i2c_client *client, - const struct i2c_device_id *i2c_id) +static int tcpci_probe(struct i2c_client *client) { struct tcpci_chip *chip; int err; @@ -878,7 +877,7 @@ static struct i2c_driver tcpci_i2c_driver = { .name = "tcpci", .of_match_table = of_match_ptr(tcpci_of_match), }, - .probe = tcpci_probe, + .probe_new = tcpci_probe, .remove = tcpci_remove, .id_table = tcpci_id, }; From patchwork Fri Nov 18 22:45:15 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: 22776 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466055wrr; Fri, 18 Nov 2022 15:39:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf6egHDY1/0vaz8njWLC8psKXYSWGrs+F3YdUGjJBHzZY2fKiQh41wAVZ9kqSNFpzLU/oj0I X-Received: by 2002:a17:906:a259:b0:7ad:ccae:a30d with SMTP id bi25-20020a170906a25900b007adccaea30dmr8007709ejb.704.1668814742403; Fri, 18 Nov 2022 15:39:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814742; cv=none; d=google.com; s=arc-20160816; b=ec1OLf440tQgqYm4pserrk3U7I9L9D2lUaXS71dUWkeDfq0rckucZuqqJp6BwMi3vZ Qo0LlbtXTWeW3fzdenzLtFAJQuSXpdh3/MU8rx+s+oRSbMOGAgnlEKjM+8OTOQWbCwOr 0PAIqOGEGWTLkFSYrwggRDRMJhi+6k7kav1Pb8bauSfDAJSWAQF8fxDmon6r+gFDNboV TpHLr+3gijBWNEDUta7El0MR5FEVighuYJ8S/ycwUJl5YxGhXM7YPz2ZIqKmusuYu/1g lRTJDufxGKwwBV9Fbtd36bssT1pPnQN5ZtoZqtad/QHqV0i4pGNKKM0Ji2MfzBD8USwO 0fuw== 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=VlHJxizMb+zFPAgnbDPgWjo2GHKaLCQQtsYhaCeadrU=; b=ovjxBB+p3Tb4+K25olvs8YJvKLJaQM0H3elLADCTzezLLlMA8Hr+aOvIQqYVkYbWx2 3zdxLpS2+IZsmXj/W321mqA4XzMXfx0/HDBdj7kwemtoSngC5rh/mROr9p5RAkLJKDfi didSk8z7XSyCBDQ7bE8sFXGbEqu8SM39xhehezwbdPXKskRuZPhe+f5jnCtOfh4spya2 vpDcHAfhTZLYkxKrmuu9ej39/gf37cJPSzqU18u2AB4d5jgvn8qWgw5d+iNQyevbBnDr q5TTIgRCO6zggME8joH9gZRbnDkT39WXuAUb8phjzEn7s5nX5AvneV/6r7yUpbi47WgK NfOQ== 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 ji15-20020a170907980f00b007417c6edb0asi3981971ejc.402.2022.11.18.15.38.35; Fri, 18 Nov 2022 15:39:02 -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 S236351AbiKRXfu (ORCPT + 99 others); Fri, 18 Nov 2022 18:35:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236204AbiKRXcO (ORCPT ); Fri, 18 Nov 2022 18:32:14 -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 4196B9B7C7 for ; Fri, 18 Nov 2022 15:19:57 -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 1owA9i-0005KB-IM; Fri, 18 Nov 2022 23:48:18 +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 1owA9f-0058sQ-Sk; Fri, 18 Nov 2022 23:48:16 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9f-0000Ud-So; Fri, 18 Nov 2022 23:48:15 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Guenter Roeck , Heikki Krogerus , Greg Kroah-Hartman Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 581/606] usb: typec: tcpm/tcpci_maxim: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:15 +0100 Message-Id: <20221118224540.619276-582-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?1749878002118668757?= X-GMAIL-MSGID: =?utf-8?q?1749879087451974331?= 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 Reviewed-by: Heikki Krogerus --- drivers/usb/typec/tcpm/tcpci_maxim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/typec/tcpm/tcpci_maxim.c b/drivers/usb/typec/tcpm/tcpci_maxim.c index 03f89e6f1a78..83e140ffcc3e 100644 --- a/drivers/usb/typec/tcpm/tcpci_maxim.c +++ b/drivers/usb/typec/tcpm/tcpci_maxim.c @@ -438,7 +438,7 @@ static int tcpci_init(struct tcpci *tcpci, struct tcpci_data *data) return -1; } -static int max_tcpci_probe(struct i2c_client *client, const struct i2c_device_id *i2c_id) +static int max_tcpci_probe(struct i2c_client *client) { int ret; struct max_tcpci_chip *chip; @@ -519,7 +519,7 @@ static struct i2c_driver max_tcpci_i2c_driver = { .name = "maxtcpc", .of_match_table = of_match_ptr(max_tcpci_of_match), }, - .probe = max_tcpci_probe, + .probe_new = max_tcpci_probe, .remove = max_tcpci_remove, .id_table = max_tcpci_id, }; From patchwork Fri Nov 18 22:45:16 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: 23115 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488056wrr; Fri, 18 Nov 2022 16:44:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf52X0Qa6nXWSFPGiHSbjQLydVsJQX2b4xYkmODsN6C3x3yYb+epA2ZpFKQEGOZJQoSDzTEc X-Received: by 2002:a17:906:f891:b0:78d:9f2f:a661 with SMTP id lg17-20020a170906f89100b0078d9f2fa661mr7756698ejb.555.1668818614766; 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=ZcyNPgL5sWZTbEYNLWkjMsDEY9pyGS7tu9A3EdNumvQhKloV3girajC+LSvN2KwPB0 mFFVt1y4jF8FlWK1uEtgj24uNo9XKGE03oQtaTRSN0cT3lD67NSHtHppw6M5jw0NMtMh 2M+YTJfAqs/IOfgqn8hXOY05zUzYN/ezjtenOdHhx/p8UifRP9fIpYl6aasUodU2UOpg Tnj/7PGKls37bOhXnxVQk7DnU0cqLm4Hv6XrtINDrF/fc9byK1/UiZbkmBhr4aS0lPq+ u0qATYf8zg0+wPoGYNp8sw4emVZAsFP4cYkGidZKNSVC3HdzxbgpofhDA2Id45zpHjsW pNzQ== 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=AZiDJGV9Tb0E/00vlho9htORvhlSND2/zCZkc1WsDNA=; b=fQN93RvDoYO4BEDzj4aL2mXQzE+8bNK5eXRhbBeipBRxr2M647fVrdEMY81R8T4Cj0 8avYxVedS6+TPSDQWremEvmQjzedEaNdbHGakO2rJF9TKXuBElQ5emS142cJzzs6mGF6 SqX7FgPm/MUO0f9Iv1yiysM0NcrsVvF00NqDb9CrhtuYg9KovVz04O7Gl4+PnBWZ1+LB 9VjjS2IaGB5PNVSolG4HjqA1OnSdOJfZROCKFGVQ+LzfUVMb/AEdGgFh/AbYFElPmNiq dZce0aVkoOPpYdQEEghACSVD9avDpVL5AJbNEFRlFvvAV0crcFzsUEnd698DWcE4nFMl hYGA== 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 dd15-20020a1709069b8f00b007aa493b067asi4638483ejc.396.2022.11.18.16.43.04; 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 S233846AbiKSA3R (ORCPT + 99 others); Fri, 18 Nov 2022 19:29:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235157AbiKSA3A (ORCPT ); Fri, 18 Nov 2022 19:29:00 -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 9F050BEAF0 for ; Fri, 18 Nov 2022 15:40:19 -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 1owA9k-0005Oz-FH; Fri, 18 Nov 2022 23:48:20 +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 1owA9h-0058t2-Jy; Fri, 18 Nov 2022 23:48:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9g-0000Ug-2H; Fri, 18 Nov 2022 23:48:16 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Guenter Roeck , Heikki Krogerus , Greg Kroah-Hartman Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 582/606] usb: typec: tcpm/tcpci_rt1711h: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:16 +0100 Message-Id: <20221118224540.619276-583-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?1749878024158644558?= X-GMAIL-MSGID: =?utf-8?q?1749883147561782631?= 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 Reviewed-by: Heikki Krogerus --- drivers/usb/typec/tcpm/tcpci_rt1711h.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/typec/tcpm/tcpci_rt1711h.c b/drivers/usb/typec/tcpm/tcpci_rt1711h.c index 7b217c712c11..a0e9e3fe8564 100644 --- a/drivers/usb/typec/tcpm/tcpci_rt1711h.c +++ b/drivers/usb/typec/tcpm/tcpci_rt1711h.c @@ -327,8 +327,7 @@ static int rt1711h_check_revision(struct i2c_client *i2c, struct rt1711h_chip *c return ret; } -static int rt1711h_probe(struct i2c_client *client, - const struct i2c_device_id *i2c_id) +static int rt1711h_probe(struct i2c_client *client) { int ret; struct rt1711h_chip *chip; @@ -413,7 +412,7 @@ static struct i2c_driver rt1711h_i2c_driver = { .name = "rt1711h", .of_match_table = of_match_ptr(rt1711h_of_match), }, - .probe = rt1711h_probe, + .probe_new = rt1711h_probe, .remove = rt1711h_remove, .id_table = rt1711h_id, }; From patchwork Fri Nov 18 22:45:17 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: 22874 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472195wrr; Fri, 18 Nov 2022 15:59:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf7plFAYDTC4bInFy4tXyMShy4HcOtoiSDTH6DJOOeUdvZDBzLww+QTJzsob5EkcmgH2Uz1Q X-Received: by 2002:a17:90a:f991:b0:211:bed2:8926 with SMTP id cq17-20020a17090af99100b00211bed28926mr15961008pjb.106.1668815980761; Fri, 18 Nov 2022 15:59:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815980; cv=none; d=google.com; s=arc-20160816; b=pnpq24ipQbyVHl9MJGv6l2hXLWpVZR0i5x/aAvI2EHBX8DLkAC+Vdv9pGqGR36q/Rv 6DIoTsep0Zv8WgYxrOZss5tVKxWIm5VUch1WpSTUjBXvQeFOXgOzuZn2+BKHVEFbChpa V1znXOTETi6iAjiJP0ZpKjr7qqhGyuX8/4cc2br0nj4hpzZnkMN8N0kK6vNfgcFHniW1 PHxcUHR/HNsBcMTq8HN6Uu09l1HUCOa5Ro13ditf+O4AAZZhnx2BvAIyEGTwfS8z1hyO vjThksJo1lWdA6qOLzDsxZaFJd3fVO6sLvBMNtOBGpgMG+rIOyFPxMDyXnZgttnTEm7Z O8eQ== 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=jqqeJH9nN6Deqm/rzuwvGe0rUMjXLQH+Bn2j9M0Dqss=; b=eG8MzXFIQEHNSnGE1QQgj0n4vkb/vnhzJCm+h7SM/D4nt1+eLyB9/+ZnmRNYdJMdos na3fmf94Fyv2ba4JUXU+hz5sfMhQWKS2GoKvnLt0ArDuPzrfaeR7IOwpQ2lFQFSOs7/m yexyghPwBe+CzAYMKX1/svJ8nQSoJW3dGenHFSo+7CrTUINnfD5/6/mKB9yZQbt0SU1E 9MCcF046JzolQWJ4Qy1lgkGYpjuxBVVUqLG9NYzSokoXps7cy9i0fLp+Dh8Ug/UYenUc 5ehI0UXZSXnseuXOK+hJr0aWhIO6p5k4M4VhXdng02ntlPEGTPIHSveRI47WX1X/s0mf QMWQ== 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 a11-20020a170902b58b00b001871dab2d85si4469992pls.392.2022.11.18.15.59.27; Fri, 18 Nov 2022 15:59:40 -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 S237034AbiKRXxJ (ORCPT + 99 others); Fri, 18 Nov 2022 18:53:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236933AbiKRXvr (ORCPT ); Fri, 18 Nov 2022 18:51:47 -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 5681ABAE89 for ; Fri, 18 Nov 2022 15:27:15 -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 1owA9k-0005O5-9A; Fri, 18 Nov 2022 23:48:20 +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 1owA9h-0058sr-8A; Fri, 18 Nov 2022 23:48:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9g-0000Ul-7U; Fri, 18 Nov 2022 23:48:16 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Heikki Krogerus , Greg Kroah-Hartman , Sing-Han Chen , Sanket Goswami Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 583/606] usb: typec: ucsi/ucsi_ccg: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:17 +0100 Message-Id: <20221118224540.619276-584-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?1749880385753630188?= X-GMAIL-MSGID: =?utf-8?q?1749880385753630188?= 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 Reviewed-by: Heikki Krogerus --- drivers/usb/typec/ucsi/ucsi_ccg.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/typec/ucsi/ucsi_ccg.c b/drivers/usb/typec/ucsi/ucsi_ccg.c index 835f1c4372ba..46441f1477f2 100644 --- a/drivers/usb/typec/ucsi/ucsi_ccg.c +++ b/drivers/usb/typec/ucsi/ucsi_ccg.c @@ -1338,8 +1338,7 @@ static struct attribute *ucsi_ccg_attrs[] = { }; ATTRIBUTE_GROUPS(ucsi_ccg); -static int ucsi_ccg_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ucsi_ccg_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct ucsi_ccg *uc; @@ -1482,7 +1481,7 @@ static struct i2c_driver ucsi_ccg_driver = { .dev_groups = ucsi_ccg_groups, .acpi_match_table = amd_i2c_ucsi_match, }, - .probe = ucsi_ccg_probe, + .probe_new = ucsi_ccg_probe, .remove = ucsi_ccg_remove, .id_table = ucsi_ccg_device_id, }; From patchwork Fri Nov 18 22:45: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: 22927 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474483wrr; Fri, 18 Nov 2022 16:04:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf6rcJhC0XP4CvpjxNAe8gGM9w7YWfC00m7RKFknaETf9hyo8AV1tkIGNUha1LnkCm+Uw/ZA X-Received: by 2002:a17:902:f7cf:b0:188:d452:2ca3 with SMTP id h15-20020a170902f7cf00b00188d4522ca3mr1864980plw.35.1668816259105; Fri, 18 Nov 2022 16:04:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816259; cv=none; d=google.com; s=arc-20160816; b=ZA1cDMA+Y055Mnh1oIbXRi+M/H1/Ovs9YhoGN1lv3EDMLShwh6SrZEYJba9SNQPAZL 9epAqBZ67WoeDtOpTISfq3/F4hTXN9cpdiJ5GoFvMroy1oOXh6uPOl8JuJrN6+DLnpx8 PKf2wLZfjU8Fot9ma2JOtxAt225YnOhdNVDrZ3TJOeVenh5W5Lh+MjzSV1PkBmVA41qU 7jlYsQsYmlMJXg+D/p6LOF5qFX8RclqHUDM2AwPb/NgMN13AOUHKvbFiMIiMwJ7hkzv+ H1iHZVp51+yOC1zWzGxSeZvV2KP9q/OlHnbFlljp6XNMvI6Wc1m736Fwwgh05TWL/+lo Zdzw== 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=Du0H2In879fh16nMuTvYm84tlt/cD+iSGb0oHk1dKZ0=; b=k3DSfbxHFz8p0RPfl0wneYiZyVtijzBLJhOekY0bUer6w1gP+D1l5fHVQrb9Xnb2rH jYQ8opAx2qqDaLUwHS1niG6tbkrb+0lqfar45IY2TAdzEhUz/sAxrHItAqpiiuZJLR7Z xZlonKBrHCV/GQiNqDfQO0KiT/6n2J1KbJ5RDdc5OhJ/6uW/5ehtR/mFr3E12TD+jyyK nPC3nezLrdgjX29+lYMWZhdN9BQ+C69g+LN3nJE6urxoDptpUMAEHl03RyzSsusD7a6W eEP4mvUyBtM1gWnigNdw0hOFFKesIqPLMcd/EqtjUTpQwlLkbO0sCBxy9/dfFSKDPRuQ EBaQ== 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 bd32-20020a056a0027a000b0056e8a852e3esi5338879pfb.219.2022.11.18.16.04.06; Fri, 18 Nov 2022 16:04:19 -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 S237237AbiKRX7c (ORCPT + 99 others); Fri, 18 Nov 2022 18:59:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237133AbiKRX4z (ORCPT ); Fri, 18 Nov 2022 18:56: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 275223057D for ; Fri, 18 Nov 2022 15:28: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 1owA9j-0005LY-CE; Fri, 18 Nov 2022 23:48:19 +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 1owA9g-0058sY-Gr; Fri, 18 Nov 2022 23:48:17 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9g-0000Uq-Fk; Fri, 18 Nov 2022 23:48:16 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Heikki Krogerus , Greg Kroah-Hartman , Maxime Coquelin , Alexandre Torgue , Fabrice Gasnier , Corey Minyard , Colin Ian King Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-usb@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 584/606] usb: typec: ucsi: stm32g0: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:18 +0100 Message-Id: <20221118224540.619276-585-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?1749880678022550575?= X-GMAIL-MSGID: =?utf-8?q?1749880678022550575?= 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 Reviewed-by: Heikki Krogerus --- drivers/usb/typec/ucsi/ucsi_stm32g0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/typec/ucsi/ucsi_stm32g0.c b/drivers/usb/typec/ucsi/ucsi_stm32g0.c index 7b92f0c8de70..93fead0096b7 100644 --- a/drivers/usb/typec/ucsi/ucsi_stm32g0.c +++ b/drivers/usb/typec/ucsi/ucsi_stm32g0.c @@ -626,7 +626,7 @@ static int ucsi_stm32g0_probe_bootloader(struct ucsi *ucsi) return 0; } -static int ucsi_stm32g0_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int ucsi_stm32g0_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct ucsi_stm32g0 *g0; @@ -763,7 +763,7 @@ static struct i2c_driver ucsi_stm32g0_i2c_driver = { .of_match_table = of_match_ptr(ucsi_stm32g0_typec_of_match), .pm = pm_sleep_ptr(&ucsi_stm32g0_pm_ops), }, - .probe = ucsi_stm32g0_probe, + .probe_new = ucsi_stm32g0_probe, .remove = ucsi_stm32g0_remove, .id_table = ucsi_stm32g0_typec_i2c_devid }; From patchwork Fri Nov 18 22:45:19 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: 22735 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464644wrr; Fri, 18 Nov 2022 15:35:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf4PAWgAhWPSEfJ3Q6TIa1mnHsiyxglR4UgICMkvAAnpXUtADrKDHBqdb2yhlXroU7hiMU48 X-Received: by 2002:a05:6402:4a:b0:461:aa10:cb0c with SMTP id f10-20020a056402004a00b00461aa10cb0cmr8107469edu.383.1668814525166; Fri, 18 Nov 2022 15:35:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814525; cv=none; d=google.com; s=arc-20160816; b=bh/N87nd3JAVq4a+SsaO55hWz43xd446FE/yPbT/TGBP4jYerv+0xhI3IymIsJPi6L IQlvRislE6SmlNhE1kqvSZyVN6RvlOf/oWiuNaELb/3jPFvooRKzryJCRJOrZI/MPssD EvOEqsbK5WGuTz8DCTgcyzH9Hq9BCpCxXuO7AsvIRegUSglY0OIiUw9oePfbG/N0j9VR BfjvCn9whp1fhD30Tjz/dk3V2yHPEjx8VgwZA4arZAyR8o7FR+3muG1wyypClzNxZjtq RL1VI5gj7VOZBqCxR62mocTXiH+LQaFZVbb2i2gFSw0GY2WmYH6Cjqdgnwkkzehci0RK ghgg== 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=izB3v3kyTkwiNXU9t2himorHrkp7bqRbXLHM4k+OoCI=; b=vV8T64D9cI+3RVShMli45XZheO/FXA0Ebq3tlm5qAQzblNZjqSryEGjiGfD7jqCfYH ezwRmVmEEQyI5nJ+WSqWSc4m7VoGHUBvP8+nBUt3tKqGQlbYIzfDp3v79ZepaYa1McIo gHcJMPAy1X6xWsFU9zXnu0tlstofTNU0sAbQBjXqC5ArSCi0mlNTbO/0cMWXFTKojEAR 0itBy6/4YN08pl86/y5H+kuNg72sOILSvjMomyHwX43gPqrOk2y1/Qj3OLFlP0YesdYI UTNJuBLbfTuVmZTEYrPzBeXWRhIJsFe8QBqAJcH1PyFC277sNn60y++fpGsTeTF6Ecyt v1Gw== 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 i34-20020a0564020f2200b0045d5ba4c3cesi4230973eda.47.2022.11.18.15.35.01; Fri, 18 Nov 2022 15:35:25 -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 S236216AbiKRXeW (ORCPT + 99 others); Fri, 18 Nov 2022 18:34:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235955AbiKRXbi (ORCPT ); Fri, 18 Nov 2022 18:31:38 -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 062EF303E1 for ; Fri, 18 Nov 2022 15:18:55 -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 1owA9j-0005Lk-8w; Fri, 18 Nov 2022 23:48:19 +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 1owA9g-0058sZ-Gw; Fri, 18 Nov 2022 23:48:17 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9g-0000Uv-Lw; Fri, 18 Nov 2022 23:48:16 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Michael Hennerich , Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 585/606] backlight: adp8860: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:19 +0100 Message-Id: <20221118224540.619276-586-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?1749878859607144093?= X-GMAIL-MSGID: =?utf-8?q?1749878859607144093?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Acked-by: Michael Hennerich Reviewed-by: Daniel Thompson --- drivers/video/backlight/adp8860_bl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/backlight/adp8860_bl.c b/drivers/video/backlight/adp8860_bl.c index b0fe02273e87..a479aab90f78 100644 --- a/drivers/video/backlight/adp8860_bl.c +++ b/drivers/video/backlight/adp8860_bl.c @@ -648,9 +648,9 @@ static const struct attribute_group adp8860_bl_attr_group = { .attrs = adp8860_bl_attributes, }; -static int adp8860_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adp8860_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct backlight_device *bl; struct adp8860_bl *data; struct adp8860_backlight_platform_data *pdata = @@ -803,7 +803,7 @@ static struct i2c_driver adp8860_driver = { .name = KBUILD_MODNAME, .pm = &adp8860_i2c_pm_ops, }, - .probe = adp8860_probe, + .probe_new = adp8860_probe, .remove = adp8860_remove, .id_table = adp8860_id, }; From patchwork Fri Nov 18 22:45:20 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: 22714 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp463303wrr; Fri, 18 Nov 2022 15:32:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf6JybMhwX7TjxTBWcvNeP0WNbo9YVplHdr9iXdsvWdvnEoO6DpFIkfo+ZYEVuzhKqWpZLio X-Received: by 2002:a17:906:cedc:b0:7ad:e8dd:837c with SMTP id si28-20020a170906cedc00b007ade8dd837cmr8298453ejb.264.1668814327211; Fri, 18 Nov 2022 15:32:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814327; cv=none; d=google.com; s=arc-20160816; b=HvHEkkaD1/3wuOMTpIwXrVEOs2Nbp5sQzsKBdu60xWeXEZrgzcHZezPim54esbTwrI gbI3KATejBnysJ7JrN2qD6MghLTD/BhfG+eUmnyzrN+4zb5yjyPe588lJiazenPoFMGh +lEnr8LnL1H9YEa/VaWLRV0uYZg0dgrssRD8YH+ISxxjol2iCbmyy3P3+xgZJVbGof1i z+SbazeEyeYYInK97FKH0dKEMqja+WPGsYPFbWkJdpQV9oIejKC0r95qeU5vQWzNdraC Nr+3hzaMjSMXDaAM0kGPgEkTxfhTDmo/XTCMJksxezFFZK97X868Q/0AGOvLs0EYirMj ILeA== 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=cAH4nVWQNThIZXiiZPs/ycq2ozw7xp7Vty+DISLYzqA=; b=cQdZ4GRodkP9I8XRIsbL5/EBJSF7ljMJPmGtEgPiq9uXSJ4FWseQ7+JDRHxpPvFhQU P0a9HgL18Y4MpFxhhO30/XV906aW2LUsYXhn5wxKQaZb5nQ5QlYyBzzeU8z9i9crwfEP NWsYkGjVBm+3AWkoMKzbQGFzpquZz11YheDbzEJs0vhufU4cCfMcnW1OIyuCrGNhQUO9 Lksh7crjzi+F2EvCI0nH87Se401HgynoW2eoiUcEueEa0h59fUdCXUxxmKJWOlS8OXz+ qvZPTg3gmA3mEcZIY+EdlQXet/UXKXUqeD0naO3U6PW8LmJseGB8TObDoeSbwOsg6Wi8 WxMw== 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 v15-20020a17090606cf00b007acef3bec44si3287119ejb.221.2022.11.18.15.31.43; Fri, 18 Nov 2022 15:32:07 -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 S235937AbiKRXa7 (ORCPT + 99 others); Fri, 18 Nov 2022 18:30:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235731AbiKRX31 (ORCPT ); Fri, 18 Nov 2022 18:29:27 -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 6D06DC2845 for ; Fri, 18 Nov 2022 15:17:45 -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 1owA9k-0005PX-Hn; Fri, 18 Nov 2022 23:48:20 +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 1owA9h-0058t9-OZ; Fri, 18 Nov 2022 23:48:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9g-0000Uy-RG; Fri, 18 Nov 2022 23:48:16 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 586/606] backlight: adp8870: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:20 +0100 Message-Id: <20221118224540.619276-587-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?1749878651842397034?= X-GMAIL-MSGID: =?utf-8?q?1749878651842397034?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Reviewed-by: Daniel Thompson --- drivers/video/backlight/adp8870_bl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/backlight/adp8870_bl.c b/drivers/video/backlight/adp8870_bl.c index 5becace3fd0f..d6b0007db649 100644 --- a/drivers/video/backlight/adp8870_bl.c +++ b/drivers/video/backlight/adp8870_bl.c @@ -836,9 +836,9 @@ static const struct attribute_group adp8870_bl_attr_group = { .attrs = adp8870_bl_attributes, }; -static int adp8870_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adp8870_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct backlight_properties props; struct backlight_device *bl; struct adp8870_bl *data; @@ -973,7 +973,7 @@ static struct i2c_driver adp8870_driver = { .name = KBUILD_MODNAME, .pm = &adp8870_i2c_pm_ops, }, - .probe = adp8870_probe, + .probe_new = adp8870_probe, .remove = adp8870_remove, .id_table = adp8870_id, }; From patchwork Fri Nov 18 22:45:21 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: 22819 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp470837wrr; Fri, 18 Nov 2022 15:54:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Om8WPF21DJyHzjWmH5kT4v5+rJshI3KO2CO55XxgRxmPJ4bxxaMs7ydlYmqAZ028hG1hR X-Received: by 2002:a17:906:cec7:b0:7ad:b599:2b8e with SMTP id si7-20020a170906cec700b007adb5992b8emr7716235ejb.52.1668815694550; Fri, 18 Nov 2022 15:54:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815694; cv=none; d=google.com; s=arc-20160816; b=tXFhvZxQTsh2cfWnd3tW8NTdVaZQmqwZfSvfhLQswM7gK43YEFSei0YqpwampWSH4/ 2aebHp3MqHJCaYCxtNzHfFXcBdGz2fGzO97TlOKwyY3ghRGFL9RecOij2mFLoDAGRqQh 139jMBEHiWjbfMcHOh961fW5HbHarAoYKrdIn5xi250S5GacRSOs7p2BxBd+2GZbdDTO wtO6wyJmILRBeABrdss2WWeiRanCJo4uwgEeuHeOXxub8+oy9Gkt/cHRF/5An6qNAiDC jrNt56Ovn3aWaYXyfPGl5f2phKXU1p7TlUagvmjKNZfuyg/ENh2dDujoq192hyywuMuM CbNA== 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=3xC9bgGX1PwmjstfHCXPfT+X8ffns9EMbeLZAjBmkKM=; b=TRuXqAYCXLS2YQId+/9MMUxXoBPPG/gc/v2HmwR0N87G56U3k2F9ox3lsY6awDGHjK mFR4Zqb2CHdxr6ZA9FIx9W9XdfvYxR1ZGsmfWwDGnzWYvLc95v7MKU6CiFR+z9rLlD6D LJPmyec7mOWXT2k/+8ilbTJ9XqBXQhqgVczormvoa5Vw1JaqedK4+VEmKsHMGEnnrKU6 zkl9cMZYA+DPvGfZx/upF1v+mNHmM1ok5LU8yOJcA206L8bdvtZ7lGom1BssoKLjkd8+ Nty86f32I3un7VKOewlTR3MQh7C/m9BwJ6wT99RAnKwCKxI6giZnrX2fNTltRyuAzejE VHWA== 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 i21-20020a170906251500b0078316f0b5f8si3096130ejb.88.2022.11.18.15.54.30; Fri, 18 Nov 2022 15:54:54 -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 S236418AbiKRXkb (ORCPT + 99 others); Fri, 18 Nov 2022 18:40:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236807AbiKRXh5 (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 7705F950FC for ; Fri, 18 Nov 2022 15:22:44 -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 1owA9j-0005N6-SY; Fri, 18 Nov 2022 23:48:19 +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 1owA9g-0058sl-Un; Fri, 18 Nov 2022 23:48:17 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9h-0000V2-0t; Fri, 18 Nov 2022 23:48:17 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 587/606] backlight: arcxcnn: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:21 +0100 Message-Id: <20221118224540.619276-588-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?1749880085544523888?= X-GMAIL-MSGID: =?utf-8?q?1749880085544523888?= 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 Reviewed-by: Daniel Thompson --- drivers/video/backlight/arcxcnn_bl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/backlight/arcxcnn_bl.c b/drivers/video/backlight/arcxcnn_bl.c index 060c0eef6a52..555b036643fb 100644 --- a/drivers/video/backlight/arcxcnn_bl.c +++ b/drivers/video/backlight/arcxcnn_bl.c @@ -241,7 +241,7 @@ static void arcxcnn_parse_dt(struct arcxcnn *lp) } } -static int arcxcnn_probe(struct i2c_client *cl, const struct i2c_device_id *id) +static int arcxcnn_probe(struct i2c_client *cl) { struct arcxcnn *lp; int ret; @@ -395,7 +395,7 @@ static struct i2c_driver arcxcnn_driver = { .name = "arcxcnn_bl", .of_match_table = of_match_ptr(arcxcnn_dt_ids), }, - .probe = arcxcnn_probe, + .probe_new = arcxcnn_probe, .remove = arcxcnn_remove, .id_table = arcxcnn_ids, }; From patchwork Fri Nov 18 22:45:22 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: 22934 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474643wrr; Fri, 18 Nov 2022 16:04:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf5PP1S/AmnoQvQpmg9OAnp1aMCOzAchKMhaan80ZKmURT2n0By7OowCaiJlc4gGQpLUZ0Io X-Received: by 2002:a17:906:590e:b0:78d:5176:c4d2 with SMTP id h14-20020a170906590e00b0078d5176c4d2mr7696032ejq.532.1668816281779; Fri, 18 Nov 2022 16:04:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816281; cv=none; d=google.com; s=arc-20160816; b=zOttn1Ygd52q7YJYowfD4D155zd+0SEyhrJ726m0O81KjXIE0qYPaSMy9JITndA4Oc z7LNcc22c/5o+UP5KYxoEAKMg2ScLJzaZ6nNnYmWPTa4+N1l6AMgUR/TFAq4WFTp4a+W h5G/eJx9bExvOzBt8ONLrWOVQcyPC/1MeLgMQeyHcPqmmV//ReyU3inkn/oCnZFhCpYS o6QhEXPBowfBLeuPmeFY9xJN2/2NvodyATpqbYyk7+urrz2HP3YcwWu3hl3QTRKCCGy4 myBYIprNOivoUEl0rmkCsW7DOLOlZ/7HDI/4ARME5SDVdrXmopUrSHuEQ1L9QWK5EbKL ZriA== 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=oZB7zwNEejt0Op1cqdcEyg76iDvMC5MPIO4Uy0+5yiE=; b=vgafKR2qU3doh49zLui791Asl2v4/LGGQxUTK2L+5Z2Prk5MFovmJWR202jnAa4WGB wh1CIvn8Iirxm4Zw+gGVhLm2Kwugjv6w7Xe5ETVqDRW6nFzb5lTITcn2oNK872uPpOR/ K0ZLdtEyIIRhPpWtzFKi7mcA4ZzyhxEuoorBeCN7QeQgm0G9iYoRbp9s85F/tR99vJzy T12KKOdFNKvO+5X+QJzDwG7YgzQq/7JuAJPIwTX0y9QLl2IDpz2Bz5ZAVaddyUCm4lgk LMwEy65irIDmNjqxgpffBhAlb5n1q3ElR/r1xyl07VBHprccIuulmner3Drco7CwEwLG Rxlg== 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 m12-20020a056402510c00b00457fc1bcf12si366965edd.183.2022.11.18.16.04.14; Fri, 18 Nov 2022 16:04:41 -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 S237249AbiKRX7m (ORCPT + 99 others); Fri, 18 Nov 2022 18:59:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237150AbiKRX47 (ORCPT ); Fri, 18 Nov 2022 18:56:59 -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 626578A162 for ; Fri, 18 Nov 2022 15:28: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 1owA9k-0005Oo-8U; Fri, 18 Nov 2022 23:48:20 +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 1owA9h-0058sy-EM; Fri, 18 Nov 2022 23:48:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9h-0000V5-6W; Fri, 18 Nov 2022 23:48:17 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 588/606] backlight: bd6107: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:22 +0100 Message-Id: <20221118224540.619276-589-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?1749880701684304975?= X-GMAIL-MSGID: =?utf-8?q?1749880701684304975?= 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 Reviewed-by: Daniel Thompson --- drivers/video/backlight/bd6107.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/video/backlight/bd6107.c b/drivers/video/backlight/bd6107.c index a506872d4396..f4db6c064635 100644 --- a/drivers/video/backlight/bd6107.c +++ b/drivers/video/backlight/bd6107.c @@ -113,8 +113,7 @@ static const struct backlight_ops bd6107_backlight_ops = { .check_fb = bd6107_backlight_check_fb, }; -static int bd6107_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int bd6107_probe(struct i2c_client *client) { struct bd6107_platform_data *pdata = dev_get_platdata(&client->dev); struct backlight_device *backlight; @@ -193,7 +192,7 @@ static struct i2c_driver bd6107_driver = { .driver = { .name = "bd6107", }, - .probe = bd6107_probe, + .probe_new = bd6107_probe, .remove = bd6107_remove, .id_table = bd6107_ids, }; From patchwork Fri Nov 18 22:45:23 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: 22787 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466551wrr; Fri, 18 Nov 2022 15:40:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf6WTtKTCOnu5TuCBP7JDjgI8L6FKuck2rkkr9gnGkLHkfwC/46p49YXRc6ECRaK8Ou+4vLQ X-Received: by 2002:a17:906:d92:b0:78d:9582:dfbb with SMTP id m18-20020a1709060d9200b0078d9582dfbbmr7795734eji.612.1668814819034; Fri, 18 Nov 2022 15:40:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814819; cv=none; d=google.com; s=arc-20160816; b=huZz66voxnYRcJerT8atyW3hVTF/ScW3HHNsvVOTnCOvslQwqN24l7H/gN4LOSyIw4 iCd+ka1K9kTHQH/PdH0y8wBqOmx198ODgmhSrbbW3VTAO+OuNan8/7k2A/f0pPfpjr8o yabkDcIeY9gI50H2TlOM5K65W5XqRVwyuikiWpZIana2w+PEyjULnPp9XtDmoLRDTpWF zXNphXWFkMZopsXLxajzFBM/vbit624sPUr7OG/OXffaKwLg1we32Qxv0rnvd9ffHwJ8 oKDWPAvUw/j66FUhZyVW7LDTQHdBigImW3blSH8nAPluLUPloBTnMgPNsO7LKdaOn8yb FaqA== 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=jNWqIaIrwFaemY908oNQDMHFU0y/+AYTWjM6Cmzd39s=; b=aNsBckFKFV0G+yEY/kviqmDnHkzZXCs8NJ6DLcPz5ThLdKLJEAaAD/31/fUTRPz2KO VMFtPLAwfclyxu44Z1jYj+s8EneoPMuep+/mkM0cf/aI5jnU+B7ASYHQCoGuTj20J5z+ BYhNyppVXWcPmC8LsGmsuPIIah1qfxJG7ATaWOCHrmguYJM6/HaHJZTw/gDh3x+jss1c jRdBG0tOePOyYPtsSd9US4P7VHgkaFKGh8PKLTyCCs1xEY4TfXn8k+E2JgPwJjVz5nEh HnM3gLUl9l0njTTz/HunJgOtL7WG9oTxPd8sYYKRa8NjVH6R/wPX338r9ZB5adLxjgiF Al4Q== 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 hr13-20020a1709073f8d00b007ad95fdd21csi4577816ejc.761.2022.11.18.15.39.54; Fri, 18 Nov 2022 15:40:19 -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 S236348AbiKRXiw (ORCPT + 99 others); Fri, 18 Nov 2022 18:38:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236554AbiKRXdR (ORCPT ); Fri, 18 Nov 2022 18:33:17 -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 4B0BD4F1AE for ; Fri, 18 Nov 2022 15:21:28 -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 1owA9k-0005P6-F2; Fri, 18 Nov 2022 23:48:20 +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 1owA9h-0058t3-L4; Fri, 18 Nov 2022 23:48:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9h-0000V8-CA; Fri, 18 Nov 2022 23:48:17 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 589/606] backlight: lm3630a: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:23 +0100 Message-Id: <20221118224540.619276-590-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?1749879167925068701?= X-GMAIL-MSGID: =?utf-8?q?1749879167925068701?= 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 Reviewed-by: Daniel Thompson --- drivers/video/backlight/lm3630a_bl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/video/backlight/lm3630a_bl.c b/drivers/video/backlight/lm3630a_bl.c index 475f35635bf6..d8c42acecb5d 100644 --- a/drivers/video/backlight/lm3630a_bl.c +++ b/drivers/video/backlight/lm3630a_bl.c @@ -491,8 +491,7 @@ static int lm3630a_parse_node(struct lm3630a_chip *pchip, return ret; } -static int lm3630a_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lm3630a_probe(struct i2c_client *client) { struct lm3630a_platform_data *pdata = dev_get_platdata(&client->dev); struct lm3630a_chip *pchip; @@ -617,7 +616,7 @@ static struct i2c_driver lm3630a_i2c_driver = { .name = LM3630A_NAME, .of_match_table = lm3630a_match_table, }, - .probe = lm3630a_probe, + .probe_new = lm3630a_probe, .remove = lm3630a_remove, .id_table = lm3630a_id, }; From patchwork Fri Nov 18 22:45:24 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: 22977 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476621wrr; Fri, 18 Nov 2022 16:09:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf4S3MGr7seWD/dTslATf2Kt1NbUPpbkJ2qm3I29gFbyq0CQFw7MrdhOLheex/do1c0tOv/z X-Received: by 2002:a17:902:6a86:b0:187:722:f4db with SMTP id n6-20020a1709026a8600b001870722f4dbmr1796419plk.87.1668816572427; Fri, 18 Nov 2022 16:09:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816572; cv=none; d=google.com; s=arc-20160816; b=IHAPO0eLFpan5I+s8GzEjKD9Y9g44Z+yLoyUYWmYIa7m4YFX9ERzOjKxWbinFkI7Q5 sqROej16ZIsyG5XbrwuwV95YK22FE/5Tve700CYcCepZ9naz2NHPjKlT+8Mu8evgKt4m yIb3Et+Y7GpA4iz+3r/uwE9oFrutF72a7sp2RxXyUNtm0EcqVTlRUXkpdZYqpNuezBhD gTk8ayTiheyCn0vw4JPstcwpVeIHUDGAJqu1e4hZ6oYzb71fJQ8PTTrd7yc2JwTYaLmR ZswBkipOi53lACbIm9KsKDQ6LrSYOH2kyguYGa11EreoIY4yFSP5c80mV0PWr6OT0ItX UtJw== 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=3knJ5xegilj7WjHaSCGRSQOSNQVnR6TUXINmXKddogA=; b=oKtwjPxKrv0neHp7tNaUBceun7u4atAxWWaZeUqdLqVIzL2//x51YaSaGqdf7R22Y/ 1Dq3nZ8jODQshKL00tIt9cQck7NON+MgJ6d3/UJuKrntPfI2cI3x3Ka+aBPWoL5CTjcH Z5tqEddx11dZoo7rLvNVUoSvkCsjQmwBrMaT/A+81YIu7A1R7NF8aveAm+vHF7aBAX/M csM1EaL9Fij6a22i62cXltFCWHntvlAI0PeQvJ373IAjFUUF2IYWyQxx7XQZ9Jrj/kdC YSWNZaMW31GmIOHzVHv7agbmefktJ/7ytKN5NyaD960OgogjFcXcrVoSQfEXhV5MZehQ H5pg== 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 u22-20020a627916000000b0056171a19036si4348781pfc.312.2022.11.18.16.09.19; Fri, 18 Nov 2022 16:09:32 -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 S232023AbiKSAIN (ORCPT + 99 others); Fri, 18 Nov 2022 19:08:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237775AbiKSAHn (ORCPT ); Fri, 18 Nov 2022 19:07:43 -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 ECBC5E9146 for ; Fri, 18 Nov 2022 15:32:13 -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-0005TF-5N; 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 1owA9j-0058tc-3c; Fri, 18 Nov 2022 23:48:20 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9h-0000VD-Hd; Fri, 18 Nov 2022 23:48:17 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 590/606] backlight: lm3639: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:24 +0100 Message-Id: <20221118224540.619276-591-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?1749881006011870813?= X-GMAIL-MSGID: =?utf-8?q?1749881006011870813?= 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 Reviewed-by: Daniel Thompson --- drivers/video/backlight/lm3639_bl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/video/backlight/lm3639_bl.c b/drivers/video/backlight/lm3639_bl.c index 6580911671a3..a836628ce06e 100644 --- a/drivers/video/backlight/lm3639_bl.c +++ b/drivers/video/backlight/lm3639_bl.c @@ -296,8 +296,7 @@ static const struct regmap_config lm3639_regmap = { .max_register = REG_MAX, }; -static int lm3639_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lm3639_probe(struct i2c_client *client) { int ret; struct lm3639_chip_data *pchip; @@ -412,7 +411,7 @@ static struct i2c_driver lm3639_i2c_driver = { .driver = { .name = LM3639_NAME, }, - .probe = lm3639_probe, + .probe_new = lm3639_probe, .remove = lm3639_remove, .id_table = lm3639_id, }; From patchwork Fri Nov 18 22:45:25 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: 23049 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486627wrr; Fri, 18 Nov 2022 16:40:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Jt2zprX6yckykBU42f/vJ4OzwPwCtzcbwQsstI2XXTLak810pDlZ8Syh+BXrcFw27lGCC X-Received: by 2002:a17:906:c35a:b0:78d:2af:a818 with SMTP id ci26-20020a170906c35a00b0078d02afa818mr7822083ejb.675.1668818443359; Fri, 18 Nov 2022 16:40:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818443; cv=none; d=google.com; s=arc-20160816; b=fJXkwvg+f+5kQ/sC9TrTnv1ldfmNiMLJ4bTGP7l8jwgxAyw2oATex2Q382bUMmVUCb K3v3bgB5s1a0K10/Zc0i0ZYjw80vxC2R0BFBLUrM3hqh4kFzzITDVDt9P9vevgOWWABx vcd+h9nCk9hlrWoA9iv/fco7sraHnFXueunpGWmbIaKLniwBJkcTiRmyB5TcwXfhjkko +jDK71h9oTcDDdLEYLJEtsyG/TSFJJi23gQwCgWsGglr0rrrLcgLxacd6l1+z8y8df+I m8RYWHjYE4wvays1UCS+wweO5Qt973lKTIRN8LmFDrAoTGj4XnvCKjCRJ3X1Ny5wjO0H UXag== 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=i8OFsUMXqIS+qWQObXLP1rW5QgTPmfnXTY0eJBHnFGg=; b=Yowxahvzd0M65PPH4/lodKuCKCfaiUlNlCcloPhDCSvrLxa88iKHzzJHpnnnchZ9Zq id9hhuZJR7jUznk4yWoTNcrrssQ8K+uLgPoT7bSXOHUy/J0Xe9Bg8wWdcDQpBkhGZMbc UnIQ5+E7W60IiR1lfzbs8WXV6pYuu8j1XlYuPuVinBtbFA6K7crkf8QRmNC0yFb/3SAs uqr1/a2PLT6ib4YtxpCX6YRbViRqRNu9ILsuacEq1lxXJEIV6VwOuLXcw7wlye1EktkH jIw8/dagp2l/67/KR6j1jr2p5xINpkeADIv7cwHTC1v8tf/eN3c2vdYj4lsIxqK2XshY G1SA== 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 k9-20020a17090646c900b0078e27f2fbe3si3483489ejs.115.2022.11.18.16.40.19; Fri, 18 Nov 2022 16:40:43 -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 S232773AbiKSAYL (ORCPT + 99 others); Fri, 18 Nov 2022 19:24:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234743AbiKSAXe (ORCPT ); Fri, 18 Nov 2022 19:23:34 -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 A472A5ADF7 for ; Fri, 18 Nov 2022 15:37:59 -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 1owA9l-0005Qb-0D; Fri, 18 Nov 2022 23:48:21 +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-0058tL-79; 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 1owA9h-0000VG-Nl; Fri, 18 Nov 2022 23:48:17 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 591/606] backlight: lp855x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:25 +0100 Message-Id: <20221118224540.619276-592-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?1749882968310467761?= X-GMAIL-MSGID: =?utf-8?q?1749882968310467761?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Reviewed-by: Daniel Thompson --- drivers/video/backlight/lp855x_bl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/video/backlight/lp855x_bl.c b/drivers/video/backlight/lp855x_bl.c index bd0bdeae23a4..81012bf29baf 100644 --- a/drivers/video/backlight/lp855x_bl.c +++ b/drivers/video/backlight/lp855x_bl.c @@ -394,8 +394,9 @@ static int lp855x_parse_acpi(struct lp855x *lp) return 0; } -static int lp855x_probe(struct i2c_client *cl, const struct i2c_device_id *id) +static int lp855x_probe(struct i2c_client *cl) { + const struct i2c_device_id *id = i2c_client_get_device_id(cl); const struct acpi_device_id *acpi_id = NULL; struct device *dev = &cl->dev; struct lp855x *lp; @@ -586,7 +587,7 @@ static struct i2c_driver lp855x_driver = { .of_match_table = of_match_ptr(lp855x_dt_ids), .acpi_match_table = ACPI_PTR(lp855x_acpi_match), }, - .probe = lp855x_probe, + .probe_new = lp855x_probe, .remove = lp855x_remove, .id_table = lp855x_ids, }; From patchwork Fri Nov 18 22:45:26 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: 22726 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464123wrr; Fri, 18 Nov 2022 15:34:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf75SGRsGZj9IjyXhosTREs3QnqHbEF6uyBQ0pfSBWDLWe9PCS7fKqySkZ6hEwk6nyVwzf3k X-Received: by 2002:a17:906:3708:b0:7ad:93df:db1e with SMTP id d8-20020a170906370800b007ad93dfdb1emr7852693ejc.445.1668814444127; Fri, 18 Nov 2022 15:34:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814444; cv=none; d=google.com; s=arc-20160816; b=tFDNkHVvTGhvzL1QTQIp0riU+9O8onTxw8llGPPECdOhpxJS2+f3QM0H8IbNJTJB27 PNjhU8qOKKTRcWuIsisB9ok52igX5YPPvV/z8P2R2jWRMuH2tXOOQRFCFDQBxf9vUDM2 kdcCbVuCBsZtKAbLJCZAQ5FUCAbFECaYAGZORGA0ttiJj0A/0wcjyHl23VLHU7RUHqWh XNbXOvC/8poIBbioTRgi5Eh18vDgd8NBZeID8lYBp8BgDDpYzsP7xnDR2V85uoKRBN1u ahLE4KLC+wyNLX1EVYbm9rHh8Cssf/Y4u+ty/2t7WIgbHbXolbS2T1Lc+H0E+dj58iMQ 7F1w== 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=M52vbDJF5jp0iyoC/8YPp+gMbE8xknSacaNC2iRqgI0=; b=kOKYbC1QiX1wsKOW2K2ETUoVF9zdzq0Ag2erijRbubh5R0SAM1M9iErlbpe/vyAuhw vINQvDvkSN0GwcZbz/8yvysjJdz92/C2WHsYYiW/bWjD0kqgco6sSVWriasCFWJiiuOP Bi0VOgL2yu3fJKa2vq13VMaLW/w9vcCvF1NWULFhT7Dy10whJ7aRcnjBJ7bIHDjJTT/3 2T6zeSyKYbT/CPuEcDN+NUamvbtURJIMdBxbpVzKMQIb94YsibDGoXg+83l29gBPaH9h X0e3oROzDJzARhS2RsFXCvK5eVhhsR1z4pXeRoLu6XPGdtHtAL3I8v5sBEoy1sxVfF8i YnXQ== 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 qw41-20020a1709066a2900b007ae3f78c8d5si2273118ejc.787.2022.11.18.15.33.40; Fri, 18 Nov 2022 15:34:04 -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 S236000AbiKRXbz (ORCPT + 99 others); Fri, 18 Nov 2022 18:31:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235969AbiKRXaY (ORCPT ); Fri, 18 Nov 2022 18:30:24 -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 7792175D9D for ; Fri, 18 Nov 2022 15:18:18 -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 1owA9k-0005Px-RO; Fri, 18 Nov 2022 23:48:20 +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 1owA9h-0058tE-Vb; Fri, 18 Nov 2022 23:48:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9h-0000VJ-TU; Fri, 18 Nov 2022 23:48:17 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 592/606] backlight: lv5207lp: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:26 +0100 Message-Id: <20221118224540.619276-593-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?1749878774679252127?= X-GMAIL-MSGID: =?utf-8?q?1749878774679252127?= 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 Reviewed-by: Daniel Thompson --- drivers/video/backlight/lv5207lp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/video/backlight/lv5207lp.c b/drivers/video/backlight/lv5207lp.c index 767b800d79fa..00673c8b66ac 100644 --- a/drivers/video/backlight/lv5207lp.c +++ b/drivers/video/backlight/lv5207lp.c @@ -76,8 +76,7 @@ static const struct backlight_ops lv5207lp_backlight_ops = { .check_fb = lv5207lp_backlight_check_fb, }; -static int lv5207lp_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lv5207lp_probe(struct i2c_client *client) { struct lv5207lp_platform_data *pdata = dev_get_platdata(&client->dev); struct backlight_device *backlight; @@ -142,7 +141,7 @@ static struct i2c_driver lv5207lp_driver = { .driver = { .name = "lv5207lp", }, - .probe = lv5207lp_probe, + .probe_new = lv5207lp_probe, .remove = lv5207lp_remove, .id_table = lv5207lp_ids, }; From patchwork Fri Nov 18 22:45:27 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: 22766 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465831wrr; Fri, 18 Nov 2022 15:38:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf71yjm6CwrBQlvWkS4oNJ74USZ7ce77Pjg7xmUeuoxKg+HiD2464IrNdvtaiQQLpLBoQRnS X-Received: by 2002:a17:906:71c2:b0:7ab:2de1:2e45 with SMTP id i2-20020a17090671c200b007ab2de12e45mr7909283ejk.422.1668814715248; Fri, 18 Nov 2022 15:38:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814715; cv=none; d=google.com; s=arc-20160816; b=Z8M7cfQyhgowMWmULbg0dfZoZBuQp1tsw4CMV/F8ugAFXDoTbNpzAJkth+pATTG4HJ WtrVsWwgL4GNCb0ZuufwkYRr1AenwsIg1gCudkhwm5FyTJno5ouom9Uh+yt9Am+xoRjI xGH1HSm9zc9HPYk0r9FN4oWbsYM6bM35U2A5p8W9XV1L1mcj4Ym/qgoemQGClEcix4sV yx0KqcDBIej4mBCrC51Bwqc2V8rmQkCdiGR6juVgaw2/2PdEDetbu4wpghoFJtyA91yF FZaNzdQJ3xQ2yugSDmesEb1lNUzz77khRsluRoaRAeT/zaPyvmvGFv8096CDZclka9cl p8+A== 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=PrdmWENFIJv4MHJspkYa+0cCiIHBHybzF7mClPQp2fk=; b=ObiRCjGRQKNPA1Iu9WjmAR1HOJ4F0+xSJjT5JDXW5SX3UqNV9/M3WLcM7vehJojgIZ WOOFrAAd4abA1oQm539ITmDbY2ywVMxMor3JkTIHI7JY2Or3NkGoZNR92kTQq5xKysh4 3sEEI15gxsEJktCHDGJgKwLKrVD1WPjJKP6uNyETZ3t7riE4UE23hC1UB3piBp+134Sc rufEea359yILiC3WAK1ypYFhTyy1S/HnFqMpmZbtZiut3es/XO67/5xuXVVeqtc0kWUF aSzafXtMLSoWYi7CtzcolJF7wecOTTW+QHZ8RfZaugbbUbkCnqIs2vrUlGzGxZu2qJzK AASA== 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 x6-20020a056402414600b004674af16d57si3922676eda.490.2022.11.18.15.38.11; Fri, 18 Nov 2022 15:38: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 S236436AbiKRXgl (ORCPT + 99 others); Fri, 18 Nov 2022 18:36:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236398AbiKRXcx (ORCPT ); Fri, 18 Nov 2022 18:32:53 -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 9D276A572D for ; Fri, 18 Nov 2022 15:20: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 1owA9k-0005Py-Rr; Fri, 18 Nov 2022 23:48:20 +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-0058tF-0B; Fri, 18 Nov 2022 23:48:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9i-0000VN-2b; 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 , Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 593/606] backlight: tosa: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:27 +0100 Message-Id: <20221118224540.619276-594-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?1749879058812501823?= X-GMAIL-MSGID: =?utf-8?q?1749879058812501823?= 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 Reviewed-by: Daniel Thompson --- drivers/video/backlight/tosa_bl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/video/backlight/tosa_bl.c b/drivers/video/backlight/tosa_bl.c index f55b3d616a87..77b71f6c19b5 100644 --- a/drivers/video/backlight/tosa_bl.c +++ b/drivers/video/backlight/tosa_bl.c @@ -75,8 +75,7 @@ static const struct backlight_ops bl_ops = { .update_status = tosa_bl_update_status, }; -static int tosa_bl_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tosa_bl_probe(struct i2c_client *client) { struct backlight_properties props; struct tosa_bl_data *data; @@ -160,7 +159,7 @@ static struct i2c_driver tosa_bl_driver = { .name = "tosa-bl", .pm = &tosa_bl_pm_ops, }, - .probe = tosa_bl_probe, + .probe_new = tosa_bl_probe, .remove = tosa_bl_remove, .id_table = tosa_bl_id, }; From patchwork Fri Nov 18 22:45:28 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: 22964 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp475547wrr; Fri, 18 Nov 2022 16:06:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf64Wc7Yl2nFsXE60I20lDcS5rj71ALayH2LudK+OFt+Q5v7s75BLQ2HAve5wfOTyAao2kMH X-Received: by 2002:a05:6402:541a:b0:463:be84:5283 with SMTP id ev26-20020a056402541a00b00463be845283mr8004425edb.7.1668816396283; Fri, 18 Nov 2022 16:06:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816396; cv=none; d=google.com; s=arc-20160816; b=zzQ9b5Uyyn3Mwi0lxcYnbKp5m66oqu/eybygkzC4d97vcWwDKkhs88Is+Di5IQIDZQ WGxJS7CDHyJcRMnDPTKmdkSKiY8O0gf8B7aWbiojpLO9Q5Bwf93iwW5TLdwbZqdpZymt 3Mgxv8DZyIhbx46ayh5pOb1eAtqYd7iFa6pHq7sNRnVof4qTIIWnWB71SosQoQ7/fMOl DNNB2Z6VNtRPGivz8/5AZ01MsOFd5uD/2g8h9AeT+Vqsw9OYIFyDsj9iCUCNgN7XaxQP ZrD1FKus+ODZZ705/UJBTPf7Uta52Vo1FdsMXwpZsHkgGGA4TCEtjchdPygEelgPvgJ7 exUQ== 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=h+WeTyjzjwYBbfOQbftDlf2No78ChIkOPsqJ4JIiclw=; b=LUk5DBg2+d8Cvdk/WjgiLFw8zCD5mjX48rm7/Sf6E5TEQcGJ9b1zK9ZHwToVrKC1zY 0oPNDoqtZ0VYvSMC8N8mNknbYVXTNWwQPC2KBiydpKeXC+6te2pku88wX+sUh+u5jyZ7 YKEJl//DBi9aTx7J7tBOx3h3OYp2TmQftlHm7KMdoBR2OfA16JXvS0t3p4a3toEcVxf4 3A4dyW1bANzrDWP6TnSSK9fSozcCPvhScoMHJIYivKh6pDcrNFnXuEzbIlzgGi072vGY s+nlAeSKs9ZA+yfNoGi/aXgpCKQg0G9axfveKFBK3pcwNM1AiwQHKqWAyDJszmUfELZ6 OYIw== 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 j27-20020a170906279b00b007ae2368c8b7si3379324ejc.138.2022.11.18.16.06.12; Fri, 18 Nov 2022 16:06:36 -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 S235422AbiKSAD7 (ORCPT + 99 others); Fri, 18 Nov 2022 19:03:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237462AbiKSACO (ORCPT ); Fri, 18 Nov 2022 19:02:14 -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 20BB0E1213 for ; Fri, 18 Nov 2022 15:30:04 -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 1owA9n-0005WP-3u; Fri, 18 Nov 2022 23:48:23 +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 1owA9k-0058tw-7b; Fri, 18 Nov 2022 23:48:21 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9i-0000VQ-8D; 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 , Helge Deller , Hans Verkuil , Adrien Grassein , =?utf-8?q?Krzysztof_Ha=C5=82as?= =?utf-8?q?a?= , Heikki Krogerus Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 594/606] video: fbdev: matrox: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:28 +0100 Message-Id: <20221118224540.619276-595-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?1749880821256837266?= X-GMAIL-MSGID: =?utf-8?q?1749880821256837266?= 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/video/fbdev/matrox/matroxfb_maven.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/video/fbdev/matrox/matroxfb_maven.c b/drivers/video/fbdev/matrox/matroxfb_maven.c index f2e02958673d..727a10a59811 100644 --- a/drivers/video/fbdev/matrox/matroxfb_maven.c +++ b/drivers/video/fbdev/matrox/matroxfb_maven.c @@ -1249,8 +1249,7 @@ static int maven_shutdown_client(struct i2c_client* clnt) { return 0; } -static int maven_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int maven_probe(struct i2c_client *client) { struct i2c_adapter *adapter = client->adapter; int err = -ENODEV; @@ -1292,7 +1291,7 @@ static struct i2c_driver maven_driver={ .driver = { .name = "maven", }, - .probe = maven_probe, + .probe_new = maven_probe, .remove = maven_remove, .id_table = maven_id, }; 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, }; From patchwork Fri Nov 18 22:45:30 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: 22674 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp461393wrr; Fri, 18 Nov 2022 15:27:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf5JIyzkVYAxhBt9DDWfPgRMYdOt7v85TpFqODeKr8cd7voGYFxvyIC7pvGvTgMg/Gj7/FVh X-Received: by 2002:a05:6402:399a:b0:468:fdf2:477f with SMTP id fk26-20020a056402399a00b00468fdf2477fmr5681275edb.329.1668814022660; Fri, 18 Nov 2022 15:27:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814022; cv=none; d=google.com; s=arc-20160816; b=Vn5Q+z8qmNBZb/AfuZDwDscSUdxulsI8bznd5+rkn8FAXbkMOu4UZb0UYW/xdwUFT8 Weu1Rt+qX7BjSzrNsNhuxyLZAm/pEmmz3ufRLDabSi5F8D/kxzEnvVlWDcI7MRpJ7rvd YUNqbd4cLtNZhmBe2ZoTmF7jzmudlvVPP2LaBBzfQE/LVRmr0DT68ScEOJoXu4uPOjCR oEEtQNBL/XjvX/iOwK6xM6ki7wk5gSDWUI405sbJSY5niJ2feFj3nJJCI+/8PE2bJadN qJVPlELDBl3/QdbqNuvWKRw+Kp8Tfk7mjyXtmYtankKUWhCvYz/gxFlxUJ8z6rpN3V9B rPEA== 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=XyGTrsTo2Fiq2XDoSkOO9qnxriIlaHdlprDJZpAU4s0=; b=UUALls0QLIwHCOY1glUidduLNiUxaTqhl4Yq9VaAK6ZoxZlmtOtq7mtAYMmOdeQKNv ORqUlNDpG/4bDedZaHmKuai/WJnsI4u/hnzoooM06EHHFVL/J0uaXpseLh7kSBN70x2f D/afuIO/VE+bmsh3pjpaus4tJSIoiQ4vmE+gHrpqPqntXZmBDQtBzxRuPXZs5R+dXM5+ lhxn5OcyAHmKFhNUJ3P1h2ZCR1l720r17ebqPlSe9SY72o8CW8Mqdvi1DzneopxvNOad et8H5I8HHJXZtu3QEzDmXsB69ADQQmTtbMt0s/jEGA5HIfjPr/siam3g+87gGz7pjdrS 8XjA== 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 i23-20020a1709063c5700b007addff99f09si3349020ejg.1004.2022.11.18.15.26.38; Fri, 18 Nov 2022 15:27:02 -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 S235544AbiKRXZb (ORCPT + 99 others); Fri, 18 Nov 2022 18:25:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235477AbiKRXX0 (ORCPT ); Fri, 18 Nov 2022 18:23:26 -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 908D956D4B for ; Fri, 18 Nov 2022 15:13:58 -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 1owA9n-0005Ro-49; Fri, 18 Nov 2022 23:48:23 +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-0058tW-Nt; 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-0000VY-Ju; 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 , Wim Van Sebroeck , Guenter Roeck Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 596/606] watchdog: ziirave_wdt: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:30 +0100 Message-Id: <20221118224540.619276-597-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?1749878012919630780?= X-GMAIL-MSGID: =?utf-8?q?1749878332210358264?= 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 Reviewed-by: Guenter Roeck --- drivers/watchdog/ziirave_wdt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/watchdog/ziirave_wdt.c b/drivers/watchdog/ziirave_wdt.c index d0e88875443a..21ca08a694ee 100644 --- a/drivers/watchdog/ziirave_wdt.c +++ b/drivers/watchdog/ziirave_wdt.c @@ -593,8 +593,7 @@ static int ziirave_wdt_init_duration(struct i2c_client *client) reset_duration); } -static int ziirave_wdt_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ziirave_wdt_probe(struct i2c_client *client) { int ret; struct ziirave_wdt_data *w_priv; @@ -732,7 +731,7 @@ static struct i2c_driver ziirave_wdt_driver = { .name = "ziirave_wdt", .of_match_table = zrv_wdt_of_match, }, - .probe = ziirave_wdt_probe, + .probe_new = ziirave_wdt_probe, .remove = ziirave_wdt_remove, .id_table = ziirave_wdt_id, }; From patchwork Fri Nov 18 22:45:31 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: 22731 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464477wrr; Fri, 18 Nov 2022 15:35:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf4lXKRr+ahgm9+qF26uP5Dvy95PLgVybeAZ/MD6LYxWo1sQsR1r9MlgZ1mTl/ypyISP2VJB X-Received: by 2002:a17:906:b34a:b0:755:6595:cd34 with SMTP id cd10-20020a170906b34a00b007556595cd34mr8020577ejb.70.1668814501301; Fri, 18 Nov 2022 15:35:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814501; cv=none; d=google.com; s=arc-20160816; b=KWncRGYwU7/PwopsBjsCfVaPqJLj+dhqADG/g0r+lonxqbiew/cebfmvnqpcbkv1uc miIDlEKBvNaS2dcbpR9p0Xv8rJWQqPVhsiFnYCwlCyTKimla6JE8neM8W76Z+DTYd5pH yRJl/+2R+6LUXVtQvqlXZ4Hr5JITsxBlMgsaQqxCmZXCoKTOBOKcpktwiMnCUFkJeW67 D1NLoNhI6AAKfjmpYyc8Mcx7NgsCZEqz522/9HBZiKNXtHJUDsiFDizV6vLn9GWytDMQ yHKa/qxreXPpulqjs/JLIW4Eyn561yRw2udyPhb4R8Khiy8GSgMvPjAZfhOHYpg85aE3 wY8w== 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=acfp/AeTDaSntad8608/2MrRf4b+TfQf4mbXuWeEu/M=; b=bb0hmEUROiyr8hzk9JNo0oxt05UtuhpaztyqvOnAnb9/egRK4WLj2ilbY656i/5RTm 2uVySfRBnWIMgr5wY81AuLn0eHkZcZLkUJWldiqFL3oAaQnhlhTABuAL1fxzgZ88CUoT fFMGDezWsHcuWET2UwWgW7xu3VeLdWc7I6/PZmeX+FrlH2Auvy7MDKNKbe6YuNfpvmFd cdkQXt9WIU8wqeF6jOLRzh1IegVS9+s+kU3xAHgO1qcxE++tmUVoidHkTxsHOU3jnVpq MwIj7ktesOiz5rJgEGgSTf4ajS24cq2YcSXEvlwHyYV3DQ7YdraHzsmPG48Xi5i/uuk9 58NQ== 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 i21-20020a170906251500b0078bec673145si3090354ejb.519.2022.11.18.15.34.37; Fri, 18 Nov 2022 15:35:01 -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 S236148AbiKRXeG (ORCPT + 99 others); Fri, 18 Nov 2022 18:34:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236015AbiKRXay (ORCPT ); Fri, 18 Nov 2022 18:30:54 -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 06F34766B for ; Fri, 18 Nov 2022 15:18:38 -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-0005UT-I9; 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 1owA9j-0058tj-IN; Fri, 18 Nov 2022 23:48:20 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9i-0000Ve-P7; 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 , Johannes Berg , Jaroslav Kysela , Takashi Iwai , =?utf-8?q?Marek_Beh=C3=BAn?= , Jeremy Kerr , Heikki Krogerus Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linuxppc-dev@lists.ozlabs.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH 597/606] ALSA: aoa: onyx: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:31 +0100 Message-Id: <20221118224540.619276-598-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?1749878834341455667?= X-GMAIL-MSGID: =?utf-8?q?1749878834341455667?= 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 --- sound/aoa/codecs/onyx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/aoa/codecs/onyx.c b/sound/aoa/codecs/onyx.c index 2d0f904aba00..4c75381f5ab8 100644 --- a/sound/aoa/codecs/onyx.c +++ b/sound/aoa/codecs/onyx.c @@ -990,8 +990,7 @@ static void onyx_exit_codec(struct aoa_codec *codec) onyx->codec.soundbus_dev->detach_codec(onyx->codec.soundbus_dev, onyx); } -static int onyx_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int onyx_i2c_probe(struct i2c_client *client) { struct device_node *node = client->dev.of_node; struct onyx *onyx; @@ -1049,7 +1048,7 @@ static struct i2c_driver onyx_driver = { .driver = { .name = "aoa_codec_onyx", }, - .probe = onyx_i2c_probe, + .probe_new = onyx_i2c_probe, .remove = onyx_i2c_remove, .id_table = onyx_i2c_id, }; From patchwork Fri Nov 18 22:45:32 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: 22810 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp469449wrr; Fri, 18 Nov 2022 15:50:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf5POzLDVEeLhhyp+hDF0wTymJoV+UMCjLRcAyYAZ5r6AieyVJsEYtcR4SQBTCcqRJPAynXN X-Received: by 2002:a05:6402:550b:b0:45f:9526:e35a with SMTP id fi11-20020a056402550b00b0045f9526e35amr8188624edb.256.1668815408376; Fri, 18 Nov 2022 15:50:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815408; cv=none; d=google.com; s=arc-20160816; b=R64ujhRUHlCq94Eag0X3pNjFhMFVphMmrsxAZ3Kz1X30FkSSMOUiuHeToOC+mMDx75 rX3k7uZfwUtgDeXkFnjiihL85ncbtWbuMxgderCu9wH6+Nv/hjZcdIomCM4eJpwSKq4Q NoXfUA9Kh10ZKbh4Upbt+z/YHB259VjWt15TGbJRtx3n6ID/nw/uxixzHuBZqrKr4SdU Aq8Flwdjsb2PTvlwRP8Pqq1qlFb02SZdWEiWTKksrV0kM33y0Ar1aIwBrM8KzNmZiBct R5SFYtoFUFy03IVN3AHBWac+w0R4+IZYS3DzgNBsP8dG1Y+Low3mDUKynxJp/8AeL7Qc pHFA== 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=LdP1k5ltn55XFq+SlwVBSlXlulBDL1oXi+jnU8Y1ky4=; b=G9aUfhconIO6WTBYYqrFLk0J6nui7rtXBv7XPLLrqUEr0xIQBrGwJz6e3jSagAOkhm v3kA5a+2zPCtNTibvK7GcYxqySoFVPTBSXJKdAO4wla6pgsQNEyV5lKOyTvQK6WgO+Fg UkXP8n91nqsnTo6klBe7El71zMmXBl14vbUUhIs3PcLPR3xaP5vTEX7qpPwaAuqZM0W3 zzgwS061dEFL7Bvvg/G2NzEb2aU8jE8gw8kfTDuL1pUfPFmKGjQILnwUDNyVwSqE4d0j tgvmxbjSYFgVy8FAFuaii4EivH29KlEUr6Odh7cKWtTnDU3Ykycj3CIQFzD9e0QQsy6A u7Pw== 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 xb4-20020a170907070400b0076ed46e4440si3700422ejb.636.2022.11.18.15.49.37; Fri, 18 Nov 2022 15:50:08 -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 S236776AbiKRXlF (ORCPT + 99 others); Fri, 18 Nov 2022 18:41:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236495AbiKRXip (ORCPT ); Fri, 18 Nov 2022 18:38:45 -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 7BC84C5B4A for ; Fri, 18 Nov 2022 15:23:01 -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 1owA9n-0005XK-KX; Fri, 18 Nov 2022 23:48:23 +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 1owA9k-0058u4-LM; Fri, 18 Nov 2022 23:48:21 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9i-0000Vh-Uf; 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 , Johannes Berg , Jaroslav Kysela , Takashi Iwai , Heikki Krogerus , Sebastian Reichel , =?utf-8?q?Krzysztof_Ha?= =?utf-8?q?=C5=82asa?= , Vladimir Oltean Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linuxppc-dev@lists.ozlabs.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH 598/606] ALSA: aoa: tas: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:32 +0100 Message-Id: <20221118224540.619276-599-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?1749879785841290523?= X-GMAIL-MSGID: =?utf-8?q?1749879785841290523?= 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 --- sound/aoa/codecs/tas.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/aoa/codecs/tas.c b/sound/aoa/codecs/tas.c index ab89475b7715..f906e9aaddcf 100644 --- a/sound/aoa/codecs/tas.c +++ b/sound/aoa/codecs/tas.c @@ -875,8 +875,7 @@ static void tas_exit_codec(struct aoa_codec *codec) } -static int tas_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tas_i2c_probe(struct i2c_client *client) { struct device_node *node = client->dev.of_node; struct tas *tas; @@ -937,7 +936,7 @@ static struct i2c_driver tas_driver = { .driver = { .name = "aoa_codec_tas", }, - .probe = tas_i2c_probe, + .probe_new = tas_i2c_probe, .remove = tas_i2c_remove, .id_table = tas_i2c_id, }; From patchwork Fri Nov 18 22:45:33 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: 22885 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472297wrr; Fri, 18 Nov 2022 15:59:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf6/kd2NbCngL8PTEwunvxF90IHf0CdSRfzaxsh8FA80t6rgJ0S577Oy/tzGIuSQAdCG6tzl X-Received: by 2002:a63:f00a:0:b0:460:ea43:93c6 with SMTP id k10-20020a63f00a000000b00460ea4393c6mr8562608pgh.173.1668815998650; Fri, 18 Nov 2022 15:59:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815998; cv=none; d=google.com; s=arc-20160816; b=srQ7d+GdbUyYAr5H/+kYIsuBAJmkqKmU/FExGBgunXc3Jn/LwHhHfTaS2ukEu3kQ9l OTDJJT04US5OXk9Iix+FYrmgKRP5wzqFK2PgSmJW9g/xZvkqtH7lOFTTV4AVu0VJGFLU KDyXzy5+4uCJiq7ZfG+eFNrsuD33mh32R9JzXRPWytsrJhNh9QUvjACJYgeYduoA8fJu NnEMwqik4oktXQzBAufSAd4lgwi5sXpFMLoPKa3Scgw+FNHS7QFW+qbyBgpyItAK/ICN Wyqp8Zf0PmnJ7JDv+zb4aW7yVlR5oZ0K0QdBq5WLDdJjyTTnEqL5aecuy1GEzeVxeKji j3dg== 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=6r9iWo3SxTNQuoBZsxNk+e1WR9xWRK9Nu4pIBtIQRGs=; b=dlrXmZiNNo3apxfM6drtFRE9cpqxDWM88mW9IXcNx7thBODId0I755Yy8xgKgD2dY0 tAo9KJwXMj9WnmZherWyjXKT+b4OwjYPXrf52zGE7nGi+ROIMzG41wThXIetMSICCA/q QCf0JbbB/QVwEyKOJoEtXH+eoScujLq+nbzsv9eBx1F+tNyx1+EgL8zTKJywGSfKDhDc 0ocMTmdJHKAIT3CCfdHZeiR00wjqjNtZgC6OOu5fUu205e4leNJah7w+OtYcqYKAaVpJ lmxo4B4bgnmVvK3AHtjf/DV2KQ3E6QemB7UpUNyRACPIWXOzt/0GKNSJf7pyrSYnDsFN Q19g== 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 b20-20020a056a000a9400b0053e0d9dfee5si5421164pfl.217.2022.11.18.15.59.43; Fri, 18 Nov 2022 15:59:58 -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 S237125AbiKRXxs (ORCPT + 99 others); Fri, 18 Nov 2022 18:53:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237041AbiKRXwH (ORCPT ); Fri, 18 Nov 2022 18:52:07 -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 B38CFBCDE9 for ; Fri, 18 Nov 2022 15:27:26 -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 1owA9o-0005Y3-5v; Fri, 18 Nov 2022 23:48:24 +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 1owA9l-0058uE-50; Fri, 18 Nov 2022 23:48:22 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9j-0000Vm-40; Fri, 18 Nov 2022 23:48:19 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , James Schulman , David Rhodes , Lucas Tanure , Richard Fitzgerald , Jaroslav Kysela , Takashi Iwai Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-kernel@vger.kernel.org Subject: [PATCH 599/606] ALSA: hda: cs35l41: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:33 +0100 Message-Id: <20221118224540.619276-600-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?1749880404909669940?= X-GMAIL-MSGID: =?utf-8?q?1749880404909669940?= 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 --- sound/pci/hda/cs35l41_hda_i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/hda/cs35l41_hda_i2c.c b/sound/pci/hda/cs35l41_hda_i2c.c index 5a6252d9b9e1..7826b1a12d7d 100644 --- a/sound/pci/hda/cs35l41_hda_i2c.c +++ b/sound/pci/hda/cs35l41_hda_i2c.c @@ -12,7 +12,7 @@ #include "cs35l41_hda.h" -static int cs35l41_hda_i2c_probe(struct i2c_client *clt, const struct i2c_device_id *id) +static int cs35l41_hda_i2c_probe(struct i2c_client *clt) { const char *device_name; @@ -58,7 +58,7 @@ static struct i2c_driver cs35l41_i2c_driver = { .pm = &cs35l41_hda_pm_ops, }, .id_table = cs35l41_hda_i2c_id, - .probe = cs35l41_hda_i2c_probe, + .probe_new = cs35l41_hda_i2c_probe, .remove = cs35l41_hda_i2c_remove, }; module_i2c_driver(cs35l41_i2c_driver); From patchwork Fri Nov 18 22:45:34 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: 22985 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476950wrr; Fri, 18 Nov 2022 16:10:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf6LVgX7WwhY1nhyR8S7JyuRySf280fc+UO3h4bSxA/98ytqWyy3b55fDtp1s/83Oq07W22i X-Received: by 2002:a17:90a:7547:b0:218:7d7a:3eee with SMTP id q65-20020a17090a754700b002187d7a3eeemr7437725pjk.78.1668816619638; Fri, 18 Nov 2022 16:10:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816619; cv=none; d=google.com; s=arc-20160816; b=YKUtblsjg9D+0vn7Ib2CExi2aNs0sNClJL6Sleq5xUdE95MHjnxcOqvQ9XaU7I2DZ5 reMZDZUPNkoGN2N8P1j1gl1zwELE+HwC9grZEtXRc16xGoXoDA0wub5SIvAaFE/2bwY/ 3f4Wc2XqJ04Rfc0LxP2q6gvKQnxwYG1BM63VSBYaO1mDIB6I6AME7tez1iUwDY/pj3yo bL4KMK05EP6dG/RnACVaZW2Cyf2jhDOtyE1hgktjWQDNVfm1awNZ2jiACVVhKrYtHYPA ReyaDYpwykIoR5yOGNXd3URJevcinOvsXdfTFajb+PFrIedLvA1AAv6YTOqN4YVophvF gRfw== 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=d6Es5Qo0sl0uJefy2a/yEm3QeOi5ZZx/FwET1HJzjVM=; b=IxDrEOuTk6T0oXuyvUU0UBzxF65Aoj8ZGBrZe3MB7vdSUrnsF33exTAg62UCjI/JPq HmnMJk005qv51/eF6JKOURDY92Rzb7BwIsVdlxwID/8EbTPJi4+T/M5ZOSGmDxi0rqsm 6pEWhd9DpvpypCcw0mwHq+Yhk4BpkWJ2gXhgh57tHbP31K294wryLVh83RalQxIYfpTD brd4igRrmb6fdjpptX/pTFFyr4ONEwscOMJvv25Oca30EhjF6JDKuanE1MQNuA3pZKto 8JyHNTveoFz3ZwiS0Nn9upwwvRDa8n2TExJOUXTTBlnRZsHX6BinWyFIiOglcDZGCbQ9 tbXg== 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 n4-20020a17090a4e0400b002137030b2basi4314044pjh.54.2022.11.18.16.10.07; Fri, 18 Nov 2022 16:10:19 -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 S237421AbiKSAJS (ORCPT + 99 others); Fri, 18 Nov 2022 19:09:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237479AbiKSAIs (ORCPT ); Fri, 18 Nov 2022 19:08: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 3687D8B857 for ; Fri, 18 Nov 2022 15:32: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 1owA9n-0005X2-23; Fri, 18 Nov 2022 23:48:23 +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 1owA9k-0058tz-Id; Fri, 18 Nov 2022 23:48:21 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9j-0000Vq-CG; Fri, 18 Nov 2022 23:48:19 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jaroslav Kysela , Takashi Iwai , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Benjamin Mugnier , Crt Mori , =?utf-8?q?Marek_Beh=C3=BAn?= Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH 600/606] ALSA: ppc: keywest: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:34 +0100 Message-Id: <20221118224540.619276-601-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=ham 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?1749881055961793911?= X-GMAIL-MSGID: =?utf-8?q?1749881055961793911?= 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 --- sound/ppc/keywest.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/ppc/keywest.c b/sound/ppc/keywest.c index 80e5108157ef..0c4f43963c75 100644 --- a/sound/ppc/keywest.c +++ b/sound/ppc/keywest.c @@ -16,8 +16,7 @@ static struct pmac_keywest *keywest_ctx; static bool keywest_probed; -static int keywest_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int keywest_probe(struct i2c_client *client) { keywest_probed = true; /* If instantiated via i2c-powermac, we still need to set the client */ @@ -91,7 +90,7 @@ static struct i2c_driver keywest_driver = { .driver = { .name = "PMac Keywest Audio", }, - .probe = keywest_probe, + .probe_new = keywest_probe, .remove = keywest_remove, .id_table = keywest_i2c_id, }; From patchwork Fri Nov 18 22:45: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: 22676 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp461457wrr; Fri, 18 Nov 2022 15:27:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf5CDRtn+7OtA293ghqR/5wx+X7GWm/ac4e+P4hqf9II3EpTXaKPiGUselk9H6zRC8M69ZBT X-Received: by 2002:a05:6402:5d5:b0:464:fa1:9ece with SMTP id n21-20020a05640205d500b004640fa19ecemr8321288edx.262.1668814032582; Fri, 18 Nov 2022 15:27:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814032; cv=none; d=google.com; s=arc-20160816; b=yVUdVg7VG2mUekd2DOG9c2l4tHA39140S8Ca8a1g+hw+haX/fkknbhCGhuTRQLyiCK NONcIJ0+wwLGYg5v3jNmFkDGoHk5RrDzGvdnKNyF9PPZW5hEuV+/vr5mdCEK1SXqb91k n3jid0SggMr7VNniWXrPk9inh5MLtMS5CaOx3NrFd8xfE/sAZY3HgrW46Xx7uD7Z9tnU k8ZT3UDX93fIZVZQCdFJzOsmr5kBKAyogYPaBDSx0FQF4/lB5/M0OOt7E5SGKoInXA69 rziIRIUnzrSziN4FJBAPcGhekoD0b5CdUPcfR2WB4y8c3rBS6Edcx2JDEbZabcqpgFd7 oacQ== 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=EdQysfIiVpG8/imXNYHjQojUJpjA4Gf5ZmSWn3yEkGQ=; b=DDmXxMQX1QpW7GU7KjymN2vM6kewVILVJ2MUfZZSveoTf2JfCgSVmlfXwxeTJTQ3pz u8QrLcmA6ec1bwKX4IngFLHFvbvKfgApnLv3P0E0h9c+evwxC7MQMyw0QWt8L3dOv2eV 7nSEbJ1iR9wVl0vmZyQI8I7/VpoFOREynqjq1NJSYmG0C0c9RpH8roqTqefCo5eoCFLI uwU1v2qkBsiiENJ7EiKHfO8gUvckof4OiplSHonfrgdOslLKB/MgDIeX39x88n2LrNHN KREITPEZ+1uB8Dp2WzVaatSThbfl/nlvSVT52fyXjtZ9VnDJ5PIxzdhoy60zsQbm6RGC /Rsg== 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 wb2-20020a170907d50200b0078333d9f17bsi3994709ejc.819.2022.11.18.15.26.47; Fri, 18 Nov 2022 15:27: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 S235538AbiKRXZw (ORCPT + 99 others); Fri, 18 Nov 2022 18:25:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235561AbiKRXYD (ORCPT ); Fri, 18 Nov 2022 18:24:03 -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 2213D57B53 for ; Fri, 18 Nov 2022 15:14:05 -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 1owA9n-0005Vr-Ci; Fri, 18 Nov 2022 23:48:23 +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 1owA9k-0058ts-1s; Fri, 18 Nov 2022 23:48:21 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9j-0000Vu-Hh; Fri, 18 Nov 2022 23:48:19 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Zhu Ning , David Yang , Yang Yingliang Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH 601/606] ASoC: codecs: es8326: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:35 +0100 Message-Id: <20221118224540.619276-602-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?1749878343118995964?= X-GMAIL-MSGID: =?utf-8?q?1749878343118995964?= 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 --- sound/soc/codecs/es8326.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/es8326.c b/sound/soc/codecs/es8326.c index 87c1cc16592b..9ddf6a35e91c 100755 --- a/sound/soc/codecs/es8326.c +++ b/sound/soc/codecs/es8326.c @@ -814,8 +814,7 @@ static const struct snd_soc_component_driver soc_component_dev_es8326 = { .endianness = 1, }; -static int es8326_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int es8326_i2c_probe(struct i2c_client *i2c) { struct es8326_priv *es8326; int ret; @@ -895,7 +894,7 @@ static struct i2c_driver es8326_i2c_driver = { .acpi_match_table = ACPI_PTR(es8326_acpi_match), .of_match_table = of_match_ptr(es8326_of_match), }, - .probe = es8326_i2c_probe, + .probe_new = es8326_i2c_probe, .id_table = es8326_i2c_id, }; module_i2c_driver(es8326_i2c_driver); From patchwork Fri Nov 18 22:45:36 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: 23107 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp487794wrr; Fri, 18 Nov 2022 16:44:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf6DDk7UmG1lyDjozPwYVLF7Gx9gYPH5c+9cOc7tQeP9RMSUXBKJWiKCdE4pfwW63BroEeMh X-Received: by 2002:aa7:cd50:0:b0:467:2efc:a984 with SMTP id v16-20020aa7cd50000000b004672efca984mr8255465edw.245.1668818645198; Fri, 18 Nov 2022 16:44:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818645; cv=none; d=google.com; s=arc-20160816; b=w6I9YZny2jb5hfwASJCDRbsAulMn9oY2fVrBkukQ19IIV8MNnl5N6APZ+EzpccwzFR ZX9KwkJAl3eh12HplgqqjYElcGDK9nJhiq007jO2oJMP+7r8pnU53o18rnEpBgwc4f2R m2E4XWVa9qScECzqQYJVS+QgiYVDbDBX9DfPgRWUYnkvAOC5T1mdIOYPc/MxTTQ5Sq6R ny69X6T5j2WS991eydZ4i1qMyYl5tVTJE7oCnYxUc42uImvtbAQOBrq06WzFO4YEPZik XrerQaLqfdXwXbkXUfkc0DFQG7DqIK2kiUqJa/K4MR8ZteB0yK1I6igFHhMGIiaQOLul fqOQ== 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=RvxM0C02zH47ZEXilTQnSTg5ExT+35yQz7CVVamy07A=; b=AdGD0Mkl6M8GlNsGr5vLQ5PQ2jJ7RMuZ9hSb4ZEtqwVHUH8hf4oIT+orXUgsj//+Lw GGL7Y+IpITDgEgWgslSgllDWwUluTvPi5fBNJ3432VSaJiQ/CH7zr6wjpYIH+/iO6kto ods5rDZCFEmidmdYkYfe6bps8Yu8E+u7Roa4R2XVFebU7XKVuEfMtQgXr8xncpj3miIy B4ytU94jcw+r4wTB8AtwxlkhN19YbJBHFJU/1AT6Dx2YG6f2sQaKXE8HT+5G98Q/iV0z 6PY5I01Y/yhRIVnmn6KMun/xXJ2Hkx1n8NeWFNBnONqAXmrG0E75xqRx9Kh5pEYRqriR pdIg== 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 ne21-20020a1709077b9500b0079195d87013si4465588ejc.713.2022.11.18.16.43.36; Fri, 18 Nov 2022 16:44:05 -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 S235634AbiKSAgZ (ORCPT + 99 others); Fri, 18 Nov 2022 19:36:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235684AbiKSAfh (ORCPT ); Fri, 18 Nov 2022 19:35:37 -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 1C803116074 for ; Fri, 18 Nov 2022 15:43:14 -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 1owA9o-0005Xg-RK; Fri, 18 Nov 2022 23:48:24 +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 1owA9k-0058uB-Uo; Fri, 18 Nov 2022 23:48:21 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9j-0000Vx-NI; Fri, 18 Nov 2022 23:48:19 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Daniel Mack , Ryan Lee , Charles Keepax , Hui Tang Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH 602/606] ASoC: max98396: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:36 +0100 Message-Id: <20221118224540.619276-603-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?1749883179522014990?= X-GMAIL-MSGID: =?utf-8?q?1749883179522014990?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- sound/soc/codecs/max98396.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/max98396.c b/sound/soc/codecs/max98396.c index a7b6a23f2cd8..db3de41f10e0 100644 --- a/sound/soc/codecs/max98396.c +++ b/sound/soc/codecs/max98396.c @@ -1731,9 +1731,9 @@ static void max98396_supply_disable(void *r) regulator_disable((struct regulator *) r); } -static int max98396_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int max98396_i2c_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct max98396_priv *max98396 = NULL; int i, ret, reg; @@ -1907,7 +1907,7 @@ static struct i2c_driver max98396_i2c_driver = { .acpi_match_table = ACPI_PTR(max98396_acpi_match), .pm = &max98396_pm, }, - .probe = max98396_i2c_probe, + .probe_new = max98396_i2c_probe, .id_table = max98396_i2c_id, }; From patchwork Fri Nov 18 22:45:37 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: 22967 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476426wrr; Fri, 18 Nov 2022 16:09:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf4GvBK+ypEEP9Rg/Duv5vbUm8IkNqZuTPjGhbtbtEEnli8pkcqIl37FNnHbXm0/gxvKajTY X-Received: by 2002:a17:906:d281:b0:782:7790:f132 with SMTP id ay1-20020a170906d28100b007827790f132mr7747070ejb.649.1668816541489; Fri, 18 Nov 2022 16:09:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816541; cv=none; d=google.com; s=arc-20160816; b=ZZwZyS8q8zXFvTPcsUUIexup5S52CcGypF84+gbL00ZaXkDulg/EJYC4YlTtLXqi+r /j5c1Axebccp2/t/HeqBTNDtgLutC0tWM4ROQAm1zjDu/GPI8Xxj8NKSrxA0X+ZYPTm7 7HO5wt8NdroXl1AKc2gigpuT0lwKiJdQqz7Y8XlH1B89T2ZyRZsZlYxzFB8IebuLa52p rydOnefpk0PvrpYAjujQTM2awmqIb3KLVjN+HBGR0HucyjcFVj8tSG/byI+ZB8GV73tM HBRVCO0KqXjdbD07wecgkenD2Wh7inUo/nNPB1U230PNeRfnUrk80xyp+O5SGNqhy5Mk npEA== 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=Hx3cuPZizLZ9Op/t2S/ptyQKIcHpN4XPVO6iKyIEXSc=; b=H2vQDfAC0bKGkIpcr9nE6eNS5LmLJCwJjhQfCTEUSsMNxbwPRfzHb1LgVnkXrJwq7l sdOScdI2TC4JFo2+NrlLQxu72NpNIHk13lKKiDVp5TLFu1w5BhZ5Z6Jz5vUdABLH8JHS sqVFBnBUYp+5KtzeNGl5UH9Y28qHnFKYpXxOqspwwrNR9I6g0LkXbfgFnp27dqMDI8sB OXq7Z2rmw36HxZ+9LK5QiQFaXN9ZpTVSM02zFFn14+YYrnDp68K0ogmw2tFhWGvH1nxF nN8HttwkkMrQVpO6ln8a/r2Y6F2hKTbBO82eXEbZBBRMULC+C8qG2Vu4rL+0ILL2g5Bq dF4g== 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 hq20-20020a1709073f1400b0079dc9dcbbb6si4350521ejc.337.2022.11.18.16.08.10; Fri, 18 Nov 2022 16:09:01 -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 S237449AbiKSAFV (ORCPT + 99 others); Fri, 18 Nov 2022 19:05:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234299AbiKSAE7 (ORCPT ); Fri, 18 Nov 2022 19:04:59 -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 CA930EBF02 for ; Fri, 18 Nov 2022 15:31:07 -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 1owA9n-0005Yb-T9; Fri, 18 Nov 2022 23:48:23 +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 1owA9l-0058uH-8p; Fri, 18 Nov 2022 23:48:22 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9j-0000W1-T1; Fri, 18 Nov 2022 23:48:19 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Matt Flax Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH 603/606] ASoC: codecs: src4xxx-i2c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:37 +0100 Message-Id: <20221118224540.619276-604-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?1749878020013101860?= X-GMAIL-MSGID: =?utf-8?q?1749880974013021895?= 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 --- sound/soc/codecs/src4xxx-i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/src4xxx-i2c.c b/sound/soc/codecs/src4xxx-i2c.c index 43daa9dc8ab5..27026030704a 100644 --- a/sound/soc/codecs/src4xxx-i2c.c +++ b/sound/soc/codecs/src4xxx-i2c.c @@ -12,8 +12,7 @@ #include "src4xxx.h" -static int src4xxx_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int src4xxx_i2c_probe(struct i2c_client *i2c) { return src4xxx_probe(&i2c->dev, devm_regmap_init_i2c(i2c, &src4xxx_regmap_config), NULL); @@ -37,7 +36,7 @@ static struct i2c_driver src4xxx_i2c_driver = { .name = "src4xxx", .of_match_table = of_match_ptr(src4xxx_of_match), }, - .probe = src4xxx_i2c_probe, + .probe_new = src4xxx_i2c_probe, .id_table = src4xxx_i2c_ids, }; module_i2c_driver(src4xxx_i2c_driver); From patchwork Fri Nov 18 22:45:38 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: 23137 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488462wrr; Fri, 18 Nov 2022 16:46:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Y5ER8fylTyEAsnj+da9GsFEzV6BZUqORLFTh3aVmrkLa41IiYsRQMB3Ub2He7vWXCwJyc X-Received: by 2002:a63:215d:0:b0:43c:5e0:f2aa with SMTP id s29-20020a63215d000000b0043c05e0f2aamr8742660pgm.448.1668818762125; Fri, 18 Nov 2022 16:46:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818762; cv=none; d=google.com; s=arc-20160816; b=BLXhF3ktmIam4kLLEJyYVVqo+Mgs5hWKEDb3ZhG03l4D3vEmvYygDeZ5r4W7iSouEj I0g2cHHOtXYwT/x5auFwgPN+HavsNOaQeLARR1LwZ2RblUkiNVYKgPc6bOzBwttbN1J8 /btDv1LjkzKhRK/nmZbJXJjHHJ7O80mBhUi7JsovR97c0x6GEW+anHecLVmn/ViWS/ez 1ltZLkpWNejVSzk1SxrDE6R3UNhwbCpDdiX5z9U+Nm8O5z6dbFGUSnjvfeo4vox14MCF oyyNnYlxG0DTjQzk618+orUs8PX3L7zN2c1kUjREps5wBqcjTW5xba85WEl1mQrrJs+r bX1w== 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=n/3kudoBNKNU/bxA3g6LBZdsYNHKucbnaweF5pfSa7o=; b=ucbnu8f8KIxmFa7cMwuzU241urfP2rIIPqs/KwsHe73ohq5MhxluCnwbbk3+yLOO3i d3XB/jTJ5RJNLbnLTalqmSpYQjwGw0H1dH3Qii7TNPsQ2QFbi0uCvmqzfbK4Ag8AzIi0 9bGOhmAov4OHKzHAiv+a0OuviJYxYWMm0GmOUu9Cyxsk9dM1EXr/1ogiJlBp0vUT+O1O niOI4yojQ0dvou/YtRjvdVRTKj1HvOviDlLVh2uylO5G2Fhd+kN5fN9T4h4GJfkrsd1m 2y8j77GY6ZDzrxPiXKygAFkhdCFrqsDvugjP7BYkN5AowG08jFE4ZAHUVI6OxNRu/QmE m+gQ== 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 pi16-20020a17090b1e5000b00212d79c548bsi5733367pjb.82.2022.11.18.16.45.48; Fri, 18 Nov 2022 16:46:02 -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 S237912AbiKSAoQ (ORCPT + 99 others); Fri, 18 Nov 2022 19:44:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237982AbiKSAmF (ORCPT ); Fri, 18 Nov 2022 19:42: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 EC1DB11DA1E for ; Fri, 18 Nov 2022 15:45:07 -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 1owA9q-0005XH-RW; Fri, 18 Nov 2022 23:48:26 +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 1owA9k-0058u1-Jt; Fri, 18 Nov 2022 23:48:21 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9k-0000W4-27; Fri, 18 Nov 2022 23:48:20 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Raphael-Xu <13691752556@139.com>, =?utf-8?q?Martin_Povi=C5=A1er?= Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH 604/606] ASoC: codecs: tas2780: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:38 +0100 Message-Id: <20221118224540.619276-605-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?1749883302056078682?= X-GMAIL-MSGID: =?utf-8?q?1749883302056078682?= 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 --- sound/soc/codecs/tas2780.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/tas2780.c b/sound/soc/codecs/tas2780.c index afdf0c863aa1..09e7ada1bca4 100644 --- a/sound/soc/codecs/tas2780.c +++ b/sound/soc/codecs/tas2780.c @@ -591,8 +591,7 @@ static int tas2780_parse_dt(struct device *dev, struct tas2780_priv *tas2780) return 0; } -static int tas2780_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tas2780_i2c_probe(struct i2c_client *client) { struct tas2780_priv *tas2780; int result; @@ -646,7 +645,7 @@ static struct i2c_driver tas2780_i2c_driver = { .name = "tas2780", .of_match_table = of_match_ptr(tas2780_of_match), }, - .probe = tas2780_i2c_probe, + .probe_new = tas2780_i2c_probe, .id_table = tas2780_i2c_id, }; module_i2c_driver(tas2780_i2c_driver); From patchwork Fri Nov 18 22:45:39 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: 23027 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp479130wrr; Fri, 18 Nov 2022 16:16:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf4LzZGVN8M16ydFYhDmx2C6sNCskfkfPivkGEHsefRLu4eJ1KcyQLwcVqPAujbpIl5UtBOM X-Received: by 2002:a17:906:850d:b0:7ae:21bc:89f0 with SMTP id i13-20020a170906850d00b007ae21bc89f0mr7818613ejx.132.1668816972742; Fri, 18 Nov 2022 16:16:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816972; cv=none; d=google.com; s=arc-20160816; b=Zpbm3mBOGWzkA5ENlvO+fw/iG6ydtcs5blhXgk6R09r3swAXY8tqP+bBCKw5v5ZhsG l6OuMPoJWYDcBOU/UDSGSTkNAPHUuRzbQYvxdS1QTu9BechaTCwxnHHWg3PBE/lq8exO ZSJb2wx5NKWKEfllmLNe3kMKlmUtjNef5qDvr5IEjbv5c+zB8fUTlumVRT+Zq5BWgpXQ e6RG2flSb2XOXZSBXfW50r4E42f4A3bjM1erkdqWJIbt9Jx+xMfwq+JZi2o3Z1q8J8A2 5qBfImN83UF8LeNrQSmTVg+dQAQIRpaaqzNQsXkWrM2fB7a+r5TwyqbvyviPbszPur6G 7nfg== 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=+DKtlG43wJixykhKA262zbLK13vY0Flm0z3laa+YAIE=; b=OrUA46F3PlxwVpdjnW9tMLehsZosC6SiG8lwMg7nExzHDkLMKzquQGjGJrL/VEyv6d qRCjxfnlHCZcsbVojcC/uEn1qBAhkE3UULFEzDjgrk71lq3ef+u1iUaQVLWLR3KB2v9C zSpjdfi/WLnnh5HRgXXLmWoRTkluJL4oQH9Fy8Oqrcqed4w0jNyjAPXKXuAggh4csvl8 Gh6g7a22insV/UKmwoFGNY4fXOGRf+5pLx2yHw0NbhXqK8Q1LIzvVghBwEVWWOq9p5lA 1PckWhcO4UDAGQoIwa7oHv+qsKYejSzXSpN9TY8jgBDOkocTOk+gKFcbeYsJsiqpDFXE MACA== 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 wt7-20020a170906ee8700b0078c39937f73si4639814ejb.798.2022.11.18.16.15.48; Fri, 18 Nov 2022 16:16: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 S237501AbiKSAO6 (ORCPT + 99 others); Fri, 18 Nov 2022 19:14:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237855AbiKSAOW (ORCPT ); Fri, 18 Nov 2022 19:14:22 -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 D6EE7B6B07 for ; Fri, 18 Nov 2022 15:34:49 -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 1owA9n-0005XP-VF; Fri, 18 Nov 2022 23:48:24 +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 1owA9k-0058u8-Ng; Fri, 18 Nov 2022 23:48:21 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9k-0000W8-7X; Fri, 18 Nov 2022 23:48:20 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Corey Minyard Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , openipmi-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH 605/606] ipmi: ssif_bmc: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:39 +0100 Message-Id: <20221118224540.619276-606-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?1749881425831648880?= X-GMAIL-MSGID: =?utf-8?q?1749881425831648880?= 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/char/ipmi/ssif_bmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/ipmi/ssif_bmc.c b/drivers/char/ipmi/ssif_bmc.c index 2d8069386398..caee848261e9 100644 --- a/drivers/char/ipmi/ssif_bmc.c +++ b/drivers/char/ipmi/ssif_bmc.c @@ -797,7 +797,7 @@ static int ssif_bmc_cb(struct i2c_client *client, enum i2c_slave_event event, u8 return ret; } -static int ssif_bmc_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int ssif_bmc_probe(struct i2c_client *client) { struct ssif_bmc_ctx *ssif_bmc; int ret; @@ -860,7 +860,7 @@ static struct i2c_driver ssif_bmc_driver = { .name = DEVICE_NAME, .of_match_table = ssif_bmc_match, }, - .probe = ssif_bmc_probe, + .probe_new = ssif_bmc_probe, .remove = ssif_bmc_remove, .id_table = ssif_bmc_id, }; From patchwork Fri Nov 18 22:45:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 22645 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460542wrr; Fri, 18 Nov 2022 15:24:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf6F1uqZ4EFToV9/FCgiAPNVhVtyLWoMVRx48L5+Z8fWjG/TVYlpcwmBlW2vFfz77Gs/CD5e X-Received: by 2002:aa7:c3c9:0:b0:469:1342:2ad with SMTP id l9-20020aa7c3c9000000b00469134202admr4188051edr.180.1668813874918; Fri, 18 Nov 2022 15:24:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813874; cv=none; d=google.com; s=arc-20160816; b=1HZAHqKI2Ka+qzJM11LJ7mVdgF6fTze2KwNTydIDnBKCrh7LsjAFLe9dSNf/4tZTu8 Z0ru6wacRr3EgDuPWV/zQ5S101y2Kk36lgBgfvh8Jo2DmhsHaGFyQR7eaePHfLnYUz1u RVv5FY9fZTMBD2MYy8/3NnLYciWj7Y2uK8Q+MIG9uKb9ZISVRUdYwBefMm36B//R/Q1F UJQk1OIQUDj1LPcAjpKIdmLI9H/da61/bqwdJvNK4BkKIr2UhRANiq8PjbirIMLPIEQr QCVfNoBV4HlxEcSceBHTu6RP8u+72KbMOxZUeQsDguiHELmyRr+bzxhWzwyISgNdKmsZ zAyA== 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 :dkim-signature; bh=HOazqLohhhqznWhzaYhgQGbbtoxrGyjb7VVhBHjvx8s=; b=bRz1+ggf4VJvEEqYj42lKOvyaQrP/R+Oy2E5QzSGoE+mOBDfvxb6No/2CCq2+hVOGZ SCd5YXjswbb7v9aM33EDHkll217Xcq1IRYqLO/4rhqyuH6EiPS/xt8rsss6wE1DvRUaM rw0JfAz3YuBJ+vjlwj0BcoN2iLl9tkA+UEmGa9f2E0PkX4tizovIukWvC676dGcdbRYw uOGtoXAp5FoIjJ1VVoDeNN5/sB0uyJda30RuPtCQQvgGgEpjP71NjKC3uxBGi+PwJXvj wSbqR5kRdgoVCMwtqQHm19dD51O4mJIexXsqGnG38qrH9e9jNEQH+rqMkXe0HS7aUGUG RLGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kleine-koenig.org header.s=2022 header.b=Lovzqvlf; 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 cr21-20020a170906d55500b00780f0b45416si4471499ejc.622.2022.11.18.15.24.08; Fri, 18 Nov 2022 15:24: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; dkim=pass header.i=@kleine-koenig.org header.s=2022 header.b=Lovzqvlf; 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 S235428AbiKRXQQ (ORCPT + 99 others); Fri, 18 Nov 2022 18:16:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231148AbiKRXPy (ORCPT ); Fri, 18 Nov 2022 18:15:54 -0500 X-Greylist: delayed 551 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 18 Nov 2022 14:58:53 PST Received: from algol.kleine-koenig.org (algol.kleine-koenig.org [162.55.41.232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45B038C486; Fri, 18 Nov 2022 14:58:53 -0800 (PST) Received: by algol.kleine-koenig.org (Postfix, from userid 1000) id 7140168F8F6; Fri, 18 Nov 2022 23:48:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kleine-koenig.org; s=2022; t=1668811700; bh=auu/jJNDFmqvsBa6XqTdE07i+TqxWdW5DZkhYNgSbX0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LovzqvlfM+vRFD/6Vxs2We1j8mrGPgNB+mJb8s1nOxA26WkTY1JvkJke0+Lwag4iL DanqcQu7db/rcDuefEamPB8T4aP9OfpD8aaqT8/nZT6FzNNRUDnK2UET0z3Mb45yrN SUOdYCJ8XgizZarbo3AeYQo5YIzKHONdbJ/B0M4O2p0EHH31YJNosb0DszuO03WJS7 bOXuBJRr2JD1Bo7MuK7SS8+A02HW57jpBtnly65Zr+Ome7qb3b1UTCzXjOHxY6+/mK 7OFV/pn93t6I5cDfNNgyq3xj9Sw8zil0I0UF6gWGFS9wbWdSmi/sId0SGgVmtt3lJw HNe+Jnhv+x8XQ== From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, linux-kernel@vger.kernel.org Subject: [PATCH 606/606] [DON'T APPLY] i2c: Switch .probe() to not take an id parameter Date: Fri, 18 Nov 2022 23:45:40 +0100 Message-Id: <20221118224540.619276-607-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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham 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?1749878177545768671?= X-GMAIL-MSGID: =?utf-8?q?1749878177545768671?= --- drivers/i2c/i2c-core-base.c | 11 ++--------- include/linux/i2c.h | 12 +++++++----- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c index 087e480b624c..1fbe16221085 100644 --- a/drivers/i2c/i2c-core-base.c +++ b/drivers/i2c/i2c-core-base.c @@ -558,15 +558,8 @@ static int i2c_device_probe(struct device *dev) goto err_detach_pm_domain; } - /* - * When there are no more users of probe(), - * rename probe_new to probe. - */ - if (driver->probe_new) - status = driver->probe_new(client); - else if (driver->probe) - status = driver->probe(client, - i2c_match_id(driver->id_table, client)); + if (driver->probe) + status = driver->probe(client); else status = -EINVAL; diff --git a/include/linux/i2c.h b/include/linux/i2c.h index d84e0e99f084..7414ec3ba858 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -272,14 +272,16 @@ enum i2c_driver_flags { struct i2c_driver { unsigned int class; + union { /* Standard driver model interfaces */ - int (*probe)(struct i2c_client *client, const struct i2c_device_id *id); + int (*probe)(struct i2c_client *client); + /* New driver model interface to aid the seamless removal of the + * current probe()'s, more commonly unused than used second parameter. + */ + int (*probe_new)(struct i2c_client *client); + }; void (*remove)(struct i2c_client *client); - /* New driver model interface to aid the seamless removal of the - * current probe()'s, more commonly unused than used second parameter. - */ - int (*probe_new)(struct i2c_client *client); /* driver model interfaces that don't relate to enumeration */ void (*shutdown)(struct i2c_client *client);