mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
FROMLIST: power: add "Wireless" to power_supply_type and power_supply_type_text
In android platform(BatteryMonitor.cpp), SysfsStringEnumMap<int> supplyTypeMap[] is declred for communication with kernel(sysfs) and there is "Wireless". But, no type for "Wireless" in kernel. So, we suggest to add "Wireless" to power_supply_type and power_supply_type_text to use "Wireless" on android platform. This will help ensure that text values are kept in sync with BatteryMonitor.cpp. Bug: 160750558 Signed-off-by: Do Hyoung Kim <dh0703.kim@samsung.com> Signed-off-by: Jeehong Kim <jhez.kim@samsung.com> Link: https://lore.kernel.org/lkml/20200730000946.15327-1-jhez.kim@samsung.com/T/#u Change-Id: I486bef98ac785d6352370b8e9c4865ed2351f6d4
This commit is contained in:
parent
ea0bb61ded
commit
df4e084388
2 changed files with 2 additions and 0 deletions
|
|
@ -56,6 +56,7 @@ static const char * const POWER_SUPPLY_TYPE_TEXT[] = {
|
|||
[POWER_SUPPLY_TYPE_USB_PD] = "USB_PD",
|
||||
[POWER_SUPPLY_TYPE_USB_PD_DRP] = "USB_PD_DRP",
|
||||
[POWER_SUPPLY_TYPE_APPLE_BRICK_ID] = "BrickID",
|
||||
[POWER_SUPPLY_TYPE_WIRELESS] = "Wireless",
|
||||
};
|
||||
|
||||
static const char * const POWER_SUPPLY_USB_TYPE_TEXT[] = {
|
||||
|
|
|
|||
|
|
@ -185,6 +185,7 @@ enum power_supply_type {
|
|||
POWER_SUPPLY_TYPE_USB_PD, /* Power Delivery Port */
|
||||
POWER_SUPPLY_TYPE_USB_PD_DRP, /* PD Dual Role Port */
|
||||
POWER_SUPPLY_TYPE_APPLE_BRICK_ID, /* Apple Charging Method */
|
||||
POWER_SUPPLY_TYPE_WIRELESS, /* Wireless */
|
||||
};
|
||||
|
||||
enum power_supply_usb_type {
|
||||
|
|
|
|||
Loading…
Reference in a new issue