diff options
author | Jonathan Cameron <jic23@kernel.org> | 2013-09-08 09:57:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-09-15 12:43:20 -0400 |
commit | 3704432fb1fd8ab2df114bad6df752381246b609 (patch) | |
tree | 554c46e264866bc2be767434586a68bf5ed7c75c /drivers/iio/iio_core.h | |
parent | 9761696f2be276b169b77bcf359bc50a251c9280 (diff) |
iio: refactor info mask and ext_info attribute creation.
Introduce an enum to specify whether the attribute is separate or
shared.
Factor out the bitmap handling for loop into a separate function.
Tidy up error handling and add a NULL assignment to squish a false
positive warning from GCC.
Change ext_info shared type from boolean to enum and update in all
drivers.
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Diffstat (limited to 'drivers/iio/iio_core.h')
-rw-r--r-- | drivers/iio/iio_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/iio_core.h b/drivers/iio/iio_core.h index 05c1b74502a3..6be5ab864b1a 100644 --- a/drivers/iio/iio_core.h +++ b/drivers/iio/iio_core.h | |||
@@ -30,7 +30,7 @@ int __iio_add_chan_devattr(const char *postfix, | |||
30 | const char *buf, | 30 | const char *buf, |
31 | size_t len), | 31 | size_t len), |
32 | u64 mask, | 32 | u64 mask, |
33 | bool generic, | 33 | enum iio_shared_by shared_by, |
34 | struct device *dev, | 34 | struct device *dev, |
35 | struct list_head *attr_list); | 35 | struct list_head *attr_list); |
36 | 36 | ||