Skip to content

Commit 7b386d7

Browse files
roxanan1996gregkh
authored andcommitted
misc: lis3lv02d: Fix correct sysfs directory path for lis3lv02d
The lis3lv02d driver does not create a platform device anymore. It was recently changed to use a faux device instead. Therefore the sysfs path has changed from /sys/devices/platform/lis3lv02d to /sys/devices/faux/lis3lv02d. Fixes: 3b18ccb ("misc: lis3lv02d: convert to use faux_device") Signed-off-by: Roxana Nicolescu <nicolescu.roxana@protonmail.com> Link: https://lore.kernel.org/r/20250506110002.36477-1-nicolescu.roxana@protonmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 57483a3 commit 7b386d7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Documentation/misc-devices/lis3lv02d.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ sporting the feature officially called "HP Mobile Data Protection System 3D" or
2222
models (full list can be found in drivers/platform/x86/hp_accel.c) will have
2323
their axis automatically oriented on standard way (eg: you can directly play
2424
neverball). The accelerometer data is readable via
25-
/sys/devices/platform/lis3lv02d. Reported values are scaled
25+
/sys/devices/faux/lis3lv02d. Reported values are scaled
2626
to mg values (1/1000th of earth gravity).
2727

28-
Sysfs attributes under /sys/devices/platform/lis3lv02d/:
28+
Sysfs attributes under /sys/devices/faux/lis3lv02d/:
2929

3030
position
3131
- 3D position that the accelerometer reports. Format: "(x,y,z)"
@@ -85,7 +85,7 @@ the accelerometer are converted into a "standard" organisation of the axes
8585
If your laptop model is not recognized (cf "dmesg"), you can send an
8686
email to the maintainer to add it to the database. When reporting a new
8787
laptop, please include the output of "dmidecode" plus the value of
88-
/sys/devices/platform/lis3lv02d/position in these four cases.
88+
/sys/devices/faux/lis3lv02d/position in these four cases.
8989

9090
Q&A
9191
---

drivers/misc/lis3lv02d/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ config SENSORS_LIS3_SPI
1010
help
1111
This driver provides support for the LIS3LV02Dx accelerometer connected
1212
via SPI. The accelerometer data is readable via
13-
/sys/devices/platform/lis3lv02d.
13+
/sys/devices/faux/lis3lv02d.
1414

1515
This driver also provides an absolute input class device, allowing
1616
the laptop to act as a pinball machine-esque joystick.
@@ -26,7 +26,7 @@ config SENSORS_LIS3_I2C
2626
help
2727
This driver provides support for the LIS3LV02Dx accelerometer connected
2828
via I2C. The accelerometer data is readable via
29-
/sys/devices/platform/lis3lv02d.
29+
/sys/devices/faux/lis3lv02d.
3030

3131
This driver also provides an absolute input class device, allowing
3232
the device to act as a pinball machine-esque joystick.

0 commit comments

Comments
 (0)