OSDN Git Service

platform/x86: dell-ddv: Replace EIO with ENOMSG
authorArmin Wolf <W_Armin@gmx.de>
Thu, 26 Jan 2023 19:40:19 +0000 (20:40 +0100)
committerHans de Goede <hdegoede@redhat.com>
Fri, 3 Feb 2023 09:01:50 +0000 (10:01 +0100)
commit8b52501c408b3ae5f2c5768a74e3db2fa83b4c52
tree2391c44c4ee4c12f2c763b3b7ec31ffdd4a535e1
parent36d44825faf42903a0b92dd49a9620e2cbdcbe18
platform/x86: dell-ddv: Replace EIO with ENOMSG

When the ACPI WMI interface returns a valid ACPI object
which has the wrong type, then ENOMSG instead of EIO
should be returned, since the WMI method was still
successfully evaluated.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20230126194021.381092-4-W_Armin@gmx.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/dell/dell-wmi-ddv.c