[PATCH/RFC v5 50/57] leds: fsg: Use brightness_set_nonblocking op

From: Jacek Anaszewski
Date: Tue Aug 11 2015 - 05:43:07 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: Rod Whitby <rod@xxxxxxxxxxxx>
---
drivers/leds/leds-fsg.c | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/drivers/leds/leds-fsg.c b/drivers/leds/leds-fsg.c
index 2b4dc73..605ef9f 100644
--- a/drivers/leds/leds-fsg.c
+++ b/drivers/leds/leds-fsg.c
@@ -107,39 +107,39 @@ static void fsg_led_ring_set(struct led_classdev *led_cdev,


static struct led_classdev fsg_wlan_led = {
- .name = "fsg:blue:wlan",
- .brightness_set = fsg_led_wlan_set,
- .flags = LED_CORE_SUSPENDRESUME,
+ .name = "fsg:blue:wlan",
+ .brightness_set_nonblocking = fsg_led_wlan_set,
+ .flags = LED_CORE_SUSPENDRESUME,
};

static struct led_classdev fsg_wan_led = {
- .name = "fsg:blue:wan",
- .brightness_set = fsg_led_wan_set,
- .flags = LED_CORE_SUSPENDRESUME,
+ .name = "fsg:blue:wan",
+ .brightness_set_nonblocking = fsg_led_wan_set,
+ .flags = LED_CORE_SUSPENDRESUME,
};

static struct led_classdev fsg_sata_led = {
- .name = "fsg:blue:sata",
- .brightness_set = fsg_led_sata_set,
- .flags = LED_CORE_SUSPENDRESUME,
+ .name = "fsg:blue:sata",
+ .brightness_set_nonblocking = fsg_led_sata_set,
+ .flags = LED_CORE_SUSPENDRESUME,
};

static struct led_classdev fsg_usb_led = {
- .name = "fsg:blue:usb",
- .brightness_set = fsg_led_usb_set,
- .flags = LED_CORE_SUSPENDRESUME,
+ .name = "fsg:blue:usb",
+ .brightness_set_nonblocking = fsg_led_usb_set,
+ .flags = LED_CORE_SUSPENDRESUME,
};

static struct led_classdev fsg_sync_led = {
- .name = "fsg:blue:sync",
- .brightness_set = fsg_led_sync_set,
- .flags = LED_CORE_SUSPENDRESUME,
+ .name = "fsg:blue:sync",
+ .brightness_set_nonblocking = fsg_led_sync_set,
+ .flags = LED_CORE_SUSPENDRESUME,
};

static struct led_classdev fsg_ring_led = {
- .name = "fsg:blue:ring",
- .brightness_set = fsg_led_ring_set,
- .flags = LED_CORE_SUSPENDRESUME,
+ .name = "fsg:blue:ring",
+ .brightness_set_nonblocking = fsg_led_ring_set,
+ .flags = LED_CORE_SUSPENDRESUME,
};


--
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/