projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7415753
)
phy: phy-mtk-dp: make array driving_params static const
author
Colin Ian King
<colin.i.king@gmail.com>
Thu, 29 Sep 2022 13:01:47 +0000
(14:01 +0100)
committer
Vinod Koul
<vkoul@kernel.org>
Thu, 29 Sep 2022 15:31:27 +0000
(21:01 +0530)
Don't populate the read-only array driving_params on the stack but instead
make it static const. Also makes the object code a little smaller.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link:
https://lore.kernel.org/r/20220929130147.97375-1-colin.i.king@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/mediatek/phy-mtk-dp.c
patch
|
blob
|
history
diff --git
a/drivers/phy/mediatek/phy-mtk-dp.c
b/drivers/phy/mediatek/phy-mtk-dp.c
index 31266e7ca324479690218656f9fea541e1b49921..232fd3f1ff1b1a109e165a460914ad22b19a42cf 100644
(file)
--- a/
drivers/phy/mediatek/phy-mtk-dp.c
+++ b/
drivers/phy/mediatek/phy-mtk-dp.c
@@
-85,7
+85,7
@@
struct mtk_dp_phy {
static int mtk_dp_phy_init(struct phy *phy)
{
struct mtk_dp_phy *dp_phy = phy_get_drvdata(phy);
- u32 driving_params[] = {
+
static const
u32 driving_params[] = {
DRIVING_PARAM_3_DEFAULT,
DRIVING_PARAM_4_DEFAULT,
DRIVING_PARAM_5_DEFAULT,