aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-11-28leds: leds-rb532: Fix checkpatch errorsSachin Kamat1-1/+1
Fixes the following issues: ERROR: code indent should use tabs where possible WARNING: please, no spaces at the start of a line Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-27leds: led-triggers: Fix checkpatch warningsSachin Kamat1-6/+6
Fixes the following type of warnings: WARNING: Prefer netdev_warn(netdev, ... then dev_warn(dev, ... then pr_warn(... to printk(KERN_WARNING ... WARNING: quoted string split across lines While at it also fix a coding style issue w.r.t braces. Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-27leds: ledtrig-backlight: Fix checkpatch errorSachin Kamat1-1/+1
Fixes the following checkpatch error: ERROR: space prohibited before that ':' (ctx:WxE) Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-27leds: leds-wrap: Use <linux/io.h> instead of <asm/io.h>Sachin Kamat1-1/+1
Fixes the following checkpatch warning: WARNING: Use #include <linux/io.h> instead of <asm/io.h> Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-27leds: leds-wm8350: Use dev_err instead of printkSachin Kamat1-2/+2
Fixes the following type of checkpatch warnings: WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-27leds: leds-pwm: Fix checkpatch warningSachin Kamat1-1/+1
Fixes the following checkpatch warning: WARNING: please, no space before tabs FILE: leds/leds-pwm.c:29: ^Iunsigned int ^I^Iactive_low;$ Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-27leds: leds-pca955x: Use dev_info instead of printkSachin Kamat1-1/+1
Fixes the following checkpatch warning: WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ... Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-27leds: leds-net48xx: Use linux/io.h instead of asm/io.hSachin Kamat1-1/+1
Fixes the following checkpatch warning: WARNING: Use #include <linux/io.h> instead of <asm/io.h> Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-27leds: leds-lt3593: Fix checkpatch warningsSachin Kamat1-2/+2
Fixes the following type of checkpatch warnings: WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ... Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-27leds: leds-gpio: Use dev_info instead of printkSachin Kamat1-1/+1
Fixes the following checkpatch warning: WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ... FILE: leds/leds-gpio.c:105: printk(KERN_INFO "Skipping unavailable LED gpio %d (%s)\n", Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-27leds: leds-da903x: Fix checkpatch error and warningsSachin Kamat1-5/+5
Fixes the following type of checkpatch error and warnings: WARNING: please, no space before tabs ERROR: trailing whitespace WARNING: quoted string split across lines Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-27leds: leds-bd2802: Fix checkpatch warningsSachin Kamat1-3/+3
Fixes the following type of checkpatch warnings: WARNING: please, no space before tabs Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-27leds: leds-adp5520: Fix checkpatch warningsSachin Kamat1-2/+2
Fixes the following type of checkpatch warnings: WARNING: please, no space before tabs Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-27leds: led-class: Fix checkpatch warningSachin Kamat1-1/+1
Fixes the following checkpatch warning: WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG ... FILE: leds/led-class.c:214: printk(KERN_DEBUG "Registered led device: %s\n", Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-27leds: leds-ns2: use devm_gpio_request_oneSachin Kamat1-12/+5
devm_gpio_request_one is device managed and makes error handling and cleanup simpler. Cc: Simon Guinot <[email protected]> Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-27leds: leds-lt3593: use devm_gpio_request_oneSachin Kamat1-8/+3
devm_gpio_request_one is device managed and makes error handling and cleanup simpler. Signed-off-by: Sachin Kamat <[email protected]> Acked-by: Daniel Mack <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-27leds: leds-gpio: use devm_gpio_request_oneSachin Kamat1-6/+2
devm_gpio_request_one is device managed and makes error handling and cleanup simpler. Cc: Raphael Assenat <[email protected]> Cc: Trent Piepho <[email protected]> Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: lp3944: Fix return valueSachin Kamat1-1/+1
Return the value obtained from i2c_smbus_read_byte_data() instead of -EINVAL. Silences the following smatch warning: drivers/leds/leds-lp3944.c:89 lp3944_reg_read() info: why not propagate 'tmp' from i2c_smbus_read_byte_data() instead of -22? Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: lp5523: Fix return valueSachin Kamat1-1/+1
Return the value obtained from i2c_smbus_read_byte_data() instead of -EIO. Silences the following smatch warning: drivers/leds/leds-lp5523.c:174 lp5523_read() info: why not propagate 'ret' from i2c_smbus_read_byte_data() instead of -5? Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: lp5521: Fix return valueSachin Kamat1-1/+1
Return the value obtained from i2c_smbus_read_byte_data() instead of -EIO. Silences the following smatch warning: drivers/leds/leds-lp5521.c:155 lp5521_read() info: why not propagate 'ret' from i2c_smbus_read_byte_data() instead of -5? Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: leds-lp5523: replace strict_strtoul() with kstrtoul()Jingoo Han1-1/+1
The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: leds-lp5521: replace strict_strtoul() with kstrtoul()Jingoo Han1-1/+1
The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26led: Add dependency on CONFIG_LEDS_TRIGGERS to led_trigger_rename_static()Jingoo Han1-18/+17
This patch fixes build warnings when CONFIG_LEDS_TRIGGERS is disabled as below: include/linux/leds.h:158:18: warning: 'struct led_trigger' declared inside parameter list [enabled by default] include/linux/leds.h:158:18: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] Signed-off-by: Jingoo Han <[email protected]> Acked-by: Fabio Baltieri <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: add led_trigger_rename functionFabio Baltieri2-0/+31
Implements a "led_trigger_rename" function to rename a trigger with proper locking. This assumes that led name was originally allocated in non-constant storage. Signed-off-by: Fabio Baltieri <[email protected]> Cc: Kurt Van Dijck <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: lm3642: Fix up world writable sysfs filesAxel Lin1-2/+2
We don't need these sysfs files to be world writable or group writable. These files are write-only, change them to S_IWUSR (0200). Signed-off-by: Axel Lin <[email protected]> Acked-by: G.Shark Jeong <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: lm355x: Fix up world writable sysfs fileAxel Lin1-1/+1
We don't need the sysfs file to be world writable or group writable. This file is write-only, change it to S_IWUSR (0200). Signed-off-by: Axel Lin <[email protected]> Acked-by: G.Shark Jeong <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: leds-88pm860x: drop devm_kfree of devm_kzalloc'd dataJingoo Han1-7/+2
The devm_kfree function allocates memory that is released when a driver detaches. Thus, there is no reason to explicitly call devm_kfree in probe or remove functions. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: leds-lp5523: fix build warningsJingoo Han1-3/+17
This patch fixes build warnings as below: drivers/leds/leds-lp5523.c: In function 'lp5523_selftest': drivers/leds/leds-lp5523.c:496:18: warning: 'adc' may be used uninitialized in this function [-Wuninitialized] drivers/leds/leds-lp5523.c:471:5: warning: 'vdd' may be used uninitialized in this function [-Wuninitialized] drivers/leds/leds-lp5523.c: In function 'lp5523_probe': drivers/leds/leds-lp5523.c:252:9: warning: 'status' may be used uninitialized in this function [-Wuninitialized] drivers/leds/leds-lp5523.c:201:5: note: 'status' was declared here If lp5523_read() returns an error, problems will happen. Thus, when lp5523_read() returns an error, it should be handled. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: leds-gpio: Defer probing in case of deferred gpio probingRoland Stigge1-6/+11
This patch makes leds-gpio's probe() return -EPROBE_DEFER if any of the gpios to register are deferred themselves. This makes a change of gpio_leds_create_of()'s return value necessary: Instead of returning NULL on error, we now use ERR_PTR() error coding. Signed-off-by: Roland Stigge <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: ledtrig-gpio: replace strict_strtoul() with kstrtoul()Jingoo Han1-1/+1
The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: ledtrig-backlight: replace strict_strtoul() with kstrtoul()Jingoo Han1-1/+1
The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: leds-ss4200: replace strict_strtoul() with kstrtoul()Jingoo Han1-1/+1
The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: leds-ns2: replace strict_strtoul() with kstrtoul()Jingoo Han1-1/+1
The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: leds-netxbig: replace strict_strtoul() with kstrtoul()Jingoo Han1-1/+1
The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: leds-bd2802: replace strict_strtoul() with kstrtoul()Jingoo Han1-2/+2
The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: renesas: use devm_ functionsJingoo Han1-11/+6
The devm_ functions allocate memory that is released when a driver detaches. This makes the code smaller and a bit simpler. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: leds-cobalt-qube: use devm_ioremapJingoo Han1-7/+4
The devm_ functions allocate memory that is released when a driver detaches. This patch uses devm_ioremap() for these functions. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: leds-cobalt-raq: use devm_ioremapJingoo Han1-7/+4
The devm_ functions allocate memory that is released when a driver detaches. This patch uses devm_ioremap() for these functions. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: leds-fsg: use devm_ioremapJingoo Han1-10/+5
The devm_ functions allocate memory that is released when a driver detaches. This patch uses devm_ioremap() for these functions. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: renesas: use gpio_request_oneJingoo Han1-4/+4
Using gpio_request_one can make the code simpler because it can set the direction and initial value in one shot. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: leds-ns2: use gpio_request_oneJingoo Han1-14/+7
Using gpio_request_one can make the code simpler because it can set the direction and initial value in one shot. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: leds-lt3593: use gpio_request_oneJingoo Han1-6/+3
Using gpio_request_one can make the code simpler because it can set the direction and initial value in one shot. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: leds-gpio: use gpio_request_oneJingoo Han1-7/+5
Using gpio_request_one can make the code simpler because it can set the direction and initial value in one shot. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: lm355x: Return proper error for lm3556_indicator_pattern_store error pathAxel Lin1-1/+1
Signed-off-by: Axel Lin <[email protected]> Acked-by: G.Shark Jeong <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-26leds: lm3642: Return proper error in lm3642_[torch|strobe]_pin_store error pathsAxel Lin1-4/+4
Signed-off-by: Axel Lin <[email protected]> Acked-by: G.Shark Jeong <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2012-11-25Linux 3.7-rc7Linus Torvalds1-1/+1
2012-11-25Merge branch 'merge' of ↵Linus Torvalds2-2/+3
git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc Pull powerpc EEH bugfixes from Benjamin Herrenschmidt. Two one-liner fixes for the new EEH code. * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: powerpc/eeh: Do not invalidate PE properly powerpc/pseries: Fix oops with MSIs when missing EEH PEs
2012-11-25Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linusLinus Torvalds3-12/+41
Pull MIPS fixes from Ralf Baechle: "Three issues fixed accross the field: - Some functions that were recently outlined as part of a preemption fix were causing problems with function tracing. - The recently merged in-kernel MPI library uses very outdated headers that contain MIPS-specific code which won't build on with gcc 4.4 or newer. - The MIPS non-NUMA memory initialization was making only a very half-baked attempt at merging adjacent memory ranges. This kept the code simple enough but is now causing issues with kexec." * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: MPI: Fix compilation on MIPS with GCC 4.4 and newer MIPS: Fix crash that occurs when function tracing is enabled MIPS: Merge overlapping bootmem ranges
2012-11-26powerpc/eeh: Do not invalidate PE properlyGavin Shan1-1/+1
While the EEH does recovery on the specific PE that has PCI errors, the PCI devices belonging to the PE will be removed and the PE will be marked as invalid since we still need the information stored in the PE. We only invalidate the PE when it doesn't have associated EEH devices and valid child PEs. However, the code used to check that is wrong. The patch fixes that. Signed-off-by: Gavin Shan <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
2012-11-24Merge tag 'sound-3.7' of ↵Linus Torvalds1-2/+4
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound Pull sound build error fix from Takashi Iwai: "Only a single commit for fixing the build error without CONFIG_PM in hda driver." * tag 'sound-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: ALSA: hda - Fix build without CONFIG_PM