浏览代码

asoc: wsa883x: Update OTP_REG_0 as volatile reg

For WSA variant info is available in this register
OTP_REG_0. Make it volatile read-only register
to always read from hardware.

Change-Id: I1c543875748d08304b4abe6c73594bc116d08c6d
Signed-off-by: Laxminath Kasam <[email protected]>
Laxminath Kasam 4 年之前
父节点
当前提交
a8ed68fe7e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      asoc/codecs/wsa883x/wsa883x-tables.c

+ 2 - 2
asoc/codecs/wsa883x/wsa883x-tables.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2015, 2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2015, 2020-2021 The Linux Foundation. All rights reserved.
  */
 
 #include <linux/regmap.h>
@@ -256,7 +256,7 @@ const u8 wsa883x_reg_access[WSA883X_NUM_REGISTERS] = {
 	[WSA883X_REG(WSA883X_SPARE_1)] = RD_WR_REG,
 	[WSA883X_REG(WSA883X_SPARE_2)] = RD_WR_REG,
 	[WSA883X_REG(WSA883X_SCODE)] = RD_WR_REG,
-	[WSA883X_REG(WSA883X_OTP_REG_0)] = RD_WR_REG,
+	[WSA883X_REG(WSA883X_OTP_REG_0)] = RD_REG,
 	[WSA883X_REG(WSA883X_OTP_REG_1)] = RD_WR_REG,
 	[WSA883X_REG(WSA883X_OTP_REG_2)] = RD_WR_REG,
 	[WSA883X_REG(WSA883X_OTP_REG_3)] = RD_WR_REG,