]> git.karo-electronics.de Git - linux-beck.git/commit
iio: accel: bmc150: use regmap to retrieve struct device
authorAlison Schofield <amsfield22@gmail.com>
Sun, 10 Apr 2016 19:05:13 +0000 (12:05 -0700)
committerJonathan Cameron <jic23@kernel.org>
Tue, 19 Apr 2016 18:58:17 +0000 (19:58 +0100)
commit0ef4c311abdc821d10e092ae623e022dd4b6a6d4
treeb8ed5de5dc918b36f7fddfffaf6304c83d4a21d4
parentdfd2ab8dda719b98203f5b3e940961019d373541
iio: accel: bmc150: 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: Irina Tirdea <irina.tirdea@intel.com>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/bmc150-accel-core.c