soc: swr-mstr: Update master port max check

In pcm port config, update max port check.

Change-Id: I6e0aa683137678962827469914633adade937132
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:
Laxminath Kasam
2021-03-08 13:51:37 +05:30
parent c69fbb5b00
commit 45d07c545c

View File

@@ -744,7 +744,7 @@ static int swrm_pcm_port_config(struct swr_mstr_ctrl *swrm, u8 port_num,
u16 reg_addr = 0; u16 reg_addr = 0;
u32 reg_val = SWRM_COMP_FEATURE_CFG_DEFAULT_VAL; u32 reg_val = SWRM_COMP_FEATURE_CFG_DEFAULT_VAL;
if (!port_num || port_num > 6) { if (!port_num || port_num > SWR_MSTR_PORT_LEN) {
dev_err(swrm->dev, "%s: invalid port: %d\n", dev_err(swrm->dev, "%s: invalid port: %d\n",
__func__, port_num); __func__, port_num);
return -EINVAL; return -EINVAL;