From patchwork Fri Nov 18 22:45:28 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: 22964 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp475547wrr; Fri, 18 Nov 2022 16:06:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf64Wc7Yl2nFsXE60I20lDcS5rj71ALayH2LudK+OFt+Q5v7s75BLQ2HAve5wfOTyAao2kMH X-Received: by 2002:a05:6402:541a:b0:463:be84:5283 with SMTP id ev26-20020a056402541a00b00463be845283mr8004425edb.7.1668816396283; Fri, 18 Nov 2022 16:06:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816396; cv=none; d=google.com; s=arc-20160816; b=zzQ9b5Uyyn3Mwi0lxcYnbKp5m66oqu/eybygkzC4d97vcWwDKkhs88Is+Di5IQIDZQ WGxJS7CDHyJcRMnDPTKmdkSKiY8O0gf8B7aWbiojpLO9Q5Bwf93iwW5TLdwbZqdpZymt 3Mgxv8DZyIhbx46ayh5pOb1eAtqYd7iFa6pHq7sNRnVof4qTIIWnWB71SosQoQ7/fMOl DNNB2Z6VNtRPGivz8/5AZ01MsOFd5uD/2g8h9AeT+Vqsw9OYIFyDsj9iCUCNgN7XaxQP ZrD1FKus+ODZZ705/UJBTPf7Uta52Vo1FdsMXwpZsHkgGGA4TCEtjchdPygEelgPvgJ7 exUQ== 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 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.06.12; Fri, 18 Nov 2022 16:06:36 -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 + 99 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_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Helge Deller , Hans Verkuil , Adrien Grassein , =?utf-8?q?Krzysztof_Ha=C5=82as?= =?utf-8?q?a?= , Heikki Krogerus Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=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 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?1749880821256837266?= X-GMAIL-MSGID: =?utf-8?q?1749880821256837266?= 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, };