@@ -89,21 +89,21 @@ MODULE_LICENSE("GPL v2");
89
89
#define ESD_USB_MAX_RX_URBS 4
90
90
#define ESD_USB_MAX_TX_URBS 16 /* must be power of 2 */
91
91
92
- struct header_msg {
92
+ struct esd_usb_header_msg {
93
93
u8 len ; /* len is always the total message length in 32bit words */
94
94
u8 cmd ;
95
95
u8 rsvd [2 ];
96
96
};
97
97
98
- struct version_msg {
98
+ struct esd_usb_version_msg {
99
99
u8 len ;
100
100
u8 cmd ;
101
101
u8 rsvd ;
102
102
u8 flags ;
103
103
__le32 drv_version ;
104
104
};
105
105
106
- struct version_reply_msg {
106
+ struct esd_usb_version_reply_msg {
107
107
u8 len ;
108
108
u8 cmd ;
109
109
u8 nets ;
@@ -114,7 +114,7 @@ struct version_reply_msg {
114
114
__le32 ts ;
115
115
};
116
116
117
- struct rx_msg {
117
+ struct esd_usb_rx_msg {
118
118
u8 len ;
119
119
u8 cmd ;
120
120
u8 net ;
@@ -132,7 +132,7 @@ struct rx_msg {
132
132
};
133
133
};
134
134
135
- struct tx_msg {
135
+ struct esd_usb_tx_msg {
136
136
u8 len ;
137
137
u8 cmd ;
138
138
u8 net ;
@@ -142,7 +142,7 @@ struct tx_msg {
142
142
u8 data [CAN_MAX_DLEN ];
143
143
};
144
144
145
- struct tx_done_msg {
145
+ struct esd_usb_tx_done_msg {
146
146
u8 len ;
147
147
u8 cmd ;
148
148
u8 net ;
@@ -151,15 +151,15 @@ struct tx_done_msg {
151
151
__le32 ts ;
152
152
};
153
153
154
- struct id_filter_msg {
154
+ struct esd_usb_id_filter_msg {
155
155
u8 len ;
156
156
u8 cmd ;
157
157
u8 net ;
158
158
u8 option ;
159
159
__le32 mask [ESD_USB_MAX_ID_SEGMENT + 1 ];
160
160
};
161
161
162
- struct set_baudrate_msg {
162
+ struct esd_usb_set_baudrate_msg {
163
163
u8 len ;
164
164
u8 cmd ;
165
165
u8 net ;
@@ -169,14 +169,14 @@ struct set_baudrate_msg {
169
169
170
170
/* Main message type used between library and application */
171
171
union __packed esd_usb_msg {
172
- struct header_msg hdr ;
173
- struct version_msg version ;
174
- struct version_reply_msg version_reply ;
175
- struct rx_msg rx ;
176
- struct tx_msg tx ;
177
- struct tx_done_msg txdone ;
178
- struct set_baudrate_msg setbaud ;
179
- struct id_filter_msg filter ;
172
+ struct esd_usb_header_msg hdr ;
173
+ struct esd_usb_version_msg version ;
174
+ struct esd_usb_version_reply_msg version_reply ;
175
+ struct esd_usb_rx_msg rx ;
176
+ struct esd_usb_tx_msg tx ;
177
+ struct esd_usb_tx_done_msg txdone ;
178
+ struct esd_usb_set_baudrate_msg setbaud ;
179
+ struct esd_usb_id_filter_msg filter ;
180
180
};
181
181
182
182
static struct usb_device_id esd_usb_table [] = {
@@ -899,8 +899,8 @@ static const struct ethtool_ops esd_usb_ethtool_ops = {
899
899
.get_ts_info = ethtool_op_get_ts_info ,
900
900
};
901
901
902
- static const struct can_bittiming_const esd_usb2_bittiming_const = {
903
- .name = "esd_usb2 " ,
902
+ static const struct can_bittiming_const esd_usb_2_bittiming_const = {
903
+ .name = "esd_usb_2 " ,
904
904
.tseg1_min = 1 ,
905
905
.tseg1_max = 16 ,
906
906
.tseg2_min = 1 ,
@@ -911,9 +911,9 @@ static const struct can_bittiming_const esd_usb2_bittiming_const = {
911
911
.brp_inc = 1 ,
912
912
};
913
913
914
- static int esd_usb2_set_bittiming (struct net_device * netdev )
914
+ static int esd_usb_2_set_bittiming (struct net_device * netdev )
915
915
{
916
- const struct can_bittiming_const * btc = & esd_usb2_bittiming_const ;
916
+ const struct can_bittiming_const * btc = & esd_usb_2_bittiming_const ;
917
917
struct esd_usb_net_priv * priv = netdev_priv (netdev );
918
918
struct can_bittiming * bt = & priv -> can .bittiming ;
919
919
union esd_usb_msg * msg ;
@@ -1026,8 +1026,8 @@ static int esd_usb_probe_one_net(struct usb_interface *intf, int index)
1026
1026
priv -> can .ctrlmode_supported |= CAN_CTRLMODE_3_SAMPLES ;
1027
1027
}
1028
1028
1029
- priv -> can .bittiming_const = & esd_usb2_bittiming_const ;
1030
- priv -> can .do_set_bittiming = esd_usb2_set_bittiming ;
1029
+ priv -> can .bittiming_const = & esd_usb_2_bittiming_const ;
1030
+ priv -> can .do_set_bittiming = esd_usb_2_set_bittiming ;
1031
1031
priv -> can .do_set_mode = esd_usb_set_mode ;
1032
1032
priv -> can .do_get_berr_counter = esd_usb_get_berr_counter ;
1033
1033
0 commit comments