]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
iio: dac: ad5592r: Fix the missing return value.
authorZizhuang Deng <sunsetdzz@gmail.com>
Thu, 10 Mar 2022 12:54:50 +0000 (20:54 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 22 Jun 2022 12:22:36 +0000 (14:22 +0200)
commit8ad3041cf1338e493d84b55f346acae82dfafd5b
treeb974e38db23e81395baa5df2e6bc8b1c5c871dcb
parent4d4fc7aa64e0e78725be8ea84a76d1616a618097
iio: dac: ad5592r: Fix the missing return value.

BugLink: https://bugs.launchpad.net/bugs/1978234
commit b55b38f7cc12da3b9ef36e7a3b7f8f96737df4d5 upstream.

The third call to `fwnode_property_read_u32` did not record
the return value, resulting in `channel_offstate` possibly
being assigned the wrong value.

Fixes: 56ca9db862bf ("iio: dac: Add support for the AD5592R/AD5593R ADCs/DACs")
Signed-off-by: Zizhuang Deng <sunsetdzz@gmail.com>
Link: https://lore.kernel.org/r/20220310125450.4164164-1-sunsetdzz@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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/iio/dac/ad5592r-base.c