diff options
author | Barnabás Pőcze <[email protected]> | 2021-02-03 21:55:53 +0000 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2021-02-04 10:21:04 +0100 |
commit | 00641c086d2d929a770afcd8d637655625664eae (patch) | |
tree | e131b3b3964a4ea25dee2abba3164a0af18ed7a0 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | c81f241081b8dd6796d9f29fb4f264aa997311cb (diff) |
platform/x86: ideapad-laptop: misc. device attribute changes
Do not handle zero length buffer separately. Use kstrtouint() instead
of sscanf(). Use kstrtobool() in store_ideapad_cam(). These
introduce minor ABI changes, but it is expected that no users rely
on the previous behavior. Thus the change is deemed justifed.
Additionally, use `!!` to convert to `int` and use the "%d" format
specifier in sysfs_emit() for boolean-like attributes.
Signed-off-by: Barnabás Pőcze <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions