History

platform/x86: asus-wmi: add support for showing charger mode

Expose a WMI method in sysfs platform for showing which connected charger the laptop is currently using.

Luke D. Jones committed 3 years ago

Commit 77ee9d21 parent 9204fc53 files · +34 −0Browse files

Showing the changes to include/linux/platform_data (1 of 3 files). Show all

Unified · Split

include/linux/platform_data/x86/asus-wmi.h+3−0
@@ -95,6 +95,9 @@ · 94 unmodified lines
95/* Keyboard dock */95/* Keyboard dock */
96#define ASUS_WMI_DEVID_KBD_DOCK 0x0012006396#define ASUS_WMI_DEVID_KBD_DOCK 0x00120063
97 97
98/* Charging mode - 1=Barrel, 2=USB */
99#define ASUS_WMI_DEVID_CHARGE_MODE 0x0012006C
100
98/* dgpu on/off */101/* dgpu on/off */
99#define ASUS_WMI_DEVID_EGPU 0x00090019102#define ASUS_WMI_DEVID_EGPU 0x00090019
100 103

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t