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: imu: kmx61: Drop most likely fake ACPI ID

The commit in question does not proove that ACPI ID exists.
Quite likely it was a cargo cult addition while doint that
for DT-based enumeration. Drop most likely fake ACPI ID.

Googling for KMX61021L gives no useful results in regard to DSDT.
Moreover, the official vendor ID in the registry for Kionix is KIOX.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patch.msgid.link/20240911213110.2893562-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Andy Shevchenko and committed by
Jonathan Cameron
6831670f a4b7064d

+3 -22
+3 -22
drivers/iio/imu/kmx61.c
··· 7 7 * IIO driver for KMX61 (7-bit I2C slave address 0x0E or 0x0F). 8 8 */ 9 9 10 - #include <linux/module.h> 11 10 #include <linux/i2c.h> 12 - #include <linux/acpi.h> 13 11 #include <linux/interrupt.h> 12 + #include <linux/mod_devicetable.h> 13 + #include <linux/module.h> 14 14 #include <linux/pm.h> 15 15 #include <linux/pm_runtime.h> 16 + 16 17 #include <linux/iio/iio.h> 17 18 #include <linux/iio/sysfs.h> 18 19 #include <linux/iio/events.h> ··· 1218 1217 return IRQ_HANDLED; 1219 1218 } 1220 1219 1221 - static const char *kmx61_match_acpi_device(struct device *dev) 1222 - { 1223 - const struct acpi_device_id *id; 1224 - 1225 - id = acpi_match_device(dev->driver->acpi_match_table, dev); 1226 - if (!id) 1227 - return NULL; 1228 - return dev_name(dev); 1229 - } 1230 - 1231 1220 static struct iio_dev *kmx61_indiodev_setup(struct kmx61_data *data, 1232 1221 const struct iio_info *info, 1233 1222 const struct iio_chan_spec *chan, ··· 1284 1293 1285 1294 if (id) 1286 1295 name = id->name; 1287 - else if (ACPI_HANDLE(&client->dev)) 1288 - name = kmx61_match_acpi_device(&client->dev); 1289 1296 else 1290 1297 return -ENODEV; 1291 1298 ··· 1485 1496 RUNTIME_PM_OPS(kmx61_runtime_suspend, kmx61_runtime_resume, NULL) 1486 1497 }; 1487 1498 1488 - static const struct acpi_device_id kmx61_acpi_match[] = { 1489 - {"KMX61021", 0}, 1490 - {} 1491 - }; 1492 - 1493 - MODULE_DEVICE_TABLE(acpi, kmx61_acpi_match); 1494 - 1495 1499 static const struct i2c_device_id kmx61_id[] = { 1496 1500 { "kmx611021" }, 1497 1501 {} ··· 1495 1513 static struct i2c_driver kmx61_driver = { 1496 1514 .driver = { 1497 1515 .name = KMX61_DRV_NAME, 1498 - .acpi_match_table = kmx61_acpi_match, 1499 1516 .pm = pm_ptr(&kmx61_pm_ops), 1500 1517 }, 1501 1518 .probe = kmx61_probe,