summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/frequency/ad9832.c
diff options
context:
space:
mode:
authorEva Rachel Retuya2016-10-31 18:04:30 +0100
committerJonathan Cameron2016-11-05 17:07:13 +0100
commitc834e1718aae6150936af718db9e483993d2c63f (patch)
treefd8261d18a890a41751a2c7bd159349ecdd06c90 /drivers/staging/iio/frequency/ad9832.c
parentMerge branch 'ib-iio-mfd-4.9rc1' into togreg (diff)
downloadkernel-qcow2-linux-c834e1718aae6150936af718db9e483993d2c63f.tar.gz
kernel-qcow2-linux-c834e1718aae6150936af718db9e483993d2c63f.tar.xz
kernel-qcow2-linux-c834e1718aae6150936af718db9e483993d2c63f.zip
staging: iio: set proper supply name to devm_regulator_get()
The name passed to devm_regulator_get() should match the name of the supply as specified in the device datasheet. This makes it clear what power supply is being referred to in case of presence of other regulators. Currently, the supply name specified on the affected devices is 'vcc'. Use lowercase version of the datasheet name to specify the supply voltage. Suggested-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging/iio/frequency/ad9832.c')
-rw-r--r--drivers/staging/iio/frequency/ad9832.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/frequency/ad9832.c b/drivers/staging/iio/frequency/ad9832.c
index 358400b22d33..744c8ee9c5a6 100644
--- a/drivers/staging/iio/frequency/ad9832.c
+++ b/drivers/staging/iio/frequency/ad9832.c
@@ -212,7 +212,7 @@ static int ad9832_probe(struct spi_device *spi)
return -ENODEV;
}
- reg = devm_regulator_get(&spi->dev, "vcc");
+ reg = devm_regulator_get(&spi->dev, "avdd");
if (!IS_ERR(reg)) {
ret = regulator_enable(reg);
if (ret)