Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: vt6655: Rename `by_preamble_type` parameter

Drop Hungarian notation prefix in the first parameter of
`bb_get_frame_time` function. Update the comment to
reflect that change.

Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com>
Link: https://lore.kernel.org/r/20211020132326.417059-1-karolinadrobnik@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Karolina Drobnik and committed by
Greg Kroah-Hartman
1263c10c cf8f6446

+4 -4
+3 -3
drivers/staging/vt6655/baseband.c
··· 1691 1691 * 1692 1692 * Parameters: 1693 1693 * In: 1694 - * by_preamble_type - Preamble Type 1694 + * preamble_type - Preamble Type 1695 1695 * by_pkt_type - PK_TYPE_11A, PK_TYPE_11B, PK_TYPE_11GB, PK_TYPE_11GA 1696 1696 * cb_frame_length - Baseband Type 1697 1697 * tx_rate - Tx Rate ··· 1700 1700 * Return Value: FrameTime 1701 1701 * 1702 1702 */ 1703 - unsigned int bb_get_frame_time(unsigned char by_preamble_type, 1703 + unsigned int bb_get_frame_time(unsigned char preamble_type, 1704 1704 unsigned char by_pkt_type, 1705 1705 unsigned int cb_frame_length, 1706 1706 unsigned short tx_rate) ··· 1717 1717 rate = (unsigned int)awc_frame_time[rate_idx]; 1718 1718 1719 1719 if (rate_idx <= 3) { /* CCK mode */ 1720 - if (by_preamble_type == 1) /* Short */ 1720 + if (preamble_type == 1) /* Short */ 1721 1721 preamble = 96; 1722 1722 else 1723 1723 preamble = 192;
+1 -1
drivers/staging/vt6655/baseband.h
··· 44 44 #define TOP_RATE_2M 0x00200000 45 45 #define TOP_RATE_1M 0x00100000 46 46 47 - unsigned int bb_get_frame_time(unsigned char by_preamble_type, 47 + unsigned int bb_get_frame_time(unsigned char preamble_type, 48 48 unsigned char by_pkt_type, 49 49 unsigned int cb_frame_length, 50 50 unsigned short w_rate);