Skip to content

Commit

Permalink
SSB: Change bare unsigned to unsigned int to suit coding style
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hugh Sipière authored and Ralf Baechle committed Jul 6, 2016
1 parent a99cde4 commit c683ffe
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions drivers/ssb/driver_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
**************************************************/

#if IS_ENABLED(CONFIG_SSB_EMBEDDED)
static int ssb_gpio_to_irq(struct gpio_chip *chip, unsigned gpio)
static int ssb_gpio_to_irq(struct gpio_chip *chip, unsigned int gpio)
{
struct ssb_bus *bus = gpiochip_get_data(chip);

Expand All @@ -38,14 +38,14 @@ static int ssb_gpio_to_irq(struct gpio_chip *chip, unsigned gpio)
* ChipCommon
**************************************************/

static int ssb_gpio_chipco_get_value(struct gpio_chip *chip, unsigned gpio)
static int ssb_gpio_chipco_get_value(struct gpio_chip *chip, unsigned int gpio)
{
struct ssb_bus *bus = gpiochip_get_data(chip);

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

static void ssb_gpio_chipco_set_value(struct gpio_chip *chip, unsigned gpio,
static void ssb_gpio_chipco_set_value(struct gpio_chip *chip, unsigned int gpio,
int value)
{
struct ssb_bus *bus = gpiochip_get_data(chip);
Expand All @@ -54,7 +54,7 @@ static void ssb_gpio_chipco_set_value(struct gpio_chip *chip, unsigned gpio,
}

static int ssb_gpio_chipco_direction_input(struct gpio_chip *chip,
unsigned gpio)
unsigned int gpio)
{
struct ssb_bus *bus = gpiochip_get_data(chip);

Expand All @@ -63,7 +63,7 @@ static int ssb_gpio_chipco_direction_input(struct gpio_chip *chip,
}

static int ssb_gpio_chipco_direction_output(struct gpio_chip *chip,
unsigned gpio, int value)
unsigned int gpio, int value)
{
struct ssb_bus *bus = gpiochip_get_data(chip);

Expand All @@ -72,7 +72,7 @@ static int ssb_gpio_chipco_direction_output(struct gpio_chip *chip,
return 0;
}

static int ssb_gpio_chipco_request(struct gpio_chip *chip, unsigned gpio)
static int ssb_gpio_chipco_request(struct gpio_chip *chip, unsigned int gpio)
{
struct ssb_bus *bus = gpiochip_get_data(chip);

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

static void ssb_gpio_chipco_free(struct gpio_chip *chip, unsigned gpio)
static void ssb_gpio_chipco_free(struct gpio_chip *chip, unsigned int gpio)
{
struct ssb_bus *bus = gpiochip_get_data(chip);

Expand Down Expand Up @@ -256,14 +256,14 @@ static int ssb_gpio_chipco_init(struct ssb_bus *bus)

#ifdef CONFIG_SSB_DRIVER_EXTIF

static int ssb_gpio_extif_get_value(struct gpio_chip *chip, unsigned gpio)
static int ssb_gpio_extif_get_value(struct gpio_chip *chip, unsigned int gpio)
{
struct ssb_bus *bus = gpiochip_get_data(chip);

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

static void ssb_gpio_extif_set_value(struct gpio_chip *chip, unsigned gpio,
static void ssb_gpio_extif_set_value(struct gpio_chip *chip, unsigned int gpio,
int value)
{
struct ssb_bus *bus = gpiochip_get_data(chip);
Expand All @@ -272,7 +272,7 @@ static void ssb_gpio_extif_set_value(struct gpio_chip *chip, unsigned gpio,
}

static int ssb_gpio_extif_direction_input(struct gpio_chip *chip,
unsigned gpio)
unsigned int gpio)
{
struct ssb_bus *bus = gpiochip_get_data(chip);

Expand All @@ -281,7 +281,7 @@ static int ssb_gpio_extif_direction_input(struct gpio_chip *chip,
}

static int ssb_gpio_extif_direction_output(struct gpio_chip *chip,
unsigned gpio, int value)
unsigned int gpio, int value)
{
struct ssb_bus *bus = gpiochip_get_data(chip);

Expand Down

0 comments on commit c683ffe

Please sign in to comment.