Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934405AbbHKJpR (ORCPT ); Tue, 11 Aug 2015 05:45:17 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:60724 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964880AbbHKJkX (ORCPT ); Tue, 11 Aug 2015 05:40:23 -0400 X-AuditID: cbfee61a-f79a06d000005c6f-f5-55c9c305d945 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 , "Sebastian A. Siewior" Subject: [PATCH/RFC v5 42/57] leds: ot200: Use brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:37:55 +0200 Message-id: <1439285890-27329-43-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+NgFprJLMWRmVeSWpSXmKPExsVy+t9jQV3WwydDDY52y1hMuziJ2eLozolM Fr1XnzNaXN41h81i65t1jBa7dz1ltejsm8biwO6xc9Zddo93586xe+yZ/4PVo2/LKkaPplPt rB6fN8kFsEVx2aSk5mSWpRbp2yVwZdw4/Y+tYCV7xb99uQ2ME9i6GDk5JARMJC68/MACYYtJ XLi3HijOxSEkMItRovf1VlYI5yejxJ6vJ1lBqtgEDCV+vnjN1MXIwSEiICex80wlSA2zwBFG iVWtX5lAaoQFfCTer1jDDGKzCKhKnFvYzQZSzyvgKXFqMgeIKSGgIDFnkg1IBSdQ9PrzRYwg tpCAh8Tx2U1sExh5FzAyrGKUSC1ILihOSs81zEst1ytOzC0uzUvXS87P3cQIDrBnUjsYD+5y P8QowMGoxAM0/2SoEGtiWXFl7iFGCQ5mJRHewqlAId6UxMqq1KL8+KLSnNTiQ4zSHCxK4ryy GzaHCgmkJ5akZqemFqQWwWSZODilGhhLd05r9WNIUs4WiRD8dHHenI3hEcUGvZXr/8f3iriv W3p36+cgvi8xn+LCfyUk2R55tvqmAvMXZ9GPb5tP7tWQ1OcUrViRf+79ScVDe3fHziuOO3Bp Yr/h1ikpmmslVee/0TtWO7nH5tEmbZ1J9/+IPVd0MDnlEnTw5cn83g8K7z9r+sfdNF+pxFKc kWioxVxUnAgAwhgz2SwCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1155 Lines: 32 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: Sebastian A. Siewior --- drivers/leds/leds-ot200.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/leds/leds-ot200.c b/drivers/leds/leds-ot200.c index 39870de..47de99e 100644 --- a/drivers/leds/leds-ot200.c +++ b/drivers/leds/leds-ot200.c @@ -122,7 +122,8 @@ static int ot200_led_probe(struct platform_device *pdev) for (i = 0; i < ARRAY_SIZE(leds); i++) { leds[i].cdev.name = leds[i].name; - leds[i].cdev.brightness_set = ot200_led_brightness_set; + leds[i].cdev.brightness_set_nonblocking = + ot200_led_brightness_set; ret = led_classdev_register(&pdev->dev, &leds[i].cdev); if (ret < 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/