diff options
author | Simon Wilson <simonwilson@google.com> | 2010-10-13 15:17:50 -0700 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2011-11-17 17:49:45 -0800 |
commit | d84ba67cef30eb1cc9808c88f063899a308092bb (patch) | |
tree | ae38d636413424c3180cdf603f7a6382b25b1ae0 /include/linux/mfd | |
parent | df73b925632ecc22446bc12d706d3c9b76955323 (diff) | |
download | kernel_samsung_crespo-d84ba67cef30eb1cc9808c88f063899a308092bb.zip kernel_samsung_crespo-d84ba67cef30eb1cc9808c88f063899a308092bb.tar.gz kernel_samsung_crespo-d84ba67cef30eb1cc9808c88f063899a308092bb.tar.bz2 |
power: charger: choose correct charging method
Also massive code cleanup and more consistent calling of
power_supply_changed().
Signed-off-by: Simon Wilson <simonwilson@google.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/max8998.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/linux/mfd/max8998.h b/include/linux/mfd/max8998.h index 8db92aa..8cddb8b 100644 --- a/include/linux/mfd/max8998.h +++ b/include/linux/mfd/max8998.h @@ -64,16 +64,15 @@ struct max8998_regulator_data { struct regulator_init_data *initdata; }; -enum charger_type_t{ - CHARGER_BATTERY = 0, - CHARGER_USB, - CHARGER_AC, - CHARGER_DISCHARGE +enum cable_type_t { + CABLE_TYPE_NONE = 0, + CABLE_TYPE_USB, + CABLE_TYPE_AC, }; struct max8998_charger_callbacks { void (*set_cable)(struct max8998_charger_callbacks *ptr, - enum charger_type_t status); + enum cable_type_t status); }; /** |