Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1204938 > unrolled thread

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

Started byJacek Anaszewski <j.anaszewski@samsung.com>
First post2015-08-11 11:50 +0200
Last post2015-08-11 11:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH/RFC v5 47/57] leds: net48xx: Use brightness_set_nonblocking op Jacek Anaszewski <j.anaszewski@samsung.com> - 2015-08-11 11:50 +0200

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

FromJacek Anaszewski <j.anaszewski@samsung.com>
Date2015-08-11 11:50 +0200
Subject[PATCH/RFC v5 47/57] leds: net48xx: Use brightness_set_nonblocking op
Message-ID<pWelY-1jK-11@gated-at.bofh.it>
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@samsung.com>
Cc: Chris Boot <bootc@bootc.net>
---
 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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web