summaryrefslogtreecommitdiff
path: root/drivers/iio/accel
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2016-07-11 13:54:17 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-24 10:09:30 +0200
commit4215a755968d4e21fa982298e16934506723e038 (patch)
tree1425fae4efd07d0e4e465a3e457f7aab5c6561cd /drivers/iio/accel
parent075dc2dd4d94bd4747252cf0700d928a75a9ca87 (diff)
downloadlwn-4215a755968d4e21fa982298e16934506723e038.tar.gz
lwn-4215a755968d4e21fa982298e16934506723e038.zip
iio: ad799x: Fix buffered capture for ad7991/ad7995/ad7999
commit 7d3cc21dab5313a02f2f3ca8164529b828a030d1 upstream. The data buffer for captured mode for the ad799x driver is allocated in the update_scan_mode() callback. This callback is not set in the iio_info struct for the ad7791/ad7995/ad7999, which means that the data buffer is not allocated when a captured transfer is started. As a result the driver crashes when the first sample is received. To fix this properly set the update_scan_mode() callback. Fixes: d8dca33027c1 ("staging:iio:ad799x: Preallocate sample buffer") Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/accel')
0 files changed, 0 insertions, 0 deletions