| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* 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. |
|---|
| 12 | 3 | */ |
|---|
| 13 | 4 | #ifndef __PHY_LED_TRIGGERS |
|---|
| 14 | 5 | #define __PHY_LED_TRIGGERS |
|---|
| .. | .. |
|---|
| 20 | 11 | #include <linux/leds.h> |
|---|
| 21 | 12 | #include <linux/phy.h> |
|---|
| 22 | 13 | |
|---|
| 23 | | -#define PHY_LED_TRIGGER_SPEED_SUFFIX_SIZE 10 |
|---|
| 14 | +#define PHY_LED_TRIGGER_SPEED_SUFFIX_SIZE 11 |
|---|
| 24 | 15 | |
|---|
| 25 | 16 | #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)+\ |
|---|
| 27 | 18 | PHY_LED_TRIGGER_SPEED_SUFFIX_SIZE) |
|---|
| 28 | 19 | |
|---|
| 29 | 20 | struct phy_led_trigger { |
|---|