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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Only a cosmetic change: use reverse christmas tree variables
declaration.

Signed-off-by: Marek Behún <marek.behun@xxxxxx>
Cc: Linus Walleij <linus.walleij@xxxxxxxxxx>
Cc: Bjorn Andersson <bjorn.andersson@xxxxxxxxxx>
---
 drivers/leds/leds-pm8058.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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)
-- 
2.26.2




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux