summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorDarren Hart (VMware) <dvhart@infradead.org>2017-04-20 00:42:01 +0200
committerDarren Hart (VMware) <dvhart@infradead.org>2017-04-20 22:26:08 +0200
commitd8193cff33906e24ac1830ecb2ca95833d058a3a (patch)
tree1d2789be4866beab603911a8eee944248f865b46 /init
parentplatform/x86: hp-wmi: Cleanup local variable declarations (diff)
downloadlinux-d8193cff33906e24ac1830ecb2ca95833d058a3a.tar.xz
linux-d8193cff33906e24ac1830ecb2ca95833d058a3a.zip
platform/x86: hp-wmi: Standardize enum usage for constants
Use enums consistently throughout the hp-wmi driver for groups of related constants. Use hex and align the assignment within groups. Move the *QUERY constants into an enum, create a new enum defining the READ, WRITE, and ODM constants and use them instead of 0 and 1 at the call sites. Set the command directly instead of using the ternary operator since both 1 and 3 as previously documented would result in the command being set to 0x2. Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org> Tested-by: Carlo Caione <carlo@endlessm.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions