leds: gpio: simplify gpio_leds_create
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 14 Sep 2016 18:55:06 +0000 (20:55 +0200)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Thu, 15 Sep 2016 14:49:41 +0000 (16:49 +0200)
commit8ca03da5e0f70a413986221da4c88459bb6f6878
tree155eae4ba69c6b76a41a1b54d61f28c7e7f076bf
parent4580809436fc391aff9d876a14d07f66a5de6b28
leds: gpio: simplify gpio_leds_create

Definition of np can be moved into the loop as well to simplify
the code a little.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-gpio.c