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, };