forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/net/can/usb/peak_usb/pcan_usb_fd.c
....@@ -1,16 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * CAN driver for PEAK System PCAN-USB FD / PCAN-USB Pro FD adapter
34 *
45 * Copyright (C) 2013-2014 Stephane Grosjean <s.grosjean@peak-system.com>
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License as published
8
- * by the Free Software Foundation; version 2 of the License.
9
- *
10
- * This program is distributed in the hope that it will be useful, but
11
- * WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * General Public License for more details.
146 */
157 #include <linux/netdevice.h>
168 #include <linux/usb.h>
....@@ -43,7 +35,7 @@
4335 #define PCAN_UFD_RX_BUFFER_SIZE 2048
4436 #define PCAN_UFD_TX_BUFFER_SIZE 512
4537
46
-/* read some versions info from the hw devcie */
38
+/* read some versions info from the hw device */
4739 struct __packed pcan_ufd_fw_info {
4840 __le16 size_of; /* sizeof this */
4941 __le16 type; /* type of this structure */
....@@ -829,7 +821,7 @@
829821 return err;
830822 }
831823
832
-/* socket callback used to copy berr counters values receieved through USB */
824
+/* socket callback used to copy berr counters values received through USB */
833825 static int pcan_usb_fd_get_berr_counter(const struct net_device *netdev,
834826 struct can_berr_counter *bec)
835827 {