]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1c91f8076dfff4e5c9fa935f1d0bb0fd8507c451
tree0f2cae597a1ed3e9174ffd9471fbaaffaddb38f1
parentc4382950068adc477ccc5b1e9f7661c4d845d174
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