| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2017 John Crispin <john@phrozen.org> |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Based on code from |
|---|
| 5 | 6 | * Allwinner Technology Co., Ltd. <www.allwinnertech.com> |
|---|
| 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; either version 2 of the License, or |
|---|
| 10 | | - * (at your option) any later version. |
|---|
| 11 | | - * |
|---|
| 12 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 13 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 14 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 15 | | - * GNU General Public License for more details. |
|---|
| 16 | 7 | */ |
|---|
| 17 | 8 | |
|---|
| 18 | 9 | #include <linux/delay.h> |
|---|
| .. | .. |
|---|
| 151 | 142 | return 0; |
|---|
| 152 | 143 | } |
|---|
| 153 | 144 | |
|---|
| 154 | | -static struct phy_ops ralink_usb_phy_ops = { |
|---|
| 145 | +static const struct phy_ops ralink_usb_phy_ops = { |
|---|
| 155 | 146 | .power_on = ralink_usb_phy_power_on, |
|---|
| 156 | 147 | .power_off = ralink_usb_phy_power_off, |
|---|
| 157 | 148 | .owner = THIS_MODULE, |
|---|