]> git.itanic.dy.fi Git - linux-stable/commit
iio: accel: adxl345: Add ACPI HID table
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Tue, 22 Feb 2022 09:00:06 +0000 (11:00 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 26 Feb 2022 19:11:20 +0000 (19:11 +0000)
commitb9493d595226b598ed79b3769f7038fda1a5391b
treedad77106010f49496ca686d9a6494d8520ebb003
parent266be7cb11c75f930a5902bc6199ff50ca4282a1
iio: accel: adxl345: Add ACPI HID table

x86 boards may use ACPI HID "ADS0345" for adxl345 device.

Analog replied:
"ADS034X is not a valid PNP ID. ADS0345 would be.
I'm not aware that this ID is already taken.
Feel free to submit a mainline Linux input mailing list patch."

So add an ACPI match table for that accordingly.

Since ACPI device may not match to any I2C ID, use the name and type
directly from ACPI ID table in absence of I2C ID.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220222090009.2060-5-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl345_i2c.c
drivers/iio/accel/adxl345_spi.c