iio: st_sensors: Fix buffer copy
authorRobin van der Gracht <robin@protonic.nl>
Mon, 29 Sep 2014 13:00:07 +0000 (15:00 +0200)
committerJonathan Cameron <jic23@kernel.org>
Wed, 5 Nov 2014 18:33:43 +0000 (18:33 +0000)
commitc6b4cac2d9cbe7891260b55b2871d269d89d1ae7
tree7b9bfa73a755a68fea259b15e98a7a5eef99b76d
parent97fb3033128958457f77456dc677a64bce8d33ae
iio: st_sensors: Fix buffer copy

Use byte_for_channel as iterator to properly initialize the buffer.

Signed-off-by: Robin van der Gracht <robin@protonic.nl>
Acked-by: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Cc: <Stable@vger.kernel.org>
drivers/iio/common/st_sensors/st_sensors_buffer.c