Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934371AbbHKJn6 (ORCPT ); Tue, 11 Aug 2015 05:43:58 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:58990 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934064AbbHKJkd (ORCPT ); Tue, 11 Aug 2015 05:40:33 -0400 X-AuditID: cbfee61a-f79a06d000005c6f-0c-55c9c3103cbc 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 , Kristian Kielhofner Subject: [PATCH/RFC v5 46/57] leds: wrap: Use brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:37:59 +0200 Message-id: <1439285890-27329-47-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+NgFprNLMWRmVeSWpSXmKPExsVy+t9jQV2BwydDDXY0cFsc3TmRyaL36nNG i5+bO9gtLu+aw2ax9c06Rovdu56yWnT2TWNxYPfYOesuu8fkaz2sHnvm/2D16NuyitGj6VQ7 q8fnTXIBbFFcNimpOZllqUX6dglcGVffTmMseMVT8enFN+YGxrNcXYycHBICJhKnJ0xjhrDF JC7cW8/WxcjFISQwi1Hi8qQGRgjnJ6PEiZ7rrCBVbAKGEj9fvGbqYuTgEBGQk9h5phKkhllg F6PEkc2z2UFqhAW8JXY3rGUBsVkEVCW2ndwEZvMKeEp0froJ1ishoCAxZ5INSJgTKHz9+SJG EFtIwEPi+OwmtgmMvAsYGVYxSqQWJBcUJ6XnGuallusVJ+YWl+al6yXn525iBAfZM6kdjAd3 uR9iFOBgVOIBWnAyVIg1say4MvcQowQHs5IIb+FUoBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXFe 2Q2bQ4UE0hNLUrNTUwtSi2CyTBycUg2MgSGRNluO11ye1xv6L//r/CnP85Ye2rRhuqLqxgk+ Mfxl+k02kp+tXYRfPzHge/qpsOJGbl5Qha6H/lOG+bxCF9cLyvL/f/hp8iq76hjn3YdqL/2Y fFO1tkVpUsp5N6uILUKS+7yF/3AGSk9mdroSlXQkwnlJ0TwJPv3lrosXLHA/UtxVLqmuxFKc kWioxVxUnAgA4Yprsy4CAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1837 Lines: 55 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: Kristian Kielhofner --- drivers/leds/leds-wrap.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/leds/leds-wrap.c b/drivers/leds/leds-wrap.c index 1ba3def..aea72e2 100644 --- a/drivers/leds/leds-wrap.c +++ b/drivers/leds/leds-wrap.c @@ -54,22 +54,22 @@ static void wrap_extra_led_set(struct led_classdev *led_cdev, } static struct led_classdev wrap_power_led = { - .name = "wrap::power", - .brightness_set = wrap_power_led_set, - .default_trigger = "default-on", - .flags = LED_CORE_SUSPENDRESUME, + .name = "wrap::power", + .brightness_set_nonblocking = wrap_power_led_set, + .default_trigger = "default-on", + .flags = LED_CORE_SUSPENDRESUME, }; static struct led_classdev wrap_error_led = { - .name = "wrap::error", - .brightness_set = wrap_error_led_set, - .flags = LED_CORE_SUSPENDRESUME, + .name = "wrap::error", + .brightness_set_nonblocking = wrap_error_led_set, + .flags = LED_CORE_SUSPENDRESUME, }; static struct led_classdev wrap_extra_led = { - .name = "wrap::extra", - .brightness_set = wrap_extra_led_set, - .flags = LED_CORE_SUSPENDRESUME, + .name = "wrap::extra", + .brightness_set_nonblocking = wrap_extra_led_set, + .flags = LED_CORE_SUSPENDRESUME, }; static int wrap_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/