Re: [PATCH] iio: accel: mma8452: add ACPI match table
From: Joshua Crofts
Date: Fri Aug 07 2026 - 11:38:20 EST
On Fri, 7 Aug 2026 at 16:11, veeenjoyer24 <danilsirin24@xxxxxxxxx> wrote:
>
> The mma8452 driver supports obtaining chip-specific data through
> i2c_get_match_data(), but only provides OF and I2C match tables.
>
> On ACPI-based x86 systems, compatible devices such as the MMA8653 are
> enumerated via ACPI. Without an ACPI match table, the driver never
> binds to those devices.
>
> Add an ACPI match table mapping the supported devices to the existing
> chip information structures.
>
> Tested on a Bay Trail tablet exposing an ACPI device with HID
> "MMA8653". With this change the driver successfully probes, reads
> the expected chip ID (0x5a), and registers an IIO device.
>
> Signed-off-by: veeenjoyer24 <danilsirin24@xxxxxxxxx>
Please use your real name in the Signed-off-by tag.
Kind regards,
Joshua Crofts