Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934306AbbHKJlv (ORCPT ); Tue, 11 Aug 2015 05:41:51 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:37034 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933890AbbHKJkz (ORCPT ); Tue, 11 Aug 2015 05:40:55 -0400 X-AuditID: cbfee61b-f79706d000001b96-f3-55c9c32642dd 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 , Phil Sutter Subject: [PATCH/RFC v5 54/57] leds: rb532: Use brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:38:07 +0200 Message-id: <1439285890-27329-55-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+t9jQV21wydDDfbO5rE4unMik0Xv1eeM Fpd3zWGz2PpmHaPFu3e/WSx273rKatHZN43Fgd3j66dX7B47Z91l99gz/werR9+WVYweTafa WT0+b5ILYIvisklJzcksSy3St0vgyvj8y6uggaNi5dTXbA2Mt9i6GDk5JARMJF6+3sAKYYtJ XLi3HijOxSEkMItRovfLKyYI5yejxKwtz1lAqtgEDCV+vngNlODgEBGQk9h5phLEZBbYwigx PxTEFBbwkXj8SwGkmEVAVeLQlJtg43kFPCW+nHrCDlIiIaAgMWeSDUiYEyh8/fkiRhBbSMBD 4vjsJrYJjLwLGBlWMUqkFiQXFCel5xrlpZbrFSfmFpfmpesl5+duYgQH1zPpHYyHd7kfYhTg YFTiAVpwMlSINbGsuDL3EKMEB7OSCG/hVKAQb0piZVVqUX58UWlOavEhRmkOFiVxXn2TTaFC AumJJanZqakFqUUwWSYOTqkGRrNDNQcWzmX2y4sXbn7kO5tJ9E/M/5cLDBXelWyPftP68cP1 bg2LFdcebHF38Vvq2rvhgcBLwyK+f96LfwXPKFuon2R7LV9d7IPKriDTQ679m1UPLNw4U2bt lFQNhvmx3BeYZsau8Jfp31eyg+t0TV9Z39F3SwXKuhwe/9H8b9ouWn9E3PFtpxJLcUaioRZz UXEiAFm9oXYqAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1237 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: Phil Sutter --- drivers/leds/leds-rb532.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/leds/leds-rb532.c b/drivers/leds/leds-rb532.c index fcd1215b..67e220f 100644 --- a/drivers/leds/leds-rb532.c +++ b/drivers/leds/leds-rb532.c @@ -31,10 +31,10 @@ static enum led_brightness rb532_led_get(struct led_classdev *cdev) } static struct led_classdev rb532_uled = { - .name = "uled", - .brightness_set = rb532_led_set, - .brightness_get = rb532_led_get, - .default_trigger = "nand-disk", + .name = "uled", + .brightness_set_nonblocking = rb532_led_set, + .brightness_get = rb532_led_get, + .default_trigger = "nand-disk", }; static int rb532_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/