summaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-09-29 15:01:47 +0200
committerVinod Koul <vkoul@kernel.org>2022-09-29 17:31:27 +0200
commit9aa0dade8f6b4cdcbb114e1a06037939ee3238bc (patch)
treeaa81e7b69acb143180f8fc826c7af19b2a560581 /drivers/phy
parentdt-bindings: phy: qcom,qusb2: document sdm670 compatible (diff)
downloadlinux-9aa0dade8f6b4cdcbb114e1a06037939ee3238bc.tar.xz
linux-9aa0dade8f6b4cdcbb114e1a06037939ee3238bc.zip
phy: phy-mtk-dp: make array driving_params static const
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>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/mediatek/phy-mtk-dp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/mediatek/phy-mtk-dp.c b/drivers/phy/mediatek/phy-mtk-dp.c
index 31266e7ca324..232fd3f1ff1b 100644
--- 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,