]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
iio: adc: mp2629: fix wrong comparison of channel
authorSaravanan Sekar <sravanhome@gmail.com>
Sat, 29 Oct 2022 09:29:53 +0000 (11:29 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Dec 2022 12:59:31 +0000 (13:59 +0100)
commit30d5b16721573ad875932468e0784650a6715f50
tree8b752567519f89bc818d3865962e9c98e84e0955
parent371d3dfb5228034b9d0966e51cbab00c15dbe8ec
iio: adc: mp2629: fix wrong comparison of channel

commit 1eb20332a082fa801fb89c347c5e62de916a4001 upstream.

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

Fixes: 7abd9fb64682 ("iio: adc: mp2629: Add support for mp2629 ADC driver")
Signed-off-by: Saravanan Sekar <sravanhome@gmail.com>
Reviewed-by: Andy 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: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit bd22c232ead9aaf246cb1430e2f0a8a0039b2bd8)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
drivers/iio/adc/mp2629_adc.c