diff options
author | Jarkko Nikula <jhnikula@gmail.com> | 2010-08-02 06:18:02 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-08-02 06:18:02 -0400 |
commit | 5c7d9bbec6415a00860e4ee482a794c940ba8733 (patch) | |
tree | 5f4a37639a0c706cc80813ac64c10ce52a8a42d5 /arch/arm/mach-omap2/board-rx51-peripherals.c | |
parent | 87581fd4a9c038dc18684b9336f2c59eee1710cc (diff) |
omap: rx51: Use REGULATOR_SUPPLY macro when initializingregulator consumers
There is REGULATOR_SUPPLY macro available for initializing the struct
regulator_consumer_supply so use it where applicable (all other supplies
than vdds_sdi) as it improves the readability.
Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-rx51-peripherals.c')
-rw-r--r-- | arch/arm/mach-omap2/board-rx51-peripherals.c | 43 |
1 files changed, 11 insertions, 32 deletions
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index e350f0bf8cdc..b4c3dd7863ad 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c | |||
@@ -301,48 +301,27 @@ static struct omap2_hsmmc_info mmc[] __initdata = { | |||
301 | {} /* Terminator */ | 301 | {} /* Terminator */ |
302 | }; | 302 | }; |
303 | 303 | ||
304 | static struct regulator_consumer_supply rx51_vmmc1_supply = { | 304 | static struct regulator_consumer_supply rx51_vmmc1_supply = |
305 | .supply = "vmmc", | 305 | REGULATOR_SUPPLY("vmmc", "mmci-omap-hs.0"); |
306 | .dev_name = "mmci-omap-hs.0", | ||
307 | }; | ||
308 | 306 | ||
309 | static struct regulator_consumer_supply rx51_vaux3_supply = { | 307 | static struct regulator_consumer_supply rx51_vaux3_supply = |
310 | .supply = "vmmc", | 308 | REGULATOR_SUPPLY("vmmc", "mmci-omap-hs.1"); |
311 | .dev_name = "mmci-omap-hs.1", | ||
312 | }; | ||
313 | 309 | ||
314 | static struct regulator_consumer_supply rx51_vsim_supply = { | 310 | static struct regulator_consumer_supply rx51_vsim_supply = |
315 | .supply = "vmmc_aux", | 311 | REGULATOR_SUPPLY("vmmc_aux", "mmci-omap-hs.1"); |
316 | .dev_name = "mmci-omap-hs.1", | ||
317 | }; | ||
318 | 312 | ||
319 | static struct regulator_consumer_supply rx51_vmmc2_supplies[] = { | 313 | static struct regulator_consumer_supply rx51_vmmc2_supplies[] = { |
320 | /* tlv320aic3x analog supplies */ | 314 | /* tlv320aic3x analog supplies */ |
321 | { | 315 | REGULATOR_SUPPLY("AVDD", "2-0018"), |
322 | .supply = "AVDD", | 316 | REGULATOR_SUPPLY("DRVDD", "2-0018"), |
323 | .dev_name = "2-0018", | ||
324 | }, | ||
325 | { | ||
326 | .supply = "DRVDD", | ||
327 | .dev_name = "2-0018", | ||
328 | }, | ||
329 | /* Keep vmmc as last item. It is not iterated for newer boards */ | 317 | /* Keep vmmc as last item. It is not iterated for newer boards */ |
330 | { | 318 | REGULATOR_SUPPLY("vmmc", "mmci-omap-hs.1"), |
331 | .supply = "vmmc", | ||
332 | .dev_name = "mmci-omap-hs.1", | ||
333 | }, | ||
334 | }; | 319 | }; |
335 | 320 | ||
336 | static struct regulator_consumer_supply rx51_vio_supplies[] = { | 321 | static struct regulator_consumer_supply rx51_vio_supplies[] = { |
337 | /* tlv320aic3x digital supplies */ | 322 | /* tlv320aic3x digital supplies */ |
338 | { | 323 | REGULATOR_SUPPLY("IOVDD", "2-0018"), |
339 | .supply = "IOVDD", | 324 | REGULATOR_SUPPLY("DVDD", "2-0018"), |
340 | .dev_name = "2-0018" | ||
341 | }, | ||
342 | { | ||
343 | .supply = "DVDD", | ||
344 | .dev_name = "2-0018" | ||
345 | }, | ||
346 | }; | 325 | }; |
347 | 326 | ||
348 | #if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE) | 327 | #if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE) |