Skip to content

Commit d9dbe1f

Browse files
Srinivas-Kandagatlabroonie
authored andcommitted
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>
1 parent 622d9ac commit d9dbe1f

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

sound/soc/codecs/wcd938x.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,6 @@ static int wcd938x_io_init(struct wcd938x_priv *wcd938x)
13601360

13611361
static int wcd938x_sdw_connect_port(struct wcd938x_sdw_ch_info *ch_info,
13621362
struct sdw_port_config *port_config,
1363-
u32 mstr_port_num,
13641363
u8 enable)
13651364
{
13661365
u8 ch_mask, port_num;
@@ -1380,14 +1379,12 @@ static int wcd938x_sdw_connect_port(struct wcd938x_sdw_ch_info *ch_info,
13801379

13811380
static int wcd938x_connect_port(struct wcd938x_sdw_priv *wcd, u8 ch_id, u8 enable)
13821381
{
1383-
u8 port_num, mstr_port_num;
1382+
u8 port_num;
13841383

13851384
port_num = wcd->ch_info[ch_id].port_num;
1386-
mstr_port_num = wcd->port_map[port_num - 1];
13871385

13881386
return wcd938x_sdw_connect_port(&wcd->ch_info[ch_id],
13891387
&wcd->port_config[port_num],
1390-
mstr_port_num,
13911388
enable);
13921389
}
13931390

sound/soc/codecs/wcd938x.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,6 @@ struct wcd938x_sdw_priv {
658658
struct sdw_port_config port_config[WCD938X_MAX_SWR_PORTS];
659659
struct wcd938x_sdw_ch_info *ch_info;
660660
bool port_enable[WCD938X_MAX_SWR_CH_IDS];
661-
int port_map[WCD938X_MAX_SWR_PORTS];
662661
int active_ports;
663662
int num_ports;
664663
bool is_tx;

0 commit comments

Comments
 (0)