From patchwork Fri Nov 18 22:35:55 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: 22557 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447354wrr; Fri, 18 Nov 2022 14:49:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7QFDWhXNb0foEQtY++EYvofBzDw3broi43mvzc5bsVxr53ulIN/ElZLhgnmDVp5C+w+61d X-Received: by 2002:aa7:c7d5:0:b0:44e:bee5:4242 with SMTP id o21-20020aa7c7d5000000b0044ebee54242mr7956645eds.128.1668811752827; Fri, 18 Nov 2022 14:49:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811752; cv=none; d=google.com; s=arc-20160816; b=BtSnJSLlWf6A6sGIJlmfvQgUBzFRV2kHaPpR69qu6PewJFTnvn+SCNTOp9U74KAYWB WywUUJBEa07pvd8B86RA9blaTEty7SJmtLADs5Dpsa4RxpdSWr3WPTasuMjjykelrCiA UMqgR5LqcaIt8i+SOH5s2eqTyTRDbQSEydlRQaQag3aHKr8QNchKrlg1Ls0kdLJn7Wh7 3Vp594yqLoQQLKE9KiFTK+AzmwAWo2rNLYDWrDFZmqVXjqIZ0RNkuW2toKRYmjGQ3HWT qE/sLjzj0z53Tjfnmk8+3eqoldYoikm4Bdx3wKyBkjvFXXkPIAl+/iMMPxxGCpFAvbtE 7ujQ== 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=PC6P27gGXrf0Abn7DpZHGjsn8vWWmMmmb4SvpnTRSt8=; b=pJNP+j2c9tk7AtBqjSn5Qw9j8xR95xt7yvhwlfmuiVHHoBJ1hodYDeQ/4s7cUGQM6T i/pE5/TIdcmK+kp2jQHo/ds1v3nTtyrZsz4kkRPxqockt1uusiW34NzC6X5ipdosApEV jmm2wi5iBaA1/7Y684CJ2bWZRElyl5DlG2Jcc5DENsUs87FfIpaow29qVcLKxKz+sLtw iLJUY1Gny+60vOQFR7v5a078xTEkOHzx8NqWtY1q3d2qpV/OfRaIEuo61H43amrNoEZP ekAPhbvlznngTi2+cmFL823Sx5JeIUefZ4vQ2db4ISckhO5E0ow1MkbQQ44IEPO62/6g 4O1w== 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 dp16-20020a170906c15000b007ae377adb6asi4088820ejc.628.2022.11.18.14.48.48; Fri, 18 Nov 2022 14:49:12 -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 S232912AbiKRWr6 (ORCPT + 99 others); Fri, 18 Nov 2022 17:47:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232051AbiKRWqi (ORCPT ); Fri, 18 Nov 2022 17:46:38 -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 3E18EA4145 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 1owA7j-0007ag-3a; 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 1owA7h-00589U-5w; Fri, 18 Nov 2022 23:46:14 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7g-00HawJ-9F; Fri, 18 Nov 2022 23:46:12 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Phong LE , Neil Armstrong , Andrzej Hajda , 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 021/606] drm/bridge: it66121: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:55 +0100 Message-Id: <20221118224540.619276-22-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?1749875952236622293?= X-GMAIL-MSGID: =?utf-8?q?1749875952236622293?= 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/ite-it66121.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/ite-it66121.c index 4f6f1deba28c..7476cfbf9585 100644 --- a/drivers/gpu/drm/bridge/ite-it66121.c +++ b/drivers/gpu/drm/bridge/ite-it66121.c @@ -1512,8 +1512,7 @@ static int it66121_audio_codec_init(struct it66121_ctx *ctx, struct device *dev) return PTR_ERR_OR_ZERO(ctx->audio.pdev); } -static int it66121_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int it66121_probe(struct i2c_client *client) { u32 revision_id, vendor_ids[2] = { 0 }, device_ids[2] = { 0 }; struct device_node *ep; @@ -1649,7 +1648,7 @@ static struct i2c_driver it66121_driver = { .name = "it66121", .of_match_table = it66121_dt_match, }, - .probe = it66121_probe, + .probe_new = it66121_probe, .remove = it66121_remove, .id_table = it66121_id, };