staging: vt6655: Convert macro MACvSetBBType to function
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 28 Aug 2022 06:53:29 +0000 (08:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2022 15:17:48 +0000 (17:17 +0200)
commit52b735c96aab0e1753fe268f2985633608502bce
tree7e0599e445b00e26609d9de369a64f542ee86658
parent87dec3259afb1d821db5deea6ea273ea41951af3
staging: vt6655: Convert macro MACvSetBBType to function

Convert macro to static function. Multiline macros are not liked by
kernel community. Rename variable dwOrgValue to reg_value and byTyp to
mask to avoid CamelCase which is not accepted by checkpatch.pl. Change
variable declaration to u32 as this improves readability.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/bd512f940427615ed4b134dd04f14095875eec5b.1661666677.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/card.c
drivers/staging/vt6655/mac.h