Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934049AbbHKJk3 (ORCPT ); Tue, 11 Aug 2015 05:40:29 -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 S965159AbbHKJkU (ORCPT ); Tue, 11 Aug 2015 05:40:20 -0400 MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 X-AuditID: cbfee61a-f79a06d000005c6f-ec-55c9c2ff7152 Content-transfer-encoding: 8BIT 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 , =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Subject: [PATCH/RFC v5 40/57] leds: bcm6358: Use brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:37:53 +0200 Message-id: <1439285890-27329-41-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+NgFrrFLMWRmVeSWpSXmKPExsVy+t9jQV2GwydDDeatYbc4unMik0Xv1eeM Fpd3zWGz2PpmHaPFmjuHWC1273rKatHZN43Fgd1j56y77B575v9g9ejbsorRo+lUO6vH501y AaxRXDYpqTmZZalF+nYJXBlPNjsVzGKv2HnzLWsD4wS2LkZODgkBE4nHP28yQ9hiEhfurQeK c3EICcxilPjR2g+W4BUQlPgx+R5LFyMHB7OAvMSRS9kgYWYBdYlJ8xYxQ9T/ZJTYPOs1K0iC TcBQ4ueL10wg9SICchI7z1RC1N9ilLh7PBLEFhbwk9j4fxdYOYuAqsSMfzfZIVZ5Svz4fJYR pFVCQEFiziQbkDAnUPj680WMILaQgIfE8dlNbBMYgW5EOG4WwnGzkBy3gJF5FaNEakFyQXFS eq5hXmq5XnFibnFpXrpecn7uJkZwiD+T2sF4cJf7IUYBDkYlHqAbToYKsSaWFVfmHmKU4GBW EuEtnAoU4k1JrKxKLcqPLyrNSS0+xCjNwaIkziu7YXOokEB6YklqdmpqQWoRTJaJg1OqgZH5 Xu+uLedk+QNOnFde6l/WezXe9JUWu/GWLs7rGzPMz7ErPml8d+LfeVXJu6uS0vfcWT1R9giv upCFtMDKB9Oflvx/vHar4NovYZznXvxhZkxXCuWMeHLP4kAXoyxrpN2Ju0fi2VKc72VfamoT nHJsNue16vynHrUFi2M3h66/77V/x/vc+a5KLMUZiYZazEXFiQAvpR1abQIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1141 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: Álvaro Fernández Rojas --- drivers/leds/leds-bcm6358.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-bcm6358.c b/drivers/leds/leds-bcm6358.c index 21f9693..a213160 100644 --- a/drivers/leds/leds-bcm6358.c +++ b/drivers/leds/leds-bcm6358.c @@ -144,7 +144,7 @@ static int bcm6358_led(struct device *dev, struct device_node *nc, u32 reg, bcm6358_led_mode(led, led->cdev.brightness); spin_unlock_irqrestore(lock, flags); - led->cdev.brightness_set = bcm6358_led_set; + led->cdev.brightness_set_nonblocking = bcm6358_led_set; rc = led_classdev_register(dev, &led->cdev); if (rc < 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/