thunderbolt: Convert to use sysfs_emit()/sysfs_emit_at() APIs
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 22 Sep 2022 14:32:39 +0000 (17:32 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Sat, 24 Sep 2022 06:22:01 +0000 (09:22 +0300)
commit8283fb57e46246ae998c6961c89a76ef7f14c6d9
tree450b19420b87ed118c6bfee8c5474059286a96bf
parent387a42cfcf92eac21b2dec2cdadd207ddae0ec78
thunderbolt: Convert to use sysfs_emit()/sysfs_emit_at() APIs

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

While at it, use Elvis operator in some cases.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/domain.c
drivers/thunderbolt/retimer.c
drivers/thunderbolt/switch.c
drivers/thunderbolt/xdomain.c