diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-04-07 17:13:39 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-08 12:23:45 +0200 |
commit | 9ab51a0eb46a1cd894b1bc784e7775f7c29918c0 (patch) | |
tree | 84d1736c99fd816e8abb0056253d3cd96bb8f9ff /drivers/ata/Makefile | |
parent | regulator: ab8500: Get rid of is_enabled from struct ab8500_regulator_info (diff) | |
download | linux-9ab51a0eb46a1cd894b1bc784e7775f7c29918c0.tar.xz linux-9ab51a0eb46a1cd894b1bc784e7775f7c29918c0.zip |
regulator: ab8500-ext: Get rid of is_enabled from struct ab8500_ext_regulator_info
The intention of this patch is to simplify the code.
Maintain the is_enabled flag is not trivial, it not only needs to set/clear the
flag in disable()/enable() but also needs to set the flag in is_enable() to get
initial status. The only benefit of keeping is_enabled flag is just save a
register read when set_mode(). Remove is_enabled flag makes the code simpler.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/ata/Makefile')
0 files changed, 0 insertions, 0 deletions