iio:magnetometer:bmc150_magn: expand mutex in trigger_handler
authorHartmut Knaack <knaack.h@gmx.de>
Fri, 17 Jul 2015 08:52:30 +0000 (10:52 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 2 Aug 2015 17:03:30 +0000 (18:03 +0100)
commit3021678a94cdb942bea4e634a37e91fe341b27b0
treef672579850b75fd9deeb4efba1f35ff47b7ee1a4
parentf9ba1ab4d19a79b4bef4baf21f559f9dd8ba33f9
iio:magnetometer:bmc150_magn: expand mutex in trigger_handler

Keep the mutex locked, until the content of data->buffer has been pushed
out.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Acked-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/bmc150_magn.c