diff options
author | Darren Hart (VMware) <dvhart@infradead.org> | 2017-04-19 15:42:01 -0700 |
---|---|---|
committer | Darren Hart (VMware) <dvhart@infradead.org> | 2017-04-20 13:26:08 -0700 |
commit | d8193cff33906e24ac1830ecb2ca95833d058a3a (patch) | |
tree | 1d2789be4866beab603911a8eee944248f865b46 /.gitignore | |
parent | 3bf9310a573d923483526b25c6ec32233748a989 (diff) |
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 '.gitignore')
0 files changed, 0 insertions, 0 deletions