Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1320006rwb; Fri, 18 Nov 2022 16:40:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf6wzz8vLwTXgCQB0rx+59XaNEJxjM1cA8+mqKGt2RHP2qBp3TZwdxcJJusYxOpV8bZ2Nrbc X-Received: by 2002:a17:907:904f:b0:78d:85fe:4951 with SMTP id az15-20020a170907904f00b0078d85fe4951mr7695353ejc.593.1668818446077; 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=cVsq040iNOCcv9cwINBuHBMMPI0f73XiKSXXIjUI4YlE6lkaphgNqrSmUgPKvOmm6g HuXwzVxWZFvEH+de0mtg4liUYJkgnMtN8OZKFNmuCW3bMyW70wlYQVuG8pcz04zhxJvQ ysG6ecd1of4cms1+O0kQQKAB2ThNKnWzVpAkee52RlgRoUPNnykgtufShcapySWaUJmb 17YL4gv9M9V2vWGigGJ4M/ZQQ1kcp+j2u8P9BK5mg5UwMFtQw0mTgK7t2TsBMVyLstup fGRjYixqxvqWJG022xtNVrMFXjxAJPI3jjhG1An/Hh4G4AWc1XiiNyfxf/0M6k5O19dw q2kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h8-20020a0564020e0800b004613ae68ca0si3839781edh.442.2022.11.18.16.40.24; 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 S237727AbiKSALW (ORCPT + 90 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=20Kleine-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=20Kleine-K=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 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/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, }; -- 2.38.1