projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc7e412
)
regulator: Storing tps65912 error codes in u8
author
Dan Carpenter
<error27@gmail.com>
Wed, 6 Jul 2011 18:57:18 +0000
(21:57 +0300)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Sun, 31 Jul 2011 21:28:26 +0000
(23:28 +0200)
get_ctrl_reg() returns -EINVAL so the error handling won't work here
if reg is a u8.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/regulator/tps65912-regulator.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/tps65912-regulator.c
b/drivers/regulator/tps65912-regulator.c
index d2c6542776f16e9e25630f0662186bb6ece4e332..3a9313e00fac796b3d8799c90004a13fd2587142 100644
(file)
--- a/
drivers/regulator/tps65912-regulator.c
+++ b/
drivers/regulator/tps65912-regulator.c
@@
-417,7
+417,7
@@
static int tps65912_reg_enable(struct regulator_dev *dev)
struct tps65912_reg *pmic = rdev_get_drvdata(dev);
struct tps65912 *mfd = pmic->mfd;
int id = rdev_get_id(dev);
-
u8
reg;
+
int
reg;
if (id < TPS65912_REG_DCDC1 || id > TPS65912_REG_LDO10)
return -EINVAL;