Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934253AbbHKJlB (ORCPT ); Tue, 11 Aug 2015 05:41:01 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:60264 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934234AbbHKJk5 (ORCPT ); Tue, 11 Aug 2015 05:40:57 -0400 X-AuditID: cbfee61b-f79706d000001b96-fc-55c9c3284e58 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 , "David S. Miller" Subject: [PATCH/RFC v5 55/57] leds: sunfire: Use brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:38:08 +0200 Message-id: <1439285890-27329-56-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+NgFprOLMWRmVeSWpSXmKPExsVy+t9jQV2NwydDDeY2q1gc3TmRyWLO+RYW i96rzxktLu+aw2ax9c06Rovdu56yWnT2TWNxYPfYsvImk8fOWXfZPfbM/8Hq0bdlFaNH06l2 Vo/Pm+QC2KK4bFJSczLLUov07RK4MiZOa2EsOMlesfTvOpYGxm1sXYwcHBICJhLzfrF2MXIC mWISF+6tBwpzcQgJzGKUuPnqDDNIQkjgJ6PEhut+IDabgKHEzxevmUB6RQTkJHaeqQQJMwvs ZZRY8kgMxBYW8JO4vect2EwWAVWJCys3soCU8wp4SvR9Y4fYqiAxZ5INSAUnUPT680WMEIs8 JI7PbmKbwMi7gJFhFaNEakFyQXFSeq5RXmq5XnFibnFpXrpecn7uJkZwcD2T3sF4eJf7IUYB DkYlHqD5J0OFWBPLiitzDzFKcDArifAWTgUK8aYkVlalFuXHF5XmpBYfYpTmYFES59U32RQq JJCeWJKanZpakFoEk2Xi4JRqYFStvHvXa+mlngf22ec2LNvY7aTt9enElLRNlqf0367u2BUj Zaf7QenpmViXiysELvulnNw96WzEFjOJmyE/bh6aoxPL9D1KtHfuqRWcVe07Iz7dMPnE/YVL 9nD4kxlOz/9rH54/q/J2lFgxY9+WepnTMYK23EvvO0uqunVvzxCxtbjx41Lj9jtKLMUZiYZa zEXFiQDFhbQBKgIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1188 Lines: 31 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: David S. Miller --- drivers/leds/leds-sunfire.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-sunfire.c b/drivers/leds/leds-sunfire.c index c2553c5..0debc56 100644 --- a/drivers/leds/leds-sunfire.c +++ b/drivers/leds/leds-sunfire.c @@ -144,7 +144,7 @@ static int sunfire_led_generic_probe(struct platform_device *pdev, p->leds[i].reg = (void __iomem *) pdev->resource[0].start; lp->name = types[i].name; lp->brightness = LED_FULL; - lp->brightness_set = types[i].handler; + lp->brightness_set_nonblocking = types[i].handler; lp->default_trigger = types[i].default_trigger; err = led_classdev_register(&pdev->dev, lp); -- 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/