Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934192AbbHKJkg (ORCPT ); Tue, 11 Aug 2015 05:40:36 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:50770 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934070AbbHKJka (ORCPT ); Tue, 11 Aug 2015 05:40:30 -0400 X-AuditID: cbfee61b-f79706d000001b96-c2-55c9c30d4e8b 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 45/57] leds: versatile: Use brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:37:58 +0200 Message-id: <1439285890-27329-46-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+NgFprBLMWRmVeSWpSXmKPExsVy+t9jQV3ewydDDY6tlLU4unMik0Xv1eeM FlP+LGeyuLxrDpvF1jfrGC1273rKatHZN43Fgd1j56y77B53ru1h89gz/werR9+WVYweTafa WT0+b5ILYIvisklJzcksSy3St0vgyviz8jxjwWH2illPnBoYt7J1MXJySAiYSFyYvBrKFpO4 cG89kM3FISQwi1Fiz+wt7CAJIYGfjBJHDiSA2GwChhI/X7xm6mLk4BARkJPYeaYSJMwssI9R ov2cLYgtLBAg8XDndxYQm0VAVWLzjl9gNq+Ap8TU/adZQFolBBQk5kyyAQlzAoWvP1/ECLHJ Q+L47Ca2CYy8CxgZVjFKpBYkFxQnpeca5aWW6xUn5haX5qXrJefnbmIEh9cz6R2Mh3e5H2IU 4GBU4gFacDJUiDWxrLgy9xCjBAezkghv4VSgEG9KYmVValF+fFFpTmrxIUZpDhYlcV59k02h QgLpiSWp2ampBalFMFkmDk6pBkapNS+9tytNdN7yUuzH1KVdHs9Mnp01bt6ndOOyeLm1yukv lv0rKieoRrV9q3F8wLzJ0ihul9W6yrV/Vwof/autphwSX7T4RBLn/q8LFbgZGqbPKb697hHz guY6hvnriw95HD69fWI/6zVHSZUPPzZ1PWAUsHk5z8rJVv229fb+iGDNxqc98/crsRRnJBpq MRcVJwIAZPUuSisCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1182 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-versatile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-versatile.c b/drivers/leds/leds-versatile.c index 8055302..49b3339 100644 --- a/drivers/leds/leds-versatile.c +++ b/drivers/leds/leds-versatile.c @@ -82,7 +82,7 @@ static int versatile_leds_probe(struct platform_device *dev) led->base = base; led->cdev.name = versatile_leds[i].name; - led->cdev.brightness_set = versatile_led_set; + led->cdev.brightness_set_nonblocking = versatile_led_set; led->cdev.brightness_get = versatile_led_get; led->cdev.default_trigger = versatile_leds[i].trigger; led->mask = BIT(i); -- 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/