summaryrefslogtreecommitdiff
path: root/kernel/lockdep.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-06-04 09:36:11 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-05 04:47:29 (GMT)
commit5212cc8a9d833791a7aec566db136e78951f203d (patch)
tree3c823a04bb8b5c1e001bdf4e26f5413c26de7bd7 /kernel/lockdep.c
parent1875ffd218ddafd78f0f8e78198c137cef97fd8a (diff)
downloadlinux-fsl-qoriq-5212cc8a9d833791a7aec566db136e78951f203d.tar.xz
iio: Add helper functions for enum style channel attributes
We often have the case were we do have a enum style channel attribute. These attributes have in common that they are a list of string values which usually map in a 1-to-1 fashion to integer values. This patch implements some common helper code for implementing enum style channel attributes using extended channel attributes. The helper functions take care of converting between the string and integer values, as well providing a function for "_available" attributes which list all available enum items. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/lockdep.c')
0 files changed, 0 insertions, 0 deletions