diff mbox series

[leds,v2,23/50] leds: pm8058: cosmetic: use reverse christmas tree

Message ID 20200917223338.14164-24-marek.behun@nic.cz
State New
Headers show
Series None | expand

Commit Message

Marek BehĂșn Sept. 17, 2020, 10:33 p.m. UTC
Only a cosmetic change: use reverse christmas tree variables
declaration.

Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
---
 drivers/leds/leds-pm8058.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/drivers/leds/leds-pm8058.c b/drivers/leds/leds-pm8058.c
index 193780a8c0522..80db7e2de420c 100644
--- a/drivers/leds/leds-pm8058.c
+++ b/drivers/leds/leds-pm8058.c
@@ -29,9 +29,9 @@  static void pm8058_led_set(struct led_classdev *cled,
 	enum led_brightness value)
 {
 	struct pm8058_led *led;
-	int ret = 0;
 	unsigned int mask = 0;
 	unsigned int val = 0;
+	int ret = 0;
 
 	led = container_of(cled, struct pm8058_led, cdev);
 	switch (led->ledtype) {
@@ -56,8 +56,8 @@  static void pm8058_led_set(struct led_classdev *cled,
 static enum led_brightness pm8058_led_get(struct led_classdev *cled)
 {
 	struct pm8058_led *led;
-	int ret;
 	unsigned int val;
+	int ret;
 
 	led = container_of(cled, struct pm8058_led, cdev);
 
@@ -89,12 +89,12 @@  static int pm8058_led_probe(struct platform_device *pdev)
 {
 	struct led_init_data init_data = {};
 	struct device *dev = &pdev->dev;
+	enum led_brightness maxbright;
 	struct pm8058_led *led;
 	struct device_node *np;
-	int ret;
 	struct regmap *map;
 	const char *state;
-	enum led_brightness maxbright;
+	int ret;
 
 	led = devm_kzalloc(dev, sizeof(*led), GFP_KERNEL);
 	if (!led)