Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934380AbbHKJo1 (ORCPT ); Tue, 11 Aug 2015 05:44:27 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:35793 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964817AbbHKJk2 (ORCPT ); Tue, 11 Aug 2015 05:40:28 -0400 X-AuditID: cbfee61b-f79706d000001b96-bd-55c9c30a9c2b 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 , Dave Hansen Subject: [PATCH/RFC v5 44/57] leds: ss4200: Use brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:37:57 +0200 Message-id: <1439285890-27329-45-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+NgFprNLMWRmVeSWpSXmKPExsVy+t9jQV2uwydDDY6+M7A4unMik0Xjyv1M Fr1XnzNaXN41h81i65t1jBa7dz1ltejsm8biwO6xc9Zddo8983+wevRtWcXocXXCfCaPplPt rB6fN8kFsEVx2aSk5mSWpRbp2yVwZXRf28tScIK94tysCSwNjHvZuhg5OSQETCSOnFvGAmGL SVy4tx4ozsUhJDCLUeJe2ykmCOcno8TzWRvBOtgEDCV+vngNlODgEBGQk9h5phKkhllgI6PE 5LarYDXCAr4SE95vA7NZBFQlrlzvArN5BTwlji0/AdYrIaAgMWeSDUiYEyh8/fkiRhBbSMBD 4vjsJrYJjLwLGBlWMUqkFiQXFCel5xrlpZbrFSfmFpfmpesl5+duYgQH2TPpHYyHd7kfYhTg YFTiAVpwMlSINbGsuDL3EKMEB7OSCG/hVKAQb0piZVVqUX58UWlOavEhRmkOFiVxXn2TTaFC AumJJanZqakFqUUwWSYOTqkGxpjQh71LptxdeofzkeTbzxee+Fdqz+DSiA+51LFO/NCHFw8L 7jRFyShF/+30PlF5MZ17yvp/LAWvjL9nxsr/PxZkd/z6tkvlE5h/Cu69a98mfDbYbLdz8aKJ NvmzxWYYyU1zMnBUENGdv4JtSdsWRoNGUxafEvZf67jED0ifenyqlFVrdqrqVSWW4oxEQy3m ouJEAOO7KnAuAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1187 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: Dave Hansen --- drivers/leds/leds-ss4200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-ss4200.c b/drivers/leds/leds-ss4200.c index 046cb70..925305e 100644 --- a/drivers/leds/leds-ss4200.c +++ b/drivers/leds/leds-ss4200.c @@ -485,7 +485,7 @@ static int register_nasgpio_led(int led_nr) led->brightness = LED_OFF; if (nasgpio_led_get_attr(led, GP_LVL)) led->brightness = LED_FULL; - led->brightness_set = nasgpio_led_set_brightness; + led->brightness_set_nonblocking = nasgpio_led_set_brightness; led->blink_set = nasgpio_led_set_blink; led->groups = nasgpio_led_groups; ret = led_classdev_register(&nas_gpio_pci_dev->dev, led); -- 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/