Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934290AbbHKJlM (ORCPT ); Tue, 11 Aug 2015 05:41:12 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:42877 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934237AbbHKJlA (ORCPT ); Tue, 11 Aug 2015 05:41:00 -0400 X-AuditID: cbfee61a-f79a06d000005c6f-55-55c9c32bde6a 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 56/57] leds: ipaq-micro: Set LED_BRIGHTNESS_BLOCKING flag Date: Tue, 11 Aug 2015 11:38:09 +0200 Message-id: <1439285890-27329-57-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+t9jQV3twydDDXZ85bc4unMik0Xv1eeM FlP+LGeyuLxrDpvF1jfrGC1273rKatHZN43Fgd1j56y77B53ru1h89gz/werR9+WVYweTafa WT0+b5ILYIvisklJzcksSy3St0vgyvj45SZbwTG2iin7FjM1MO5j7WLk5JAQMJG4sfEFE4Qt JnHh3nq2LkYuDiGBWYwSp/Y8YYZwfjJK3J71mAWkik3AUOLni9dAHRwcIgJyEjvPVIKEmQX2 MUq0n7MFsYUFAiTavj1iA7FZBFQlDp64zQ5i8wp4SlxrfccM0iohoCAxZ5INSJgTKHz9+SJG EFtIwEPi+OwmtgmMvAsYGVYxSqQWJBcUJ6XnGuallusVJ+YWl+al6yXn525iBIfYM6kdjAd3 uR9iFOBgVOIBWnAyVIg1say4MvcQowQHs5IIb+FUoBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXFe 2Q2bQ4UE0hNLUrNTUwtSi2CyTBycUg2MEVOvSx+3qNZVc/x8dTnbrGVcjIbiOiZynuccb2as N194i3nKl5gO59tZN0I97fv+fTue+6/QTbrilFuMmYPT8ws3LnUpmvGZ33m7/v2F1KeiJptW rtG0MTd+I9H3ePWC9jUh9XInF3/+8KX3wMsrrTXzQrt1jLcz/o2cFNj8Jq297jB7xsd4JZbi jERDLeai4kQAzO6cVS0CAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1058 Lines: 30 Since implemented brightness_set op can sleep mark the LED blocking. Signed-off-by: Jacek Anaszewski Cc: Linus Walleij --- drivers/leds/leds-ipaq-micro.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/leds/leds-ipaq-micro.c b/drivers/leds/leds-ipaq-micro.c index 3776f51..fb82bd3 100644 --- a/drivers/leds/leds-ipaq-micro.c +++ b/drivers/leds/leds-ipaq-micro.c @@ -104,7 +104,8 @@ static struct led_classdev micro_led = { .name = "led-ipaq-micro", .brightness_set = micro_leds_brightness_set, .blink_set = micro_leds_blink_set, - .flags = LED_CORE_SUSPENDRESUME, + .flags = LED_CORE_SUSPENDRESUME | + LED_BRIGHTNESS_BLOCKING, }; static int micro_leds_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/