Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation: leds: Update led-trigger-tty ABI description

The 'led-trigger-tty' uses the same naming in the ABI documentation as
the 'led-trigger-netdev'. Which leads to the following warning when
building the documentation.

Warning: /sys/class/leds/<led>/rx is defined 2 times:
Documentation/ABI/testing/sysfs-class-led-trigger-tty:7
Documentation/ABI/testing/sysfs-class-led-trigger-netdev:49
Warning: /sys/class/leds/<led>/tx is defined 2 times:
Documentation/ABI/testing/sysfs-class-led-trigger-tty:15
Documentation/ABI/testing/sysfs-class-led-trigger-netdev:34

Renaming the 'What' path by prefixing it with 'tty_' solves this problem.

Fixes: 6dec659896b4 ("leds: ledtrig-tty: Add additional line state evaluation")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Link: https://lore.kernel.org/r/20240110133410.81645-1-fe@dev.tdt.de
Signed-off-by: Lee Jones <lee@kernel.org>
(cherry picked from commit ea411a8422c1d7f8193d726fb76ba09534b6a5fe)
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Florian Eckert and committed by
Lee Jones
96d947d4 5fe5e2a3

+7 -7
+7 -7
Documentation/ABI/testing/sysfs-class-led-trigger-tty
··· 1 - What: /sys/class/leds/<led>/ttyname 1 + What: /sys/class/leds/<tty_led>/ttyname 2 2 Date: Dec 2020 3 3 KernelVersion: 5.10 4 4 Contact: linux-leds@vger.kernel.org 5 5 Description: 6 6 Specifies the tty device name of the triggering tty 7 7 8 - What: /sys/class/leds/<led>/rx 8 + What: /sys/class/leds/<tty_led>/rx 9 9 Date: February 2024 10 10 KernelVersion: 6.8 11 11 Description: ··· 13 13 If set to 0, the LED will not blink on reception. 14 14 If set to 1 (default), the LED will blink on reception. 15 15 16 - What: /sys/class/leds/<led>/tx 16 + What: /sys/class/leds/<tty_led>/tx 17 17 Date: February 2024 18 18 KernelVersion: 6.8 19 19 Description: ··· 21 21 If set to 0, the LED will not blink on transmission. 22 22 If set to 1 (default), the LED will blink on transmission. 23 23 24 - What: /sys/class/leds/<led>/cts 24 + What: /sys/class/leds/<tty_led>/cts 25 25 Date: February 2024 26 26 KernelVersion: 6.8 27 27 Description: ··· 31 31 If set to 0 (default), the LED will not evaluate CTS. 32 32 If set to 1, the LED will evaluate CTS. 33 33 34 - What: /sys/class/leds/<led>/dsr 34 + What: /sys/class/leds/<tty_led>/dsr 35 35 Date: February 2024 36 36 KernelVersion: 6.8 37 37 Description: ··· 41 41 If set to 0 (default), the LED will not evaluate DSR. 42 42 If set to 1, the LED will evaluate DSR. 43 43 44 - What: /sys/class/leds/<led>/dcd 44 + What: /sys/class/leds/<tty_led>/dcd 45 45 Date: February 2024 46 46 KernelVersion: 6.8 47 47 Description: ··· 51 51 If set to 0 (default), the LED will not evaluate CAR (DCD). 52 52 If set to 1, the LED will evaluate CAR (DCD). 53 53 54 - What: /sys/class/leds/<led>/rng 54 + What: /sys/class/leds/<tty_led>/rng 55 55 Date: February 2024 56 56 KernelVersion: 6.8 57 57 Description: