Re: [PATCH] staging: comedi: amplc_pci224: Convert macro GAT_CONFIG to static inline function

2017-03-12 Thread SIMRAN SINGHAL
On Sun, Mar 12, 2017 at 7:26 PM, Greg KH wrote: > On Fri, Mar 10, 2017 at 06:12:31PM +0530, simran singhal wrote: >> Convert macro GAT_CONFIG to static inline function as static inline >> functions are preferred over macros. This change is possible since the >>

Re: [PATCH] staging: comedi: amplc_pci224: Convert macro GAT_CONFIG to static inline function

2017-03-12 Thread Greg KH
On Fri, Mar 10, 2017 at 06:12:31PM +0530, simran singhal wrote: > 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. > > This was done using Coccinelle: > >

[PATCH] staging: comedi: amplc_pci224: Convert macro GAT_CONFIG to static inline function

2017-03-10 Thread simran singhal
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. This was done using Coccinelle: @r@ expression e; @@ - #define GAT_CONFIG(chan, src) e + static inline