staging: unisys: visorbus: Convert macros to functions.
authorDavid Kershner <david.kershner@unisys.com>
Wed, 30 Aug 2017 17:36:15 +0000 (13:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Aug 2017 16:17:38 +0000 (18:17 +0200)
commitc0616454cbdc06b98d83a732055822dd1fa135c7
tree9f8bbf8230930604396406781a3f7e51afca39d4
parent74e1129b906c516df21abc40cbbd1ffe1dd9e5da
staging: unisys: visorbus: Convert macros to functions.

Several macros in visorchannel.c were doing complex arithmetic, converted
them to functions so that valid type checking could be done.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: Tim Sell <timothy.sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorchannel.c