iio: dac: mcp4922: fix error handling in mcp4922_write_raw
[ Upstream commit 0833627f ] 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>
Showing
Please register or sign in to comment