diff options
author | Kevin Hilman <khilman@ti.com> | 2011-07-15 19:05:12 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-09-15 15:09:21 -0400 |
commit | d5c128289f5066a7c6bf27d6ba27a6ae425be757 (patch) | |
tree | 72883f94d68b8ae1a4942c2b3bed98a48d5e7e64 | |
parent | e32778804930ed3141ffc55242d88e086d71ac24 (diff) |
OMAP3+: voltage: rename omap_voltage_get_nom_volt -> voltdm_get_voltage
Use preferred voltdm_ naming for getting current nominal voltage.
No functional changes.
Signed-off-by: Kevin Hilman <khilman@ti.com>
-rw-r--r-- | arch/arm/mach-omap2/smartreflex-class3.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/voltage.c | 14 | ||||
-rw-r--r-- | arch/arm/mach-omap2/voltage.h | 2 |
3 files changed, 10 insertions, 8 deletions
diff --git a/arch/arm/mach-omap2/smartreflex-class3.c b/arch/arm/mach-omap2/smartreflex-class3.c index 4eac1bc6de22..53d9d0a5b39d 100644 --- a/arch/arm/mach-omap2/smartreflex-class3.c +++ b/arch/arm/mach-omap2/smartreflex-class3.c | |||
@@ -15,7 +15,7 @@ | |||
15 | 15 | ||
16 | static int sr_class3_enable(struct voltagedomain *voltdm) | 16 | static int sr_class3_enable(struct voltagedomain *voltdm) |
17 | { | 17 | { |
18 | unsigned long volt = omap_voltage_get_nom_volt(voltdm); | 18 | unsigned long volt = voltdm_get_voltage(voltdm); |
19 | 19 | ||
20 | if (!volt) { | 20 | if (!volt) { |
21 | pr_warning("%s: Curr voltage unknown. Cannot enable sr_%s\n", | 21 | pr_warning("%s: Curr voltage unknown. Cannot enable sr_%s\n", |
diff --git a/arch/arm/mach-omap2/voltage.c b/arch/arm/mach-omap2/voltage.c index 2ba276f18159..441c2d98008c 100644 --- a/arch/arm/mach-omap2/voltage.c +++ b/arch/arm/mach-omap2/voltage.c | |||
@@ -45,13 +45,13 @@ static LIST_HEAD(voltdm_list); | |||
45 | 45 | ||
46 | /* Public functions */ | 46 | /* Public functions */ |
47 | /** | 47 | /** |
48 | * omap_voltage_get_nom_volt() - Gets the current non-auto-compensated voltage | 48 | * voltdm_get_voltage() - Gets the current non-auto-compensated voltage |
49 | * @voltdm: pointer to the VDD for which current voltage info is needed | 49 | * @voltdm: pointer to the voltdm for which current voltage info is needed |
50 | * | 50 | * |
51 | * API to get the current non-auto-compensated voltage for a VDD. | 51 | * API to get the current non-auto-compensated voltage for a voltage domain. |
52 | * Returns 0 in case of error else returns the current voltage for the VDD. | 52 | * Returns 0 in case of error else returns the current voltage. |
53 | */ | 53 | */ |
54 | unsigned long omap_voltage_get_nom_volt(struct voltagedomain *voltdm) | 54 | unsigned long voltdm_get_voltage(struct voltagedomain *voltdm) |
55 | { | 55 | { |
56 | if (!voltdm || IS_ERR(voltdm)) { | 56 | if (!voltdm || IS_ERR(voltdm)) { |
57 | pr_warning("%s: VDD specified does not exist!\n", __func__); | 57 | pr_warning("%s: VDD specified does not exist!\n", __func__); |
@@ -72,6 +72,8 @@ unsigned long omap_voltage_get_nom_volt(struct voltagedomain *voltdm) | |||
72 | int voltdm_scale(struct voltagedomain *voltdm, | 72 | int voltdm_scale(struct voltagedomain *voltdm, |
73 | unsigned long target_volt) | 73 | unsigned long target_volt) |
74 | { | 74 | { |
75 | int ret; | ||
76 | |||
75 | if (!voltdm || IS_ERR(voltdm)) { | 77 | if (!voltdm || IS_ERR(voltdm)) { |
76 | pr_warning("%s: VDD specified does not exist!\n", __func__); | 78 | pr_warning("%s: VDD specified does not exist!\n", __func__); |
77 | return -EINVAL; | 79 | return -EINVAL; |
@@ -104,7 +106,7 @@ void voltdm_reset(struct voltagedomain *voltdm) | |||
104 | return; | 106 | return; |
105 | } | 107 | } |
106 | 108 | ||
107 | target_volt = omap_voltage_get_nom_volt(voltdm); | 109 | target_volt = voltdm_get_voltage(voltdm); |
108 | if (!target_volt) { | 110 | if (!target_volt) { |
109 | pr_err("%s: unable to find current voltage for vdd_%s\n", | 111 | pr_err("%s: unable to find current voltage for vdd_%s\n", |
110 | __func__, voltdm->name); | 112 | __func__, voltdm->name); |
diff --git a/arch/arm/mach-omap2/voltage.h b/arch/arm/mach-omap2/voltage.h index 962d808346eb..4c0980941991 100644 --- a/arch/arm/mach-omap2/voltage.h +++ b/arch/arm/mach-omap2/voltage.h | |||
@@ -148,7 +148,6 @@ void omap_voltage_get_volttable(struct voltagedomain *voltdm, | |||
148 | struct omap_volt_data **volt_data); | 148 | struct omap_volt_data **volt_data); |
149 | struct omap_volt_data *omap_voltage_get_voltdata(struct voltagedomain *voltdm, | 149 | struct omap_volt_data *omap_voltage_get_voltdata(struct voltagedomain *voltdm, |
150 | unsigned long volt); | 150 | unsigned long volt); |
151 | unsigned long omap_voltage_get_nom_volt(struct voltagedomain *voltdm); | ||
152 | #ifdef CONFIG_PM | 151 | #ifdef CONFIG_PM |
153 | int omap_voltage_register_pmic(struct voltagedomain *voltdm, | 152 | int omap_voltage_register_pmic(struct voltagedomain *voltdm, |
154 | struct omap_voltdm_pmic *pmic); | 153 | struct omap_voltdm_pmic *pmic); |
@@ -183,4 +182,5 @@ int voltdm_for_each_pwrdm(struct voltagedomain *voltdm, | |||
183 | struct powerdomain *pwrdm)); | 182 | struct powerdomain *pwrdm)); |
184 | int voltdm_scale(struct voltagedomain *voltdm, unsigned long target_volt); | 183 | int voltdm_scale(struct voltagedomain *voltdm, unsigned long target_volt); |
185 | void voltdm_reset(struct voltagedomain *voltdm); | 184 | void voltdm_reset(struct voltagedomain *voltdm); |
185 | unsigned long voltdm_get_voltage(struct voltagedomain *voltdm); | ||
186 | #endif | 186 | #endif |