regulator: tps65910: correct init value of n_voltages
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 9 Jul 2012 14:57:13 +0000 (20:27 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 10 Jul 2012 16:16:05 +0000 (17:16 +0100)
Recent change in the core driver to get the maximum voltage
is based on the (n_voltages -1) steps of voltage.
For the tps65910, the (n_voltages -1)th step voltage is
calculated based on the callback function list_voltage.
This function direct maps the datasheet and adjust the
first few steps for initial voltage as per datasheet,
and hence initialize the n_voltages based on datasheet.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/tps65910-regulator.c

index e319d963fee687bd953c6dfe50ffe7b2b619085a..64c93e0005b11c61cee895b3163f90059de65902 100644 (file)
@@ -194,66 +194,66 @@ static struct tps_info tps65911_regs[] = {
        {
                .name = "vdd1",
                .vin_name = "vcc1",
-               .n_voltages = 73,
+               .n_voltages = 0x4C,
                .enable_time_us = 350,
        },
        {
                .name = "vdd2",
                .vin_name = "vcc2",
-               .n_voltages = 73,
+               .n_voltages = 0x4C,
                .enable_time_us = 350,
        },
        {
                .name = "vddctrl",
-               .n_voltages = 65,
+               .n_voltages = 0x44,
                .enable_time_us = 900,
        },
        {
                .name = "ldo1",
                .vin_name = "vcc6",
-               .n_voltages = 47,
+               .n_voltages = 0x33,
                .enable_time_us = 420,
        },
        {
                .name = "ldo2",
                .vin_name = "vcc6",
-               .n_voltages = 47,
+               .n_voltages = 0x33,
                .enable_time_us = 420,
        },
        {
                .name = "ldo3",
                .vin_name = "vcc5",
-               .n_voltages = 24,
+               .n_voltages = 0x1A,
                .enable_time_us = 230,
        },
        {
                .name = "ldo4",
                .vin_name = "vcc5",
-               .n_voltages = 47,
+               .n_voltages = 0x33,
                .enable_time_us = 230,
        },
        {
                .name = "ldo5",
                .vin_name = "vcc4",
-               .n_voltages = 24,
+               .n_voltages = 0x1A,
                .enable_time_us = 230,
        },
        {
                .name = "ldo6",
                .vin_name = "vcc3",
-               .n_voltages = 24,
+               .n_voltages = 0x1A,
                .enable_time_us = 230,
        },
        {
                .name = "ldo7",
                .vin_name = "vcc3",
-               .n_voltages = 24,
+               .n_voltages = 0x1A,
                .enable_time_us = 230,
        },
        {
                .name = "ldo8",
                .vin_name = "vcc3",
-               .n_voltages = 24,
+               .n_voltages = 0x1A,
                .enable_time_us = 230,
        },
 };