Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934349AbbHKJnC (ORCPT ); Tue, 11 Aug 2015 05:43:02 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:59903 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933995AbbHKJko (ORCPT ); Tue, 11 Aug 2015 05:40:44 -0400 X-AuditID: cbfee61a-f79a06d000005c6f-2b-55c9c31a21d1 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 , Rod Whitby Subject: [PATCH/RFC v5 50/57] leds: fsg: Use brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:38:03 +0200 Message-id: <1439285890-27329-51-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+NgFprFLMWRmVeSWpSXmKPExsVy+t9jQV2pwydDDc6es7I4unMik0Xv1eeM Fpd3zWGz2PpmHaPF8RMnmSx273rKatHZN43Fgd1j56y77B575v9g9ejbsorRo+lUO6vH501y HkvfTmIMYIvisklJzcksSy3St0vgylh9N7NgpVDFiWkPmBsYf/N1MXJySAiYSKzqfMwIYYtJ XLi3nq2LkYtDSGAWo8TUT+ehnJ+MEq/a77CDVLEJGEr8fPGaqYuRg0NEQE5i55lKkBpmgc2M EkcngsQ5OYQFvCRWvZsDNpVFQFViTdN6sF5eAU+JcyuPsID0SggoSMyZZAMS5gQKX3++CKxc SMBD4vjsJrYJjLwLGBlWMUqkFiQXFCel5xrmpZbrFSfmFpfmpesl5+duYgSH2DOpHYwHd7kf YhTgYFTiAVpwMlSINbGsuDL3EKMEB7OSCG/hVKAQb0piZVVqUX58UWlOavEhRmkOFiVxXtkN m0OFBNITS1KzU1MLUotgskwcnFINjJmhm06khZipabCsnx5f9pFvybrAhttHSye/dHmps/IO o3wZt7dNv7nbPdn13LsCKibFlhWsCd+2I+5TVVKKVETc3MdLmNt0bAysijym/vt+ZjaTTI+7 q2nOwbLkWba3j16ruloXcU760t6Lmx98EHb+HDFLr3sGp9aXzujcNx0Tej/7XHHbpsRSnJFo qMVcVJwIAMXTaHotAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2515 Lines: 80 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: Rod Whitby --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/