.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 1999 - 2010 Intel Corporation. |
---|
3 | 4 | * Copyright (C) 2010 OKI SEMICONDUCTOR Co., LTD. |
---|
4 | 5 | * |
---|
5 | 6 | * 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/>. |
---|
18 | 7 | */ |
---|
19 | 8 | #include "pch_gbe.h" |
---|
20 | 9 | #include "pch_gbe_phy.h" |
---|
21 | 10 | |
---|
22 | | -/** |
---|
| 11 | +/* |
---|
23 | 12 | * pch_gbe_stats - Stats item information |
---|
24 | 13 | */ |
---|
25 | 14 | struct pch_gbe_stats { |
---|
.. | .. |
---|
31 | 20 | #define PCH_GBE_STAT(m) \ |
---|
32 | 21 | { \ |
---|
33 | 22 | .string = #m, \ |
---|
34 | | - .size = FIELD_SIZEOF(struct pch_gbe_hw_stats, m), \ |
---|
| 23 | + .size = sizeof_field(struct pch_gbe_hw_stats, m), \ |
---|
35 | 24 | .offset = offsetof(struct pch_gbe_hw_stats, m), \ |
---|
36 | 25 | } |
---|
37 | 26 | |
---|
38 | | -/** |
---|
| 27 | +/* |
---|
39 | 28 | * pch_gbe_gstrings_stats - ethtool information status name list |
---|
40 | 29 | */ |
---|
41 | 30 | static const struct pch_gbe_stats pch_gbe_gstrings_stats[] = { |
---|