[PATCH/RFC v5 47/57] leds: net48xx: Use brightness_set_nonblocking op

From: Jacek Anaszewski
Date: Tue Aug 11 2015 - 05:40:51 EST


The driver neither sleeps nor uses delays in its brightness_set op.
Use a new brightness_set_nonblocking op instead of brightness_set for
setting brightness then.

Signed-off-by: Jacek Anaszewski <j.anaszewski@xxxxxxxxxxx>
Cc: Chris Boot <bootc@xxxxxxxxx>
---
drivers/leds/leds-net48xx.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/leds/leds-net48xx.c b/drivers/leds/leds-net48xx.c
index ec3a2e8..b48fdeb 100644
--- a/drivers/leds/leds-net48xx.c
+++ b/drivers/leds/leds-net48xx.c
@@ -32,9 +32,9 @@ static void net48xx_error_led_set(struct led_classdev *led_cdev,
}

static struct led_classdev net48xx_error_led = {
- .name = "net48xx::error",
- .brightness_set = net48xx_error_led_set,
- .flags = LED_CORE_SUSPENDRESUME,
+ .name = "net48xx::error",
+ .brightness_set_nonblocking = net48xx_error_led_set,
+ .flags = LED_CORE_SUSPENDRESUME,
};

static int net48xx_led_probe(struct platform_device *pdev)
--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/