Skip to content

Commit cce1fea

Browse files
andy-shevgregkh
authored andcommitted
thunderbolt: Make pathname to force_power shorter
WMI is the bus inside kernel, so, we may access the GUID via /sys/bus/wmi instead of doing this through /sys/devices path. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Mario Limonciello <mario.limonciello@dell.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 50c4c4e commit cce1fea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/admin-guide/thunderbolt.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ If supported by your machine this will be exposed by the WMI bus with
230230
a sysfs attribute called "force_power".
231231

232232
For example the intel-wmi-thunderbolt driver exposes this attribute in:
233-
/sys/devices/platform/PNP0C14:00/wmi_bus/wmi_bus-PNP0C14:00/86CCFD48-205E-4A77-9C48-2021CBEDE341/force_power
233+
/sys/bus/wmi/devices/86CCFD48-205E-4A77-9C48-2021CBEDE341/force_power
234234

235235
To force the power to on, write 1 to this attribute file.
236236
To disable force power, write 0 to this attribute file.

0 commit comments

Comments
 (0)