1. 22 9月, 2012 2 次提交
    • P
      pda_power: Remove ac_draw_failed goto and label · c10a002a
      Paul Parsons 提交于
      A previous patch added the ac_draw_failed goto and label to
      pda_power_probe(). The goto would be invoked after a failed call to
      regulator_get().
      
      However the way ac_draw is used - always after a check for NULL - suggests
      that a failed call to regulator_get() was not fatal.
      
      This patch removes the ac_draw_failed goto and label, partly reverting the
      previous patch.
      
      This patch also removes the assignment of an error code to ret after a
      failed call to regulator_get(), since the error code is now never used.
      Signed-off-by: NPaul Parsons <lost.distance@yahoo.com>
      Cc: Philipp Zabel <philipp.zabel@gmail.com>
      Signed-off-by: NAnton Vorontsov <anton.vorontsov@linaro.org>
      c10a002a
    • C
      charger-manager: Add support sysfs entry for charger · 3950c786
      Chanwoo Choi 提交于
      This patch add support sysfs entry for each charger(regulator).
      Charger-manager use one or more chargers for charging battery but some
      charger isn't necessary on specific scenario. So, if some charger isn't
      needed, can disable specific charger through 'externally_control' entry
      while system is on state and confirm the information(name, state) of
      charger.
      
      The list of added sysfs entry
      - /sys/class/power_supply/battery/chargers/charger.[index]/name
        show name of charger(regulator)
      - /sys/class/power_supply/battery/chargers/charger.[index]/state
        show either enabled or disabled state of charger
      - /sys/class/power_supply/battery/chargers/charger.[index]/externally_control
      
      If 'externally_control' of specific charger is 1, Charger-manager cannot
      enable regulator for charging when charger cable is attached and charger
      must be maintained with disabled state. If 'externally_control' is zero,
      Charger-manager usually can control to enable/disable regulator.
      Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
      Signed-off-by: NMyungjoo Ham <myungjoo.ham@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Signed-off-by: NAnton Vorontsov <anton.vorontsov@linaro.org>
      3950c786
  2. 21 9月, 2012 33 次提交
  3. 23 8月, 2012 5 次提交