Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp446654qtx; Fri, 18 Nov 2022 16:42:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf5nAOAJDYn5sb/iQKM1RhCa73ZxN0njR/tvMzcXY66kSc9i45GiyhPxCCQl3h7S3UgcpRLg X-Received: by 2002:a17:906:7c44:b0:7b2:7096:6c2 with SMTP id g4-20020a1709067c4400b007b2709606c2mr8097757ejp.526.1668818561774; Fri, 18 Nov 2022 16:42:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818561; cv=none; d=google.com; s=arc-20160816; b=GTGGWBF8vyaXVnX/+t7DYSMu29+IofFVw6UnELSHZOPkNL+H2R+VTR5Kjmt55fsx2O HFBnQi+F9zm7UEaJabZN7hj7tKltBKkW9nibMUdzBP/a1Eq8eAzp4R4mx8877UMohIeH CEPgWtLRX0uJBU6kazU4UgPXqQBCT0syUpDIgyevvEO401ikiN7EQQBpotFn+sCIkjyR KNCWyx8VtBvCUX8V3VapvohAL6Cvh+dFxHzSh2CplH/4Z2zKeJa1ccRcHJJnFlKIfxRU 7tFilj9HuFQTsovvzqsrx2y0E5l6qhmEzfLcUX3xVSmlcwJsZzHGjws8Z1Q5MgzQ1tXx L+cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; 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 Return-Path: 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.42.19; Fri, 18 Nov 2022 16:42: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 S237686AbiKSALJ (ORCPT + 90 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=20Kleine-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=20Kleine-K=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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Uwe Kleine-König The probe function 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, }; -- 2.38.1