Skip to content
Commit bc4b2a51 authored by Gaurav Gupta's avatar Gaurav Gupta Committed by Jonathan Cameron
Browse files

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: default avatarGaurav Gupta <gauragup@cisco.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 9d9ebe64
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment