Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: adc: ad7768-1: replace sprintf() with sysfs_emit()

Update the ad7768_read_label() function to use sysfs_emit(() for
generating labels.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Nuno Sá and committed by
Jonathan Cameron
69911a64 ed1a8240

+1 -1
+1 -1
drivers/iio/adc/ad7768-1.c
··· 899 899 { 900 900 struct ad7768_state *st = iio_priv(indio_dev); 901 901 902 - return sprintf(label, "%s\n", st->labels[chan->channel]); 902 + return sysfs_emit(label, "%s\n", st->labels[chan->channel]); 903 903 } 904 904 905 905 static int ad7768_get_current_scan_type(const struct iio_dev *indio_dev,