diff options
author | David Lechner <david@lechnology.com> | 2017-01-11 11:52:51 -0600 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-01-15 13:56:08 +0000 |
commit | 0bf1a2aac6c5ea30eca6d99791037a7b7abd8d76 (patch) | |
tree | 9248b52599dbf1859d87b1bcf448b15afd1b85ad /drivers/iio/adc | |
parent | 2b84f4ded44c77ead4e6e0abbb85e053c3dff5aa (diff) | |
download | linux-0bf1a2aac6c5ea30eca6d99791037a7b7abd8d76.tar.bz2 |
iio: adc: ti-ads7950: Change regulator matching string to "vref"
This changes the reference voltage regulator matching string from "refin"
to "vref". This is to be consistent with other A/DC chips that also use
"vref-supply" in their device tree bindings.
Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc')
-rw-r--r-- | drivers/iio/adc/ti-ads7950.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iio/adc/ti-ads7950.c b/drivers/iio/adc/ti-ads7950.c index b587fa6c513f..16a06633332c 100644 --- a/drivers/iio/adc/ti-ads7950.c +++ b/drivers/iio/adc/ti-ads7950.c @@ -411,15 +411,15 @@ static int ti_ads7950_probe(struct spi_device *spi) spi_message_init_with_transfers(&st->scan_single_msg, st->scan_single_xfer, 3); - st->reg = devm_regulator_get(&spi->dev, "refin"); + st->reg = devm_regulator_get(&spi->dev, "vref"); if (IS_ERR(st->reg)) { - dev_err(&spi->dev, "Failed get get regulator \"refin\"\n"); + dev_err(&spi->dev, "Failed get get regulator \"vref\"\n"); return PTR_ERR(st->reg); } ret = regulator_enable(st->reg); if (ret) { - dev_err(&spi->dev, "Failed to enable regulator \"refin\"\n"); + dev_err(&spi->dev, "Failed to enable regulator \"vref\"\n"); return ret; } |