diff options
author | Jonathan Cameron <jic23@cam.ac.uk> | 2011-08-30 07:32:45 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-09-06 18:59:09 -0400 |
commit | 8e7d967244a8eebcdadb048efc5e66849ec0a6b6 (patch) | |
tree | bd31fadb1af43f0a4c3f7b49709a9acf4c20aa23 /drivers/staging/iio/accel/sca3000_core.c | |
parent | 7ae8cf6275589a9ebb733eb5bdd093859ba1be36 (diff) |
staging: iio: remove specific chrdev for event reading. Get fd from ioctl on buffer.
Change suggested by Arnd Bergmann.
No real reason to have two chrdevs per device. This step merges them into one.
Currently this means that events will only work on devices with buffers. THat will
be remedied shortly.
V2: set name for event attribute groups. Otherwise they all sorts of fun occurs on
dynamic channel event attribute creation.
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/accel/sca3000_core.c')
-rw-r--r-- | drivers/staging/iio/accel/sca3000_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/iio/accel/sca3000_core.c b/drivers/staging/iio/accel/sca3000_core.c index dbf1622e19f..d7f79b40353 100644 --- a/drivers/staging/iio/accel/sca3000_core.c +++ b/drivers/staging/iio/accel/sca3000_core.c | |||
@@ -1036,6 +1036,7 @@ static struct attribute *sca3000_event_attributes[] = { | |||
1036 | 1036 | ||
1037 | static struct attribute_group sca3000_event_attribute_group = { | 1037 | static struct attribute_group sca3000_event_attribute_group = { |
1038 | .attrs = sca3000_event_attributes, | 1038 | .attrs = sca3000_event_attributes, |
1039 | .name = "events", | ||
1039 | }; | 1040 | }; |
1040 | 1041 | ||
1041 | /** | 1042 | /** |