@@ -376,8 +376,10 @@ static int get_lcd_level(void)
status =
acpi_evaluate_integer(fujitsu->acpi_handle, "GBLL", NULL, &state);
- if (status < 0)
- return status;
+ if (ACPI_FAILURE(status)) {
+ pr_warning("%s failed, acpi error: %u\n", __func__, status);
+ return -EINVAL;
+ }
fujitsu->brightness_level = state & 0x0fffffff;
@@ -398,8 +400,10 @@ static int get_max_brightness(void)
status =
acpi_evaluate_integer(fujitsu->acpi_handle, "RBLL", NULL, &state);
- if (status < 0)
- return status;
+ if (ACPI_FAILURE(status)) {
+ pr_warning("%s failed, acpi error: %u\n", __func__, status);
+ return -EINVAL;
+ }
fujitsu->max_brightness = state;