mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
iio: adc: mcp3564: replace sprintf() with sysfs_emit()
Update the mcp3564_read_label() function to use sysfs_emit() for generating labels. Signed-off-by: Nuno Sá <nuno.sa@analog.com> Reviewed-by: Marius Cristea <marius.cristea@microchip.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
committed by
Jonathan Cameron
parent
69911a64ba
commit
08be56ebe9
@@ -987,7 +987,7 @@ static int mcp3564_read_label(struct iio_dev *indio_dev,
|
||||
{
|
||||
struct mcp3564_state *adc = iio_priv(indio_dev);
|
||||
|
||||
return sprintf(label, "%s\n", adc->labels[chan->scan_index]);
|
||||
return sysfs_emit(label, "%s\n", adc->labels[chan->scan_index]);
|
||||
}
|
||||
|
||||
static int mcp3564_parse_fw_children(struct iio_dev *indio_dev)
|
||||
|
||||
Reference in New Issue
Block a user