diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2021-07-16 12:56:12 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-07-16 14:55:33 +0200 |
commit | d9dbe1f9ae4b3463093fcf027d79f20bb9a337c8 (patch) | |
tree | 53f6528fea07faf1860f479dedb3e1b74422a69e /sound/soc/codecs/wcd938x.c | |
parent | ASoC: codecs: lpass-rx-macro: clean up for-loop indentation in switch statement (diff) | |
download | linux-d9dbe1f9ae4b3463093fcf027d79f20bb9a337c8.tar.xz linux-d9dbe1f9ae4b3463093fcf027d79f20bb9a337c8.zip |
ASoC: codecs: wcd938x: remove unused port-map reference
port_map field was added prior to adding static port map support in soundwire.
This makes port_map array in struct wcd938x_sdw_priv redundant and unused,
so remove this.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20210716105612.5284-1-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wcd938x.c')
-rw-r--r-- | sound/soc/codecs/wcd938x.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index 5fd708e013f9..a627142426b2 100644 --- a/sound/soc/codecs/wcd938x.c +++ b/sound/soc/codecs/wcd938x.c @@ -1360,7 +1360,6 @@ static int wcd938x_io_init(struct wcd938x_priv *wcd938x) static int wcd938x_sdw_connect_port(struct wcd938x_sdw_ch_info *ch_info, struct sdw_port_config *port_config, - u32 mstr_port_num, u8 enable) { u8 ch_mask, port_num; @@ -1380,14 +1379,12 @@ static int wcd938x_sdw_connect_port(struct wcd938x_sdw_ch_info *ch_info, static int wcd938x_connect_port(struct wcd938x_sdw_priv *wcd, u8 ch_id, u8 enable) { - u8 port_num, mstr_port_num; + u8 port_num; port_num = wcd->ch_info[ch_id].port_num; - mstr_port_num = wcd->port_map[port_num - 1]; return wcd938x_sdw_connect_port(&wcd->ch_info[ch_id], &wcd->port_config[port_num], - mstr_port_num, enable); } |