staging: pi433: rf69.c: Replace macros READ_REG and WRITE_REG with smarter functions
authorMarcus Wolf <linux@wolf-entwicklungen.de>
Mon, 4 Dec 2017 21:45:16 +0000 (23:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Dec 2017 15:08:40 +0000 (16:08 +0100)
commitd7b8943cf44d468961a4c153f45698928f0883d2
treee0b6090930b96ef13777753fdae832e47b795d51
parentd423c80929ba56c67a6eefc7653edd87f4ca3abe
staging: pi433: rf69.c: Replace macros READ_REG and WRITE_REG with smarter functions

To increase the readability of the register accesses, the abstraction
of the helpers was increased from simple read and write to set bit,
clear bit and read modify write bit.

Annotation: This patch contains a lot of long lines and camel case
var names. These long lines and camel case vars weren't introduced
by this patch, but were long and camel cased before.

Signed-off-by: Marcus Wolf <linux@wolf-entwicklungen.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/pi433/rf69.c