mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 03:24:19 +02:00
ASoC: codecs: wcd934x: Drop unused num_rx_port/num_tx_port fields
Members wcd934x_codec.num_rx_port and num_tx_port are not read anywhere after assignment, so they can be safely dropped. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com> Link: https://patch.msgid.link/20250528-asoc-const-unused-v1-4-19a5d07b9d5c@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
620d968700
commit
9afc53569d
|
|
@ -537,8 +537,6 @@ struct wcd934x_codec {
|
|||
int rate;
|
||||
u32 version;
|
||||
u32 hph_mode;
|
||||
int num_rx_port;
|
||||
int num_tx_port;
|
||||
u32 tx_port_value[WCD934X_TX_MAX];
|
||||
u32 rx_port_value[WCD934X_RX_MAX];
|
||||
int sido_input_src;
|
||||
|
|
@ -1928,13 +1926,11 @@ static int wcd934x_set_channel_map(struct snd_soc_dai *dai,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
wcd->num_rx_port = rx_num;
|
||||
for (i = 0; i < rx_num; i++) {
|
||||
wcd->rx_chs[i].ch_num = rx_slot[i];
|
||||
INIT_LIST_HEAD(&wcd->rx_chs[i].list);
|
||||
}
|
||||
|
||||
wcd->num_tx_port = tx_num;
|
||||
for (i = 0; i < tx_num; i++) {
|
||||
wcd->tx_chs[i].ch_num = tx_slot[i];
|
||||
INIT_LIST_HEAD(&wcd->tx_chs[i].list);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user