[PATCH 0/6] staging: iio: regulator clean-up

From: Eva Rachel Retuya
Date: Mon Oct 31 2016 - 13:08:33 EST


Rework regulator handling:
* use supply names found on the datasheet
* fix regulator usage
* declare digital supplies previously missing

Semantic patch used to detect affected drivers:
@r1@
expression reg;
position p;
@@

reg = \(devm_regulator_get@p\|regulator_get@p\)(...);
if (IS_ERR(reg)) {
...
PTR_ERR(reg)
...
}

@@
position p != r1.p;
@@

* \(devm_regulator_get@p\|regulator_get@p\)(...)

Eva Rachel Retuya (6):
staging: iio: set proper supply name to devm_regulator_get()
staging: iio: rework regulator handling
staging: iio: ad7192: add DVdd regulator
staging: iio: ad7192: rename regulator 'reg' to 'avdd'
staging: iio: ad9832: add DVDD regulator
staging: iio: ad9832: clean-up regulator 'reg'

drivers/staging/iio/adc/ad7192.c | 43 +++++++++++++------
drivers/staging/iio/adc/ad7780.c | 22 +++++-----
drivers/staging/iio/frequency/ad9832.c | 56 +++++++++++++++----------
drivers/staging/iio/frequency/ad9832.h | 6 ++-
drivers/staging/iio/frequency/ad9834.c | 19 +++++----
drivers/staging/iio/impedance-analyzer/ad5933.c | 21 +++++-----
6 files changed, 101 insertions(+), 66 deletions(-)

--
2.7.4