Commit 5fcf4a3c authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Simon Horman

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: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent e3a28ac2
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include <linux/leds.h> #include <linux/leds.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <linux/pinctrl/machine.h> #include <linux/pinctrl/machine.h>
#include <linux/platform_data/gpio-rcar.h>
#include <linux/regulator/fixed.h> #include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h> #include <linux/regulator/machine.h>
#include <linux/smsc911x.h> #include <linux/smsc911x.h>
...@@ -173,15 +174,15 @@ static struct platform_device usb_phy_device = { ...@@ -173,15 +174,15 @@ static struct platform_device usb_phy_device = {
static struct gpio_led marzen_leds[] = { static struct gpio_led marzen_leds[] = {
{ {
.name = "led2", .name = "led2",
.gpio = 157, .gpio = RCAR_GP_PIN(4, 29),
.default_state = LEDS_GPIO_DEFSTATE_ON, .default_state = LEDS_GPIO_DEFSTATE_ON,
}, { }, {
.name = "led3", .name = "led3",
.gpio = 158, .gpio = RCAR_GP_PIN(4, 30),
.default_state = LEDS_GPIO_DEFSTATE_ON, .default_state = LEDS_GPIO_DEFSTATE_ON,
}, { }, {
.name = "led4", .name = "led4",
.gpio = 159, .gpio = RCAR_GP_PIN(4, 31),
.default_state = LEDS_GPIO_DEFSTATE_ON, .default_state = LEDS_GPIO_DEFSTATE_ON,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment