projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a4ccca
)
regulator: tps6586x: Use dev_err rather than dev_warn for error message
author
Axel Lin
<
[email protected]
>
Wed, 20 Feb 2013 02:23:46 +0000
(10:23 +0800)
committer
Mark Brown
<
[email protected]
>
Mon, 4 Mar 2013 02:58:46 +0000
(10:58 +0800)
tps6586x_regulator_set_slew_rate() returns -EINVAL when having slew rate
settings for other than SM0/1, thus use dev_err rather than dev_warn.
Signed-off-by: Axel Lin <
[email protected]
>
Reviewed-by: Stephen Warren <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
drivers/regulator/tps6586x-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/tps6586x-regulator.c
b/drivers/regulator/tps6586x-regulator.c
index 4e3e4adb1dcefec44a6e85f6d84c2b8cab614bf0..b813d213255bc07a0dab6960a0d6482ca7dce1b4 100644
(file)
--- a/
drivers/regulator/tps6586x-regulator.c
+++ b/
drivers/regulator/tps6586x-regulator.c
@@
-245,7
+245,7
@@
static int tps6586x_regulator_set_slew_rate(struct platform_device *pdev,
reg = TPS6586X_SM1SL;
break;
default:
- dev_
warn
(&pdev->dev, "Only SM0/SM1 can set slew rate\n");
+ dev_
err
(&pdev->dev, "Only SM0/SM1 can set slew rate\n");
return -EINVAL;
}