Skip to content

Commit c683ffe

Browse files
hgsipiereralfbaechle
authored andcommitted
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 <[email protected]> Acked-by: Michael Buesch <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/13460/ Signed-off-by: Ralf Baechle <[email protected]>
1 parent a99cde4 commit c683ffe

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

drivers/ssb/driver_gpio.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
**************************************************/
2424

2525
#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)
2727
{
2828
struct ssb_bus *bus = gpiochip_get_data(chip);
2929

@@ -38,14 +38,14 @@ static int ssb_gpio_to_irq(struct gpio_chip *chip, unsigned gpio)
3838
* ChipCommon
3939
**************************************************/
4040

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)
4242
{
4343
struct ssb_bus *bus = gpiochip_get_data(chip);
4444

4545
return !!ssb_chipco_gpio_in(&bus->chipco, 1 << gpio);
4646
}
4747

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,
4949
int value)
5050
{
5151
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,
5454
}
5555

5656
static int ssb_gpio_chipco_direction_input(struct gpio_chip *chip,
57-
unsigned gpio)
57+
unsigned int gpio)
5858
{
5959
struct ssb_bus *bus = gpiochip_get_data(chip);
6060

@@ -63,7 +63,7 @@ static int ssb_gpio_chipco_direction_input(struct gpio_chip *chip,
6363
}
6464

6565
static int ssb_gpio_chipco_direction_output(struct gpio_chip *chip,
66-
unsigned gpio, int value)
66+
unsigned int gpio, int value)
6767
{
6868
struct ssb_bus *bus = gpiochip_get_data(chip);
6969

@@ -72,7 +72,7 @@ static int ssb_gpio_chipco_direction_output(struct gpio_chip *chip,
7272
return 0;
7373
}
7474

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)
7676
{
7777
struct ssb_bus *bus = gpiochip_get_data(chip);
7878

@@ -85,7 +85,7 @@ static int ssb_gpio_chipco_request(struct gpio_chip *chip, unsigned gpio)
8585
return 0;
8686
}
8787

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)
8989
{
9090
struct ssb_bus *bus = gpiochip_get_data(chip);
9191

@@ -256,14 +256,14 @@ static int ssb_gpio_chipco_init(struct ssb_bus *bus)
256256

257257
#ifdef CONFIG_SSB_DRIVER_EXTIF
258258

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)
260260
{
261261
struct ssb_bus *bus = gpiochip_get_data(chip);
262262

263263
return !!ssb_extif_gpio_in(&bus->extif, 1 << gpio);
264264
}
265265

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,
267267
int value)
268268
{
269269
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,
272272
}
273273

274274
static int ssb_gpio_extif_direction_input(struct gpio_chip *chip,
275-
unsigned gpio)
275+
unsigned int gpio)
276276
{
277277
struct ssb_bus *bus = gpiochip_get_data(chip);
278278

@@ -281,7 +281,7 @@ static int ssb_gpio_extif_direction_input(struct gpio_chip *chip,
281281
}
282282

283283
static int ssb_gpio_extif_direction_output(struct gpio_chip *chip,
284-
unsigned gpio, int value)
284+
unsigned int gpio, int value)
285285
{
286286
struct ssb_bus *bus = gpiochip_get_data(chip);
287287

0 commit comments

Comments
 (0)