Re: [PATCH v1] iio: light: acpi-als: Check ACPI_COMPANION() against NULL

From: Andy Shevchenko

Date: Tue May 12 2026 - 12:55:16 EST


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>

--
With Best Regards,
Andy Shevchenko