aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/board-marzen.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-04-08 06:05:32 -0400
committerSimon Horman <horms+renesas@verge.net.au>2013-06-05 04:18:24 -0400
commit5fcf4a3c3a5bc08bf72a50ef1332501a3c1b96bb (patch)
tree8d1e600fedaca792e975dcc880aa6dd363543162 /arch/arm/mach-shmobile/board-marzen.c
parente3a28ac29c1ff54a45167adb34ebedd51205c2ff (diff)
ARM: shmobile: marzen: Use RCAR_GP_PIN macro
Replace hardcoded pin numbers with the RCAR_GP_PIN macro to make the code match the documentation. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/board-marzen.c')
-rw-r--r--arch/arm/mach-shmobile/board-marzen.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/mach-shmobile/board-marzen.c b/arch/arm/mach-shmobile/board-marzen.c
index 91052855cc12..fac9e0f87897 100644
--- a/arch/arm/mach-shmobile/board-marzen.c
+++ b/arch/arm/mach-shmobile/board-marzen.c
@@ -28,6 +28,7 @@
28#include <linux/leds.h> 28#include <linux/leds.h>
29#include <linux/dma-mapping.h> 29#include <linux/dma-mapping.h>
30#include <linux/pinctrl/machine.h> 30#include <linux/pinctrl/machine.h>
31#include <linux/platform_data/gpio-rcar.h>
31#include <linux/regulator/fixed.h> 32#include <linux/regulator/fixed.h>
32#include <linux/regulator/machine.h> 33#include <linux/regulator/machine.h>
33#include <linux/smsc911x.h> 34#include <linux/smsc911x.h>
@@ -173,15 +174,15 @@ static struct platform_device usb_phy_device = {
173static struct gpio_led marzen_leds[] = { 174static struct gpio_led marzen_leds[] = {
174 { 175 {
175 .name = "led2", 176 .name = "led2",
176 .gpio = 157, 177 .gpio = RCAR_GP_PIN(4, 29),
177 .default_state = LEDS_GPIO_DEFSTATE_ON, 178 .default_state = LEDS_GPIO_DEFSTATE_ON,
178 }, { 179 }, {
179 .name = "led3", 180 .name = "led3",
180 .gpio = 158, 181 .gpio = RCAR_GP_PIN(4, 30),
181 .default_state = LEDS_GPIO_DEFSTATE_ON, 182 .default_state = LEDS_GPIO_DEFSTATE_ON,
182 }, { 183 }, {
183 .name = "led4", 184 .name = "led4",
184 .gpio = 159, 185 .gpio = RCAR_GP_PIN(4, 31),
185 .default_state = LEDS_GPIO_DEFSTATE_ON, 186 .default_state = LEDS_GPIO_DEFSTATE_ON,
186 }, 187 },
187}; 188};