Commit 74cbe20294c9f54a0926d19235395cf8e22b7830

Authored by Thadeu Lima de Souza Cascardo
Committed by Richard Purdie
1 parent 2fea09222a

leds: fix coding style in worker thread code for ledtrig-gpio.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: Samuel R. C. Vale <srcvale@holoscopio.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>

Showing 1 changed file with 16 additions and 16 deletions Side-by-side Diff

drivers/leds/ledtrig-gpio.c
... ... @@ -44,22 +44,22 @@
44 44 struct gpio_trig_data, work);
45 45 int tmp;
46 46  
47   - if (!gpio_data->gpio)
48   - return;
  47 + if (!gpio_data->gpio)
  48 + return;
49 49  
50   - tmp = gpio_get_value(gpio_data->gpio);
51   - if (gpio_data->inverted)
52   - tmp = !tmp;
  50 + tmp = gpio_get_value(gpio_data->gpio);
  51 + if (gpio_data->inverted)
  52 + tmp = !tmp;
53 53  
54   - if (tmp) {
55   - if (gpio_data->desired_brightness)
56   - led_set_brightness(gpio_data->led,
57   - gpio_data->desired_brightness);
58   - else
59   - led_set_brightness(gpio_data->led, LED_FULL);
60   - } else {
61   - led_set_brightness(gpio_data->led, LED_OFF);
62   - }
  54 + if (tmp) {
  55 + if (gpio_data->desired_brightness)
  56 + led_set_brightness(gpio_data->led,
  57 + gpio_data->desired_brightness);
  58 + else
  59 + led_set_brightness(gpio_data->led, LED_FULL);
  60 + } else {
  61 + led_set_brightness(gpio_data->led, LED_OFF);
  62 + }
63 63 }
64 64  
65 65 static ssize_t gpio_trig_brightness_show(struct device *dev,