phy: ti: j721e-wiz: Remove "regmap_field" from wiz_clk_{mux|div}_sel
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 10 Mar 2021 12:08:35 +0000 (17:38 +0530)
committerVinod Koul <vkoul@kernel.org>
Tue, 30 Mar 2021 18:03:14 +0000 (23:33 +0530)
commit549cb1ae3e56e71ccd2547c3c40ff2556af8ce49
tree787c93278b1fb221e4acd9a403dd2d6b2135a611
parentb8900c539eabaa091cc6aff70f56a25aa78739bf
phy: ti: j721e-wiz: Remove "regmap_field" from wiz_clk_{mux|div}_sel

Both "struct wiz_clk_div_sel" and "struct wiz_clk_mux_sel" are static
data that is common for all wiz instances. Including
"struct regmap_field" for each of the wiz instances can yield undesirable
results. Move "struct regmap_field" out of "struct wiz_clk_div_sel" and
"struct wiz_clk_mux_sel" and make them point to constant data.

So far no issues are observed since both these structures are not
accessed outside the probe.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Link: https://lore.kernel.org/r/20210310120840.16447-2-kishon@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/ti/phy-j721e-wiz.c