forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/mediatek/mt7601u/phy.c
....@@ -1,16 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * (c) Copyright 2002-2010, Ralink Technology, Inc.
34 * Copyright (C) 2014 Felix Fietkau <nbd@openwrt.org>
45 * Copyright (C) 2015 Jakub Kicinski <kubakici@wp.pl>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2
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.
146 */
157
168 #include "mt7601u.h"
....@@ -795,7 +787,7 @@
795787 switch (phy_mode) {
796788 case MT_PHY_TYPE_OFDM:
797789 tx_rate += 4;
798
- /* fall through */
790
+ fallthrough;
799791 case MT_PHY_TYPE_CCK:
800792 reg = dev->rf_pa_mode[0];
801793 break;
....@@ -1218,7 +1210,7 @@
12181210 /**
12191211 * mt7601u_set_tx_dac - set which tx DAC to use
12201212 * @dev: pointer to adapter structure
1221
- * @path: DAC index, values are 0-based
1213
+ * @dac: DAC index, values are 0-based
12221214 */
12231215 void mt7601u_set_tx_dac(struct mt7601u_dev *dev, u8 dac)
12241216 {