commit | b7f8108a1cd47a12fd1f9d432d69ad4f049d0582 | [log] [tgz] |
---|---|---|
author | Marcus Folkesson <marcus.folkesson@gmail.com> | Fri Aug 24 22:24:40 2018 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Nov 25 09:51:59 2019 +0100 |
tree | e4250bab056fd0e7635641646e31d1132764ff92 | |
parent | 35940da897ed4760608b7fb01850a9923fd0965f [diff] |
iio: dac: mcp4922: fix error handling in mcp4922_write_raw [ Upstream commit 0833627fc3f757a0dca11e2a9c46c96335a900ee ] Do not try to write negative values and make sure that the write goes well. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Sasha Levin <sashal@kernel.org>