iio: accel: mma7455: use regmap to retrieve struct device
authorAlison Schofield <amsfield22@gmail.com>
Wed, 6 Apr 2016 05:18:44 +0000 (22:18 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sun, 10 Apr 2016 13:50:06 +0000 (14:50 +0100)
commitc455e58354adcde7ba1ebf3d753eba9a07cd587d
tree0f2cae597a1ed3e9174ffd9471fbaaffaddb38f1
parent56ca9db862bf3d78e279d424b3434d66617c27ae
iio: accel: mma7455: 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>
Acked-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/mma7455_core.c