platform/x86: ideapad-laptop: use appropriately typed variable to store the return...
authorBarnabás Pőcze <pobrn@protonmail.com>
Wed, 3 Feb 2021 21:54:30 +0000 (21:54 +0000)
committerHans de Goede <hdegoede@redhat.com>
Thu, 4 Feb 2021 09:20:16 +0000 (10:20 +0100)
commit803be832ac5698f54afa0c10458f59ce4104aa0f
tree85c77063d49f0c733e04307e430a028b2c334e84
parente1a39a4460c17fa397020cd064744a908e2eac71
platform/x86: ideapad-laptop: use appropriately typed variable to store the return value of ACPI methods

Use a variable with type `acpi_status` to store the return value of
ACPI methods instead of a plain `int`. And use ACPI_{SUCCESS,FAILURE}
macros where possible instead of direct comparison.

Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210203215403.290792-4-pobrn@protonmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/ideapad-laptop.c