iio: adc: at91-sama5d2_adc: use sysfs_emit() to instead of scnprintf()
authorye xingchen <ye.xingchen@zte.com.cn>
Thu, 1 Dec 2022 03:42:33 +0000 (11:42 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 28 Dec 2022 17:19:45 +0000 (17:19 +0000)
commit7ae267954af798f51985629dc795fba616af37cd
treea2d5a66ab96065fe2d0ae9f73f070764707d6ee2
parent58c2630020c5f820d63e2d03aa2341d19d4c0c5b
iio: adc: at91-sama5d2_adc: use sysfs_emit() to instead of scnprintf()

Replace the open-code with sysfs_emit() to simplify the code.

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Link: https://lore.kernel.org/r/202212011142333790361@zte.com.cn
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/at91-sama5d2_adc.c