aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_bitmap.c
diff options
context:
space:
mode:
authorBarnabás Pőcze <pobrn@protonmail.com>2021-02-03 21:55:53 +0000
committerHans de Goede <hdegoede@redhat.com>2021-02-04 10:21:04 +0100
commit00641c086d2d929a770afcd8d637655625664eae (patch)
treee131b3b3964a4ea25dee2abba3164a0af18ed7a0 /lib/test_bitmap.c
parentplatform/x86: ideapad-laptop: always propagate error codes from device attributes' show() callback (diff)
downloadlinux-dev-00641c086d2d929a770afcd8d637655625664eae.tar.xz
linux-dev-00641c086d2d929a770afcd8d637655625664eae.zip
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 <pobrn@protonmail.com> Link: https://lore.kernel.org/r/20210203215403.290792-16-pobrn@protonmail.com Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions