Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965177AbbHKJk0 (ORCPT ); Tue, 11 Aug 2015 05:40:26 -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 S964817AbbHKJkV (ORCPT ); Tue, 11 Aug 2015 05:40:21 -0400 X-AuditID: cbfee61a-f79a06d000005c6f-f1-55c9c302a812 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 , Linus Walleij Subject: [PATCH/RFC v5 41/57] leds: syscon: Use brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:37:54 +0200 Message-id: <1439285890-27329-42-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+t9jQV2mwydDDU4sMrA4unMik0Xv1eeM FlP+LGeyuLxrDpvF1jfrGC1273rKatHZN43Fgd1j56y77B53ru1h89gz/werR9+WVYweTafa WT0+b5ILYIvisklJzcksSy3St0vgyjgwYQ9bwRG2irnPHrE1MO5h7WLk5JAQMJE4fGQiG4Qt JnHh3nogm4tDSGAWo8S8Pc+YIJyfjBIN814wg1SxCRhK/HzxGijBwSEiICex80wlSJhZYB+j RPs5WxBbWMBXoq/1ANhQFgFViYtfDjKC2LwCnhInd8xnA2mVEFCQmDPJBiTMCRS+/nwRWImQ gIfE8dlNbBMYeRcwMqxilEgtSC4oTkrPNcxLLdcrTswtLs1L10vOz93ECA6xZ1I7GA/ucj/E KMDBqMQDtOBkqBBrYllxZe4hRgkOZiUR3sKpQCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8shs2 hwoJpCeWpGanphakFsFkmTg4pRoYmxev3TV577wQvavlL2bFSb5M4+E4K35EL/I3z1rVOStr 99tv3rbae/EzM2Zf4WVaEy5fZHzbvPrpmU71uysW3tCYO3s7+5ad4Unb8lMtuC/ZTwzL3Bau f70z7UtazUkJx+pkI6AH+fkurDZoq3LzrLC/KDu9qWgn+4VzC/kCGWUt/zT8zD6kxFKckWio xVxUnAgAz+lSFi0CAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1055 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: Linus Walleij --- drivers/leds/leds-syscon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-syscon.c b/drivers/leds/leds-syscon.c index d1660b0..c3c0769 100644 --- a/drivers/leds/leds-syscon.c +++ b/drivers/leds/leds-syscon.c @@ -127,7 +127,7 @@ static int syscon_led_probe(struct platform_device *pdev) return ret; } } - sled->cdev.brightness_set = syscon_led_set; + sled->cdev.brightness_set_nonblocking = syscon_led_set; ret = led_classdev_register(dev, &sled->cdev); if (ret < 0) -- 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/