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>
14 #include <linux/netdevice.h>
23 #ifdef CONFIG_CAN_LEDS
25 /* keep space for interface name + "-tx"/"-rx"/"-rxtx"
26 * suffix and null terminator
28 #define CAN_LED_NAME_SZ (IFNAMSIZ + 6)
30 void can_led_event(struct net_device *netdev, enum can_led_event event);
31 void devm_can_led_init(struct net_device *netdev);
32 int __init can_led_notifier_init(void);
33 void __exit can_led_notifier_exit(void);
37 static inline void can_led_event(struct net_device *netdev,
38 enum can_led_event event)
41 static inline void devm_can_led_init(struct net_device *netdev)
44 static inline int can_led_notifier_init(void)
48 static inline void can_led_notifier_exit(void)
54 #endif /* !_CAN_LED_H */