Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934392AbbHKJot (ORCPT ); Tue, 11 Aug 2015 05:44:49 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:46969 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965163AbbHKJkZ (ORCPT ); Tue, 11 Aug 2015 05:40:25 -0400 X-AuditID: cbfee61b-f79706d000001b96-ba-55c9c308875d 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 , Ben Dooks Subject: [PATCH/RFC v5 43/57] leds: s3c24xx: Use brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:37:56 +0200 Message-id: <1439285890-27329-44-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+NgFprOLMWRmVeSWpSXmKPExsVy+t9jQV2OwydDDeb8YrdYfvozi8XRnROZ LHqvPme0uLxrDpvF1jfrGC1273rKatHZN43Fgd1j56y77B575v9g9ejbsorR4/ybqSweTafa WT0+b5ILYIvisklJzcksSy3St0vgyrg6uYOxoIW94mTvXZYGxka2LkYODgkBE4lXVxy7GDmB TDGJC/fWs4HYQgKzGCUO3neDsH8ySrw77Q9iswkYSvx88ZoJpFVEQE5i55nKLkYuDmaBTYwS ey79B+sVFvCTePf1ANh4FgFViTVrXEDCvAKeEudetrJDbFWQmDPJBiTMCRS+/nwRI8QmD4nj s5vYJjDyLmBkWMUokVqQXFCclJ5rlJdarlecmFtcmpeul5yfu4kRHFzPpHcwHt7lfohRgINR iQdowclQIdbEsuLK3EOMEhzMSiK8hVOBQrwpiZVVqUX58UWlOanFhxilOViUxHn1TTaFCgmk J5akZqemFqQWwWSZODilGhj3izaWKgbK+Bo7b1iQ0M/VE9xQWbzukNGWiSWHDR9o33j+Kpfn ia9Rst6JPWzLjvfo5wT127EbWZcw6ol9Xbn73yyGabZ/9bl+d60JZ5lj+u272I9u9pbCXpGH XgI9Qgt1mC8bblC9/KZx8trPz+IdHRy3yPb2Zt4IzHxvtKroXVPgc+3LJUosxRmJhlrMRcWJ AOB0ooAqAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1119 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: Ben Dooks --- drivers/leds/leds-s3c24xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-s3c24xx.c b/drivers/leds/leds-s3c24xx.c index 83641a7..ae4b223 100644 --- a/drivers/leds/leds-s3c24xx.c +++ b/drivers/leds/leds-s3c24xx.c @@ -81,7 +81,7 @@ static int s3c24xx_led_probe(struct platform_device *dev) platform_set_drvdata(dev, led); - led->cdev.brightness_set = s3c24xx_led_set; + led->cdev.brightness_set_nonblocking = s3c24xx_led_set; led->cdev.default_trigger = pdata->def_trigger; led->cdev.name = pdata->name; led->cdev.flags |= LED_CORE_SUSPENDRESUME; -- 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/