Re: [PATCH] iio: dac: mcp4922: fix error handling in mcp4922_write_raw

2018-08-25 Thread Jonathan Cameron
On Fri, 24 Aug 2018 22:24:40 +0200 Marcus Folkesson wrote: > Do not try to write negative values and make sure that the write goes well. > +CC Michael as it's his driver. I'll take this as it 'appears' straight forward but I won't be pushing it out as a non rebasing branch for a few days if I'v

[PATCH] iio: dac: mcp4922: fix error handling in mcp4922_write_raw

2018-08-24 Thread Marcus Folkesson
Do not try to write negative values and make sure that the write goes well. Signed-off-by: Marcus Folkesson --- drivers/iio/dac/mcp4922.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/iio/dac/mcp4922.c b/drivers/iio/dac/mcp4922.c index bf9aa3fc0534..b519