https://github.com/torvalds/linux
Revision cd78dfc6c6e321a310a73ef7b0df3d262704dd55 authored by Diego Liziero on 14 April 2009, 01:04:47 UTC, committed by Liam Girdwood on 28 April 2009, 17:58:07 UTC
When regulator_desc->type is something different from REGULATOR_VOLTAGE or REGULATOR_CURRENT
the if should probably return ERR_PTR(-EINVAL)

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

@@ expression E; constant C; @@
(
- !E == C
+ E != C
)

Signed-off-by: Diego Liziero <diegoliz@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
1 parent 036de8e
History
Tip revision: cd78dfc6c6e321a310a73ef7b0df3d262704dd55 authored by Diego Liziero on 14 April 2009, 01:04:47 UTC
drivers/regulator: fix when type is different from REGULATOR_VOLTAGE or REGULATOR_CURRENT
Tip revision: cd78dfc
File Mode Size
Kconfig -rw-r--r-- 2.8 KB
Makefile -rw-r--r-- 690 bytes
array.c -rw-r--r-- 12.8 KB
base.c -rw-r--r-- 74.2 KB
cmdline.c -rw-r--r-- 651 bytes
cpuinfo.c -rw-r--r-- 564 bytes
devices.c -rw-r--r-- 1.4 KB
generic.c -rw-r--r-- 19.4 KB
inode.c -rw-r--r-- 12.1 KB
internal.h -rw-r--r-- 2.8 KB
interrupts.c -rw-r--r-- 1.1 KB
kcore.c -rw-r--r-- 10.1 KB
kmsg.c -rw-r--r-- 1.3 KB
loadavg.c -rw-r--r-- 1.2 KB
meminfo.c -rw-r--r-- 4.3 KB
mmu.c -rw-r--r-- 1.4 KB
nommu.c -rw-r--r-- 3.3 KB
page.c -rw-r--r-- 3.4 KB
proc_devtree.c -rw-r--r-- 5.0 KB
proc_net.c -rw-r--r-- 4.6 KB
proc_sysctl.c -rw-r--r-- 9.6 KB
proc_tty.c -rw-r--r-- 4.7 KB
root.c -rw-r--r-- 4.9 KB
stat.c -rw-r--r-- 4.4 KB
task_mmu.c -rw-r--r-- 19.1 KB
task_nommu.c -rw-r--r-- 5.5 KB
uptime.c -rw-r--r-- 1.1 KB
version.c -rw-r--r-- 761 bytes
vmcore.c -rw-r--r-- 16.1 KB

back to top