]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
gpio-rcar: Make the platform data gpio_base field signed
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 10 May 2013 14:48:36 +0000 (16:48 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 15 May 2013 02:00:14 +0000 (11:00 +0900)
The gpio_base field is used to specify the desired GPIO base for the
GPIO controller. The GPIO core can automatically allocate a GPIO number
range when the base is set to -1. To make this possible, make the field
signed.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
include/linux/platform_data/gpio-rcar.h

index b253f77a7ddf6ba4db532cdbeeae43cf7b1e16df..aba7079ccc95c0317b0d6c55d5f3fb449f8642ce 100644 (file)
@@ -17,7 +17,7 @@
 #define __GPIO_RCAR_H__
 
 struct gpio_rcar_config {
-       unsigned int gpio_base;
+       int gpio_base;
        unsigned int irq_base;
        unsigned int number_of_pins;
        const char *pctl_name;