mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-05-01 21:04:03 +00:00
iio: buffer: remove iio_buffer_set_attrs() helper
The iio_buffer_set_attrs() is no longer used in the drivers, so it can be removed now. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20200929125949.69934-10-alexandru.ardelean@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
fc02a7315b
commit
21232b4456
2 changed files with 0 additions and 15 deletions
|
@ -210,18 +210,6 @@ void iio_buffer_init(struct iio_buffer *buffer)
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(iio_buffer_init);
|
EXPORT_SYMBOL(iio_buffer_init);
|
||||||
|
|
||||||
/**
|
|
||||||
* iio_buffer_set_attrs - Set buffer specific attributes
|
|
||||||
* @buffer: The buffer for which we are setting attributes
|
|
||||||
* @attrs: Pointer to a null terminated list of pointers to attributes
|
|
||||||
*/
|
|
||||||
void iio_buffer_set_attrs(struct iio_buffer *buffer,
|
|
||||||
const struct attribute **attrs)
|
|
||||||
{
|
|
||||||
buffer->attrs = attrs;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL_GPL(iio_buffer_set_attrs);
|
|
||||||
|
|
||||||
static ssize_t iio_show_scan_index(struct device *dev,
|
static ssize_t iio_show_scan_index(struct device *dev,
|
||||||
struct device_attribute *attr,
|
struct device_attribute *attr,
|
||||||
char *buf)
|
char *buf)
|
||||||
|
|
|
@ -11,9 +11,6 @@
|
||||||
|
|
||||||
struct iio_buffer;
|
struct iio_buffer;
|
||||||
|
|
||||||
void iio_buffer_set_attrs(struct iio_buffer *buffer,
|
|
||||||
const struct attribute **attrs);
|
|
||||||
|
|
||||||
int iio_push_to_buffers(struct iio_dev *indio_dev, const void *data);
|
int iio_push_to_buffers(struct iio_dev *indio_dev, const void *data);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue