Skip to content

Commit 29ebe87

Browse files
JasonYanHwbroonie
authored andcommitted
regulator: ab8500: remove some defined but not used variables
Fix the following gcc warning: drivers/regulator/ab8500.c:195:27: warning: ‘ldo_vdmic_voltages’ defined but not used [-Wunused-const-variable=] static const unsigned int ldo_vdmic_voltages[] = { ^~~~~~~~~~~~~~~~~~ drivers/regulator/ab8500.c:169:27: warning: ‘fixed_3300000_voltage’ defined but not used [-Wunused-const-variable=] static const unsigned int fixed_3300000_voltage[] = { ^~~~~~~~~~~~~~~~~~~~~ drivers/regulator/ab8500.c:142:27: warning: ‘ldo_sdio_voltages’ defined but not used [-Wunused-const-variable=] static const unsigned int ldo_sdio_voltages[] = { ^~~~~~~~~~~~~~~~~ Reported-by: Hulk Robot <[email protected]> Signed-off-by: Jason Yan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 6b576eb commit 29ebe87

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

drivers/regulator/ab8500.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,6 @@ static const unsigned int ldo_vintcore_voltages[] = {
139139
1350000,
140140
};
141141

142-
static const unsigned int ldo_sdio_voltages[] = {
143-
1160000,
144-
1050000,
145-
1100000,
146-
1500000,
147-
1800000,
148-
2200000,
149-
2910000,
150-
3050000,
151-
};
152-
153142
static const unsigned int fixed_1200000_voltage[] = {
154143
1200000,
155144
};
@@ -166,10 +155,6 @@ static const unsigned int fixed_2050000_voltage[] = {
166155
2050000,
167156
};
168157

169-
static const unsigned int fixed_3300000_voltage[] = {
170-
3300000,
171-
};
172-
173158
static const unsigned int ldo_vana_voltages[] = {
174159
1050000,
175160
1075000,
@@ -192,13 +177,6 @@ static const unsigned int ldo_vaudio_voltages[] = {
192177
2600000, /* Duplicated in Vaudio and IsoUicc Control register. */
193178
};
194179

195-
static const unsigned int ldo_vdmic_voltages[] = {
196-
1800000,
197-
1900000,
198-
2000000,
199-
2850000,
200-
};
201-
202180
static DEFINE_MUTEX(shared_mode_mutex);
203181
static struct ab8500_shared_mode ldo_anamic1_shared;
204182
static struct ab8500_shared_mode ldo_anamic2_shared;

0 commit comments

Comments
 (0)