]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb717013919c308c13e309e62845aa573209066f9
tree7b9bfa73a755a68fea259b15e98a7a5eef99b76d
parentbdee3372b718f01026713935dd66acb3d73cf884
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