From patchwork Sun Aug 13 08:51:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 13352041 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A4C58C04A6A for ; Sun, 13 Aug 2023 08:51:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C62BE10E07D; Sun, 13 Aug 2023 08:51:47 +0000 (UTC) Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by gabe.freedesktop.org (Postfix) with ESMTP id 7B78010E07D for ; Sun, 13 Aug 2023 08:51:45 +0000 (UTC) X-IronPort-AV: E=Sophos;i="6.01,169,1684767600"; d="scan'208";a="172815530" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 13 Aug 2023 17:51:44 +0900 Received: from localhost.localdomain (unknown [10.226.92.13]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 2114740083E6; Sun, 13 Aug 2023 17:51:38 +0900 (JST) From: Biju Das To: Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Subject: [PATCH] drm/bridge/analogix/anx78xx: Extend match data support for ID table Date: Sun, 13 Aug 2023 09:51:37 +0100 Message-Id: <20230813085137.74608-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Marek_Beh=C3=BAn?= , Zhu Wang , Jonas Karlman , dri-devel@lists.freedesktop.org, Douglas Anderson , Jernej Skrabec , Javier Martinez Canillas , linux-renesas-soc@vger.kernel.org, Andy Shevchenko , Laurent Pinchart , =?utf-8?q?Uwe_Kleine-?= =?utf-8?q?K=C3=B6nig?= , Biju Das Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The driver has ID table, but still it uses device_get_match_data() for retrieving match data. Replace device_get_match_data-> i2c_get_match_data() for retrieving OF/ACPI/I2C match data by adding match data for ID table similar to OF table. Signed-off-by: Biju Das --- This patch is only compile tested --- drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c b/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c index 800555aef97f..f56a46b993a7 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c +++ b/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c @@ -1259,7 +1259,7 @@ static int anx78xx_i2c_probe(struct i2c_client *client) } /* Map slave addresses of ANX7814 */ - i2c_addresses = device_get_match_data(&client->dev); + i2c_addresses = i2c_get_match_data(client); for (i = 0; i < I2C_NUM_ADDRESSES; i++) { struct i2c_client *i2c_dummy; @@ -1368,7 +1368,7 @@ static void anx78xx_i2c_remove(struct i2c_client *client) } static const struct i2c_device_id anx78xx_id[] = { - { "anx7814", 0 }, + { "anx7814", (kernel_ulong_t)anx781x_i2c_addresses }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(i2c, anx78xx_id);