platform/x86: hp-wmi: Fix cast to smaller integer type warning
authorHans de Goede <hdegoede@redhat.com>
Mon, 23 Jan 2023 13:28:24 +0000 (14:28 +0100)
committerHans de Goede <hdegoede@redhat.com>
Tue, 24 Jan 2023 12:41:13 +0000 (13:41 +0100)
commitce95010ef62d4bf470928969bafc9070ae98cbb1
treeb4185977f45a1a92fdc29425faf5e9dc09cca9cf
parent062c1394cbda95b0c51839b5221c7267e1e7f57e
platform/x86: hp-wmi: Fix cast to smaller integer type warning

Fix the following compiler warning:

drivers/platform/x86/hp/hp-wmi.c:551:24: warning: cast to smaller integer
   type 'enum hp_wmi_radio' from 'void *' [-Wvoid-pointer-to-enum-cast]

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230123132824.660062-1-hdegoede@redhat.com
drivers/platform/x86/hp/hp-wmi.c