aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2019-10-26 22:24:31 +0200
committerRafael J. Wysocki <[email protected]>2019-10-28 15:40:26 +0100
commit065bd4d35b3fb4484c61fc40a51eeffd5abe52e8 (patch)
tree7cd29c2d37ace5fb5adf96bc4fee21aad92cac4b /tools/perf/scripts/python/export-to-postgresql.py
parentd6d5df1db6e9d7f8f76d2911707f7d5877251b02 (diff)
ACPI: button: Refactor lid_init_state module parsing code
Replace the weird strncmp() calls in param_set_lid_init_state(), which look to me like they will also accept things like "opennnn" to use sysfs_match_string instead. Also rewrite param_get_lid_init_state() using the new lid_init_state_str array. Instead of doing a straightforward one line replacement, e.g. : return sprintf(buffer, lid_init_state_str[lid_init_state]); print all possible values, putting [] around the selected value, so that users can easily find out what the possible values are. Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions