drm: bridge: it66121: Extend match support for OF tables
authorBiju Das <biju.das.jz@bp.renesas.com>
Fri, 18 Aug 2023 19:18:16 +0000 (20:18 +0100)
committerRobert Foss <rfoss@kernel.org>
Tue, 5 Sep 2023 14:16:15 +0000 (16:16 +0200)
commitc11c1a50573e106aa60eed977d199c424c6469e3
treee4ef3b6b40cbf078035113e2491bd42d577c2c23
parentc3ba2ada133de52a713f6702afcd1de7443156ae
drm: bridge: it66121: Extend match support for OF tables

The driver has OF match table, still it uses ID lookup table for
retrieving match data. Currently the driver is working on the
assumption that a I2C device registered via OF will always match a
legacy I2C device ID. The correct approach is to have an OF device ID
table using of_device_match_data() if the devices are registered via OF.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230818191817.340360-2-biju.das.jz@bp.renesas.com
drivers/gpu/drm/bridge/ite-it66121.c