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

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
Loading
Loading
Loading
Loading
+18 −20
Original line number Diff line number Diff line
@@ -2174,9 +2174,9 @@ EXPORT_SYMBOL_GPL(gpiochip_remove_pin_ranges);
static int gpiod_request_commit(struct gpio_desc *desc, const char *label)
{
	struct gpio_chip *gc = desc->gdev->chip;
	int			ret;
	unsigned long flags;
	unsigned		offset;
	unsigned int offset;
	int ret;

	if (label) {
		label = kstrdup_const(label, GFP_KERNEL);
@@ -2288,9 +2288,9 @@ int gpiod_request(struct gpio_desc *desc, const char *label)

static bool gpiod_free_commit(struct gpio_desc *desc)
{
	bool			ret = false;
	unsigned long		flags;
	struct gpio_chip *gc;
	unsigned long flags;
	bool ret = false;

	might_sleep();

@@ -4697,12 +4697,10 @@ core_initcall(gpiolib_dev_init);
static void gpiolib_dbg_show(struct seq_file *s, struct gpio_device *gdev)
{
	struct gpio_chip *gc = gdev->chip;
	bool active_low, is_irq, is_out;
	unsigned int gpio = gdev->base;
	struct gpio_desc *desc;
	unsigned		gpio = gdev->base;
	int value;
	bool			is_out;
	bool			is_irq;
	bool			active_low;

	for_each_gpio_desc(gc, desc) {
		if (test_bit(FLAG_REQUESTED, &desc->flags)) {