]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: rtl8723bs: replace type and rename the chip_type field
authorNikolay Kulikov <nikolayof23@gmail.com>
Sat, 2 May 2026 21:55:41 +0000 (00:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 May 2026 14:53:18 +0000 (16:53 +0200)
commit6d168099f1b10d8046681040ccf2ad6fa9b8685d
tree728c5434ed392ecf5b141b2cb7adec2b45965e8c
parentd4be72aad7dcd0a9ba96799e92171ca035d89d79
staging: rtl8723bs: replace type and rename the chip_type field

The 'chip_type' field always accepts one value from the
hal_chip_type_e enumeration: TEST_CHIP or NORMAL_CHIP (FPGA is never
used).
Changing this field's type to bool will allow it to be used directly in
conditions without the need for wrapped macros.

The new type requires a corresponding variable name, so rename it to
'chip_normal' to improve code readability.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260502220056.59815-3-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
drivers/staging/rtl8723bs/include/HalVerDef.h