media: i2c: ov7670: Drop CONFIG_OF ifdeffery
authorBiju Das <biju.das.jz@bp.renesas.com>
Sun, 10 Sep 2023 15:00:33 +0000 (16:00 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 27 Sep 2023 07:39:57 +0000 (09:39 +0200)
commit2d13621c6b7b5290c8114c8c33e8e66297ce26bf
tree3dcc831c67cb6029b3782942f81fd0f8df86efe2
parentdd2dbf3cbd3f091f20860586f1115eb0fa513d5d
media: i2c: ov7670: Drop CONFIG_OF ifdeffery

Drop of_match_ptr() from ov7670_driver and get rid of ugly CONFIG_OF
if check. This slightly increases the size of ov7670_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: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/ov7670.c