linux/drivers/staging/iio
Lars-Peter Clausen cb75f2335c staging:iio:ad7476: Fix off by one error for channel shift
The datasheet is a bit confusing about this. It says that a dataword has 4
leading zeros, but the first zero is already put on the bus when CS is pulled
low and the second zero is put on the bus on the first leading edge of SCLK, so
when the first bit is sampled on the first trailing edge it will sample what the
datasheet refers to as the second leading zero. Subsequently we only see 3
leading zeros in the 16 bit dataword and the result we get is shifted to the
left by one bit. Fix this by adjusting the channel shift by 1.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2012-09-12 18:32:07 +01:00
..
accel iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
adc staging:iio:ad7476: Fix off by one error for channel shift 2012-09-12 18:32:07 +01:00
addac staging:iio:addac: Use dev_to_iio_dev() 2012-05-14 13:39:20 -07:00
cdc staging:iio: Request threaded-only IRQs with IRQF_ONESHOT 2012-07-08 20:02:24 +01:00
Documentation IIO: Add 4-byte unsigned reads into generic-buffer example 2012-08-16 20:16:19 +01:00
frequency staging:iio:frequency: Use dev_to_iio_dev() 2012-05-14 13:39:21 -07:00
gyro iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
impedance-analyzer iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
imu iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
light iio: isl29018: Support fractional ALS scaling. 2012-09-08 10:25:10 +01:00
magnetometer staging:iio: Update email address for Jonathan Cameron. 2012-09-03 20:26:46 +01:00
meter iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
resolver staging:iio: Constify static iio_chan_spec arrays 2012-08-14 20:27:42 +01:00
trigger staging:iio:sysfs-trigger: Use irq_work to properly active trigger 2012-09-06 22:00:28 +01:00
iio_dummy_evgen.c staging:iio: Update email address for Jonathan Cameron. 2012-09-03 20:26:46 +01:00
iio_dummy_evgen.h staging:iio:dummy Add event support + fake event generator 2011-10-17 15:36:30 -07:00
iio_hwmon.c staging:iio: Update email address for Jonathan Cameron. 2012-09-03 20:26:46 +01:00
iio_simple_dummy_buffer.c iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
iio_simple_dummy_events.c staging: iio: Fix typo in iio 2012-05-08 16:04:12 -07:00
iio_simple_dummy.c staging:iio: Update email address for Jonathan Cameron. 2012-09-03 20:26:46 +01:00
iio_simple_dummy.h staging:iio:dummy Add buffered reading support 2011-10-17 15:36:30 -07:00
Kconfig iio: fix spelling of subsystem 2012-09-03 20:26:44 +01:00
Makefile staging:iio: Move DAC drivers out of staging 2012-06-05 14:02:25 +09:00
ring_hw.h staging:iio: Update email address for Jonathan Cameron. 2012-09-03 20:26:46 +01:00
ring_sw.c iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
ring_sw.h IIO: Move core headers to include/linux/iio 2012-04-25 11:01:43 -07:00
TODO staging:iio: Update email address for Jonathan Cameron. 2012-09-03 20:26:46 +01:00