iio: bmg160: Use generic dev_drvdata
authorMarkus Pargmann <mpa@pengutronix.de>
Wed, 12 Aug 2015 14:50:06 +0000 (16:50 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 16 Aug 2015 09:51:22 +0000 (10:51 +0100)
commitebc6eb5907acecdebbd0e180a754d98f21045fbc
tree43fe3eed5554aac81b65ddbc0d60a6229332d3f7
parent74e04345dc7e111fd151923d2de32267f1aae321
iio: bmg160: Use generic dev_drvdata

i2c_get_clientdata() is specifically for i2c. Replace it with the
generic dev_get/set_drvdata() to support different protocols.

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