diff options
author | Lukas Wunner <lukas@wunner.de> | 2017-11-25 09:38:17 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2017-12-02 14:28:21 +0100 |
commit | 8d05ffd2b8a08668cfea9e64a2991ab8ec9b494e (patch) | |
tree | 485d0ab10c15a83dc8b7f06840c203a0ee248b7a /virt | |
parent | iio: trigger: Fix platform_get_irq's error checking (diff) | |
download | linux-8d05ffd2b8a08668cfea9e64a2991ab8ec9b494e.tar.xz linux-8d05ffd2b8a08668cfea9e64a2991ab8ec9b494e.zip |
iio: Add macro to populate struct iio_map array
The GPIO core provides a handy GPIO_LOOKUP() macro to populate a struct
gpiod_lookup array without having to spell out attribute names (but
still avoid breakage when attributes within the struct are rearranged
or added).
The axp288_adc.c driver uses a similar macro to populate a struct
iio_map array. Make it available to others.
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions