Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934438AbbHKJqE (ORCPT ); Tue, 11 Aug 2015 05:46:04 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:60724 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965127AbbHKJkR (ORCPT ); Tue, 11 Aug 2015 05:40:17 -0400 X-AuditID: cbfee61a-f79a06d000005c6f-dc-55c9c2fa4550 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 Subject: [PATCH/RFC v5 38/57] leds: cobalt-raq: Use brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:37:51 +0200 Message-id: <1439285890-27329-39-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+NgFupnluLIzCtJLcpLzFFi42I5/e+xoO6vQydDDe5MVbI4unMik0Xv1eeM Fpd3zWGz2PpmHaPF7l1PWS06+6axOLB57Jx1l91jz/wfrB59W1YxejSdamf1+LxJLoA1issm JTUnsyy1SN8ugSvj+8+7jAWbuCp+tzxgbGC8z9HFyMkhIWAise3KaxYIW0ziwr31bF2MXBxC ArMYJTY//cwOkhAS+Mko0fBUHsRmEzCU+PniNVMXIweHiICcxM4zlSD1zAKTGCXmbr7KDFIj LBAs8ffjN3aQGhYBVYm3W0JAwrwCnhLtXdfBWiUEFCTmTLIBCXMCha8/X8QIsclD4vjsJrYJ jLwLGBlWMUqkFiQXFCel5xrmpZbrFSfmFpfmpesl5+duYgQH0zOpHYwHd7kfYhTgYFTiAVpw MlSINbGsuDL3EKMEB7OSCG/hVKAQb0piZVVqUX58UWlOavEhRmkOFiVxXtkNm0OFBNITS1Kz U1MLUotgskwcnFINjJOu28clfvXWWPo5N1ft3W+2d2kvmKwkVs47eXQvg8sSp/kJkyf9/GIj d5ltnejCT5t1+T+oPRA+z+SRk6N5l8n/2yzppoinWTu2zFo0QzpYX2lrwqOAqV+P+AevuDy7 JLNa7NrLu4wPZogZ6gVfrOaNf7hx3XFOZtmK5q0ndlT09kXOMuRPFlRiKc5INNRiLipOBADb E2YLIgIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1535 Lines: 45 The driver neither sleeps nor uses delays in its brightness_set ops. Use a new brightness_set_nonblocking op for setting brightness instead of brightness_set then. Signed-off-by: Jacek Anaszewski --- drivers/leds/leds-cobalt-raq.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/leds/leds-cobalt-raq.c b/drivers/leds/leds-cobalt-raq.c index b316df4..ef81bb3 100644 --- a/drivers/leds/leds-cobalt-raq.c +++ b/drivers/leds/leds-cobalt-raq.c @@ -50,8 +50,8 @@ static void raq_web_led_set(struct led_classdev *led_cdev, } static struct led_classdev raq_web_led = { - .name = "raq::web", - .brightness_set = raq_web_led_set, + .name = "raq::web", + .brightness_set_nonblocking = raq_web_led_set, }; static void raq_power_off_led_set(struct led_classdev *led_cdev, @@ -71,9 +71,9 @@ static void raq_power_off_led_set(struct led_classdev *led_cdev, } static struct led_classdev raq_power_off_led = { - .name = "raq::power-off", - .brightness_set = raq_power_off_led_set, - .default_trigger = "power-off", + .name = "raq::power-off", + .brightness_set_nonblocking = raq_power_off_led_set, + .default_trigger = "power-off", }; static int cobalt_raq_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/