Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932498AbbGQIz4 (ORCPT ); Fri, 17 Jul 2015 04:55:56 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:50499 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946042AbbGQItq (ORCPT ); Fri, 17 Jul 2015 04:49:46 -0400 X-AuditID: cbfee61a-f79516d000006302-4a-55a8c1a97f8f 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 40/51] leds: versatile: Mark the LED fast Date: Fri, 17 Jul 2015 10:47:26 +0200 Message-id: <1437122857-6765-41-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1437122857-6765-1-git-send-email-j.anaszewski@samsung.com> References: <1437122857-6765-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprGLMWRmVeSWpSXmKPExsVy+t9jAd2VB1eEGiyYLmxxdOdEJoveq88Z Lab8Wc5kcXnXHDaLrW/WMVrs3vWU1aKzbxqLA7vHzll32T3uXNvD5rFn/g9Wj74tqxg9mk61 s3p83iQXwBbFZZOSmpNZllqkb5fAlfFzwTX2ghNsFTca/7E1MJ5g7WLk5JAQMJFY/reHBcIW k7hwbz1bFyMXh5DAIkaJjxMmQTk/GSUmbb8FVsUmYCjx88Vrpi5GDg4RATmJnWcqQcLMAvsY JdrP2YLYwgK2ErdmXQArYRFQlVh2ohokzCvgITG5pYENJCwhoCAxZ5INSJgTKPz+wUqw4UIC 7hJtfy6yTWDkXcDIsIpRNLUguaA4KT3XUK84Mbe4NC9dLzk/dxMjOLSeSe1gXNlgcYhRgINR iYe3wXVFqBBrYllxZe4hRgkOZiUR3sqdQCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8J/N9QoUE 0hNLUrNTUwtSi2CyTBycUg2MXguPhSnFXJg1Y6fGttBj1V46dTFTKi0yZ/dvbLx+ZqrZ6fXy u+6xXj7i8PLnIWuTyq7smOOSvm+OM3WrnftcqLA5bbl1u2N159l3HQmrel/WLYqddmHjx3vS hpFV20JfbmQs19tmO9PXk9vhwNwfkndnCKybe8Dh2Z7s1xJt11vVw9Ufrgq7q8RSnJFoqMVc VJwIAGJCbtIpAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1061 Lines: 29 The driver neither sleeps nor uses delays in its brightness_set op. Mark it fast then. Signed-off-by: Jacek Anaszewski Cc: Linus Walleij --- drivers/leds/leds-versatile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/leds/leds-versatile.c b/drivers/leds/leds-versatile.c index 8055302..46ba28f 100644 --- a/drivers/leds/leds-versatile.c +++ b/drivers/leds/leds-versatile.c @@ -85,6 +85,7 @@ static int versatile_leds_probe(struct platform_device *dev) led->cdev.brightness_set = versatile_led_set; led->cdev.brightness_get = versatile_led_get; led->cdev.default_trigger = versatile_leds[i].trigger; + led->cdev.flags |= LED_BRIGHTNESS_FAST; led->mask = BIT(i); if (led_classdev_register(NULL, &led->cdev) < 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/