Commit 2717cfca authored by Nava kishore Manne's avatar Nava kishore Manne Committed by Linus Walleij

gpio: zynq: Fix warnings in the driver

This patch fixes the below warning
	-->Block comments should align the * on each line.
	-->suspect code indent for conditional statements.
	-->Prefer 'unsigned int' to bare use of 'unsigned'
Signed-off-by: default avatarNava kishore Manne <navam@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent eb73d6ea
...@@ -712,7 +712,7 @@ static int __maybe_unused zynq_gpio_runtime_resume(struct device *dev) ...@@ -712,7 +712,7 @@ static int __maybe_unused zynq_gpio_runtime_resume(struct device *dev)
return clk_prepare_enable(gpio->clk); return clk_prepare_enable(gpio->clk);
} }
static int zynq_gpio_request(struct gpio_chip *chip, unsigned offset) static int zynq_gpio_request(struct gpio_chip *chip, unsigned int offset)
{ {
int ret; int ret;
...@@ -725,7 +725,7 @@ static int zynq_gpio_request(struct gpio_chip *chip, unsigned offset) ...@@ -725,7 +725,7 @@ static int zynq_gpio_request(struct gpio_chip *chip, unsigned offset)
return ret < 0 ? ret : 0; return ret < 0 ? ret : 0;
} }
static void zynq_gpio_free(struct gpio_chip *chip, unsigned offset) static void zynq_gpio_free(struct gpio_chip *chip, unsigned int offset)
{ {
pm_runtime_put(chip->parent); pm_runtime_put(chip->parent);
} }
......
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