diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2012-02-22 13:16:49 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-24 12:14:04 -0800 |
commit | cd4361c7e2e0778016a770157d0ccf126fca7a2a (patch) | |
tree | 92d2f464550c5955ca58a73358437959c1cf73e6 /kernel/rcutiny_plugin.h | |
parent | 004d81339a3039e6402aa1ab73c5f986c9036786 (diff) |
iio: core: constitfy available_scan_mask
The core must not modify available_scan_mask, because it causes problems
with drivers where multiple instances of the driver share the same mask set.
So make this explicit by marking available scan masks as const.
The max1363 driver needs some minor adjustment to accommodate this change.
Pull scan mask allocation into a separate function.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/rcutiny_plugin.h')
0 files changed, 0 insertions, 0 deletions