--- zzzz-none-000/linux-3.10.107/include/linux/can/led.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/include/linux/can/led.h 2021-02-04 17:41:59.000000000 +0000 @@ -6,11 +6,12 @@ * published by the Free Software Foundation. */ -#ifndef CAN_LED_H -#define CAN_LED_H +#ifndef _CAN_LED_H +#define _CAN_LED_H #include #include +#include enum can_led_event { CAN_LED_EVENT_OPEN, @@ -21,8 +22,10 @@ #ifdef CONFIG_CAN_LEDS -/* keep space for interface name + "-tx"/"-rx" suffix and null terminator */ -#define CAN_LED_NAME_SZ (IFNAMSIZ + 4) +/* keep space for interface name + "-tx"/"-rx"/"-rxtx" + * suffix and null terminator + */ +#define CAN_LED_NAME_SZ (IFNAMSIZ + 6) void can_led_event(struct net_device *netdev, enum can_led_event event); void devm_can_led_init(struct net_device *netdev); @@ -48,4 +51,4 @@ #endif -#endif +#endif /* !_CAN_LED_H */