On Fri, Mar 19, 2021 at 6:58 PM Gwendal Grignou <gwendal@xxxxxxxxxxxx> wrote: > > Current sx9310 driver only support device tree properties. > To be able to use sensor on Intel platfrom, add support to read ACPI by platform It's not Intel specific, but any which is using ACPI. Luckily it's a cover letter only :-) > converting calls of_property_read_...() to device_property_read_...(). > > A bug was uncovered: if "semtech,combined-sensors" array was less than > 4 entries, its content would be ignored, as of_property_read_u32_array > would return -EOVERFLOW. > > Gwendal Grignou (2): > iio: sx9310: Fix access to variable DT array > iio: sx9310: Support ACPI properties > > drivers/iio/proximity/sx9310.c | 56 +++++++++++++++++++++------------- > 1 file changed, 34 insertions(+), 22 deletions(-) > > -- > 2.31.0.291.g576ba9dcdaf-goog > -- With Best Regards, Andy Shevchenko