From 3ba2e4939d1d0426466de755a2435d2cbb311f8e Mon Sep 17 00:00:00 2001 From: Michael Hennerich Date: Thu, 7 Oct 2010 16:14:10 +0200 Subject: staging: iio: adc: ad799x drop in_precision in favor of new in_type -drop in_precision in favor of new in_type - This also fixes the bug from the scan elements move (as a side effect) -add sign and storagebits to struct ad799x_chip_info -properly mask the results based on ad799x_chip_info:bits staging: iio: adc: ad799x misc fixed per iio list review remove new line remove storagebits from struct ad799x_chip_info use defined storagebits value for in_type Signed-off-by: Michael Hennerich Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/staging/iio/adc/ad799x_ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/staging/iio/adc/ad799x_ring.c') diff --git a/drivers/staging/iio/adc/ad799x_ring.c b/drivers/staging/iio/adc/ad799x_ring.c index d0217f8a68df..c6871fa068ed 100644 --- a/drivers/staging/iio/adc/ad799x_ring.c +++ b/drivers/staging/iio/adc/ad799x_ring.c @@ -53,7 +53,7 @@ int ad799x_single_channel_from_ring(struct ad799x_state *st, long mask) mask >>= 1; } - ret = be16_to_cpu(ring_data[count]) & 0xFFF; + ret = be16_to_cpu(ring_data[count]); error_free_ring_data: kfree(ring_data); -- cgit v1.2.3