]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: mt9p031: Drop CONFIG_OF ifdeffery
authorBiju Das <biju.das.jz@bp.renesas.com>
Sun, 10 Sep 2023 16:01:26 +0000 (17:01 +0100)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 24 Aug 2024 22:42:02 +0000 (01:42 +0300)
commit8c8389bba49d8cd0ffc5bf2b27cb3233268a45d5
tree26a9db10c04ea7ed43f78a8da9393b489ea1088c
parentc551551b677f213ef12d7ba213483f17304790a6
media: mt9p031: Drop CONFIG_OF ifdeffery

Drop of_match_ptr() from mt9p031_i2c_driver and get rid of ugly CONFIG_OF
if check. This slightly increases the size of mt9p031_i2c_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@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Link: https://lore.kernel.org/r/20230910160126.70122-3-biju.das.jz@bp.renesas.com
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/media/i2c/mt9p031.c