diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2023-03-22 13:34:21 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2023-03-22 15:47:10 +0100 |
commit | c33fcc13ee0d02efe5729588e8fba8b899c8879a (patch) | |
tree | 9b545d19c4cffd19aeabb0c61eb73b5778024dd2 /drivers/reset/reset-meson-audio-arb.c | |
parent | iommu: Cleanup iommu_change_dev_def_domain() (diff) | |
download | linux-c33fcc13ee0d02efe5729588e8fba8b899c8879a.tar.xz linux-c33fcc13ee0d02efe5729588e8fba8b899c8879a.zip |
iommu: Use sysfs_emit() for sysfs show
Use sysfs_emit() instead of the sprintf() for sysfs entries. sysfs_emit()
knows the maximum of the temporary buffer used for outputting sysfs
content and avoids overrunning the buffer length.
Prefer 'long long' over 'long long int' as suggested by checkpatch.pl.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20230322123421.278852-1-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/reset/reset-meson-audio-arb.c')
0 files changed, 0 insertions, 0 deletions