Commit 521f88bf authored by Chanho Park's avatar Chanho Park Committed by Vinod Koul

phy: samsung: ufs: constify samsung_ufs_phy_cfg

Put const qualifier of samsung_ufs_phy_cfg pointer because they will
not be changed from drvdata.
Signed-off-by: default avatarChanho Park <chanho61.park@samsung.com>
Reviewed-by: default avatarAlim Akhtar <alim.akhtar@samsung.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220607072907.127000-4-chanho61.park@samsung.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 558801e8
...@@ -75,7 +75,7 @@ static int samsung_ufs_phy_wait_for_lock_acq(struct phy *phy) ...@@ -75,7 +75,7 @@ static int samsung_ufs_phy_wait_for_lock_acq(struct phy *phy)
static int samsung_ufs_phy_calibrate(struct phy *phy) static int samsung_ufs_phy_calibrate(struct phy *phy)
{ {
struct samsung_ufs_phy *ufs_phy = get_samsung_ufs_phy(phy); struct samsung_ufs_phy *ufs_phy = get_samsung_ufs_phy(phy);
struct samsung_ufs_phy_cfg **cfgs = ufs_phy->cfgs; const struct samsung_ufs_phy_cfg * const *cfgs = ufs_phy->cfgs;
const struct samsung_ufs_phy_cfg *cfg; const struct samsung_ufs_phy_cfg *cfg;
int err = 0; int err = 0;
int i; int i;
...@@ -327,7 +327,7 @@ static int samsung_ufs_phy_probe(struct platform_device *pdev) ...@@ -327,7 +327,7 @@ static int samsung_ufs_phy_probe(struct platform_device *pdev)
drvdata = match->data; drvdata = match->data;
phy->dev = dev; phy->dev = dev;
phy->drvdata = drvdata; phy->drvdata = drvdata;
phy->cfgs = (struct samsung_ufs_phy_cfg **)drvdata->cfgs; phy->cfgs = drvdata->cfgs;
phy->isol = &drvdata->isol; phy->isol = &drvdata->isol;
phy->lane_cnt = PHY_DEF_LANE_CNT; phy->lane_cnt = PHY_DEF_LANE_CNT;
......
...@@ -121,7 +121,7 @@ struct samsung_ufs_phy { ...@@ -121,7 +121,7 @@ struct samsung_ufs_phy {
struct clk *rx0_symbol_clk; struct clk *rx0_symbol_clk;
struct clk *rx1_symbol_clk; struct clk *rx1_symbol_clk;
const struct samsung_ufs_phy_drvdata *drvdata; const struct samsung_ufs_phy_drvdata *drvdata;
struct samsung_ufs_phy_cfg **cfgs; const struct samsung_ufs_phy_cfg * const *cfgs;
const struct pmu_isol *isol; const struct pmu_isol *isol;
u8 lane_cnt; u8 lane_cnt;
int ufs_phy_state; int ufs_phy_state;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment