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

hwmon: (max31722) Remove non-standard ACPI device IDs

Valid Maxim Integrated ACPI device IDs would start with MXIM,
not with MAX1. On top of that, ACPI device IDs reflecting chip names
are almost always invalid.

Remove the invalid ACPI IDs.

Fixes: 04e1e70afec6 ("hwmon: (max31722) Add support for MAX31722/MAX31723 temperature sensors")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

-9
-9
drivers/hwmon/max31722.c
··· 6 6 * Copyright (c) 2016, Intel Corporation. 7 7 */ 8 8 9 - #include <linux/acpi.h> 10 9 #include <linux/hwmon.h> 11 10 #include <linux/hwmon-sysfs.h> 12 11 #include <linux/kernel.h> ··· 132 133 {"max31723", 0}, 133 134 {} 134 135 }; 135 - 136 - static const struct acpi_device_id __maybe_unused max31722_acpi_id[] = { 137 - {"MAX31722", 0}, 138 - {"MAX31723", 0}, 139 - {} 140 - }; 141 - 142 136 MODULE_DEVICE_TABLE(spi, max31722_spi_id); 143 137 144 138 static struct spi_driver max31722_driver = { 145 139 .driver = { 146 140 .name = "max31722", 147 141 .pm = &max31722_pm_ops, 148 - .acpi_match_table = ACPI_PTR(max31722_acpi_id), 149 142 }, 150 143 .probe = max31722_probe, 151 144 .remove = max31722_remove,