Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753059AbbF3ODg (ORCPT ); Tue, 30 Jun 2015 10:03:36 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:57965 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752508AbbF3OD1 (ORCPT ); Tue, 30 Jun 2015 10:03:27 -0400 X-AuditID: cbfee61b-f79416d0000014c0-81-5592a1ad11fa 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, pavel@ucw.cz, sakari.ailus@linux.intel.com, andreas.werner@men.de, andrew@lunn.ch, ospite@studenti.unina.it, anemo@mba.ocn.ne.jp, ben@simtec.co.uk, bootc@bootc.net, dmurphy@ti.com, daniel.jeong@ti.com, daniel@zonque.org, davem@davemloft.net, fabio.baltieri@gmail.com, balbi@ti.com, florian@openwrt.org, gshark.jeong@gmail.com, g.liakhovetski@gmx.de, ingi2.kim@samsung.com, dl9pf@gmx.de, johan@kernel.org, lenz@cs.wisc.edu, jogo@openwrt.org, q1.kim@samsung.com, kris@krisk.org, kristoffer.ericson@gmail.com, linus.walleij@linaro.org, broonie@kernel.org, michael.hennerich@analog.com, milo.kim@ti.com, nm127@freemail.hu, ncase@xes-inc.com, neilb@suse.de, nick.forbes@incepta.com, lost.distance@yahoo.com, p.meerwald@bct-electronic.com, n0-1@freewrt.org, philippe.retornaz@epfl.ch, raph@8d.com, rpurdie@openedhand.com, rod@whitby.id.au, dave@sr71.net, giometti@linux.it, bigeasy@linutronix.de, shuahkhan@gmail.com, sguinot@lacie.com, Jacek Anaszewski Subject: [PATCH/RFC v2 3/5] led: flash: remove check for brightness_set_sync op Date: Tue, 30 Jun 2015 15:59:28 +0200 Message-id: <1435672770-4261-3-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1435672770-4261-1-git-send-email-j.anaszewski@samsung.com> References: <1435672770-4261-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzXSaWxMURQHcPe9+5aZmHiquNQ6QYKoNXIiIiSk9wMpiZHQBKOeWrqZh3RI GKVJNzVaS9BUa2lNyzRddFXaaSZaM02HMVXV2qqWFrVWp61iLN9++Z//yflyRNbvPDdW3BG5 RzZE6sO1vBo7BtuHz7qelaqbYzFPhqQqM4bGNhsLV9LWQs3TQ5Dj+ILh9L1UFq7ZV8Cp5y95 sJefYOBmSQcLsT86MRy23GYgvfEohpP96RwkOYo5ONK7DXq6nRi6CzIYKG0ZZCGtMpGDskdf eTjmeY3gsfUuD7HNyRx4i+IFyKgnYK+t4ODkQA4D7op0Hm68syLoTSnhwVxbJEBOnxXDhw/9 GDqO1whQdcGE4XvDTxbelTk46E+qxJBiGwNtd+08uBvsGApenGOgw9mC4E5dPQPeqmcsVFZ0 cPC5uIeB/Jdq+OZdCgkpp/HS+fRn0UVEOz3L6NUnbQz9YsnG1NOXy9JiyyOGZsflsfRyfK9A v33uFGj5uTaBfvy0kWZcqWZpYW4CT9OakjlqcT9jaGvTTX71tA3qxVvl8B37ZMPsJZvV21vb LVy0i48ZjGvmTKiaS0QqkUgLiPvVD+avRxHXk3zeZz/pDCK3s5i/9iJS6g7xmZfmEu+brt+5 KPpLE0i505iI1CIr3ROJK3GA9XVGSMHkfV4c9hlLU8nZrOeCzxopiNjj2//sEmkSSU9d7ItV EiWe89Z/p4JIzZ2PyIw0mWhILhopR4dGK1vCIuYFKvoIZW9kWGBoVEQh+vMyrwLKUK4JbEgS kXaoxhWUqvPj9PsUY4QNEZHV+muSY39Hmq16437ZELXJsDdcVmwoQMTa0Zr6qJU6PylMv0fe JcvRsuH/lBFVY02IHei7VR9grDNeoj2BztGThYde7izba1WJx6PGHxSSckw37u9OK2mpezCl wLluZ4LNFVJVvnnLQUUXkDkvuHZc9aqm5c26hpDHu7WWRcFHS0PWvBgWUxn3ttF/+vqgfHCs nqjMXOk65l64riv0gKgyd2d3F3tiCgcy1u9vdeZPSNZiZbt+7gzWoOh/AVIGo3cuAwAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1066 Lines: 32 After removing from LED class drivers the responsibility for using work queues on their own in case they can sleep while setting brightness, the brightness_set_sync op is no longer required. Signed-off-by: Jacek Anaszewski --- drivers/leds/led-class-flash.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/leds/led-class-flash.c b/drivers/leds/led-class-flash.c index 3b25734..fb9bc8d 100644 --- a/drivers/leds/led-class-flash.c +++ b/drivers/leds/led-class-flash.c @@ -298,9 +298,6 @@ int led_classdev_flash_register(struct device *parent, led_cdev = &fled_cdev->led_cdev; if (led_cdev->flags & LED_DEV_CAP_FLASH) { - if (!led_cdev->brightness_set_sync) - return -EINVAL; - ops = fled_cdev->ops; if (!ops || !ops->strobe_set) return -EINVAL; -- 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/