]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: max8997: Remove is_enabled callback implementation for max8997_charger_fix...
authorAxel Lin <axel.lin@gmail.com>
Tue, 17 Apr 2012 15:48:27 +0000 (23:48 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 23 Apr 2012 12:20:24 +0000 (13:20 +0100)
commitdea539814c056e51e6d376f506cc48a21f1fe9a7
tree1572f5b272cec44a50268cdd35d140206d52bdf7
parentc234cf9bcdd4d4c4a78b7eafb290afa8942e9e84
regulator: max8997: Remove is_enabled callback implementation for max8997_charger_fixedstate_ops

If is_enabled callback is not implemented, the core assumes that the regulator
is on.

This is simpler than having a hack to retrun 1 in max8997_reg_is_enabled() if
max8997_get_enable_register() returns -EINVAL.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/max8997.c