]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vt6655: Convert macro vt6655_mac_clear_stck_ds to function
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Thu, 28 Jul 2022 05:59:45 +0000 (07:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jul 2022 08:43:24 +0000 (10:43 +0200)
commit1920c92b1392bcf22dd60680070108f564115d4d
treead352d0d97102337be13e5b62dafe6e78846af7d
parent9fa30c024bce406ad8d7a22f8185a85c491ccf3e
staging: vt6655: Convert macro vt6655_mac_clear_stck_ds to function

Convert once used macro to static function. Multiline macros are not
liked by kernel community. Rename variable byOrgValue to reg_value to
avoid CamelCase which is not accepted by checkpatch.pl. Change variable
declaration to u8 as this improves readability.

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