platform/x86: ideapad-laptop: use sysfs_emit()
authorBarnabás Pőcze <pobrn@protonmail.com>
Wed, 3 Feb 2021 21:54:56 +0000 (21:54 +0000)
committerHans de Goede <hdegoede@redhat.com>
Thu, 4 Feb 2021 09:20:34 +0000 (10:20 +0100)
commitd6b508896afedc0c4197cd5a6c4b9a24e64d05c9
treeae83a79272cbb9eb8c2471c7dbae9547acf98d07
parentcaa315b8de372890aedfa612b91e649168a31187
platform/x86: ideapad-laptop: use sysfs_emit()

sysfs_emit() has been introduced to make it less ambiguous
which function is preferred when writing to the output
buffer in a device attribute's show() callback. Convert the
ideapad-laptop module to utilize this new helper function.

Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210203215403.290792-7-pobrn@protonmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/ideapad-laptop.c