Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965210AbbHKJkv (ORCPT ); Tue, 11 Aug 2015 05:40:51 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:57345 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933890AbbHKJkr (ORCPT ); Tue, 11 Aug 2015 05:40:47 -0400 X-AuditID: cbfee61a-f79a06d000005c6f-2e-55c9c31d6ee7 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 , Kristoffer Ericson Subject: [PATCH/RFC v5 51/57] leds: hp6xx: Use brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:38:04 +0200 Message-id: <1439285890-27329-52-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+NgFprCLMWRmVeSWpSXmKPExsVy+t9jQV3ZwydDDf6fULM4unMik0Xv1eeM FvNOSlhc3jWHzWLrm3WMFrt3PWW16OybxuLA7rFz1l12jz3zf7B69G1ZxejRdKqd1ePzJrkA 1igum5TUnMyy1CJ9uwSujKvf37AXTOaumHD7N3sD43LOLkYODgkBE4mJfzK6GDmBTDGJC/fW s3UxcnEICcxilPi0aCEThPOTUeLjqjYmkCo2AUOJny9eM4E0iwjISew8UwlSwyxwnFGiedJN VpAaYQEfiTnbH7GD2CwCqhI7Vh9lBrF5BTwlXtw4xwKxWEFiziQbkDAnUPj680WMILaQgIfE 8dlNbBMYeRcwMqxilEgtSC4oTkrPNcxLLdcrTswtLs1L10vOz93ECA6rZ1I7GA/ucj/EKMDB qMQDtOBkqBBrYllxZe4hRgkOZiUR3sKpQCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8shs2hwoJ pCeWpGanphakFsFkmTg4pRoYJ/wMMvjCGWaedHAD5/2zm+eYTuypOL6yJn2S2fsnr3/F+V1u VNFW6WDuDts+235ppXbE1Eesy1ZJvIkyf/atMOCFwvVvvKeWm+f+W5/7Svin3ZsVnc8Wti3u /CB3nuHo5KM/rTRdHDnPrdr8Wad8WkhT1tlkn9Wal5O+cKUl7RB6PC+zdkb5ciWW4oxEQy3m ouJEAGhc00onAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1629 Lines: 48 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: Kristoffer Ericson --- drivers/leds/leds-hp6xx.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/leds/leds-hp6xx.c b/drivers/leds/leds-hp6xx.c index 0b84c01..5848e2b 100644 --- a/drivers/leds/leds-hp6xx.c +++ b/drivers/leds/leds-hp6xx.c @@ -42,17 +42,17 @@ static void hp6xxled_red_set(struct led_classdev *led_cdev, } static struct led_classdev hp6xx_red_led = { - .name = "hp6xx:red", - .default_trigger = "hp6xx-charge", - .brightness_set = hp6xxled_red_set, - .flags = LED_CORE_SUSPENDRESUME, + .name = "hp6xx:red", + .default_trigger = "hp6xx-charge", + .brightness_set_nonblocking = hp6xxled_red_set, + .flags = LED_CORE_SUSPENDRESUME, }; static struct led_classdev hp6xx_green_led = { - .name = "hp6xx:green", - .default_trigger = "ide-disk", - .brightness_set = hp6xxled_green_set, - .flags = LED_CORE_SUSPENDRESUME, + .name = "hp6xx:green", + .default_trigger = "ide-disk", + .brightness_set_nonblocking = hp6xxled_green_set, + .flags = LED_CORE_SUSPENDRESUME, }; static int hp6xxled_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/