iio: bmg160: Remove i2c_client from data struct
authorMarkus Pargmann <mpa@pengutronix.de>
Wed, 12 Aug 2015 14:50:05 +0000 (16:50 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 16 Aug 2015 09:51:22 +0000 (10:51 +0100)
commit74e04345dc7e111fd151923d2de32267f1aae321
tree28a0042a0dc286771a2a2e8aaddb080d2b9e162f
parentc6c9e995bcd8349f271b39e6abd9bd2f090ec5bd
iio: bmg160: Remove i2c_client from data struct

i2c_client variable is not really used anymore in the core driver. It is
only used to get the device to make proper outputs.

This patch replaces all i2c_client usage through direct usage of the
device pointer.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/gyro/bmg160.c