diff options
author | Hugh Sipière <hgsipiere@gmail.com> | 2016-06-04 12:17:01 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2016-07-06 09:09:36 -0400 |
commit | c683ffe2193b31bba64650fc74d1d6ba254eaafd (patch) | |
tree | d84d2bdb2fd2e6f8b6a48d8657bf54876962e52f /drivers/ssb | |
parent | a99cde438de0c4c0cecc1d1af1a55a75b10bfdef (diff) |
SSB: Change bare unsigned to unsigned int to suit coding style
These lines just have unsigned gpio rather than unsigned int gpio.
I changed it to suit the coding style. Michael Buesch told me to
send this to the MIPS tree.
Signed-off-by: Hugh Sipière <hgsipiere@gmail.com>
Acked-by: Michael Buesch <m@bues.ch>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13460/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'drivers/ssb')
-rw-r--r-- | drivers/ssb/driver_gpio.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/ssb/driver_gpio.c b/drivers/ssb/driver_gpio.c index 180e027b1c8a..796e22037bc4 100644 --- a/drivers/ssb/driver_gpio.c +++ b/drivers/ssb/driver_gpio.c | |||
@@ -23,7 +23,7 @@ | |||
23 | **************************************************/ | 23 | **************************************************/ |
24 | 24 | ||
25 | #if IS_ENABLED(CONFIG_SSB_EMBEDDED) | 25 | #if IS_ENABLED(CONFIG_SSB_EMBEDDED) |
26 | static int ssb_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) | 26 | static int ssb_gpio_to_irq(struct gpio_chip *chip, unsigned int gpio) |
27 | { | 27 | { |
28 | struct ssb_bus *bus = gpiochip_get_data(chip); | 28 | struct ssb_bus *bus = gpiochip_get_data(chip); |
29 | 29 | ||
@@ -38,14 +38,14 @@ static int ssb_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) | |||
38 | * ChipCommon | 38 | * ChipCommon |
39 | **************************************************/ | 39 | **************************************************/ |
40 | 40 | ||
41 | static int ssb_gpio_chipco_get_value(struct gpio_chip *chip, unsigned gpio) | 41 | static int ssb_gpio_chipco_get_value(struct gpio_chip *chip, unsigned int gpio) |
42 | { | 42 | { |
43 | struct ssb_bus *bus = gpiochip_get_data(chip); | 43 | struct ssb_bus *bus = gpiochip_get_data(chip); |
44 | 44 | ||
45 | return !!ssb_chipco_gpio_in(&bus->chipco, 1 << gpio); | 45 | return !!ssb_chipco_gpio_in(&bus->chipco, 1 << gpio); |
46 | } | 46 | } |
47 | 47 | ||
48 | static void ssb_gpio_chipco_set_value(struct gpio_chip *chip, unsigned gpio, | 48 | static void ssb_gpio_chipco_set_value(struct gpio_chip *chip, unsigned int gpio, |
49 | int value) | 49 | int value) |
50 | { | 50 | { |
51 | struct ssb_bus *bus = gpiochip_get_data(chip); | 51 | struct ssb_bus *bus = gpiochip_get_data(chip); |
@@ -54,7 +54,7 @@ static void ssb_gpio_chipco_set_value(struct gpio_chip *chip, unsigned gpio, | |||
54 | } | 54 | } |
55 | 55 | ||
56 | static int ssb_gpio_chipco_direction_input(struct gpio_chip *chip, | 56 | static int ssb_gpio_chipco_direction_input(struct gpio_chip *chip, |
57 | unsigned gpio) | 57 | unsigned int gpio) |
58 | { | 58 | { |
59 | struct ssb_bus *bus = gpiochip_get_data(chip); | 59 | struct ssb_bus *bus = gpiochip_get_data(chip); |
60 | 60 | ||
@@ -63,7 +63,7 @@ static int ssb_gpio_chipco_direction_input(struct gpio_chip *chip, | |||
63 | } | 63 | } |
64 | 64 | ||
65 | static int ssb_gpio_chipco_direction_output(struct gpio_chip *chip, | 65 | static int ssb_gpio_chipco_direction_output(struct gpio_chip *chip, |
66 | unsigned gpio, int value) | 66 | unsigned int gpio, int value) |
67 | { | 67 | { |
68 | struct ssb_bus *bus = gpiochip_get_data(chip); | 68 | struct ssb_bus *bus = gpiochip_get_data(chip); |
69 | 69 | ||
@@ -72,7 +72,7 @@ static int ssb_gpio_chipco_direction_output(struct gpio_chip *chip, | |||
72 | return 0; | 72 | return 0; |
73 | } | 73 | } |
74 | 74 | ||
75 | static int ssb_gpio_chipco_request(struct gpio_chip *chip, unsigned gpio) | 75 | static int ssb_gpio_chipco_request(struct gpio_chip *chip, unsigned int gpio) |
76 | { | 76 | { |
77 | struct ssb_bus *bus = gpiochip_get_data(chip); | 77 | struct ssb_bus *bus = gpiochip_get_data(chip); |
78 | 78 | ||
@@ -85,7 +85,7 @@ static int ssb_gpio_chipco_request(struct gpio_chip *chip, unsigned gpio) | |||
85 | return 0; | 85 | return 0; |
86 | } | 86 | } |
87 | 87 | ||
88 | static void ssb_gpio_chipco_free(struct gpio_chip *chip, unsigned gpio) | 88 | static void ssb_gpio_chipco_free(struct gpio_chip *chip, unsigned int gpio) |
89 | { | 89 | { |
90 | struct ssb_bus *bus = gpiochip_get_data(chip); | 90 | struct ssb_bus *bus = gpiochip_get_data(chip); |
91 | 91 | ||
@@ -256,14 +256,14 @@ static int ssb_gpio_chipco_init(struct ssb_bus *bus) | |||
256 | 256 | ||
257 | #ifdef CONFIG_SSB_DRIVER_EXTIF | 257 | #ifdef CONFIG_SSB_DRIVER_EXTIF |
258 | 258 | ||
259 | static int ssb_gpio_extif_get_value(struct gpio_chip *chip, unsigned gpio) | 259 | static int ssb_gpio_extif_get_value(struct gpio_chip *chip, unsigned int gpio) |
260 | { | 260 | { |
261 | struct ssb_bus *bus = gpiochip_get_data(chip); | 261 | struct ssb_bus *bus = gpiochip_get_data(chip); |
262 | 262 | ||
263 | return !!ssb_extif_gpio_in(&bus->extif, 1 << gpio); | 263 | return !!ssb_extif_gpio_in(&bus->extif, 1 << gpio); |
264 | } | 264 | } |
265 | 265 | ||
266 | static void ssb_gpio_extif_set_value(struct gpio_chip *chip, unsigned gpio, | 266 | static void ssb_gpio_extif_set_value(struct gpio_chip *chip, unsigned int gpio, |
267 | int value) | 267 | int value) |
268 | { | 268 | { |
269 | struct ssb_bus *bus = gpiochip_get_data(chip); | 269 | struct ssb_bus *bus = gpiochip_get_data(chip); |
@@ -272,7 +272,7 @@ static void ssb_gpio_extif_set_value(struct gpio_chip *chip, unsigned gpio, | |||
272 | } | 272 | } |
273 | 273 | ||
274 | static int ssb_gpio_extif_direction_input(struct gpio_chip *chip, | 274 | static int ssb_gpio_extif_direction_input(struct gpio_chip *chip, |
275 | unsigned gpio) | 275 | unsigned int gpio) |
276 | { | 276 | { |
277 | struct ssb_bus *bus = gpiochip_get_data(chip); | 277 | struct ssb_bus *bus = gpiochip_get_data(chip); |
278 | 278 | ||
@@ -281,7 +281,7 @@ static int ssb_gpio_extif_direction_input(struct gpio_chip *chip, | |||
281 | } | 281 | } |
282 | 282 | ||
283 | static int ssb_gpio_extif_direction_output(struct gpio_chip *chip, | 283 | static int ssb_gpio_extif_direction_output(struct gpio_chip *chip, |
284 | unsigned gpio, int value) | 284 | unsigned int gpio, int value) |
285 | { | 285 | { |
286 | struct ssb_bus *bus = gpiochip_get_data(chip); | 286 | struct ssb_bus *bus = gpiochip_get_data(chip); |
287 | 287 | ||