Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1291141rwb; Fri, 18 Nov 2022 16:08:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf7DAinhdPRQeNL945gF/LTKiq+YyZExw6yAiC2gjP/WI9mmi6loanyrN7urZ87+i3Ihk+a0 X-Received: by 2002:a17:906:9457:b0:7ac:db40:7e1 with SMTP id z23-20020a170906945700b007acdb4007e1mr8017173ejx.204.1668816514007; Fri, 18 Nov 2022 16:08:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816514; cv=none; d=google.com; s=arc-20160816; b=ipSRzxqtBaAEF+0+B4WrbmJ/j0Msr3MxDcUCteW1iW55t72Rj5MccAyjjUH3If0/xo BlB33vQPjHbdlY2+5PitZ+/xXO1p8gEJ8UQQkApeBQbqE3/Q50++HVxi3gh4DYTsiIhW NRCNyxLkSUisxB+SHUBDvtVupqMRUoIHrzk+FVT0CJoPYxTfP8vJZJViIgI/S1p7ktBM kbhoDzjTPqycaH0zc0BsvyP13mASCGp6O4c2yPmoInTKSvmzEmGEkQapjzUXY62wbG0U J139ixQKW1iAbkKjd7WwHD9TcRBcxv2BfJjlmMzstgRvtPu1mrmtpXyVhgECoXpg8giK vMfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; 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 Return-Path: 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.08.10; Fri, 18 Nov 2022 16:08: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 S235422AbiKSAD7 (ORCPT + 91 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=20Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Helge Deller , Hans Verkuil , Adrien Grassein , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Heikki Krogerus Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?UTF-8?q?Uwe=20Kleine-K=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 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/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, }; -- 2.38.1