diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2023-05-29 19:32:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-05-31 11:42:09 +0300 |
commit | 947acacab5ea151291b861cdfbde16ff5cf1b08c (patch) | |
tree | d2f67e7f1d80e36124cd1abf991061a141ee695d /include/linux/leds.h | |
parent | 0316cc5629d15880dd3f097d221c55ca648bcd61 (diff) | |
download | linux-947acacab5ea151291b861cdfbde16ff5cf1b08c.tar.xz |
leds: trigger: netdev: expose netdev trigger modes in linux include
Expose netdev trigger modes to make them accessible by LED driver that
will support netdev trigger for hw control.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/leds.h')
-rw-r--r-- | include/linux/leds.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/leds.h b/include/linux/leds.h index 3268b4e789d6..8af62ff431f0 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h @@ -552,6 +552,16 @@ static inline void *led_get_trigger_data(struct led_classdev *led_cdev) #endif /* CONFIG_LEDS_TRIGGERS */ +/* Trigger specific enum */ +enum led_trigger_netdev_modes { + TRIGGER_NETDEV_LINK = 0, + TRIGGER_NETDEV_TX, + TRIGGER_NETDEV_RX, + + /* Keep last */ + __TRIGGER_NETDEV_MAX, +}; + /* Trigger specific functions */ #ifdef CONFIG_LEDS_TRIGGER_DISK void ledtrig_disk_activity(bool write); |