#include <linux/device.h>
Go to the source code of this file.
|
enum | power_supply_type {
POWER_SUPPLY_TYPE_UNKNOWN = 0
,
POWER_SUPPLY_TYPE_BATTERY
,
POWER_SUPPLY_TYPE_UPS
,
POWER_SUPPLY_TYPE_MAINS
,
POWER_SUPPLY_TYPE_USB
,
POWER_SUPPLY_TYPE_USB_DCP
,
POWER_SUPPLY_TYPE_USB_CDP
,
POWER_SUPPLY_TYPE_USB_ACA
,
POWER_SUPPLY_TYPE_USB_TYPE_C
,
POWER_SUPPLY_TYPE_USB_PD
,
POWER_SUPPLY_TYPE_USB_PD_DRP
,
POWER_SUPPLY_TYPE_APPLE_BRICK_ID
,
POWER_SUPPLY_TYPE_WIRELESS
} |
|
enum | power_supply_property {
POWER_SUPPLY_PROP_STATUS = 0
,
POWER_SUPPLY_PROP_CHARGE_TYPE
,
POWER_SUPPLY_PROP_CAPACITY_LEVEL
,
POWER_SUPPLY_PROP_SCOPE
,
POWER_SUPPLY_PROP_MODEL_NAME
} |
|
enum | {
POWER_SUPPLY_SCOPE_UNKNOWN = 0
,
POWER_SUPPLY_SCOPE_SYSTEM
,
POWER_SUPPLY_SCOPE_DEVICE
} |
|
enum | {
POWER_SUPPLY_STATUS_UNKNOWN = 0
,
POWER_SUPPLY_STATUS_CHARGING
,
POWER_SUPPLY_STATUS_DISCHARGING
,
POWER_SUPPLY_STATUS_NOT_CHARGING
,
POWER_SUPPLY_STATUS_FULL
} |
|
enum | {
POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN = 0
,
POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL
,
POWER_SUPPLY_CAPACITY_LEVEL_LOW
,
POWER_SUPPLY_CAPACITY_LEVEL_NORMAL
,
POWER_SUPPLY_CAPACITY_LEVEL_HIGH
,
POWER_SUPPLY_CAPACITY_LEVEL_FULL
} |
|
◆ power_supply_type
Enumerator |
---|
POWER_SUPPLY_TYPE_UNKNOWN | |
POWER_SUPPLY_TYPE_BATTERY | |
POWER_SUPPLY_TYPE_UPS | |
POWER_SUPPLY_TYPE_MAINS | |
POWER_SUPPLY_TYPE_USB | |
POWER_SUPPLY_TYPE_USB_DCP | |
POWER_SUPPLY_TYPE_USB_CDP | |
POWER_SUPPLY_TYPE_USB_ACA | |
POWER_SUPPLY_TYPE_USB_TYPE_C | |
POWER_SUPPLY_TYPE_USB_PD | |
POWER_SUPPLY_TYPE_USB_PD_DRP | |
POWER_SUPPLY_TYPE_APPLE_BRICK_ID | |
POWER_SUPPLY_TYPE_WIRELESS | |
◆ power_supply_property
Enumerator |
---|
POWER_SUPPLY_PROP_STATUS | |
POWER_SUPPLY_PROP_CHARGE_TYPE | |
POWER_SUPPLY_PROP_CAPACITY_LEVEL | |
POWER_SUPPLY_PROP_SCOPE | |
POWER_SUPPLY_PROP_MODEL_NAME | |
◆ anonymous enum
Enumerator |
---|
POWER_SUPPLY_SCOPE_UNKNOWN | |
POWER_SUPPLY_SCOPE_SYSTEM | |
POWER_SUPPLY_SCOPE_DEVICE | |
◆ anonymous enum
Enumerator |
---|
POWER_SUPPLY_STATUS_UNKNOWN | |
POWER_SUPPLY_STATUS_CHARGING | |
POWER_SUPPLY_STATUS_DISCHARGING | |
POWER_SUPPLY_STATUS_NOT_CHARGING | |
POWER_SUPPLY_STATUS_FULL | |
◆ anonymous enum
Enumerator |
---|
POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN | |
POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL | |
POWER_SUPPLY_CAPACITY_LEVEL_LOW | |
POWER_SUPPLY_CAPACITY_LEVEL_NORMAL | |
POWER_SUPPLY_CAPACITY_LEVEL_HIGH | |
POWER_SUPPLY_CAPACITY_LEVEL_FULL | |
◆ power_supply_register()
◆ devm_power_supply_register()
◆ power_supply_unregister()
◆ power_supply_powers()
◆ power_supply_get_drvdata()
void * power_supply_get_drvdata |
( |
struct power_supply * |
psy | ) |
|
|
extern |
◆ power_supply_changed()