| From 1d94b403c7d3401f6714fea25cb5363e1d555a41 Mon Sep 17 00:00:00 2001 |
| From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> |
| Date: Mon, 8 Apr 2013 12:05:32 +0200 |
| Subject: 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> |
| (cherry picked from commit 5fcf4a3c3a5bc08bf72a50ef1332501a3c1b96bb) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| arch/arm/mach-shmobile/board-marzen.c | 7 ++++--- |
| 1 file changed, 4 insertions(+), 3 deletions(-) |
| |
| diff --git a/arch/arm/mach-shmobile/board-marzen.c b/arch/arm/mach-shmobile/board-marzen.c |
| index b9594e91..9112faef 100644 |
| --- a/arch/arm/mach-shmobile/board-marzen.c |
| +++ b/arch/arm/mach-shmobile/board-marzen.c |
| @@ -28,6 +28,7 @@ |
| #include <linux/leds.h> |
| #include <linux/dma-mapping.h> |
| #include <linux/pinctrl/machine.h> |
| +#include <linux/platform_data/gpio-rcar.h> |
| #include <linux/regulator/fixed.h> |
| #include <linux/regulator/machine.h> |
| #include <linux/smsc911x.h> |
| @@ -173,15 +174,15 @@ static struct platform_device usb_phy_device = { |
| static struct gpio_led marzen_leds[] = { |
| { |
| .name = "led2", |
| - .gpio = 157, |
| + .gpio = RCAR_GP_PIN(4, 29), |
| .default_state = LEDS_GPIO_DEFSTATE_ON, |
| }, { |
| .name = "led3", |
| - .gpio = 158, |
| + .gpio = RCAR_GP_PIN(4, 30), |
| .default_state = LEDS_GPIO_DEFSTATE_ON, |
| }, { |
| .name = "led4", |
| - .gpio = 159, |
| + .gpio = RCAR_GP_PIN(4, 31), |
| .default_state = LEDS_GPIO_DEFSTATE_ON, |
| }, |
| }; |
| -- |
| 1.8.4.3.gca3854a |
| |