From patchwork Fri Nov 18 22:35:50 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: 22569 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447672wrr; Fri, 18 Nov 2022 14:50:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf52FKkMv4tVy1LxaJb9aW53Iy741/jJe5/UGRBFJI0DMiVqy7TBLWB6aTolj1HOMukoJ8u/ X-Received: by 2002:a63:f643:0:b0:476:f69d:8e72 with SMTP id u3-20020a63f643000000b00476f69d8e72mr8625369pgj.291.1668811803039; Fri, 18 Nov 2022 14:50:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811803; cv=none; d=google.com; s=arc-20160816; b=EKg+3BopwpEWFGRQ6RK4mk05OloE1WU8ynvOLUzTZDAF3zeoZy73opdfnvFqRea1fv 3f3yd6DCsG0+T7q6L6xNDADk/shoSMF3kVJ1eCtHtjT51HmV0RFrG8NSRWDEHJBSbYmb venRcaB8eMMcd4dLl3guZMdapa94Vpaj9Xa6cuob/ItlK6aaH8O+voyODP0Av1jvzGW8 aT2E2KTfwlmq1fgQjV7es0WHbcSxzFo26E7OXMLIkME4jEh66AgQL8jqSm8cYidvKTi3 3IGxOc4lVNsaA8wVIfkPgGVsJjsk9Riw31kYdY9vqN9JZuUVZ9hkn8T+WAT5oUJLmyue lLsQ== 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=4Tpcn/h7M31TanxsuOE6aCzC7LZXm+aYIkT/rY/Zah4=; b=UO2d4v9m/9SLZcZek7uQ1n7cgqVlRvFt8YLiZxE2D0JSo1jPlhcDjWEd1z3d9Zyo6L lyn4hKqoE7s+yS99pV5dZcT3BUmqwYCeFnHV7v/80nWsDQ+2yD4MfetplKlTxwMVffBr mvw0Is263fhlvOKQzJ4nlJlRMpiw2t9yplKChalmTGUswIB4smzzu3I8pZjqZpfrwPgp C7l69H0iAbctBKc7JurEB9eCgxWAiTJ3RWvkXxjCvMLF8pFFverA8/iV/r6YMjPU1wen tBMQY6UJLFMV/5WmH+ubvfL9ebXnxjxD3vWkW5jcMjFxK2JrvYLM3xQEfee0kkTP0+vM 3zmQ== 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 f6-20020a631f06000000b0043961d06e6bsi4513113pgf.787.2022.11.18.14.49.50; Fri, 18 Nov 2022 14:50:03 -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 S232775AbiKRWtI (ORCPT + 99 others); Fri, 18 Nov 2022 17:49:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232235AbiKRWqt (ORCPT ); Fri, 18 Nov 2022 17:46:49 -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 3BC99B5C6A for ; Fri, 18 Nov 2022 14:46:36 -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 1owA7j-0007WR-OI; Fri, 18 Nov 2022 23:46:15 +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 1owA7f-005895-Nt; Fri, 18 Nov 2022 23:46:12 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7f-00Havx-3Q; Fri, 18 Nov 2022 23:46:11 +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 , Javier Martinez Canillas , Thomas Zimmermann , Dmitry Torokhov , Benjamin Mugnier 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 016/606] drm/bridge/analogix/anx78xx: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:50 +0100 Message-Id: <20221118224540.619276-17-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?1749876005154730099?= X-GMAIL-MSGID: =?utf-8?q?1749876005154730099?= 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/analogix/analogix-anx78xx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c b/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c index 5997049fde5b..a3a38bbe2786 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c +++ b/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c @@ -1214,8 +1214,7 @@ static const u16 anx78xx_chipid_list[] = { 0x7818, }; -static int anx78xx_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int anx78xx_i2c_probe(struct i2c_client *client) { struct anx78xx *anx78xx; struct anx78xx_platform_data *pdata; @@ -1390,7 +1389,7 @@ static struct i2c_driver anx78xx_driver = { .name = "anx7814", .of_match_table = of_match_ptr(anx78xx_match_table), }, - .probe = anx78xx_i2c_probe, + .probe_new = anx78xx_i2c_probe, .remove = anx78xx_i2c_remove, .id_table = anx78xx_id, };