linux/drivers/staging/iio
Alison Schofield 722fc31663 staging: iio: isl29028: 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.

Simplified version of Coccinelle semantic patch used:

@ a @
identifier drvdata, r;
position p;
@@
  struct drvdata@p {
  ...
  struct regmap *r;
  ...
  };

@ b @
identifier a.drvdata, d;
position a.p;
@@
  struct drvdata@p {
  ...
- struct device *d;
  ...
  };

@ passed depends on b @
identifier a.drvdata, a.r, b.d, i, f;
@@
  f (..., struct drvdata *i ,...) {
+ struct device *dev = regmap_get_device(i->r);
   <+...
-	   i->d
+	   dev
   ...+>
  }

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-03-20 10:27:25 +00:00
..
accel staging:iio:adis16220: Remove adis16220 driver 2016-03-09 21:08:50 +00:00
adc staging: iio: ad7192: use iio_device_{claim|release}_direct_mode() 2016-03-12 18:09:54 +00:00
addac spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
cdc staging: iio: Remove parentheses on the right hand side of assignment 2016-02-11 19:37:15 -08:00
Documentation Staging: iio: Documentation: Remove unused sysfs attributes 2016-01-30 16:27:11 +00:00
frequency Staging: iio: frequency: use dev_get_platdata() 2015-12-02 18:42:06 +00:00
gyro spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
impedance-analyzer Staging:iio:Remove exceptional & on function name 2016-02-06 18:07:04 +00:00
light staging: iio: isl29028: use regmap to retrieve struct device 2016-03-20 10:27:25 +00:00
meter iio: ade7753: avoid uninitialized data 2016-01-30 16:24:24 +00:00
resolver staging: iio: resolver: fix comparison to NULL 2016-02-20 14:46:35 -08:00
trigger staging:iio: Remove periodic RTC trigger driver 2016-02-27 17:18:38 +00:00
Kconfig iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
Makefile iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
ring_hw.h
TODO staging:iio: Remove periodic RTC trigger driver 2016-02-27 17:18:38 +00:00