[PATCH 20/61] staging: rtl8723bs: sanitize and align efuse read function headers
From: Arsenii Pashchenko
Date: Wed Jul 15 2026 - 08:57:14 EST
Fix the function headers for rtw_efuse_read_1_byte() and
rtw_efuse_one_byte_read() to conform with the Linux kernel coding
style. Place the return type on the same line as the function name,
collapse arguments into single-line definitions, and drop the obsolete
trailing comment.
Signed-off-by: Arsenii Pashchenko <ulijg308@xxxxxxxxx>
---
drivers/staging/rtl8723bs/core/rtw_efuse.c | 30 +++-------------------
1 file changed, 4 insertions(+), 26 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_efuse.c b/drivers/staging/rtl8723bs/core/rtw_efuse.c
index a40d6eab7..52ec19294 100644
--- a/drivers/staging/rtl8723bs/core/rtw_efuse.c
+++ b/drivers/staging/rtl8723bs/core/rtw_efuse.c
@@ -25,26 +25,8 @@ rtw_efuse_calculate_word_counts(u8 word_en)
return word_cnts;
}
-/*-----------------------------------------------------------------------------
- * Function: rtw_efuse_read_1_byte
- *
- * Overview: Copy from WMAC fot EFUSE read 1 byte.
- *
- * Input: NONE
- *
- * Output: NONE
- *
- * Return: NONE
- *
- * Revised History:
- * When Who Remark
- * 09/23/2008 MHC Copy from WMAC.
- *
- */
-u8
-rtw_efuse_read_1_byte(
-struct adapter *Adapter,
-u16 Address)
+
+u8 rtw_efuse_read_1_byte(struct adapter *Adapter, u16 Address)
{
u8 Bytetemp = {0x00};
u8 temp = {0x00};
@@ -79,14 +61,10 @@ u16 Address)
} else {
return 0xFF;
}
-} /* rtw_efuse_read_1_byte */
+}
/* 11/16/2008 MH Read one byte from real Efuse. */
-u8
-rtw_efuse_one_byte_read(
-struct adapter *padapter,
-u16 addr,
-u8 *data)
+u8 rtw_efuse_one_byte_read(struct adapter *padapter, u16 addr, u8 *data)
{
u32 tmpidx = 0;
u8 bResult;
--
2.55.0