Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Link: https://lore.kernel.org/r/20200410073343.39031-1-yanaijie@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Jason Yan and committed by
Mark Brown
29ebe87c 6b576eb0

-22
-22
drivers/regulator/ab8500.c
··· 139 139 1350000, 140 140 }; 141 141 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 - 153 142 static const unsigned int fixed_1200000_voltage[] = { 154 143 1200000, 155 144 }; ··· 153 164 154 165 static const unsigned int fixed_2050000_voltage[] = { 155 166 2050000, 156 - }; 157 - 158 - static const unsigned int fixed_3300000_voltage[] = { 159 - 3300000, 160 167 }; 161 168 162 169 static const unsigned int ldo_vana_voltages[] = { ··· 175 190 2500000, 176 191 2600000, 177 192 2600000, /* Duplicated in Vaudio and IsoUicc Control register. */ 178 - }; 179 - 180 - static const unsigned int ldo_vdmic_voltages[] = { 181 - 1800000, 182 - 1900000, 183 - 2000000, 184 - 2850000, 185 193 }; 186 194 187 195 static DEFINE_MUTEX(shared_mode_mutex);