commit | 3704432fb1fd8ab2df114bad6df752381246b609 | [log] [tgz] |
---|---|---|
author | Jonathan Cameron <jic23@kernel.org> | Sun Sep 08 14:57:00 2013 +0100 |
committer | Jonathan Cameron <jic23@kernel.org> | Sun Sep 15 17:43:20 2013 +0100 |
tree | 554c46e264866bc2be767434586a68bf5ed7c75c | |
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>