From patchwork Fri Nov 18 22:35:48 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: 22584 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp448016wrr; Fri, 18 Nov 2022 14:51:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf7jBZSQG4Z1ARzBcyoeHKMerDEUnDx2NYa5hVlyGvaHndAiwEa84RCyLUxuxqA+fnTT1JEp X-Received: by 2002:a17:90a:398f:b0:213:5a55:7dd2 with SMTP id z15-20020a17090a398f00b002135a557dd2mr10084100pjb.50.1668811864217; Fri, 18 Nov 2022 14:51:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811864; cv=none; d=google.com; s=arc-20160816; b=FI3lfMDTZOtybLd9s0+P5EvJVJl1uKzWYN/vbEXpTszYLtCJ+Y8tbjRauXxYqYKv+b ir4FaJzY4cHnuyTy+LnstRQqUtVQNY3f/qG2ZOud1BZdHpMbB70v3tId8ItmIYWn83cK YecZXEC61JUFbQXWZe7FP1cmofhqWGisYIDikX6ksAOEX1MyZLb4O0l5lTzmM5Z391Lv RviO6SN8eiiJSzPtJ7fRoqns+2OSZyqSTeGMf9iIRFqVrnY8r05DJUPgGhWQwt1X8tlo go+0SqfNvqR/Y998hEKal6KUCQHhYXrCPKfjj+OtqTFETTDYIC5TT1aLuuyq2x3iDrDh f/ug== 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=J1HW9rd7y3qEg1XwObYYWUTa+Rc+AEu1rI1z8T9ykWM=; b=ENr2wMN0UEE4g5lmQu4msikUVCkF9Iv6bo7Jf+SQh3K3VTXsQKaqQsVtdrHKo7kI++ e9O27yX4Ni2+pZNSyhBtT8NyNFAeAXBKFbfIXwQIPIF4L8LpE3V+ufNpcHLIZm01Rzey RXj5KrrantcMcEaRmVoxjEbc68PmL6pEW5fnJrQai1Pit4AOjjsdG+hx0mun0jPHX3T2 fzSJV+21wta+02qj/KIkRcfb+xD9V850PgNeKr3H9JZF1xLVpMSgcmhRie+nomKeDUhO bkzYuvvSSkFBmJdcPjKSEk07cOhJ+VQPs9Rb9WBETqYxO5fb5X12npOyhr1i7IjAlYvZ aMXA== 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 s15-20020a056a0008cf00b0056e3c566bfasi4892677pfu.201.2022.11.18.14.50.51; Fri, 18 Nov 2022 14:51:04 -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 S233785AbiKRWuR (ORCPT + 99 others); Fri, 18 Nov 2022 17:50:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232636AbiKRWrL (ORCPT ); Fri, 18 Nov 2022 17:47:11 -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 B1D9AB94B7 for ; Fri, 18 Nov 2022 14:46:44 -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 1owA7p-0007RG-0O; Fri, 18 Nov 2022 23:46:21 +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 1owA7e-00588f-Ms; Fri, 18 Nov 2022 23:46:11 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7e-00Havq-OE; Fri, 18 Nov 2022 23:46:10 +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 , =?utf-8?q?Alvin_=C5=A0ipraga?= , Jeremy Kerr , Jagan Teki , Ahmad Fatoum , Abhinav Kumar , Jiasheng Jiang 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 014/606] drm/bridge: adv7511: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:48 +0100 Message-Id: <20221118224540.619276-15-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?1749876069664588249?= X-GMAIL-MSGID: =?utf-8?q?1749876069664588249?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c index e7a6e456ed0d..ddceafa7b637 100644 --- a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c +++ b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c @@ -1185,8 +1185,9 @@ static int adv7511_parse_dt(struct device_node *np, return 0; } -static int adv7511_probe(struct i2c_client *i2c, const struct i2c_device_id *id) +static int adv7511_probe(struct i2c_client *i2c) { + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); struct adv7511_link_config link_config; struct adv7511 *adv7511; struct device *dev = &i2c->dev; @@ -1392,7 +1393,7 @@ static struct i2c_driver adv7511_driver = { .of_match_table = adv7511_of_ids, }, .id_table = adv7511_i2c_ids, - .probe = adv7511_probe, + .probe_new = adv7511_probe, .remove = adv7511_remove, };