1. 09 Dec, 2011 3 commits
    • Jeremy Fitzhardinge's avatar
      power_supply: add scope properties to some self-powered HID devices · 73db8813
      Jeremy Fitzhardinge authored
      The Wacom and Wiimote HID drivers register power supplies for themselves
      to indicate their battery levels.  Make those power supplies device scope.
      Signed-off-by: default avatarJeremy Fitzhardinge <jeremy@goop.org>
      Cc: Jiri Kosina <jkosina@suse.cz>
      73db8813
    • Jeremy Fitzhardinge's avatar
      power_supply: allow a power supply to explicitly point to powered device · 83516651
      Jeremy Fitzhardinge authored
      If a power supply has a scope of "Device", then allow the power supply
      to indicate what device it actually powers. This is represented in the
      power supply's sysfs directory as a symlink named "powers", which points to
      the sysfs directory of the powered device.
      
      If the device has children, then the sub-devices are also powered by
      the same power supply.
      Signed-off-by: default avatarJeremy Fitzhardinge <jeremy@goop.org>
      Cc: Richard Hughes <richard@hughsie.com>
      83516651
    • Jeremy Fitzhardinge's avatar
      power_supply: add SCOPE attribute to power supplies · 25a0bc2d
      Jeremy Fitzhardinge authored
      This adds a "scope" attribute to a power_supply, which indicates how
      much of the system it powers.  It appears in sysfs as "scope" or in
      the uevent file as POWER_SUPPLY_SCOPE=.  There are presently three
      possible values:
      	Unknown - unknown power topology
      	System - the power supply powers the whole system
      	Device - it powers a specific device, or tree of devices
      
      A power supply which doesn't have a "scope" attribute should be assumed to
      have "System" scope.
      
      In general, usermode should assume that loss of all System-scoped power
      supplies will power off the whole system, but any single one is sufficient
      to power the system.
      Signed-off-by: default avatarJeremy Fitzhardinge <jeremy@goop.org>
      Cc: Richard Hughes <richard@hughsie.com>
      25a0bc2d
  2. 15 Nov, 2011 7 commits
  3. 14 Nov, 2011 7 commits
  4. 13 Nov, 2011 1 commit
  5. 12 Nov, 2011 17 commits
  6. 11 Nov, 2011 5 commits