mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 03:27:30 -04:00
Merge tag 'tee-improve-sysfs-for-v6.18' of git://git.kernel.org/pub/scm/linux/kernel/git/jenswi/linux-tee into soc/drivers
Use sysfs_emit() for sysfs buffers to userspace * tag 'tee-improve-sysfs-for-v6.18' of git://git.kernel.org/pub/scm/linux/kernel/git/jenswi/linux-tee: drivers: tee: improve sysfs interface by using sysfs_emit() Link: https://lore.kernel.org/r/20250912091000.GA1441709@rayden Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
@@ -72,7 +72,7 @@ static ssize_t rpmb_routing_model_show(struct device *dev,
|
||||
else
|
||||
s = "user";
|
||||
|
||||
return scnprintf(buf, PAGE_SIZE, "%s\n", s);
|
||||
return sysfs_emit(buf, "%s\n", s);
|
||||
}
|
||||
static DEVICE_ATTR_RO(rpmb_routing_model);
|
||||
|
||||
|
||||
@@ -977,7 +977,7 @@ static ssize_t implementation_id_show(struct device *dev,
|
||||
struct tee_ioctl_version_data vers;
|
||||
|
||||
teedev->desc->ops->get_version(teedev, &vers);
|
||||
return scnprintf(buf, PAGE_SIZE, "%d\n", vers.impl_id);
|
||||
return sysfs_emit(buf, "%d\n", vers.impl_id);
|
||||
}
|
||||
static DEVICE_ATTR_RO(implementation_id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user