]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: mt9m114: Add ACPI enumeration support
authorHans de Goede <johannes.goede@oss.qualcomm.com>
Tue, 30 Dec 2025 17:03:11 +0000 (18:03 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 14 Jan 2026 22:33:04 +0000 (23:33 +0100)
Add support for the mt9m114 sensor being enumerated through ACPI
using the INT33F0 HID as found on the Asus T100TA.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/mt9m114.c

index 2c41169c0212c32963c4a0f8e5114d85b3d44aee..16b0ace15813761371a7995df083d9e949049cfc 100644 (file)
@@ -2652,11 +2652,18 @@ static const struct of_device_id mt9m114_of_ids[] = {
 };
 MODULE_DEVICE_TABLE(of, mt9m114_of_ids);
 
+static const struct acpi_device_id mt9m114_acpi_ids[] = {
+       { "INT33F0" },
+       { /* sentinel */ },
+};
+MODULE_DEVICE_TABLE(acpi, mt9m114_acpi_ids);
+
 static struct i2c_driver mt9m114_driver = {
        .driver = {
                .name   = "mt9m114",
                .pm     = &mt9m114_pm_ops,
                .of_match_table = mt9m114_of_ids,
+               .acpi_match_table = mt9m114_acpi_ids,
        },
        .probe          = mt9m114_probe,
        .remove         = mt9m114_remove,