diff options
| author | David Collins <collinsd@codeaurora.org> | 2010-10-26 16:22:06 -0700 |
|---|---|---|
| committer | Rohit Vaswani <rvaswani@codeaurora.org> | 2016-03-01 12:22:35 -0800 |
| commit | 16fbe2a1d3a35e5d76966528de0e15eef8ce959e (patch) | |
| tree | 7964b014f0d233f8b7d7cdd664f1bcd638e5c699 /include/linux | |
| parent | 001d62d43ebbd9c006658765d936aab83c155786 (diff) | |
regulator: Remove redundant set_mode call in drms_uA_update
The regulator framework checks if the current mode is the same as the
one being requested inside of regulator_set_mode. However, when
DRMS changing is allowed, regulator_enable calls drms_uA_update.
This function does not check the value of get_mode before calling
set_mode.
Modify drms_uA_update so that set_mode is only called if the requested
mode is different from the current mode returned by get_mode.
Change-Id: Ifb4f3069cf946e8474565ee82508c1ff45b36543
Signed-off-by: David Collins <collinsd@codeaurora.org>
[adharmap: resolved merge conflicts]
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
