- 27 7月, 2012 2 次提交
-
-
由 Dan Carpenter 提交于
Use the error codes from the lower levels instead of -ENODEV. Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com> Acked-by: NJan-Simon Möller <jansimon.moeller@gmx.de> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Dan Carpenter 提交于
This can return without freeing the bl_work struct. Also there was no check for allocation failure. Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com> Acked-by: NJan-Simon Möller <jansimon.moeller@gmx.de> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
- 26 7月, 2012 1 次提交
-
-
由 Kim, Milo 提交于
TI LP8788 PMU has the current sink as the keyboard led driver. The brightness is controlled by the i2c commands. Configurable parameters can be defined in the platform side. Patch v2. (a) use workqueue on changing the brightness (b) use mutex_lock/unlock when the brightness is set and the led block of lp8788 device is enabled (c) remove err_dev on _probe() : just return as returned value if any errors (d) replace module_init/exit() with module_platform_driver() (e) add led configuration structure and loading them by default if platform data is null Signed-off-by: NMilo(Woogyom) Kim <milo.kim@ti.com> Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
- 24 7月, 2012 37 次提交
-
-
由 Jan-Simon Möller 提交于
Add driver for BlinkM device to drivers/leds/. Add entry to MAINTAINERS file. Add documentation in Documentation/leds/. A BlinkM is a RGB LED controlled through I2C. This driver implements an interface to the LED framework and another sysfs group to access the internal options of the BlinkM. rev6: Use module_i2c_driver(). rev5: Removed own workqueue in favor of events wq. rev4: Fixed comments by Bryan Wu. rev3: Fixed issues found by Jonathan Neuschäfer. (bryan.wu@canonical.com: remove 2 trailing whitespace) Signed-off-by: NJan-Simon Möller <jansimon.moeller@gmx.de> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Axel Lin 提交于
It is not necessary to call max8997_update_reg() twice just for updating MAX8997_REG_LEN_CNTL register. With proper val and mask arguments to max8997_update_reg() call, this can be done in one max8997_update_reg() call. And then we can remove max8997_led_clear_mode() function. Signed-off-by: NAxel Lin <axel.lin@gmail.com> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Devendra Naga 提交于
why? because if the led_classdev_register fails we wont do gpio free because using devm_ functions, there is no need for error paths Signed-off-by: NDevendra Naga <devendra.aaru@gmail.com> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Cc: Simon Guinot <sguinot@lacie.com> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Cc: Guennadi Liakhovetski <lg@denx.de> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Cc: Shreshtha Kumar SAHU <shreshthakumar.sahu@stericsson.com> Acked-by: NLinus Walleij <linus.walleij@linaro.org> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Cc: Neil Brown <neilb@suse.de> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Cc: Philippe Retornaz <philippe.retornaz@epfl.ch> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Cc: Michael Hennerich <hennerich@blackfin.uclinux.org> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Cc: Nate Case <ncase@xes-inc.com> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Cc: David S. Miller <davem@davemloft.net> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Cc: Riku Voipio <riku.voipio@iki.fi> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Cc: Daniel Mack <daniel@caiaq.de> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Cc: Magnus Damm <damm@opensource.se> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Cc: Mathias Nyman <mathias.nyman@nokia.com> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Cc: Peter Meerwald <p.meerwald@bct-electronic.com> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Cc: Kim Kyuwon <q1.kim@samsung.com> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Cc: Eric Miao <eric.miao@canonical.com> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Cc: Antonio Ospite <ospite@studenti.unina.it> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Cc: Paul Parsons <lost.distance@yahoo.com> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
Cc: Simon Guinot <sguinot@lacie.com> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Sachin Kamat 提交于
devm_kzalloc() makes cleanup simpler. Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Sachin Kamat 提交于
devm_kzalloc() makes code cleanup simpler. Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Sachin Kamat 提交于
devm_kzalloc() makes cleanup simpler. Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Sachin Kamat 提交于
devm_kzalloc() makes cleanup simpler. Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Sachin Kamat 提交于
module_platform_driver() makes the code simpler. Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Peter Meerwald 提交于
Signed-off-by: NPeter Meerwald <p.meerwald@bct-electronic.com> Cc: NeilBrown <neilb@suse.de> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Sylwester Nawrocki 提交于
The s3c2410_gpio* calls are obsolete and have been scheduled for removal since several kernel releases. Remove them and use common gpiolib API instead. This patch also adds gpio_request/gpio_free call for API corectness. It is a prerequisite for removal of the S3C24XX SoC specific arch/arm/plat-samsung/include/gpio-fns.h header. Tested on Micro2440-SDK. Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: NSylwester Nawrocki <sylvester.nawrocki@gmail.com> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Sylwester Nawrocki 提交于
Use the device managed resource API for simplifying the error/driver remove paths. Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: NSylwester Nawrocki <sylvester.nawrocki@gmail.com> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Devendra Naga 提交于
the platform_set_drvdata (pdev, NULL) to be set at the remove of the driver, as we have set the platform data to led at probe. Signed-off-by: NDevendra Naga <devendra.aaru@gmail.com> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Devendra Naga 提交于
Using devm_kzalloc will remove all the error checks and the frees are automatically done at the driver unload side. Signed-off-by: NDevendra Naga <devendra.aaru@gmail.com> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Dan Carpenter 提交于
Inside the error handling in lp5523_init_led(), there is a place that calls to led_classdev_unregister(). When we unregister the LED drivers, it tries to set the brightness to OFF. In this driver setting the brightness is done through a work queue and the work queue hasn't been initialized yet. The result is that we trigger a WARN_ON() in the __queue_work(). The fix is to move the INIT_WORK() in front of the call to lp5523_init_led(). Matt Renzelmann found this using a bug finding tool. Reported-by: NMatt Renzelmann <mjr@cs.wisc.edu> Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 G.Shark Jeong 提交于
LM3556 : The LM3556 is a 4 MHz fixed-frequency synchronous boost converter plus 1.5A constant current driver for a high-current white LED. Datasheet: www.national.com/ds/LM/LM3556.pdf Tested on OMAP4430 (bryan.wu@canonical.com: use module_i2c_driver() rather than lm3556_init/lm3556_exit for code simplicity; fixed some typo pointed out by Rob Landley) Signed-off-by: NG.Shark Jeong <gshark.jeong@gmail.com> Reviewed-by: NAxel Lin <axel.lin@gmail.com> Reviewed-by: NKim, Milo <Milo.Kim@ti.com> Acked-by: NRob Landley <rob@landley.net> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Devendra Naga 提交于
the ret is got the status returned by the led_classdev_register, returning ret if the led_classdev_register fails and returning 0 if the led_classdev_register success, can be done by doing just "return ret" at the end. Signed-off-by: NDevendra Naga <devendra.aaru@gmail.com> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-
由 Bryan Wu 提交于
drivers/leds/led-core.c:56:6: sparse: symbol 'led_blink_setup' was not declared. Should it be static? drivers/leds/led-triggers.c:233:6: sparse: symbol 'led_trigger_blink_setup' was not declared. Should it be static? Reported-by: NFengguang Wu <wfg@linux.intel.com> Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
-