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

regulator: lp8755: Remove enum bucks

We already have enum lp8755_bucks in lp8755.h, so it looks pointless adding
enum bucks in lp8755.c.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Tested-by: Daniel Jeong <gshark.jeong@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

authored by

Axel Lin and committed by
Mark Brown
510799ea 240a5291

+17 -33
+17 -33
drivers/regulator/lp8755.c
··· 37 37 #define LP8755_BUCK_LINEAR_OUT_MAX 0x76 38 38 #define LP8755_BUCK_VOUT_M 0x7F 39 39 40 - enum bucks { 41 - BUCK0 = 0, 42 - BUCK1, 43 - BUCK2, 44 - BUCK3, 45 - BUCK4, 46 - BUCK5, 47 - }; 48 - 49 40 struct lp8755_mphase { 50 41 int nreg; 51 42 int buck_num[LP8755_BUCK_MAX]; ··· 253 262 } 254 263 255 264 static struct regulator_init_data lp8755_reg_default[LP8755_BUCK_MAX] = { 256 - [BUCK0] = lp8755_buck_init(0), 257 - [BUCK1] = lp8755_buck_init(1), 258 - [BUCK2] = lp8755_buck_init(2), 259 - [BUCK3] = lp8755_buck_init(3), 260 - [BUCK4] = lp8755_buck_init(4), 261 - [BUCK5] = lp8755_buck_init(5), 265 + [LP8755_BUCK0] = lp8755_buck_init(0), 266 + [LP8755_BUCK1] = lp8755_buck_init(1), 267 + [LP8755_BUCK2] = lp8755_buck_init(2), 268 + [LP8755_BUCK3] = lp8755_buck_init(3), 269 + [LP8755_BUCK4] = lp8755_buck_init(4), 270 + [LP8755_BUCK5] = lp8755_buck_init(5), 262 271 }; 263 272 264 273 static const struct lp8755_mphase mphase_buck[MPHASE_CONF_MAX] = { 265 - {3, {BUCK0, BUCK3, BUCK5} 266 - }, 267 - {6, {BUCK0, BUCK1, BUCK2, BUCK3, BUCK4, BUCK5} 268 - }, 269 - {5, {BUCK0, BUCK2, BUCK3, BUCK4, BUCK5} 270 - }, 271 - {4, {BUCK0, BUCK3, BUCK4, BUCK5} 272 - }, 273 - {3, {BUCK0, BUCK4, BUCK5} 274 - }, 275 - {2, {BUCK0, BUCK5} 276 - }, 277 - {1, {BUCK0} 278 - }, 279 - {2, {BUCK0, BUCK3} 280 - }, 281 - {4, {BUCK0, BUCK2, BUCK3, BUCK5} 282 - }, 274 + { 3, { LP8755_BUCK0, LP8755_BUCK3, LP8755_BUCK5 } }, 275 + { 6, { LP8755_BUCK0, LP8755_BUCK1, LP8755_BUCK2, LP8755_BUCK3, 276 + LP8755_BUCK4, LP8755_BUCK5 } }, 277 + { 5, { LP8755_BUCK0, LP8755_BUCK2, LP8755_BUCK3, LP8755_BUCK4, 278 + LP8755_BUCK5} }, 279 + { 4, { LP8755_BUCK0, LP8755_BUCK3, LP8755_BUCK4, LP8755_BUCK5} }, 280 + { 3, { LP8755_BUCK0, LP8755_BUCK4, LP8755_BUCK5} }, 281 + { 2, { LP8755_BUCK0, LP8755_BUCK5} }, 282 + { 1, { LP8755_BUCK0} }, 283 + { 2, { LP8755_BUCK0, LP8755_BUCK3} }, 284 + { 4, { LP8755_BUCK0, LP8755_BUCK2, LP8755_BUCK3, LP8755_BUCK5} }, 283 285 }; 284 286 285 287 static int lp8755_init_data(struct lp8755_chip *pchip)