]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dsi_phy_28nm_8960: Use stack memory for temporary clock names
authorMarijn Suijten <marijn.suijten@somainline.org>
Wed, 29 Jun 2022 22:53:25 +0000 (00:53 +0200)
committerRob Clark <robdclark@chromium.org>
Sun, 18 Sep 2022 16:38:05 +0000 (09:38 -0700)
commitf2567be72f7941813ad2766fe996a1100a3e8ed5
tree9b75be6ce2dcd25d5dc2dca88eb481c8f00e14ca
parentb7c42c678a2921ac0ef647a66280e1a3ef514d2f
drm/msm/dsi_phy_28nm_8960: Use stack memory for temporary clock names

The clock names formatted into the hw_clk's init structure are only used
for the duration of the registration function where they are kstrdup'ed,
making it unnecessary to keep the allocations alive for the duration of
the device (through devm).

Just like the other DSI PHY PLL clock trees, use a stack-local char
array and save on memory outside of the pll_28nm_register function.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/491917/
Link: https://lore.kernel.org/r/20220629225331.357308-6-marijn.suijten@somainline.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c