forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/can/softing/softing_fw.c
....@@ -1,19 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2008-2010
34 *
45 * - Kurt Van Dijck, EIA Electronics
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the version 2 of the GNU General Public License
8
- * as published by the Free Software Foundation
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
176 */
187
198 #include <linux/firmware.h>
....@@ -284,7 +273,7 @@
284273 goto failed;
285274 }
286275
287
- /* regualar data */
276
+ /* regular data */
288277 for (sum = 0, j = 0; j < len; ++j)
289278 sum += dat[j];
290279 /* work in 16bit (target) */
....@@ -485,14 +474,14 @@
485474 if (ret)
486475 goto failed;
487476 if (!bus_bitmask_start)
488
- /* no busses to be brought up */
477
+ /* no buses to be brought up */
489478 goto card_done;
490479
491480 if ((bus_bitmask_start & 1) && (bus_bitmask_start & 2)
492481 && (softing_error_reporting(card->net[0])
493482 != softing_error_reporting(card->net[1]))) {
494483 dev_alert(&card->pdev->dev,
495
- "err_reporting flag differs for busses\n");
484
+ "err_reporting flag differs for buses\n");
496485 goto invalid;
497486 }
498487 error_reporting = 0;
....@@ -647,7 +636,7 @@
647636 priv->can.state = CAN_STATE_ERROR_ACTIVE;
648637 open_candev(netdev);
649638 if (dev != netdev) {
650
- /* notify other busses on the restart */
639
+ /* notify other buses on the restart */
651640 softing_netdev_rx(netdev, &msg, 0);
652641 ++priv->can.can_stats.restarts;
653642 }