瀏覽代碼

asoc: codec: wcd939x: Update the readable swr slave registers

Update the readable swr slave registers while taking the regdumps.

Change-Id: Id38efceb49b6a223f51c24c6d88865b2116b3d29
Signed-off-by: Prasad Kumpatla <[email protected]>
Prasad Kumpatla 1 年之前
父節點
當前提交
d6edf04acd
共有 1 個文件被更改,包括 2 次插入5 次删除
  1. 2 5
      asoc/codecs/wcd939x/wcd939x-slave.c

+ 2 - 5
asoc/codecs/wcd939x/wcd939x-slave.c

@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
  * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
- * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved.
  */
 
 #include <linux/module.h>
@@ -90,10 +90,7 @@ static bool is_swr_slv_reg_readable(int reg)
 	    ((reg > 0x138) && (reg < 0x205)) ||
 	    ((reg > 0x238) && (reg < 0x305)) ||
 	    ((reg > 0x338) && (reg < 0x405)) ||
-	    ((reg > 0x405) && (reg < 0xF00)) ||
-	    ((reg > 0xF05) && (reg < 0xF20)) ||
-	    ((reg > 0xF25) && (reg < 0xF30)) ||
-	    ((reg > 0xF35) && (reg < 0x2000)))
+	    ((reg > 0x438) && (reg < 0x2000)))
 		ret = false;
 
 	return ret;