[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200917223338.14164-30-marek.behun@nic.cz>
Date: Fri, 18 Sep 2020 00:33:17 +0200
From: Marek Behún <marek.behun@....cz>
To: linux-leds@...r.kernel.org
Cc: Pavel Machek <pavel@....cz>, Dan Murphy <dmurphy@...com>,
Ondřej Jirman <megous@...ous.com>,
linux-kernel@...r.kernel.org, Rob Herring <robh+dt@...nel.org>,
devicetree@...r.kernel.org,
Marek Behún <marek.behun@....cz>,
"H . Nikolaus Schaller" <hns@...delico.com>,
Grant Feng <von81@....com>
Subject: [PATCH leds v2 29/50] leds: is31fl319x: cosmetic: use reverse christmas tree
Only a cosmetic change: use reverse christmas tree variables
declaration.
Signed-off-by: Marek Behún <marek.behun@....cz>
Cc: H. Nikolaus Schaller <hns@...delico.com>
Cc: Grant Feng <von81@....com>
---
drivers/leds/leds-is31fl319x.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/leds/leds-is31fl319x.c b/drivers/leds/leds-is31fl319x.c
index 1dae319b03d60..15bdbc6378d93 100644
--- a/drivers/leds/leds-is31fl319x.c
+++ b/drivers/leds/leds-is31fl319x.c
@@ -111,9 +111,9 @@ static int is31fl319x_brightness_set(struct led_classdev *cdev,
cdev);
struct is31fl319x_chip *is31 = led->chip;
int chan = led - is31->leds;
+ u8 ctrl1 = 0, ctrl2 = 0;
int ret;
int i;
- u8 ctrl1 = 0, ctrl2 = 0;
dev_dbg(&is31->client->dev, "%s %d: %d\n", __func__, chan, brightness);
@@ -340,12 +340,12 @@ static int is31fl319x_parse_and_register(struct device *dev,
static int is31fl319x_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
- struct is31fl319x_chip *is31;
struct device *dev = &client->dev;
struct gpio_desc *shutdown_gpio;
+ struct is31fl319x_chip *is31;
+ u32 aggregated_led_microamp;
u32 audio_gain_db;
int err;
- u32 aggregated_led_microamp;
if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C))
return -EIO;
--
2.26.2
Powered by blists - more mailing lists