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

Marek Behún
2020-09-17T22:34:21Z

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