summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>2018-01-06 23:23:24 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-08 16:03:43 +0100
commit91a6b841a5c000107147fc53a4666bd6e4b6cb77 (patch)
treece57d9e84f33ce918d4de307d23e7633aa176918 /block
parent284d95c707ffb3d9c7562d0b6bb19e363768d12b (diff)
downloadblackbird-obmc-linux-91a6b841a5c000107147fc53a4666bd6e4b6cb77.tar.gz
blackbird-obmc-linux-91a6b841a5c000107147fc53a4666bd6e4b6cb77.zip
iio: imu: st_lsm6dsx: pre-allocate read buffer at bootstrap
Allocate device read buffer at bootstrap and do not put it on the stack since it is pretty big (~200B) and its size will increase adding support to device hw timestamp. Moreover this patch fixes following sparse warnings: drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c:250:17: warning: Variable length array is used. drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c:283:55: error: cannot size expression Fixes: 290a6ce11d93 ("iio: imu: add support to lsm6dsx driver") Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud