iio:ad5064: Fix off by one in DAC value range check
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 1 Mar 2013 13:07:00 +0000 (13:07 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 2 Mar 2013 16:28:42 +0000 (16:28 +0000)
The DAC value range check allows values one larger than the maximum value, which
effectively results in setting the DAC value to 0. This patch fixes the issue.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

No differences found