]> git.baikalelectronics.ru Git - kernel.git/commit
iio: buffer: remove 'scan_el_attrs' attribute group from buffer struct
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Fri, 10 Apr 2020 09:36:07 +0000 (12:36 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:56:34 +0000 (16:56 +0100)
commit821e52077a1f635c07512ca5a1baa62477ce1307
treeac83d6f030fc218dc65667dd8518fe11eea614e6
parenta2ca5cd6d338f9ed358faef1caf4615b48eb781d
iio: buffer: remove 'scan_el_attrs' attribute group from buffer struct

This field doesn't seem used. It seems that only 'buffer->attrs' was ever
used to extend sysfs attributes for an IIO buffer.

Moving forward, it may not make sense to keep it. This patch removes the
field and it's initialization code.

Since we want to rework IIO buffer, to be able to add more buffers per IIO
device, we will merge [somehow] the 'buffer' & 'scan_elements' groups, and
we will continue to add the attributes to the 'buffer' group.

Removing it here, will also make the rework here a bit smaller, since
this code will not be present.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-buffer.c
include/linux/iio/buffer_impl.h