iio: gyro: bmg160: use regmap to retrieve struct device
authorAlison Schofield <amsfield22@gmail.com>
Sun, 10 Apr 2016 19:08:14 +0000 (12:08 -0700)
committerJonathan Cameron <jic23@kernel.org>
Tue, 19 Apr 2016 18:58:18 +0000 (19:58 +0100)
commitdc2c57153ec5119eae7770042197eff627184d74
tree2716b8f5c4171aeaba1dd968c99f3c7e033880b2
parent0ef4c311abdc821d10e092ae623e022dd4b6a6d4
iio: gyro: bmg160: use regmap to retrieve struct device

Driver includes struct regmap and struct device in its global data.
Remove the struct device and use regmap API to retrieve device info.

Patch created using Coccinelle plus manual edits.

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/gyro/bmg160_core.c