diff options
Diffstat (limited to 'include/linux/can/dev.h')
-rw-r--r-- | include/linux/can/dev.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/can/dev.h b/include/linux/can/dev.h index 61f1cf2d9f44..055aaf5ed9af 100644 --- a/include/linux/can/dev.h +++ b/include/linux/can/dev.h | |||
@@ -46,6 +46,7 @@ struct can_priv { | |||
46 | unsigned int bitrate_const_cnt; | 46 | unsigned int bitrate_const_cnt; |
47 | const u32 *data_bitrate_const; | 47 | const u32 *data_bitrate_const; |
48 | unsigned int data_bitrate_const_cnt; | 48 | unsigned int data_bitrate_const_cnt; |
49 | u32 bitrate_max; | ||
49 | struct can_clock clock; | 50 | struct can_clock clock; |
50 | 51 | ||
51 | enum can_state state; | 52 | enum can_state state; |
@@ -166,6 +167,12 @@ void can_put_echo_skb(struct sk_buff *skb, struct net_device *dev, | |||
166 | unsigned int can_get_echo_skb(struct net_device *dev, unsigned int idx); | 167 | unsigned int can_get_echo_skb(struct net_device *dev, unsigned int idx); |
167 | void can_free_echo_skb(struct net_device *dev, unsigned int idx); | 168 | void can_free_echo_skb(struct net_device *dev, unsigned int idx); |
168 | 169 | ||
170 | #ifdef CONFIG_OF | ||
171 | void of_can_transceiver(struct net_device *dev); | ||
172 | #else | ||
173 | static inline void of_can_transceiver(struct net_device *dev) { } | ||
174 | #endif | ||
175 | |||
169 | struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf); | 176 | struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf); |
170 | struct sk_buff *alloc_canfd_skb(struct net_device *dev, | 177 | struct sk_buff *alloc_canfd_skb(struct net_device *dev, |
171 | struct canfd_frame **cfd); | 178 | struct canfd_frame **cfd); |