forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c
....@@ -1,25 +1,14 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 1999 - 2010 Intel Corporation.
34 * Copyright (C) 2010 OKI SEMICONDUCTOR Co., LTD.
45 *
56 * This code was derived from the Intel e1000e Linux driver.
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; version 2 of the License.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
187 */
198 #include "pch_gbe.h"
209 #include "pch_gbe_phy.h"
2110
22
-/**
11
+/*
2312 * pch_gbe_stats - Stats item information
2413 */
2514 struct pch_gbe_stats {
....@@ -31,11 +20,11 @@
3120 #define PCH_GBE_STAT(m) \
3221 { \
3322 .string = #m, \
34
- .size = FIELD_SIZEOF(struct pch_gbe_hw_stats, m), \
23
+ .size = sizeof_field(struct pch_gbe_hw_stats, m), \
3524 .offset = offsetof(struct pch_gbe_hw_stats, m), \
3625 }
3726
38
-/**
27
+/*
3928 * pch_gbe_gstrings_stats - ethtool information status name list
4029 */
4130 static const struct pch_gbe_stats pch_gbe_gstrings_stats[] = {