]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: core: make use of simple_write_to_buffer()
authorNuno Sá <nuno.sa@analog.com>
Tue, 18 Feb 2025 10:31:26 +0000 (10:31 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 4 Mar 2025 13:17:50 +0000 (13:17 +0000)
commit6d5dd486c715908b5a6ed02315a15ff044a91025
treed9f11cce1b349436c511a76b700f49740e6d27ec
parent035b4989211dc1c8626e186d655ae8ca5141bb73
iio: core: make use of simple_write_to_buffer()

Instead of open coding (kind of) simple_write_to_buffer(), use it.

While at it, use ascii representation to terminate the string as that is
the more common way of doing it.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250218-dev-iio-misc-v1-2-bf72b20a1eb8@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-core.c