Skip to content

Commit e5ab49c

Browse files
committed
gpiolib: improve coding style for local variables
Drop unneeded whitespaces and put the variables of the same type together for consistency with the rest of the code. Signed-off-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]>
1 parent e320d9c commit e5ab49c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/gpio/gpiolib.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -594,11 +594,11 @@ int gpiochip_add_data_with_key(struct gpio_chip *gc, void *data,
594594
struct lock_class_key *request_key)
595595
{
596596
struct fwnode_handle *fwnode = gc->parent ? dev_fwnode(gc->parent) : NULL;
597-
unsigned long flags;
598-
int ret = 0;
599-
unsigned i;
600-
int base = gc->base;
601597
struct gpio_device *gdev;
598+
unsigned long flags;
599+
int base = gc->base;
600+
unsigned int i;
601+
int ret = 0;
602602

603603
/*
604604
* First: allocate and populate the internal stat container, and

0 commit comments

Comments
 (0)