aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/iio/buffer_impl.h
diff options
context:
space:
mode:
authorAlexandru Ardelean <alexandru.ardelean@analog.com>2020-04-10 12:36:07 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-04-19 16:56:34 +0100
commit2e036804d773e00ea19c6f6b8b7a4b8232c77da1 (patch)
treeac83d6f030fc218dc65667dd8518fe11eea614e6 /include/linux/iio/buffer_impl.h
parentiio: imu: adis: Add a missing '\n' in a log message (diff)
downloadlinux-dev-2e036804d773e00ea19c6f6b8b7a4b8232c77da1.tar.xz
linux-dev-2e036804d773e00ea19c6f6b8b7a4b8232c77da1.zip
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>
Diffstat (limited to 'include/linux/iio/buffer_impl.h')
-rw-r--r--include/linux/iio/buffer_impl.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/iio/buffer_impl.h b/include/linux/iio/buffer_impl.h
index 1e7edf6bed96..a63dc07b7350 100644
--- a/include/linux/iio/buffer_impl.h
+++ b/include/linux/iio/buffer_impl.h
@@ -94,12 +94,6 @@ struct iio_buffer {
unsigned int watermark;
/* private: */
- /*
- * @scan_el_attrs: Control of scan elements if that scan mode
- * control method is used.
- */
- struct attribute_group *scan_el_attrs;
-
/* @scan_timestamp: Does the scan mode include a timestamp. */
bool scan_timestamp;