Re: [PATCH] iio: accel: mma8452: add ACPI match table

Joshua Crofts <[email protected]>
Newsgroups org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel
Message-ID <CALoEA-zR7Z75k3uNRD_Swqf7G0+mYmFkPfXTJ5O-mBr6_iu8qA@mail.gmail.com>
On Fri, 7 Aug 2026 at 16:11, veeenjoyer24 <[email protected]> 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 <[email protected]>

Please use your real name in the Signed-off-by tag.

Kind regards,
Joshua Crofts
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.