Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934424AbbHKJpq (ORCPT ); Tue, 11 Aug 2015 05:45:46 -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 S965084AbbHKJkS (ORCPT ); Tue, 11 Aug 2015 05:40:18 -0400 MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 X-AuditID: cbfee61a-f79a06d000005c6f-e4-55c9c2fda2c1 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?= , Jonas Gorski Subject: [PATCH/RFC v5 39/57] leds: bcm6328: Use brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:37:52 +0200 Message-id: <1439285890-27329-40-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+NgFnrELMWRmVeSWpSXmKPExsVy+t9jQd2/h06GGlxulLY4unMik0Xv1eeM FrfXnWKzuLxrDpvF1jfrGC3W3DnEarF711NWi86+aSwOHB47Z91l99iyOMNjz/wfrB59W1Yx ejSdamf1+LxJLoAtissmJTUnsyy1SN8ugStjxfYGxoJN7BVXWiewNzAuYeti5OCQEDCReP2/ sIuRE8gUk7hwbz0biC0kMItRYkljBojNKyAo8WPyPRaQcmYBeYkjl7JBwswC6hKT5i1i7mLk Air/ySjR9+IAWC+bgKHEzxevmUDqRQTkJHaeqYSo/8sosfBKGogtLOAnsfb2LBYQm0VAVWJj 5y1GiFWeEhs+TGGCuExBYs4kG5AwJ1D4+vNFjBCXeUgcn93ENoER6ESE42YhHDcLyXELGJlX MUqkFiQXFCel5xrmpZbrFSfmFpfmpesl5+duYgSH/DOpHYwHd7kfYhTgYFTiAbrhZKgQa2JZ cWXuIUYJDmYlEd7CqUAh3pTEyqrUovz4otKc1OJDjNIcLErivLIbNocKCaQnlqRmp6YWpBbB ZJk4OKUaGGcLHI1lujF5ldCxm+5ub2r+CSYEbgqp2mahrrBq4Z6mX4E3n3oee6O9+OR2s7S6 B6LcnEpF5mGebuHSHcJTMvO+3/G78JiRQUp+4nb31OSOD/GvNKYfPfjAf+vq8wlG71r37VSy CLY4cLh8bdhEjVmyvgue+mxNC57Zta4u7EI5Z3+OsyVfhhJLcUaioRZzUXEiAIY+06d1AgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1164 Lines: 32 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 Cc: Jonas Gorski --- drivers/leds/leds-bcm6328.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-bcm6328.c b/drivers/leds/leds-bcm6328.c index 986fe1e..0b0a6b5 100644 --- a/drivers/leds/leds-bcm6328.c +++ b/drivers/leds/leds-bcm6328.c @@ -311,7 +311,7 @@ static int bcm6328_led(struct device *dev, struct device_node *nc, u32 reg, spin_unlock_irqrestore(lock, flags); } - led->cdev.brightness_set = bcm6328_led_set; + led->cdev.brightness_set_nonblocking = bcm6328_led_set; led->cdev.blink_set = bcm6328_blink_set; rc = led_classdev_register(dev, &led->cdev); -- 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/