hdmirx: fix read edid panic issue [1/1]

PD#SWPL-4088

Problem:
There will be kernel panic when read edid via hdmirx
driver interface

Solution:
modify the rd_top interface

Verify:
TL1 android P

Change-Id: Ifb595cc66a2e792bc5153d726258deb7ba4e741c
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
This commit is contained in:
yicheng shen
2019-01-10 05:38:29 -05:00
committed by Jianxin Pan
parent b836684030
commit 1923b697e4
3 changed files with 3 additions and 3 deletions

View File

@@ -46,7 +46,7 @@
*
*
*/
#define RX_VER2 "ver.2019/01/10"
#define RX_VER2 "ver.2019/01/16"
/*print type*/
#define LOG_EN 0x01

View File

@@ -477,7 +477,7 @@ void wr_reg(enum map_addr_module_e module,
* returns unsigned char bytes read from the addr
*/
unsigned char rd_reg_b(enum map_addr_module_e module,
unsigned char reg_addr)
unsigned int reg_addr)
{
unsigned char val = 0;

View File

@@ -1117,7 +1117,7 @@ extern void wr_reg(enum map_addr_module_e module,
unsigned int reg_addr,
unsigned int val);
extern unsigned char rd_reg_b(enum map_addr_module_e module,
unsigned char reg_addr);
unsigned int reg_addr);
extern void wr_reg_b(enum map_addr_module_e module,
unsigned int reg_addr, unsigned char val);
extern void hdmirx_wr_top(unsigned int addr, unsigned int data);