regulator: core: Make error messages more informative
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 16 Sep 2015 19:10:26 +0000 (12:10 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 16 Sep 2015 20:36:35 +0000 (21:36 +0100)
commit7ebcf26c39205ca8d61c178dcd3f5be4f25b1309
tree1f93bf2a27761482d48f6f0f3f7ebc60736f9ddd
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
regulator: core: Make error messages more informative

The same error print exists 4 times in the regulator core

<rdev>: operation not allowed

Unfortunately, seeing this in the dmesg is not very informative.
Add what type of operation is not allowed to the message so that
these errors are unique, hopefully pointing developers in the
right direction

<rdev>: drms operation not allowed
<rdev>: voltage operation not allowed
<rdev>: current operation not allowed
<rdev>: mode operation not allowed

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c