Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio:light:apds9960 add detection for MSHW0184 ACPI device in apds9960 driver

The device is used in the Microsoft Surface Book 3 and Surface Pro 7

Signed-off-by: Max Leiter <maxwell.leiter@gmail.com>
Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com>
Link: https://lore.kernel.org/r/20201220015057.107246-1-maxwell.leiter@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Max Leiter and committed by
Jonathan Cameron
b9968e16 4df68509

+8
+8
drivers/iio/light/apds9960.c
··· 8 8 * TODO: gesture + proximity calib offsets 9 9 */ 10 10 11 + #include <linux/acpi.h> 11 12 #include <linux/module.h> 12 13 #include <linux/init.h> 13 14 #include <linux/interrupt.h> ··· 1114 1113 }; 1115 1114 MODULE_DEVICE_TABLE(i2c, apds9960_id); 1116 1115 1116 + static const struct acpi_device_id apds9960_acpi_match[] = { 1117 + { "MSHW0184" }, 1118 + { } 1119 + }; 1120 + MODULE_DEVICE_TABLE(acpi, apds9960_acpi_match); 1121 + 1117 1122 static const struct of_device_id apds9960_of_match[] = { 1118 1123 { .compatible = "avago,apds9960" }, 1119 1124 { } ··· 1131 1124 .name = APDS9960_DRV_NAME, 1132 1125 .of_match_table = apds9960_of_match, 1133 1126 .pm = &apds9960_pm_ops, 1127 + .acpi_match_table = apds9960_acpi_match, 1134 1128 }, 1135 1129 .probe = apds9960_probe, 1136 1130 .remove = apds9960_remove,