diff options
author | 2017-04-19 12:48:07 +0300 | |
---|---|---|
committer | 2017-04-19 12:32:26 +0200 | |
commit | d485ef43072e543e81c08276999987039dfa2755 (patch) | |
tree | 26f2696e68e658dc9a6039dc0c56ee36c9a47fb8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 4.11-rc7 (diff) | |
download | linux-rng-d485ef43072e543e81c08276999987039dfa2755.tar.xz linux-rng-d485ef43072e543e81c08276999987039dfa2755.zip |
ACPI / video: get rid of magic numbers and use enum instead
The first two items in the _BCL method response are special:
- Level when machine has full power
- Level when machine is on batteries
- .... actual supported levels go there ....
So this commits adds an enum and uses its descriptive elements
throughout the code, instead of magic numbers.
Signed-off-by: Dmitry Frank <mail@dmitryfrank.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions