Skip to contentSkip to conversation

iio: proximity: sx9500: Fix typo in ACPI ID

PATCH In review Andy Shevchenko 1 participant 2 messages Nov 1, 2017 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: proximity: sx9500: Fix typo in ACPI ID

It seems no one before even tried this device on Intel based platforms. I suddenly realized that there is a typo by a) looking into prototype hardware, and b) googling for both variants (current and proposed).

Thus, fix a typo in the driver to enable this sensor.

Fixes 4193c0f1d863 ("iio: driver for Semtech SX9500 proximity solution")
---
 drivers/iio/proximity/sx9500.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/proximity/sx9500.c +1 -1
index 53c5d653e780..8f417ccacf22 100644
@@ -1021,7 +1021,7 @@ static const struct dev_pm_ops sx9500_pm_ops = {
 };
 
 static const struct acpi_device_id sx9500_acpi_match[] = {
-	{"SSX9500", 0},
+	{"SASX9500", 0},
 	{ },
 };
 MODULE_DEVICE_TABLE(acpi, sx9500_acpi_match);
Signature · 1 line
2.14.2
#1 lore raw
Quoted 6 lines · Andy Shevchenko

It seems no one before even tried this device on Intel based platforms.
I suddenly realized that there is a typo by a) looking into prototype hardware, and b) googling for both variants (current and proposed).

Thus, fix a typo in the driver to enable this sensor.

I think to be on the safest side we may just add a new ID.

Quoted 22 lines
Fixes 4193c0f1d863 ("iio: driver for Semtech SX9500 proximity

solution")

---
 drivers/iio/proximity/sx9500.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/proximity/sx9500.c +1 -1
index 53c5d653e780..8f417ccacf22 100644
@@ -1021,7 +1021,7 @@ static const struct dev_pm_ops sx9500_pm_ops = {
 };
 
 static const struct acpi_device_id sx9500_acpi_match[] = {
-	{"SSX9500", 0},
+	{"SASX9500", 0},
 	{ },
 };
 MODULE_DEVICE_TABLE(acpi, sx9500_acpi_match);
Signature · 2 lines
Andy Shevchenko <[email protected]>
Intel Finland Oy