Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934232AbbHKJk4 (ORCPT ); Tue, 11 Aug 2015 05:40:56 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:60176 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965211AbbHKJkw (ORCPT ); Tue, 11 Aug 2015 05:40:52 -0400 X-AuditID: cbfee61b-f79706d000001b96-ea-55c9c323776d 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 , Louis Davis , Jim Dailey Subject: [PATCH/RFC v5 53/57] leds: dell: Use brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:38:06 +0200 Message-id: <1439285890-27329-54-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+NgFlrALMWRmVeSWpSXmKPExsVy+t9jQV3lwydDDeZ38lkc3TmRyaL36nNG i2dPNrFYXN41h81i65t1jBa35v5hsti96ymrRWffNBYHDo9JM2cwe+ycdZfdY8/8H6wefVtW MXo0nWpn9fi8SS6ALYrLJiU1J7MstUjfLoEr49rhw4wFnzkqLjS/Y29gXM/excjJISFgIvG+ /z4zhC0mceHeerYuRi4OIYFZjBLbN3ezQzg/GSXmTr/KBFLFJmAo8fPFayCbg0NEQE5i55lK kBpmgVuMEps3rQCbJCzgLdF7fSnYBhYBVYlpb9awgNi8Ap4SmyedYQHplRBQkJgzyQYkzAkU vv58ESOILSTgIXF8dhPbBEbeBYwMqxglUguSC4qT0nON8lLL9YoTc4tL89L1kvNzNzGCw+2Z 9A7Gw7vcDzEKcDAq8QAtOBkqxJpYVlyZe4hRgoNZSYS3cCpQiDclsbIqtSg/vqg0J7X4EKM0 B4uSOK++yaZQIYH0xJLU7NTUgtQimCwTB6dUA6NLyYsK3gfukkvzJr14sHjdQ+6nWb/e7Plq zZbSr11sf2zHw5BnzvOylqwq8J42KS2ri+8h7/xDvptfqAYv+yHdtK6b98Z/r0u9+svuNU+5 wy9+RuSWRNE59cnWXlNOTzkl/eXNYuuflmw7lEzPasRcefOgmEdg2T7mvXwe38SjBCwvzzTL PmakxFKckWioxVxUnAgAwzG2rDMCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1347 Lines: 42 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: Louis Davis Cc: Jim Dailey --- drivers/leds/dell-led.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/leds/dell-led.c b/drivers/leds/dell-led.c index c36acaf..8a69849 100644 --- a/drivers/leds/dell-led.c +++ b/drivers/leds/dell-led.c @@ -315,12 +315,12 @@ static int dell_led_blink(struct led_classdev *led_cdev, } static struct led_classdev dell_led = { - .name = "dell::lid", - .brightness = LED_OFF, - .max_brightness = 1, - .brightness_set = dell_led_set, - .blink_set = dell_led_blink, - .flags = LED_CORE_SUSPENDRESUME, + .name = "dell::lid", + .brightness = LED_OFF, + .max_brightness = 1, + .brightness_set_nonblocking = dell_led_set, + .blink_set = dell_led_blink, + .flags = LED_CORE_SUSPENDRESUME, }; static int __init dell_led_init(void) -- 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/