summaryrefslogtreecommitdiff
path: root/drivers/iio/industrialio-event.c
diff options
context:
space:
mode:
authorAlexandru Ardelean <alexandru.ardelean@analog.com>2021-02-15 13:40:31 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-03-11 23:47:03 +0300
commitd9a625744ed0e452f5c495cd8c51eed4b6623a4c (patch)
tree798cbe53e3d2fdfa56164158b88d62a1ab5a97d6 /drivers/iio/industrialio-event.c
parente2b4d7aca9db5c1f0789e5a8e0fd1f4953d0be9e (diff)
downloadlinux-d9a625744ed0e452f5c495cd8c51eed4b6623a4c.tar.xz
iio: core: merge buffer/ & scan_elements/ attributes
With this change, we create a new directory for the IIO device called buffer0, under which both the old buffer/ and scan_elements/ are stored. This is done to simplify the addition of multiple IIO buffers per IIO device. Otherwise we would need to add a bufferX/ and scan_elementsX/ directory for each IIO buffer. With the current way of storing attribute groups, we can't have directories stored under each other (i.e. scan_elements/ under buffer/), so the best approach moving forward is to merge their attributes. The old/legacy buffer/ & scan_elements/ groups are not stored on the opaque IIO device object. This way the IIO buffer can have just a single attribute_group object, saving a bit of memory when adding multiple IIO buffers. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Link: https://lore.kernel.org/r/20210215104043.91251-13-alexandru.ardelean@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/industrialio-event.c')
0 files changed, 0 insertions, 0 deletions