Staging: iio: max1363 Fix two bugs in single_channel_from_ring
authorJonathan Cameron <jic23@cam.ac.uk>
Sun, 16 May 2010 20:29:25 +0000 (21:29 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 18 May 2010 21:43:08 +0000 (14:43 -0700)
commit81b77f94a10b64a3620e32531b5d8dbc495f1727
tree666b07ee35e73d0f7eab172d443ac238fd48ca3d
parent9a3af585e7fe3df35b233977579b5ab6e4c7005f
Staging: iio: max1363 Fix two bugs in single_channel_from_ring

This patch contains fixes for the two bugs Michael pointed
out last week.  As the other suggestion Michael made is
not a bug fix (just a much more sensible way of handling
things), I'll do that as a separate patch soon.

The bugs were introduced with the abi changes.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Reported-by: Michael Hennerich <Michael.Hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/adc/max1363_ring.c