Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934365AbbHKJnf (ORCPT ); Tue, 11 Aug 2015 05:43:35 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:48283 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934070AbbHKJkl (ORCPT ); Tue, 11 Aug 2015 05:40:41 -0400 X-AuditID: cbfee61b-f79706d000001b96-dc-55c9c31865e5 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 , Florian Fainelli Subject: [PATCH/RFC v5 49/57] leds: cobalt-qube: Use brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:38:02 +0200 Message-id: <1439285890-27329-50-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+t9jQV2JwydDDRYdErA4unMik8W392dY LHqvPme0uLxrDpvF1jfrGC1273rKatHZN43Fgd1j56y77B5bFmd47Jn/g9Wjb8sqRo+mU+2s Hp83yQWwRXHZpKTmZJalFunbJXBl9L6ZwFywlaOi+dMq1gbGHvYuRk4OCQETieMb3jBD2GIS F+6tZ+ti5OIQEpjFKPGm6QA7hPOTUWLhmwtsIFVsAoYSP1+8Zupi5OAQEZCT2HmmEqSGWWAP o8TmB6tZQWqEBUIkDt1YxARiswioSjQt2QIW5xXwlFh+8BUrSK+EgILEnEk2IGFOoPD154sY QWwhAQ+J47Ob2CYw8i5gZFjFKJFakFxQnJSea5SXWq5XnJhbXJqXrpecn7uJERxiz6R3MB7e 5X6IUYCDUYkHaMHJUCHWxLLiytxDjBIczEoivIVTgUK8KYmVValF+fFFpTmpxYcYpTlYlMR5 9U02hQoJpCeWpGanphakFsFkmTg4pRoY+bsnVkrx6IrJZcYeWfOxymZKz0x99p9hc1NEXGcH uxxuXTXVPIzJ5+W7BY86rpqypspWXWdob//0XH+DAdO2/w/Et/kEcX1OUlD75MKxbM6aSffY YwwtTF4FTq6LXv5cQUNyfb/mpQ83L1ocNLoe8vnHipU1UZeFBVZw2NXphZ+ayfVF1LpHiaU4 I9FQi7moOBEAYK7/zy0CAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1290 Lines: 37 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: Florian Fainelli --- drivers/leds/leds-cobalt-qube.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/leds/leds-cobalt-qube.c b/drivers/leds/leds-cobalt-qube.c index d975220..7cb986e 100644 --- a/drivers/leds/leds-cobalt-qube.c +++ b/drivers/leds/leds-cobalt-qube.c @@ -27,10 +27,10 @@ static void qube_front_led_set(struct led_classdev *led_cdev, } static struct led_classdev qube_front_led = { - .name = "qube::front", - .brightness = LED_FULL, - .brightness_set = qube_front_led_set, - .default_trigger = "default-on", + .name = "qube::front", + .brightness = LED_FULL, + .brightness_set_nonblocking = qube_front_led_set, + .default_trigger = "default-on", }; static int cobalt_qube_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/