Commit 0c1e4e81 authored by Saravanan Sekar's avatar Saravanan Sekar Committed by sanglipeng
Browse files

iio: adc: mp2629: fix wrong comparison of channel

stable inclusion
from stable-v5.10.156
commit 46b8bc62c5ea20416a7dd9778624924304922a51
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7MCG1

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=46b8bc62c5ea20416a7dd9778624924304922a51



--------------------------------

commit 1eb20332 upstream.

Input voltage channel enum is compared against iio address instead
of the channel.

Fixes: 7abd9fb6 ("iio: adc: mp2629: Add support for mp2629 ADC driver")
Signed-off-by: default avatarSaravanan Sekar <sravanhome@gmail.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20221029093000.45451-2-sravanhome@gmail.com


Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 7ffd1f19
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment