diff options
author | Abel Vesa <abel.vesa@nxp.com> | 2020-10-29 13:57:31 +0200 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2021-11-02 16:35:21 +0800 |
commit | 1220e7f9d4830a79a5e69abea67cc6ff38a31eb7 (patch) | |
tree | 8ea7734408d0e0ef8ed480eb0aff13d679f9a56f /drivers/clk/imx/clk-blk-ctrl.h | |
parent | 737cb61448e3eeb4859e9e13589e064fbd6ea280 (diff) |
clk: imx: clk-blk-ctrl: Mark the pll_tlb as pointer to const
Since the imx_blk_ctrl_sai_pll in the imx8mp clock driver is actually
a const, so in order to avoid compiler warnings like the following,
mark the pll_tlb member in imx_blk_ctrl_hw as pointer to const.
CC drivers/clk/imx/clk-imx8mp.o
drivers/clk/imx/clk-imx8mp.c:193:217: warning: initialization discards
‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
IMX_BLK_CTRL_CLK_PLL14XX("sai_pll", IMX8MP_CLK_AUDIO_BLK_CTRL_SAI_PLL,
0x400, "sai_pll_ref_sel", &imx_blk_ctrl_sai_pll),
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Diffstat (limited to 'drivers/clk/imx/clk-blk-ctrl.h')
-rw-r--r-- | drivers/clk/imx/clk-blk-ctrl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/imx/clk-blk-ctrl.h b/drivers/clk/imx/clk-blk-ctrl.h index b3b7fc37f6a7..bfee43d0a946 100644 --- a/drivers/clk/imx/clk-blk-ctrl.h +++ b/drivers/clk/imx/clk-blk-ctrl.h @@ -22,7 +22,7 @@ struct imx_blk_ctrl_hw { void *parents; u32 parents_count; int *shared_count; - struct imx_pll14xx_clk *pll_tbl; + const struct imx_pll14xx_clk *pll_tbl; }; struct imx_blk_ctrl_dev_data { |