From patchwork Fri Nov 18 22:36:01 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: 22560 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447511wrr; Fri, 18 Nov 2022 14:49:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf4cpUbXVj0+vHZmcm59/lof2HI4vhToz025fVKlPaNDmWTWZxvBAVpVrLZN5qypYC51l0w5 X-Received: by 2002:a17:906:1182:b0:78d:99f2:a94e with SMTP id n2-20020a170906118200b0078d99f2a94emr5029061eja.232.1668811775876; Fri, 18 Nov 2022 14:49:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811775; cv=none; d=google.com; s=arc-20160816; b=OLo3MJCaVgp9KPmrVkfwsSGERqRPh01FbvoB7+CoPvJH9N7fmeP2ZgSUY6kkxAU5DR AG6wrWry2LTNR/+hcRucnpKJp7Yi8L+dQ9SztwZ9FvklpE9iMJ+rD65+rVA3XfBERBnm eIQdB1LCtOfbj+YwueZAN8mm9Csv481epXcpfAX0v3XyYvLU0S+ltdLE/2DBCUMIBHE8 oogh7ICz4YAC4hmpoJdnZnHceR9TvxEZZTmPUYaFDimhR65PuMjM7XONjX3J6/6TrIsk EzR1/iSZH/8/lS2Pa130rNLk52i5wjoPqo45xBNduDwrBR3+K82tCtpyRcDEeCn26L71 /Prw== 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=+LKeEoguSmWFE7hyQ6Q/3DokVhPrV0a/V67MycNaivE=; b=tntj4IpzHxKl1sSu/juYn3cfPT/SWfila9pmRGCwokzwsHvnufU1/z4ojZE+D8W1iI jEy1i1hZxHG13DyIjlsC5L+G93K2IPDcXYpTFl1dlVdn7gaFQGQOjsldgT2KTzdglkbq VFNOT3fw+fdQ8be7ODLOEqU8J4F91WofY3CMbCA9JKNLxOrCYd2OFKTPWrbeuRX653X+ SW1o1HA5qJ2zzwivCYyysFQDKdUdrdCcL1uAiNqfWhgTc70FjIG4lWvek+ozTXWHsYqp SrSf/oZuaflwb162Kc7JFwh4dU7XA0ps2M11J5GxALrmseQtP4nDvwCLx9JA+EPTf8KZ ZksQ== 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 l17-20020a170906795100b00781d695b597si4156472ejo.473.2022.11.18.14.49.11; Fri, 18 Nov 2022 14:49:35 -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 S233066AbiKRWsQ (ORCPT + 99 others); Fri, 18 Nov 2022 17:48:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232107AbiKRWql (ORCPT ); Fri, 18 Nov 2022 17:46:41 -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 8B00FAD9A7 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 1owA7k-0007el-Pf; Fri, 18 Nov 2022 23:46:16 +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 1owA7i-00589u-PW; Fri, 18 Nov 2022 23:46:15 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7h-00Hawf-CC; 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 , 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 027/606] drm/bridge: nxp-ptn3460: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:01 +0100 Message-Id: <20221118224540.619276-28-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?1749875976791940437?= X-GMAIL-MSGID: =?utf-8?q?1749875976791940437?= 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 --- drivers/gpu/drm/bridge/nxp-ptn3460.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/nxp-ptn3460.c b/drivers/gpu/drm/bridge/nxp-ptn3460.c index 0851101a8c72..cd292a2f894c 100644 --- a/drivers/gpu/drm/bridge/nxp-ptn3460.c +++ b/drivers/gpu/drm/bridge/nxp-ptn3460.c @@ -257,8 +257,7 @@ static const struct drm_bridge_funcs ptn3460_bridge_funcs = { .get_edid = ptn3460_get_edid, }; -static int ptn3460_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ptn3460_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct ptn3460_bridge *ptn_bridge; @@ -336,7 +335,7 @@ MODULE_DEVICE_TABLE(of, ptn3460_match); static struct i2c_driver ptn3460_driver = { .id_table = ptn3460_i2c_table, - .probe = ptn3460_probe, + .probe_new = ptn3460_probe, .remove = ptn3460_remove, .driver = { .name = "nxp,ptn3460",