]>
git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - include/linux/can/led.h
2 * Copyright 2012, Fabio Baltieri <fabio.baltieri@gmail.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
13 #include <linux/leds.h>
22 #ifdef CONFIG_CAN_LEDS
24 /* keep space for interface name + "-tx"/"-rx" suffix and null terminator */
25 #define CAN_LED_NAME_SZ (IFNAMSIZ + 4)
27 void can_led_event(struct net_device
*netdev
, enum can_led_event event
);
28 void devm_can_led_init(struct net_device
*netdev
);
29 int __init
can_led_notifier_init(void);
30 void __exit
can_led_notifier_exit(void);
34 static inline void can_led_event(struct net_device
*netdev
,
35 enum can_led_event event
)
38 static inline void devm_can_led_init(struct net_device
*netdev
)
41 static inline int can_led_notifier_init(void)
45 static inline void can_led_notifier_exit(void)