Commit 513246a3 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski
Browse files

gpio: sysfs: 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.

Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 0338f6a6
Loading
Loading
Loading
Loading
+32 −33
Original line number Diff line number Diff line
@@ -293,9 +293,10 @@ static DEVICE_ATTR_RW(edge);
static int gpio_sysfs_set_active_low(struct device *dev, int value)
{
	struct gpiod_data *data = dev_get_drvdata(dev);
	unsigned int flags = data->irq_flags;
	struct gpio_desc *desc = data->desc;
	int status = 0;
	unsigned int		flags = data->irq_flags;


	if (!!test_bit(FLAG_ACTIVE_LOW, &desc->flags) == !!value)
		return 0;
@@ -441,11 +442,10 @@ static ssize_t export_store(const struct class *class,
				const struct class_attribute *attr,
				const char *buf, size_t len)
{
	long			gpio;
	struct gpio_desc *desc;
	int			status;
	struct gpio_chip *gc;
	int			offset;
	int status, offset;
	long gpio;

	status = kstrtol(buf, 0, &gpio);
	if (status < 0)
@@ -496,9 +496,9 @@ static ssize_t unexport_store(const struct class *class,
				const struct class_attribute *attr,
				const char *buf, size_t len)
{
	long			gpio;
	struct gpio_desc *desc;
	int status;
	long gpio;

	status = kstrtol(buf, 0, &gpio);
	if (status < 0)
@@ -559,14 +559,13 @@ static struct class gpio_class = {
 */
int gpiod_export(struct gpio_desc *desc, bool direction_may_change)
{
	struct gpio_chip	*chip;
	const char *ioname = NULL;
	struct gpio_device *gdev;
	struct gpiod_data *data;
	struct gpio_chip *chip;
	unsigned long flags;
	int			status;
	const char		*ioname = NULL;
	struct device *dev;
	int			offset;
	int status, offset;

	/* can't export until sysfs is available ... */
	if (!class_is_registered(&gpio_class)) {
@@ -733,9 +732,9 @@ EXPORT_SYMBOL_GPL(gpiod_unexport);

int gpiochip_sysfs_register(struct gpio_device *gdev)
{
	struct device	*dev;
	struct device	*parent;
	struct gpio_chip *chip = gdev->chip;
	struct device *parent;
	struct device *dev;

	/*
	 * Many systems add gpio chips for SOC support very early,