diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-03-17 22:40:50 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-03-17 22:40:50 -0400 |
| commit | 688d794c4c3f8b08c814381ee2edd3ede5856056 (patch) | |
| tree | ef680add71e2a9588d07d8b594edbc1b5cd127d7 /include/linux/can/dev.h | |
| parent | 16142655269aaf580488e074eabfdcf0fb4e3687 (diff) | |
| parent | a937536b868b8369b98967929045f1df54234323 (diff) | |
Merge tag 'v3.9-rc3' into next
Merge with mainline to bring in module_platform_driver_probe() and
devm_ioremap_resource().
Diffstat (limited to 'include/linux/can/dev.h')
| -rw-r--r-- | include/linux/can/dev.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/can/dev.h b/include/linux/can/dev.h index 2b2fc345afca..fb0ab651a041 100644 --- a/include/linux/can/dev.h +++ b/include/linux/can/dev.h | |||
| @@ -16,6 +16,7 @@ | |||
| 16 | #include <linux/can.h> | 16 | #include <linux/can.h> |
| 17 | #include <linux/can/netlink.h> | 17 | #include <linux/can/netlink.h> |
| 18 | #include <linux/can/error.h> | 18 | #include <linux/can/error.h> |
| 19 | #include <linux/can/led.h> | ||
| 19 | 20 | ||
| 20 | /* | 21 | /* |
| 21 | * CAN mode | 22 | * CAN mode |
| @@ -52,6 +53,13 @@ struct can_priv { | |||
| 52 | 53 | ||
| 53 | unsigned int echo_skb_max; | 54 | unsigned int echo_skb_max; |
| 54 | struct sk_buff **echo_skb; | 55 | struct sk_buff **echo_skb; |
| 56 | |||
| 57 | #ifdef CONFIG_CAN_LEDS | ||
| 58 | struct led_trigger *tx_led_trig; | ||
| 59 | char tx_led_trig_name[CAN_LED_NAME_SZ]; | ||
| 60 | struct led_trigger *rx_led_trig; | ||
| 61 | char rx_led_trig_name[CAN_LED_NAME_SZ]; | ||
| 62 | #endif | ||
| 55 | }; | 63 | }; |
| 56 | 64 | ||
| 57 | /* | 65 | /* |
| @@ -98,6 +106,9 @@ u8 can_len2dlc(u8 len); | |||
| 98 | struct net_device *alloc_candev(int sizeof_priv, unsigned int echo_skb_max); | 106 | struct net_device *alloc_candev(int sizeof_priv, unsigned int echo_skb_max); |
| 99 | void free_candev(struct net_device *dev); | 107 | void free_candev(struct net_device *dev); |
| 100 | 108 | ||
| 109 | /* a candev safe wrapper around netdev_priv */ | ||
| 110 | struct can_priv *safe_candev_priv(struct net_device *dev); | ||
| 111 | |||
| 101 | int open_candev(struct net_device *dev); | 112 | int open_candev(struct net_device *dev); |
| 102 | void close_candev(struct net_device *dev); | 113 | void close_candev(struct net_device *dev); |
| 103 | 114 | ||
