Re: [PATCH v1] iio: light: acpi-als: Check ACPI_COMPANION() against NULL
From: Jonathan Cameron
Date: Sat May 16 2026 - 08:12:42 EST
On Tue, 12 May 2026 19:47:48 +0300
Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
> On Tue, May 12, 2026 at 06:28:26PM +0200, Rafael J. Wysocki wrote:
>
> > Every platform driver can be forced to match a device that doesn't match
> > its list of device IDs because of device_match_driver_override(), so
> > platform drivers that rely on the existence of a device's ACPI companion
> > object need to verify its presence.
> >
> > Accordingly, add a requisite ACPI_COMPANION() check against NULL to the
> > acpi-als IIO driver.
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
>
Applied thanks.
Jonathan