Commit 3d2a69eb authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Mark Brown

ASoC: codecs: wsa881x: Drop unused version readout

Driver does not use the device version after reading it from the
registers, so simplify by dropping unneeded code.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20240710-asoc-wsa88xx-version-v1-1-f1c54966ccde@linaro.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8400291e
...@@ -680,7 +680,6 @@ struct wsa881x_priv { ...@@ -680,7 +680,6 @@ struct wsa881x_priv {
* For backwards compatibility. * For backwards compatibility.
*/ */
unsigned int sd_n_val; unsigned int sd_n_val;
int version;
int active_ports; int active_ports;
bool port_prepared[WSA881X_MAX_SWR_PORTS]; bool port_prepared[WSA881X_MAX_SWR_PORTS];
bool port_enable[WSA881X_MAX_SWR_PORTS]; bool port_enable[WSA881X_MAX_SWR_PORTS];
...@@ -691,7 +690,6 @@ static void wsa881x_init(struct wsa881x_priv *wsa881x) ...@@ -691,7 +690,6 @@ static void wsa881x_init(struct wsa881x_priv *wsa881x)
struct regmap *rm = wsa881x->regmap; struct regmap *rm = wsa881x->regmap;
unsigned int val = 0; unsigned int val = 0;
regmap_read(rm, WSA881X_CHIP_ID1, &wsa881x->version);
regmap_register_patch(wsa881x->regmap, wsa881x_rev_2_0, regmap_register_patch(wsa881x->regmap, wsa881x_rev_2_0,
ARRAY_SIZE(wsa881x_rev_2_0)); ARRAY_SIZE(wsa881x_rev_2_0));
......
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