[PATCH] drm/bridge/analogix/anx78xx: Extend match data support for ID table
Doug Anderson
dianders at chromium.org
Wed Aug 23 14:26:13 UTC 2023
Hi,
On Sun, Aug 13, 2023 at 1:51 AM Biju Das <biju.das.jz at bp.renesas.com> wrote:
>
> 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 <biju.das.jz at bp.renesas.com>
> ---
> This patch is only compile tested
> ---
> drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
It seems like this is a sign that nobody is actually using the i2c
match table. It was probably added because the original author just
copy/pasted from something else, but obviously it hasn't been kept up
to date and isn't working. While your patch would make it work for
"anx7814", it wouldn't make it work for any of the other similar
parts. ...and yes, you could add support for those parts in your patch
too, but IMO it makes more sense to just delete the i2c table and when
someone has an actual need then they can re-add it.
Sound OK?
-Doug
More information about the dri-devel
mailing list