projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a6958e
)
regulator: Fix argument format type errors in error prints
author
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Thu, 21 Jul 2011 14:07:37 +0000
(15:07 +0100)
committer
Liam Girdwood
<lrg@slimlogic.co.uk>
Fri, 22 Jul 2011 10:46:57 +0000
(11:46 +0100)
We need to dereference the pointers to print their values.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/core.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/core.c
b/drivers/regulator/core.c
index
a019544
..
d8e6a42
100644
(file)
--- a/
drivers/regulator/core.c
+++ b/
drivers/regulator/core.c
@@
-153,7
+153,7
@@
static int regulator_check_voltage(struct regulator_dev *rdev,
if (*min_uV > *max_uV) {
rdev_err(rdev, "unsupportable voltage range: %d-%duV\n",
-
min_uV,
max_uV);
+
*min_uV, *
max_uV);
return -EINVAL;
}
@@
-210,7
+210,7
@@
static int regulator_check_current_limit(struct regulator_dev *rdev,
if (*min_uA > *max_uA) {
rdev_err(rdev, "unsupportable current range: %d-%duA\n",
-
min_uA,
max_uA);
+
*min_uA, *
max_uA);
return -EINVAL;
}