Commit 62689167 authored by Nik Nyby's avatar Nik Nyby Committed by Kalle Valo

rtlwifi: rtl8821ae: Fix typo in variable name

In _rtl8821ae_dbi_write(), wrtie_addr should be write_addr.
Signed-off-by: default avatarNik Nyby <nikolas@gnu.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 758f7e06
...@@ -1131,13 +1131,13 @@ static u8 _rtl8821ae_dbi_read(struct rtl_priv *rtlpriv, u16 addr) ...@@ -1131,13 +1131,13 @@ static u8 _rtl8821ae_dbi_read(struct rtl_priv *rtlpriv, u16 addr)
static void _rtl8821ae_dbi_write(struct rtl_priv *rtlpriv, u16 addr, u8 data) static void _rtl8821ae_dbi_write(struct rtl_priv *rtlpriv, u16 addr, u8 data)
{ {
u8 tmp = 0, count = 0; u8 tmp = 0, count = 0;
u16 wrtie_addr, remainder = addr % 4; u16 write_addr, remainder = addr % 4;
wrtie_addr = REG_DBI_WDATA + remainder; write_addr = REG_DBI_WDATA + remainder;
rtl_write_byte(rtlpriv, wrtie_addr, data); rtl_write_byte(rtlpriv, write_addr, data);
wrtie_addr = (addr & 0xfffc) | (BIT(0) << (remainder + 12)); write_addr = (addr & 0xfffc) | (BIT(0) << (remainder + 12));
rtl_write_word(rtlpriv, REG_DBI_ADDR, wrtie_addr); rtl_write_word(rtlpriv, REG_DBI_ADDR, write_addr);
rtl_write_byte(rtlpriv, REG_DBI_FLAG, 0x1); rtl_write_byte(rtlpriv, REG_DBI_FLAG, 0x1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment