diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-08-24 00:00:20 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-08-31 14:36:36 +0530 |
commit | fdde71d351eb4b0a4ba4b824393d219d4223cd54 (patch) | |
tree | f6a63b81ca184bbd2f1adb637014211cd6101bdd /drivers/phy/hisilicon/phy-hi3660-usb3.c | |
parent | 2bf314d66f64dde2dae6eb97193481222c014bff (diff) | |
download | linux-fdde71d351eb4b0a4ba4b824393d219d4223cd54.tar.bz2 |
phy: hisilicon; Constify hi3660_phy_ops
The only usage is to pass its address to devm_phy_create() which takes a
const pointer. Make it const to allow the compiler to put it in
read-only memory.
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20200823220025.17588-4-rikard.falkeborn@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/hisilicon/phy-hi3660-usb3.c')
-rw-r--r-- | drivers/phy/hisilicon/phy-hi3660-usb3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/hisilicon/phy-hi3660-usb3.c b/drivers/phy/hisilicon/phy-hi3660-usb3.c index cc0af2c044d0..84adce9b4277 100644 --- a/drivers/phy/hisilicon/phy-hi3660-usb3.c +++ b/drivers/phy/hisilicon/phy-hi3660-usb3.c @@ -161,7 +161,7 @@ out: return ret; } -static struct phy_ops hi3660_phy_ops = { +static const struct phy_ops hi3660_phy_ops = { .init = hi3660_phy_init, .exit = hi3660_phy_exit, .owner = THIS_MODULE, |