staging: comedi: amplc_pci224: Convert macro GAT_CONFIG to static inline function
authorsimran singhal <singhalsimran0@gmail.com>
Sun, 12 Mar 2017 16:55:42 +0000 (22:25 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Mar 2017 22:27:31 +0000 (06:27 +0800)
commitcb52fce16027d79a97d0870a1110d4a4493fa0a8
treef578a27b2052e8309f8cc032eec27f68cc8eaf90
parent06cb6b5434937180251d0ddb3d9a4cb2af6015da
staging: comedi: amplc_pci224: Convert macro GAT_CONFIG to static inline function

Convert macro GAT_CONFIG to static inline function as static inline
functions are preferred over macros. This change is possible since the
arguments at all call sites have the same type.

The uses were updated with Coccinelle:

@r1@
expression dev,reg,chan,src;
@@
-GAT_CONFIG(chan, src)
+pci224_gat_config(chan, src)

Also, the comment describing the macro has been removed.

Signed-off-by: simran singhal <singhalsimran0@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_pci224.c