media: i2c: adv7180: Drop CONFIG_OF ifdeffery
authorBiju Das <biju.das.jz@bp.renesas.com>
Sun, 10 Sep 2023 15:22:00 +0000 (16:22 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Sat, 7 Oct 2023 08:55:45 +0000 (10:55 +0200)
commit56a8c694c524d146a2d0b06aaff84544be9f5fa9
tree0c5c169e415790136da710b1c61fff20db3fc477
parenta142f7bb8908902120480ce3dbd799a9c63c84a2
media: i2c: adv7180: Drop CONFIG_OF ifdeffery

Drop of_match_ptr() from adv7180_driver and get rid of ugly CONFIG_OF
if check. This slightly increases the size of adv7180_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/adv7180.c