platform/x86: asus-wmi: corrections to egpu safety check
authorLuke D. Jones <luke@ljones.dev>
Wed, 30 Aug 2023 02:29:08 +0000 (14:29 +1200)
committerHans de Goede <hdegoede@redhat.com>
Wed, 30 Aug 2023 13:25:18 +0000 (15:25 +0200)
commitacce85a7dd28eac3858d44230f4c65985d0f271c
tree83095d20cb025c7b191640922ed1e368c5ade53a
parent06469a8dc37598176937dac1f6ca41e8f0db2b81
platform/x86: asus-wmi: corrections to egpu safety check

An incorrect if statement was preventing the enablement of the egpu.

Fixes: d49f4d1a30ac ("platform/x86: asus-wmi: don't allow eGPU switching if eGPU not connected")
Signed-off-by: Luke D. Jones <luke@ljones.dev>
Link: https://lore.kernel.org/r/20230830022908.36264-2-luke@ljones.dev
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/asus-wmi.c