platform/x86: hp-wmi: Refactor redundant HPWMI_READ functions
authorDarren Hart (VMware) <dvhart@infradead.org>
Wed, 19 Apr 2017 23:26:06 +0000 (16:26 -0700)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 20 Apr 2017 20:26:15 +0000 (13:26 -0700)
commitea621d9fe372b4a6ca2b513c13a37c24a668c35f
tree33ae2b4db01d96c204781dbd6a1ae38404779a45
parentd8193cff33906e24ac1830ecb2ca95833d058a3a
platform/x86: hp-wmi: Refactor redundant HPWMI_READ functions

Several functions perform the same WMI read int with different query
arguments. Refactor this into a single hp_wmi_read_int function.

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