Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1281749rwb; Fri, 18 Nov 2022 16:00:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf6401QF/pCCSqf8gNsajEFN1mKTqMR7vIzSyd+/NHxJgjc7AGUYtjrAQwoZFcKTSkN37dEy X-Received: by 2002:a17:906:3109:b0:7a0:b505:cae5 with SMTP id 9-20020a170906310900b007a0b505cae5mr7961276ejx.648.1668816014652; Fri, 18 Nov 2022 16:00:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816014; cv=none; d=google.com; s=arc-20160816; b=WXqo1Gpls7VpUrrkms/QKgDqDhu26sf/IkMykXbrlhJErCKMOHMZMVtc1MlAHwdmhz w9XFY3uRQYTvU6Qbn+mb3Zz1gbepDsDJIkmo9LqJKqss/mxIBZHD7cpXHjdh7Y0d9Jth IZo3ECeDW0cA6Ld/lSrpev22JHNQUpai4WFewZR2huc4aiZnlISptZhmrf6lUjSSACAJ /tqKgomI3yfOBHg5Tj2pmNkyzjxavCcFd/cB9POUAZv3kbGp5+E4EIGYrrNpsq+PVLV+ /5X+Z0AOSG8rJBVei4D9N/NIkRLUsCYQXEO0k1fbk9rwFcBnNBRnq/hrJlfkmKU02Hwn /1eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; 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 Return-Path: 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.59.47; Fri, 18 Nov 2022 16:00: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 S236859AbiKRXth (ORCPT + 91 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=20Kleine-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=20Kleine-K=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 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-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 = { -- 2.38.1