Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965197AbbHKJkp (ORCPT ); Tue, 11 Aug 2015 05:40:45 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:46175 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934187AbbHKJkg (ORCPT ); Tue, 11 Aug 2015 05:40:36 -0400 X-AuditID: cbfee61b-f79706d000001b96-d6-55c9c312ca81 From: Jacek Anaszewski To: linux-leds@vger.kernel.org Cc: linux-kernel@vger.kernel.org, cooloney@gmail.com, rpurdie@rpsys.net, stsp@users.sourceforge.net, Jacek Anaszewski , Chris Boot Subject: [PATCH/RFC v5 47/57] leds: net48xx: Use brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:38:00 +0200 Message-id: <1439285890-27329-48-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1439285890-27329-1-git-send-email-j.anaszewski@samsung.com> References: <1439285890-27329-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBLMWRmVeSWpSXmKPExsVy+t9jQV2hwydDDZb9MrNYc9TV4ujOiUwW vVefM1pc3jWHzWLrm3WMFrt3PWW16OybxuLA7vF55TIWj52z7rJ77Jn/g9Wjb8sqRo+mU+2s Hp83yQWwRXHZpKTmZJalFunbJXBl3F34ibHgJXtF27dDjA2MZ9i6GDk4JARMJH50xHQxcgKZ YhIX7q0HCnNxCAnMYpT4du4oE4Tzk1Fizd4+JpAqNgFDiZ8vXjOBNIsIyEnsPFMJEmYW2MQo sWyHHYgtLOAnsendGxYQm0VAVeL/zA1grbwCnhLP70K0SggoSMyZZAMS5gQKX3++iBHEFhLw kDg+u4ltAiPvAkaGVYwSqQXJBcVJ6blGeanlesWJucWleel6yfm5mxjB4fVMegfj4V3uhxgF OBiVeIAWnAwVYk0sK67MPcQowcGsJMJbOBUoxJuSWFmVWpQfX1Sak1p8iFGag0VJnFffZFOo kEB6YklqdmpqQWoRTJaJg1OqgZHjweROhb9nOSQOnjAWcHUKUTz5npVxt2Svu+sx8xYdgYR0 jbqoAumVt1c2C0u9cT7P/3ju/3Dx1X0xLdZzxANV+w6ZLDp3Oui8Rd3JpbuPNynL/tj9Nltg zd5H66Q+nvaQ9PusmC6k4P/jSvqHmrWccXr3DyzvOVC5WHKN26edPA094YFsb5VYijMSDbWY i4oTAdbxMGkrAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1216 Lines: 35 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 Cc: Chris Boot --- 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/