Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934212AbbHKJkm (ORCPT ); Tue, 11 Aug 2015 05:40:42 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:39931 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933995AbbHKJki (ORCPT ); Tue, 11 Aug 2015 05:40:38 -0400 X-AuditID: cbfee61a-f79a06d000005c6f-24-55c9c315637d 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 , Paul Parsons Subject: [PATCH/RFC v5 48/57] leds: asic3: Use brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:38:01 +0200 Message-id: <1439285890-27329-49-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+t9jQV3RwydDDe5fVLE4unMik0Xv1eeM Fpd3zWGz2PpmHaPFj75tbBa7dz1ltejsm8biwO6xc9Zddo8983+wevRtWcXo0XSqndXj8yY5 j1mzDjMFsEVx2aSk5mSWpRbp2yVwZcxfPpmtoJO9Yv+5HSwNjK1sXYycHBICJhLLlt5jhrDF JC7cWw8U5+IQEpjFKLFk1h4WCOcno8SjpYfBOtgEDCV+vnjN1MXIwSEiICex80wlSA2zwB5G iXP3+1hAaoQFfCQ29a0Fm8oioCpx4HE7M0g9r4CnxN81nCCmhICCxJxJNiAVnEDR688XMYLY QgIeEsdnN7FNYORdwMiwilEitSC5oDgpPdcwL7Vcrzgxt7g0L10vOT93EyM4xJ5J7WA8uMv9 EKMAB6MSD9D8k6FCrIllxZW5hxglOJiVRHgLpwKFeFMSK6tSi/Lji0pzUosPMUpzsCiJ88pu 2BwqJJCeWJKanZpakFoEk2Xi4JRqYIz5OOlV2VnNnVJPv+459u6bcRP7nYedKSZfi7O9NFgW 2EbnLqj5erjI4wjTk3Ye8+iZtl8W/r9R9rLl+RMmU4vYDrf59c/2bTC5UhDqJlhUHPw88vvu my9PmYm+K3a1OnBhT7yrdsVOhtzC69+2O5bqJrCdmGRq4FV/tn11uVqBg+HbJg0bFyWW4oxE Qy3mouJEAFddOnstAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1124 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: Paul Parsons --- drivers/leds/leds-asic3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-asic3.c b/drivers/leds/leds-asic3.c index 1b71eac..c23f565 100644 --- a/drivers/leds/leds-asic3.c +++ b/drivers/leds/leds-asic3.c @@ -109,7 +109,7 @@ static int asic3_led_probe(struct platform_device *pdev) led->cdev->name = led->name; led->cdev->flags = LED_CORE_SUSPENDRESUME; - led->cdev->brightness_set = brightness_set; + led->cdev->brightness_set_nonblocking = brightness_set; led->cdev->blink_set = blink_set; led->cdev->default_trigger = led->default_trigger; -- 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/