Skip to content

Commit 9aa0dad

Browse files
ColinIanKingvinodkoul
authored andcommitted
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>
1 parent 7415753 commit 9aa0dad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/phy/mediatek/phy-mtk-dp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ struct mtk_dp_phy {
8585
static int mtk_dp_phy_init(struct phy *phy)
8686
{
8787
struct mtk_dp_phy *dp_phy = phy_get_drvdata(phy);
88-
u32 driving_params[] = {
88+
static const u32 driving_params[] = {
8989
DRIVING_PARAM_3_DEFAULT,
9090
DRIVING_PARAM_4_DEFAULT,
9191
DRIVING_PARAM_5_DEFAULT,

0 commit comments

Comments
 (0)