summaryrefslogtreecommitdiff
path: root/drivers/staging/zcache/zcache-main.c
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2012-02-22 12:16:49 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-24 20:14:04 (GMT)
commitcd4361c7e2e0778016a770157d0ccf126fca7a2a (patch)
tree92d2f464550c5955ca58a73358437959c1cf73e6 /drivers/staging/zcache/zcache-main.c
parent004d81339a3039e6402aa1ab73c5f986c9036786 (diff)
downloadlinux-fsl-qoriq-cd4361c7e2e0778016a770157d0ccf126fca7a2a.tar.xz
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 'drivers/staging/zcache/zcache-main.c')
0 files changed, 0 insertions, 0 deletions