Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934315AbbHKJm2 (ORCPT ); Tue, 11 Aug 2015 05:42:28 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:53490 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933893AbbHKJkt (ORCPT ); Tue, 11 Aug 2015 05:40:49 -0400 X-AuditID: cbfee61a-f79a06d000005c6f-32-55c9c320e7d6 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 , John Lenz Subject: [PATCH/RFC v5 52/57] leds: locomo: Use brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:38:05 +0200 Message-id: <1439285890-27329-53-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+NgFprJLMWRmVeSWpSXmKPExsVy+t9jQV2FwydDDaavFrI4unMik0Xv1eeM FkcP72K1uLxrDpvF1jfrGC1273rKatHZN43Fgd3j6q9VzB47Z91l99gz/werR9+WVYweTafa WT0+b5ILYIvisklJzcksSy3St0vgyjh4NLBgB1fFnm8zWRoYX3F0MXJySAiYSBzZv54ZwhaT uHBvPRuILSQwi1Gi8R9LFyMXkP2TUWLbiRXsIAk2AUOJny9eM3UxcnCICMhJ7DxTCVLDLLCJ UeLOl/OMIDXCAr4Sh5ftYwGxWQRUJd58eAXWyyvgKbHl5y9WkF4JAQWJOZNsQMKcQOHrzxcx Quz1kDg+u4ltAiPvAkaGVYwSqQXJBcVJ6bmGeanlesWJucWleel6yfm5mxjBAfZMagfjwV3u hxgFOBiVeIAWnAwVYk0sK67MPcQowcGsJMJbOBUoxJuSWFmVWpQfX1Sak1p8iFGag0VJnFd2 w+ZQIYH0xJLU7NTUgtQimCwTB6dUAyPv90nbr3CsaC1nfVfNxtnocW3V23xGu4z5J2bwnE87 1Hhbs3H3hbI7lRs/R/5V2vhuxvSH1tfiROKXV1tsusj199LKG+XCK/p3vV+7Ov9U+4p6To7U WN1Xph9ibY7PTD23uenkh7wgTqlIuUb3ymr7TzqSR1cJ2Fbu4SrOOinTtGBf+h1HOXklluKM REMt5qLiRABBhepLLAIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1542 Lines: 44 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: John Lenz --- drivers/leds/leds-locomo.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/leds/leds-locomo.c b/drivers/leds/leds-locomo.c index 80ba048..2de7063 100644 --- a/drivers/leds/leds-locomo.c +++ b/drivers/leds/leds-locomo.c @@ -44,15 +44,15 @@ static void locomoled_brightness_set1(struct led_classdev *led_cdev, } static struct led_classdev locomo_led0 = { - .name = "locomo:amber:charge", - .default_trigger = "main-battery-charging", - .brightness_set = locomoled_brightness_set0, + .name = "locomo:amber:charge", + .default_trigger = "main-battery-charging", + .brightness_set_nonblocking = locomoled_brightness_set0, }; static struct led_classdev locomo_led1 = { - .name = "locomo:green:mail", - .default_trigger = "nand-disk", - .brightness_set = locomoled_brightness_set1, + .name = "locomo:green:mail", + .default_trigger = "nand-disk", + .brightness_set_nonblocking = locomoled_brightness_set1, }; static int locomoled_probe(struct locomo_dev *ldev) -- 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/