summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Nasrolahi <a.nasrolahi01@gmail.com>2025-07-24 21:28:19 +0330
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-08-11 07:21:21 +0200
commit5225c689dd9048b67ddf3044da68cc17ab1aa04e (patch)
treecb31f359eba304eb3aaac519f413819fcfc752f5
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585 (diff)
downloadlinux-5225c689dd9048b67ddf3044da68cc17ab1aa04e.tar.gz
linux-5225c689dd9048b67ddf3044da68cc17ab1aa04e.zip
staging: rtl8723bs: fix comment formatting in basic_types.h
This patch fixes several block comment formatting issues in basic_types.h to comply with the Linux kernel coding style. Changes include: - Aligning comment markers with asterisks in multi-line comments - Reformatting long lines for better readability - Improving consistency in comment structure - Fixing typos in comments These changes improve readability and remove checkpatch.pl warnings. No functional changes introduced. Signed-off-by: Ali Nasrolahi <A.Nasrolahi01@gmail.com> Link: https://lore.kernel.org/r/20250724175819.29142-1-A.Nasrolahi01@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8723bs/include/basic_types.h41
1 files changed, 22 insertions, 19 deletions
diff --git a/drivers/staging/rtl8723bs/include/basic_types.h b/drivers/staging/rtl8723bs/include/basic_types.h
index 24626e65fc7f..1c2da18e6210 100644
--- a/drivers/staging/rtl8723bs/include/basic_types.h
+++ b/drivers/staging/rtl8723bs/include/basic_types.h
@@ -22,11 +22,11 @@
/* TODO: Belows are Sync from SD7-Driver. It is necessary to check correctness */
/*
- *Call endian free function when
+ * Call endian free function when
* 1. Read/write packet content.
* 2. Before write integer to IO.
* 3. After read integer from IO.
-*/
+ */
/* */
/* Byte Swapping routine. */
@@ -68,7 +68,8 @@
(*((u32 *)(_ptr))) = EF2BYTE(_val); \
} while (0)
-/* Create a bit mask
+/*
+ * Create a bit mask
* Examples:
* BIT_LEN_MASK_32(0) => 0x00000000
* BIT_LEN_MASK_32(1) => 0x00000001
@@ -82,7 +83,8 @@
#define BIT_LEN_MASK_8(__bitlen) \
(0xFF >> (8 - (__bitlen)))
-/* Create an offset bit mask
+/*
+ * Create an offset bit mask
* Examples:
* BIT_OFFSET_LEN_MASK_32(0, 2) => 0x00000003
* BIT_OFFSET_LEN_MASK_32(16, 2) => 0x00030000
@@ -94,7 +96,8 @@
#define BIT_OFFSET_LEN_MASK_8(__bitoffset, __bitlen) \
(BIT_LEN_MASK_8(__bitlen) << (__bitoffset))
-/*Description:
+/*
+ * Description:
* Return 4-byte value in host byte ordering from
* 4-byte pointer in little-endian system.
*/
@@ -105,11 +108,11 @@
#define LE_P1BYTE_TO_HOST_1BYTE(__pstart) \
(EF1BYTE(*((u8 *)(__pstart))))
-/* */
-/* Description: */
-/* Translate subfield (continuous bits in little-endian) of 4-byte value in litten byte to */
-/* 4-byte value in host byte ordering. */
-/* */
+/*
+ * Description:
+ * Translate subfield (continuous bits in little-endian) of 4-byte value in
+ * little byte to 4-byte value in host byte ordering.
+ */
#define LE_BITS_TO_4BYTE(__pstart, __bitoffset, __bitlen) \
(\
(LE_P4BYTE_TO_HOST_4BYTE(__pstart) >> (__bitoffset)) & \
@@ -126,11 +129,11 @@
BIT_LEN_MASK_8(__bitlen) \
)
-/* */
-/* Description: */
-/* Mask subfield (continuous bits in little-endian) of 4-byte value in litten byte oredering */
-/* and return the result in 4-byte value in host byte ordering. */
-/* */
+/*
+ * Description:
+ * Mask subfield (continuous bits in little-endian) of 4-byte value in little
+ * byte ordering and return the result in 4-byte value in host byte ordering.
+ */
#define LE_BITS_CLEARED_TO_4BYTE(__pstart, __bitoffset, __bitlen) \
(\
LE_P4BYTE_TO_HOST_4BYTE(__pstart) & \
@@ -147,10 +150,10 @@
(~BIT_OFFSET_LEN_MASK_8(__bitoffset, __bitlen)) \
)
-/* */
-/* Description: */
-/* Set subfield of little-endian 4-byte value to specified value. */
-/* */
+/*
+ * Description:
+ * Set subfield of little-endian 4-byte value to specified value.
+ */
#define SET_BITS_TO_LE_4BYTE(__pstart, __bitoffset, __bitlen, __val) \
*((u32 *)(__pstart)) = \
( \