diff options
-rw-r--r-- | Documentation/devicetree/bindings/regulator/regulator.txt | 2 | ||||
-rw-r--r-- | drivers/regulator/core.c | 4 | ||||
-rw-r--r-- | include/linux/regulator/driver.h | 2 | ||||
-rw-r--r-- | include/linux/regulator/machine.h | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/devicetree/bindings/regulator/regulator.txt b/Documentation/devicetree/bindings/regulator/regulator.txt index d0a7b1296a36..bec5d5747411 100644 --- a/Documentation/devicetree/bindings/regulator/regulator.txt +++ b/Documentation/devicetree/bindings/regulator/regulator.txt | |||
@@ -10,7 +10,7 @@ Optional properties: | |||
10 | - regulator-always-on: boolean, regulator should never be disabled | 10 | - regulator-always-on: boolean, regulator should never be disabled |
11 | - regulator-boot-on: bootloader/firmware enabled regulator | 11 | - regulator-boot-on: bootloader/firmware enabled regulator |
12 | - <name>-supply: phandle to the parent supply/regulator node | 12 | - <name>-supply: phandle to the parent supply/regulator node |
13 | - regulator-ramp-delay: ramp delay for regulator(in mV/uS) | 13 | - regulator-ramp-delay: ramp delay for regulator(in uV/uS) |
14 | 14 | ||
15 | Example: | 15 | Example: |
16 | 16 | ||
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 73a3d874ca6e..ce0a3462e0de 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c | |||
@@ -2319,11 +2319,11 @@ int regulator_set_voltage_time_sel(struct regulator_dev *rdev, | |||
2319 | if (rdev->desc->uV_step) { | 2319 | if (rdev->desc->uV_step) { |
2320 | return DIV_ROUND_UP(rdev->desc->uV_step * | 2320 | return DIV_ROUND_UP(rdev->desc->uV_step * |
2321 | abs(new_selector - old_selector), | 2321 | abs(new_selector - old_selector), |
2322 | ramp_delay * 1000); | 2322 | ramp_delay); |
2323 | } else if (rdev->desc->volt_table) { | 2323 | } else if (rdev->desc->volt_table) { |
2324 | return DIV_ROUND_UP(abs(rdev->desc->volt_table[new_selector] - | 2324 | return DIV_ROUND_UP(abs(rdev->desc->volt_table[new_selector] - |
2325 | rdev->desc->volt_table[old_selector]), | 2325 | rdev->desc->volt_table[old_selector]), |
2326 | ramp_delay * 1000); | 2326 | ramp_delay); |
2327 | } else { | 2327 | } else { |
2328 | rdev_warn(rdev, "Unsupported voltage mapping settings\n"); | 2328 | rdev_warn(rdev, "Unsupported voltage mapping settings\n"); |
2329 | } | 2329 | } |
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h index ddc155d262da..84f999ed394b 100644 --- a/include/linux/regulator/driver.h +++ b/include/linux/regulator/driver.h | |||
@@ -173,7 +173,7 @@ enum regulator_type { | |||
173 | * | 173 | * |
174 | * @min_uV: Voltage given by the lowest selector (if linear mapping) | 174 | * @min_uV: Voltage given by the lowest selector (if linear mapping) |
175 | * @uV_step: Voltage increase with each selector (if linear mapping) | 175 | * @uV_step: Voltage increase with each selector (if linear mapping) |
176 | * @ramp_delay: Time to settle down after voltage change (unit: mV/us) | 176 | * @ramp_delay: Time to settle down after voltage change (unit: uV/us) |
177 | * @volt_table: Voltage mapping table (if table based mapping) | 177 | * @volt_table: Voltage mapping table (if table based mapping) |
178 | * | 178 | * |
179 | * @vsel_reg: Register for selector when using regulator_regmap_X_voltage_ | 179 | * @vsel_reg: Register for selector when using regulator_regmap_X_voltage_ |
diff --git a/include/linux/regulator/machine.h b/include/linux/regulator/machine.h index 5f37ad3cc172..40dd0a394cfa 100644 --- a/include/linux/regulator/machine.h +++ b/include/linux/regulator/machine.h | |||
@@ -92,7 +92,7 @@ struct regulator_state { | |||
92 | * mode. | 92 | * mode. |
93 | * @initial_state: Suspend state to set by default. | 93 | * @initial_state: Suspend state to set by default. |
94 | * @initial_mode: Mode to set at startup. | 94 | * @initial_mode: Mode to set at startup. |
95 | * @ramp_delay: Time to settle down after voltage change (unit: mV/us) | 95 | * @ramp_delay: Time to settle down after voltage change (unit: uV/us) |
96 | */ | 96 | */ |
97 | struct regulation_constraints { | 97 | struct regulation_constraints { |
98 | 98 | ||