iio: adc: ti-ads7950: Change regulator matching string to "vref"
authorDavid Lechner <david@lechnology.com>
Wed, 11 Jan 2017 17:52:51 +0000 (11:52 -0600)
committerJonathan Cameron <jic23@kernel.org>
Sun, 15 Jan 2017 13:56:08 +0000 (13:56 +0000)
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>
drivers/iio/adc/ti-ads7950.c

index b587fa6c513fa40a54904615483a83aa9503f880..16a06633332cc594fa9fe02aaa92568be477a7b3 100644 (file)
@@ -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;
        }