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
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 885 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.6 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 144.1 KB
Makefile -rw-r--r-- 53.7 KB
README -rw-r--r-- 16.7 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top