@@ -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)
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(-)