hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/linux/phy_led_triggers.h
....@@ -1,14 +1,5 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /* Copyright (C) 2016 National Instruments Corp.
2
- *
3
- * This program is free software; you can redistribute it and/or modify
4
- * it under the terms of the GNU General Public License as published by
5
- * the Free Software Foundation; either version 2 of the License, or
6
- * (at your option) any later version.
7
- *
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
123 */
134 #ifndef __PHY_LED_TRIGGERS
145 #define __PHY_LED_TRIGGERS
....@@ -20,10 +11,10 @@
2011 #include <linux/leds.h>
2112 #include <linux/phy.h>
2213
23
-#define PHY_LED_TRIGGER_SPEED_SUFFIX_SIZE 10
14
+#define PHY_LED_TRIGGER_SPEED_SUFFIX_SIZE 11
2415
2516 #define PHY_LINK_LED_TRIGGER_NAME_SIZE (MII_BUS_ID_SIZE + \
26
- FIELD_SIZEOF(struct mdio_device, addr)+\
17
+ sizeof_field(struct mdio_device, addr)+\
2718 PHY_LED_TRIGGER_SPEED_SUFFIX_SIZE)
2819
2920 struct phy_led_trigger {