platform/x86: hp-wmi: Cleanup wireless get_(hw|sw)state functions
authorDarren Hart (VMware) <dvhart@infradead.org>
Thu, 20 Apr 2017 01:00:01 +0000 (18:00 -0700)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 20 Apr 2017 20:26:15 +0000 (13:26 -0700)
commitc7ef144c12033052c956ca9d80b2dfc19c73d939
treec64a013ae377f7c1a7c213728dbb0777019bd514
parentea621d9fe372b4a6ca2b513c13a37c24a668c35f
platform/x86: hp-wmi: Cleanup wireless get_(hw|sw)state functions

Use the new hp_wmi_read_int() function and add a WARN_ONCE() to the TBD
regarding passing the error through. These are used in a null return
function unfortunately.

Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Tested-by: Carlo Caione <carlo@endlessm.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
drivers/platform/x86/hp-wmi.c