platform/x86: hp-wmi: Fix error value for hp_wmi_tablet_state
authorCarlo Caione <carlo@endlessm.com>
Sun, 9 Apr 2017 13:56:07 +0000 (15:56 +0200)
committerDarren Hart (VMware) <dvhart@infradead.org>
Fri, 14 Apr 2017 15:26:34 +0000 (08:26 -0700)
commitc7dfc2facbd69dad89b75e13c608da709668dcd0
tree2c94ea4c24ef27aa2b7650ef59b8f363488ff64b
parent05aa43cce0e287a87e686931d65707953bc60d07
platform/x86: hp-wmi: Fix error value for hp_wmi_tablet_state

hp_wmi_tablet_state() fails to return the correct error code when
hp_wmi_perform_query() returns the HP WMI query specific error code
that is a positive value.

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