extcon: Use sysfs_emit() to instead of sprintf()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 22 Mar 2023 14:39:55 +0000 (16:39 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 29 May 2023 14:41:28 +0000 (23:41 +0900)
commit6ee0a22e8694074877550bf4284cc4085f86dd4f
tree37533adeb00e66069e953c363a89148664ead0f3
parent6e4e8670c03b4fcac54bca8b62e5465182caeb26
extcon: Use sysfs_emit() to instead of sprintf()

Follow the advice of the Documentation/filesystems/sysfs.rst that
show() should only use sysfs_emit() or sysfs_emit_at() when formatting
the value to be returned to user space.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon.c