| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * CAN driver for PEAK System PCAN-USB FD / PCAN-USB Pro FD adapter |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 14 | 6 | */ |
|---|
| 15 | 7 | #include <linux/netdevice.h> |
|---|
| 16 | 8 | #include <linux/usb.h> |
|---|
| .. | .. |
|---|
| 43 | 35 | #define PCAN_UFD_RX_BUFFER_SIZE 2048 |
|---|
| 44 | 36 | #define PCAN_UFD_TX_BUFFER_SIZE 512 |
|---|
| 45 | 37 | |
|---|
| 46 | | -/* read some versions info from the hw devcie */ |
|---|
| 38 | +/* read some versions info from the hw device */ |
|---|
| 47 | 39 | struct __packed pcan_ufd_fw_info { |
|---|
| 48 | 40 | __le16 size_of; /* sizeof this */ |
|---|
| 49 | 41 | __le16 type; /* type of this structure */ |
|---|
| .. | .. |
|---|
| 829 | 821 | return err; |
|---|
| 830 | 822 | } |
|---|
| 831 | 823 | |
|---|
| 832 | | -/* socket callback used to copy berr counters values receieved through USB */ |
|---|
| 824 | +/* socket callback used to copy berr counters values received through USB */ |
|---|
| 833 | 825 | static int pcan_usb_fd_get_berr_counter(const struct net_device *netdev, |
|---|
| 834 | 826 | struct can_berr_counter *bec) |
|---|
| 835 | 827 | { |
|---|