Commit 0338f6a6 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski

gpiolib: drop tabs from local variable declarations

Older code has an annoying habit of putting tabs between the type and the
name of the variable. This doesn't really add to readability and newer
code doesn't do it so make the entire file consistent.

While at it: convert 'unsigned' to 'unsigned int'.
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 5d5dfc50
...@@ -2174,9 +2174,9 @@ EXPORT_SYMBOL_GPL(gpiochip_remove_pin_ranges); ...@@ -2174,9 +2174,9 @@ EXPORT_SYMBOL_GPL(gpiochip_remove_pin_ranges);
static int gpiod_request_commit(struct gpio_desc *desc, const char *label) static int gpiod_request_commit(struct gpio_desc *desc, const char *label)
{ {
struct gpio_chip *gc = desc->gdev->chip; struct gpio_chip *gc = desc->gdev->chip;
int ret;
unsigned long flags; unsigned long flags;
unsigned offset; unsigned int offset;
int ret;
if (label) { if (label) {
label = kstrdup_const(label, GFP_KERNEL); label = kstrdup_const(label, GFP_KERNEL);
...@@ -2288,9 +2288,9 @@ int gpiod_request(struct gpio_desc *desc, const char *label) ...@@ -2288,9 +2288,9 @@ int gpiod_request(struct gpio_desc *desc, const char *label)
static bool gpiod_free_commit(struct gpio_desc *desc) static bool gpiod_free_commit(struct gpio_desc *desc)
{ {
bool ret = false;
unsigned long flags;
struct gpio_chip *gc; struct gpio_chip *gc;
unsigned long flags;
bool ret = false;
might_sleep(); might_sleep();
...@@ -4697,12 +4697,10 @@ core_initcall(gpiolib_dev_init); ...@@ -4697,12 +4697,10 @@ core_initcall(gpiolib_dev_init);
static void gpiolib_dbg_show(struct seq_file *s, struct gpio_device *gdev) static void gpiolib_dbg_show(struct seq_file *s, struct gpio_device *gdev)
{ {
struct gpio_chip *gc = gdev->chip; struct gpio_chip *gc = gdev->chip;
bool active_low, is_irq, is_out;
unsigned int gpio = gdev->base;
struct gpio_desc *desc; struct gpio_desc *desc;
unsigned gpio = gdev->base;
int value; int value;
bool is_out;
bool is_irq;
bool active_low;
for_each_gpio_desc(gc, desc) { for_each_gpio_desc(gc, desc) {
if (test_bit(FLAG_REQUESTED, &desc->flags)) { if (test_bit(FLAG_REQUESTED, &desc->flags)) {
......
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