diff options
author | Gaurav Gupta <gauragup@cisco.com> | 2017-06-27 18:46:01 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2017-07-15 14:50:00 +0200 |
commit | bc4b2a518f20508d866b55b5ea2739f3ced18cb6 (patch) | |
tree | 4264fffdb5ebaea77e5c7bb11a1edd835450ac6d /kernel/reboot.c | |
parent | iio: dac: stm32: add support for stm32f4 (diff) | |
download | linux-bc4b2a518f20508d866b55b5ea2739f3ced18cb6.tar.xz linux-bc4b2a518f20508d866b55b5ea2739f3ced18cb6.zip |
iio: core: Fix mapping of iio channels to entry numbers
When adding maps to the list, they were added using list_add, which adds
them in LIFO order. When parsing using iio_channel_get_all(), these
elements are hence returned in reverse order. As a result, the iio_hwmon
mapping maps the first entry to the last channel and so on.
Signed-off-by: Gaurav Gupta <gauragup@cisco.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'kernel/reboot.c')
0 files changed, 0 insertions, 0 deletions