projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bf314d
)
phy: hisilicon; Constify hi3660_phy_ops
author
Rikard Falkeborn
<rikard.falkeborn@gmail.com>
Sun, 23 Aug 2020 22:00:20 +0000
(
00:00
+0200)
committer
Vinod Koul
<vkoul@kernel.org>
Mon, 31 Aug 2020 09:06:36 +0000
(14:36 +0530)
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>
drivers/phy/hisilicon/phy-hi3660-usb3.c
patch
|
blob
|
history
diff --git
a/drivers/phy/hisilicon/phy-hi3660-usb3.c
b/drivers/phy/hisilicon/phy-hi3660-usb3.c
index cc0af2c044d0e3f669119e6047fb45f6ac89428e..84adce9b42770a7a090aca79327ebb5455e788a7 100644
(file)
--- 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,