Skip to contentSkip to conversation

Documentation/ABI: sysfs-platform-ideapad-laptop: update device attribute paths

PATCH Superseded Barnabás Pőcze 2 participants 4 messages Jan 13, 2021 – Jan 17, 2021 x86 platform drivers

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 23/24 Documentation/ABI: sysfs-platform-ideapad-laptop: update device attribute paths

The documentation referred to non-existent device attributes under a non-existent platform device. Update it with the current location of the attributes.

Documentation/ABI/testing/sysfs-platform-ideapad-laptop +4 -4
index fd2ac02bc5bd..e024678947c8 100644
@@ -1,11 +1,11 @@
-What:		/sys/devices/platform/ideapad/camera_power
+What:		/sys/bus/platform/devices/VPC2004:*/camera_power
 Date:		Dec 2010
 KernelVersion:	2.6.37
 Contact:	"Ike Panhc <[email protected]>"
 Description:
 		Control the power of camera module. 1 means on, 0 means off.
 
-What:		/sys/devices/platform/ideapad/fan_mode
+What:		/sys/bus/platform/devices/VPC2004:*/fan_mode
 Date:		June 2012
 KernelVersion:	3.6
 Contact:	"Maxim Mikityanskiy <[email protected]>"
@@ -18,7 +18,7 @@ Description:
 			* 2 -> Dust Cleaning
 			* 4 -> Efficient Thermal Dissipation Mode
 
-What:		/sys/devices/platform/ideapad/touchpad
+What:		/sys/bus/platform/devices/VPC2004:*/touchpad
 Date:		May 2017
 KernelVersion:	4.13
 Contact:	"Ritesh Raj Sarraf <[email protected]>"
@@ -27,7 +27,7 @@ Description:
 			* 1 -> Switched On
 			* 0 -> Switched Off
 
-What:		/sys/bus/pci/devices/<bdf>/<device>/VPC2004:00/fn_lock
+What:		/sys/bus/platform/devices/VPC2004:*/fn_lock
 Date:		May 2018
 KernelVersion:	4.18
 Contact:	"Oleg Keri <[email protected]>"
Signature · 1 line
2.30.0
#1 lore raw
Quoted 3 lines · Barnabás Pőcze

The documentation referred to non-existent device attributes under a non-existent platform device. Update it with the current location of the attributes.

Fixes tag, please?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#2 lore raw

Hi

Thanks for the review.

2021. január 16., szombat 21:10 keltezéssel, Andy Shevchenko írta:

Quoted 7 lines · Barnabás Pőcze
Quoted 3 lines

The documentation referred to non-existent device attributes under a non-existent platform device. Update it with the current location of the attributes.

Fixes tag, please?

I'm not sure which commit (if any) should be referenced. Do you think the patch that removed the platform device - hence making the documented paths incorrect - would be OK to reference here?

Thanks,
Barnabás Pőcze

#3 lore raw
Quoted 6 lines · Barnabás Pőcze

2021. január 16., szombat 21:10 keltezéssel, Andy Shevchenko írta:

Quoted 5 lines · Barnabás Pőcze
Quoted 3 lines

The documentation referred to non-existent device attributes under a non-existent platform device. Update it with the current location of the attributes.

Quoted 6 lines
Quoted 2 lines

Fixes tag, please?

I'm not sure which commit (if any) should be referenced. Do you think the patch that removed the platform device - hence making the documented paths incorrect - would be OK to reference here?

From your description it looks like the right one, the general rule is to find a change after which this becomes broken / invalid.

Signature · 2 lines
With Best Regards,
Andy Shevchenko