From patchwork Fri Nov 18 22:36:00 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: 22561 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447523wrr; Fri, 18 Nov 2022 14:49:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf4xFg99N3bff9d3S/y1d9qiiKAMWavcubbLJIUMAxr0rYrz/m9h3lEGpr6W0hE49E8gRR0M X-Received: by 2002:a17:902:a3c9:b0:179:f580:bca5 with SMTP id q9-20020a170902a3c900b00179f580bca5mr1527039plb.139.1668811778366; Fri, 18 Nov 2022 14:49:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811778; cv=none; d=google.com; s=arc-20160816; b=HbTNkxUiilz3jVXLWjOsHOQmLU9/LeQJ2PT6mCKy0CcOIuz+VVBYQ3se+ViBAjloxA tdXMOhCgQzFRBvDWu4C0Dk6PQLBg/AzfvFt/3NCIghy77AGM8rfHiGZStF6Z7jInFUpg fbYGYBKPgmxQoE/WVo+cA+YKXC0cih2Q9YfjG8bW6MWdR+J/nRzwOOO2fTYsNKCDK/Z6 znzKXTzaPB7tkfaLOSue/K3+3+WyUzdLgoJ4zSU0tQ2YgrcyxsdwW/gSNX1j2aB/PsAy ByZlqzdg4wsj60+xRN/O54CqxcwL/lxK5C+ZUBTepKlh2XkQd2aM7sK3kEvbY1H0SRAO j+ew== 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=InYFBVmgIogmtOaGB34EY7T1AWehzJ3vbnMURoN2z68=; b=jo3wBcVTn/dDD3/h0XmyvDotXA35R3IOZTCSXxV9iCgqBcOHE9sQLMQbmlukWgmlzn H/2cHuuLLpmuWI1J/NQ6VaNN0YTxJndi9vtRRifxktOUntHWUta2sonwpQb6Zjk8XhoK 6brIBjhedAnfSv5VTS28+nsSVNYLVbd0xaOtBvp6Z+EzIpQdaPofDTGIgL+Cjx8K4Jan dHVLWVpcTKAy1MuweLR6hYBNj593gCfx15ohixJmK6MmWCWXhmEiJkqaZdsNyEzIQnp5 5FdRyhJBOoPy+GjyKYM8ZYOseUA5Rn0mDTtY3VO/dXBKxYPQousJX2Y6WPR+7U8hxd8V 1dUA== 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 c3-20020a17090a558300b00213cdfa8abasi4103845pji.173.2022.11.18.14.49.25; Fri, 18 Nov 2022 14:49:38 -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 S233146AbiKRWsb (ORCPT + 99 others); Fri, 18 Nov 2022 17:48:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232129AbiKRWqm (ORCPT ); Fri, 18 Nov 2022 17:46: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 0007E970BC for ; Fri, 18 Nov 2022 14:46:31 -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 1owA7m-0007fQ-7F; Fri, 18 Nov 2022 23:46:18 +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 1owA7j-0058A9-6h; Fri, 18 Nov 2022 23:46:16 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7h-00Hawb-65; Fri, 18 Nov 2022 23:46:13 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Peter Senna Tschudin , Martin Donnelly , Martyn Welch , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 026/606] drm/bridge: megachips: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:00 +0100 Message-Id: <20221118224540.619276-27-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?1749875979475351677?= X-GMAIL-MSGID: =?utf-8?q?1749875979475351677?= 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 Reviewed-by: Laurent Pinchart --- .../gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c b/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c index 97359f807bfc..4ee4a825a936 100644 --- a/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c +++ b/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c @@ -336,8 +336,7 @@ static int ge_b850v3_register(void) "ge-b850v3-lvds-dp", ge_b850v3_lvds_ptr); } -static int stdp4028_ge_b850v3_fw_probe(struct i2c_client *stdp4028_i2c, - const struct i2c_device_id *id) +static int stdp4028_ge_b850v3_fw_probe(struct i2c_client *stdp4028_i2c) { struct device *dev = &stdp4028_i2c->dev; int ret; @@ -376,7 +375,7 @@ MODULE_DEVICE_TABLE(of, stdp4028_ge_b850v3_fw_match); static struct i2c_driver stdp4028_ge_b850v3_fw_driver = { .id_table = stdp4028_ge_b850v3_fw_i2c_table, - .probe = stdp4028_ge_b850v3_fw_probe, + .probe_new = stdp4028_ge_b850v3_fw_probe, .remove = stdp4028_ge_b850v3_fw_remove, .driver = { .name = "stdp4028-ge-b850v3-fw", @@ -384,8 +383,7 @@ static struct i2c_driver stdp4028_ge_b850v3_fw_driver = { }, }; -static int stdp2690_ge_b850v3_fw_probe(struct i2c_client *stdp2690_i2c, - const struct i2c_device_id *id) +static int stdp2690_ge_b850v3_fw_probe(struct i2c_client *stdp2690_i2c) { struct device *dev = &stdp2690_i2c->dev; int ret; @@ -424,7 +422,7 @@ MODULE_DEVICE_TABLE(of, stdp2690_ge_b850v3_fw_match); static struct i2c_driver stdp2690_ge_b850v3_fw_driver = { .id_table = stdp2690_ge_b850v3_fw_i2c_table, - .probe = stdp2690_ge_b850v3_fw_probe, + .probe_new = stdp2690_ge_b850v3_fw_probe, .remove = stdp2690_ge_b850v3_fw_remove, .driver = { .name = "stdp2690-ge-b850v3-fw",