staging: vt6655: Convert macro MACvEnableProtectMD to function
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 7 Aug 2022 18:13:33 +0000 (20:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Aug 2022 13:10:41 +0000 (15:10 +0200)
commit6d9f3d12a89406486f9b77a1b68f16c0985f3c56
tree7030c356f0f3deb57d6507c97096c7b81fcd102c
parent05e778f0c74b9ff78975490c9b0eae2bf57efeb7
staging: vt6655: Convert macro MACvEnableProtectMD to function

Convert macro to static function. Multiline macros are not liked by
kernel community. Rename variable dwOrgValue to reg_value 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/f3a5ec5352346f1dc4bf3afbee25973fdb47d7e4.1659892670.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c
drivers/staging/vt6655/mac.h