Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

IIO: acpi-als: Get rid of ACPICA message printing

Use acpi_evaluation_failure_warn() introduced previously instead of
the ACPICA-specific ACPI_EXCEPTION() macro to log warning messages
regarding ACPI object evaluation failures and drop the
ACPI_MODULE_NAME() definition only used by the ACPICA message
printing macro.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

+1 -3
+1 -3
drivers/iio/light/acpi-als.c
··· 26 26 #define ACPI_ALS_DEVICE_NAME "acpi-als" 27 27 #define ACPI_ALS_NOTIFY_ILLUMINANCE 0x80 28 28 29 - ACPI_MODULE_NAME("acpi-als"); 30 - 31 29 /* 32 30 * So far, there's only one channel in here, but the specification for 33 31 * ACPI0008 says there can be more to what the block can report. Like ··· 89 91 &temp_val); 90 92 91 93 if (ACPI_FAILURE(status)) { 92 - ACPI_EXCEPTION((AE_INFO, status, "Error reading ALS %s", prop)); 94 + acpi_evaluation_failure_warn(als->device->handle, prop, status); 93 95 return -EIO; 94 96 } 95 97