diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/can/dev.h | 2 | ||||
| -rw-r--r-- | include/linux/can/led.h | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/can/dev.h b/include/linux/can/dev.h index c05ff0f9f9a5..c3a9c8fc60fa 100644 --- a/include/linux/can/dev.h +++ b/include/linux/can/dev.h | |||
| @@ -61,6 +61,8 @@ struct can_priv { | |||
| 61 | char tx_led_trig_name[CAN_LED_NAME_SZ]; | 61 | char tx_led_trig_name[CAN_LED_NAME_SZ]; |
| 62 | struct led_trigger *rx_led_trig; | 62 | struct led_trigger *rx_led_trig; |
| 63 | char rx_led_trig_name[CAN_LED_NAME_SZ]; | 63 | char rx_led_trig_name[CAN_LED_NAME_SZ]; |
| 64 | struct led_trigger *rxtx_led_trig; | ||
| 65 | char rxtx_led_trig_name[CAN_LED_NAME_SZ]; | ||
| 64 | #endif | 66 | #endif |
| 65 | }; | 67 | }; |
| 66 | 68 | ||
diff --git a/include/linux/can/led.h b/include/linux/can/led.h index e0475c5cbb92..146de4506d21 100644 --- a/include/linux/can/led.h +++ b/include/linux/can/led.h | |||
| @@ -21,8 +21,10 @@ enum can_led_event { | |||
| 21 | 21 | ||
| 22 | #ifdef CONFIG_CAN_LEDS | 22 | #ifdef CONFIG_CAN_LEDS |
| 23 | 23 | ||
| 24 | /* keep space for interface name + "-tx"/"-rx" suffix and null terminator */ | 24 | /* keep space for interface name + "-tx"/"-rx"/"-rxtx" |
| 25 | #define CAN_LED_NAME_SZ (IFNAMSIZ + 4) | 25 | * suffix and null terminator |
| 26 | */ | ||
| 27 | #define CAN_LED_NAME_SZ (IFNAMSIZ + 6) | ||
| 26 | 28 | ||
| 27 | void can_led_event(struct net_device *netdev, enum can_led_event event); | 29 | void can_led_event(struct net_device *netdev, enum can_led_event event); |
| 28 | void devm_can_led_init(struct net_device *netdev); | 30 | void devm_can_led_init(struct net_device *netdev); |
