leds: bcm6358: remove unneeded busy status check
The busy status checking isn't needed while reading initial LED status. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
This commit is contained in:
parent
1b85a5a5ef
commit
1259efaab8
|
@ -123,9 +123,6 @@ static int bcm6358_led(struct device *dev, struct device_node *nc, u32 reg,
|
||||||
led->cdev.brightness = LED_FULL;
|
led->cdev.brightness = LED_FULL;
|
||||||
} else if (!strcmp(state, "keep")) {
|
} else if (!strcmp(state, "keep")) {
|
||||||
unsigned long val;
|
unsigned long val;
|
||||||
|
|
||||||
bcm6358_led_busy(led->mem);
|
|
||||||
|
|
||||||
val = bcm6358_led_read(led->mem + BCM6358_REG_MODE);
|
val = bcm6358_led_read(led->mem + BCM6358_REG_MODE);
|
||||||
val &= BIT(led->pin);
|
val &= BIT(led->pin);
|
||||||
if ((led->active_low && !val) ||
|
if ((led->active_low && !val) ||
|
||||||
|
|
Loading…
Reference in New Issue