media: tvp541x: Drop CONFIG_OF ifdeffery
authorBiju Das <biju.das.jz@bp.renesas.com>
Sat, 23 Sep 2023 16:36:40 +0000 (17:36 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Sat, 7 Oct 2023 08:55:45 +0000 (10:55 +0200)
commit2fa264283d207ab4213e2b88259db1e7ce5d5d1d
tree2dcbc28a51a346455f2965cf53e63be60e24931e
parent0b135b89212f6e02ba8b5938973a5d3dcf0e548b
media: tvp541x: Drop CONFIG_OF ifdeffery

Drop of_match_ptr() from tvp514x_driver and get rid of ugly CONFIG_OF
if check. This slightly increases the size of tvp514x_driver on non-OF
system and shouldn't be an issue.

Add mod_devicetable.h include.

It also allows, in case if needed, to enumerate this device via ACPI with
PRP0001 magic.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/tvp514x.c