OSDN Git Service

staging:iio:__lis3l02dq_write_data_ready_config: Pass IIO device directly
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 12 May 2012 13:39:38 +0000 (15:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2012 20:39:19 +0000 (13:39 -0700)
commit8dc5afd8cb9b9a1253fdaa4e25d3ac1dccca6319
treeafa0bb2f283c4f428fe07025b58e64f7521642a3
parent4a5b7610807a01156bc626be1718d8e423a75101
staging:iio:__lis3l02dq_write_data_ready_config: Pass IIO device directly

When calling __lis3l02dq_write_data_ready_config we pass the device struct of
embedded in the IIO device only to look up the IIO device from the device struct
again right away. This patch changes the code to pass the IIO device directly.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/accel/lis3l02dq_ring.c