Tag: 094c0741dec38c73793f674293dcd2026d1e77d7

staging: comedi: amplc_pci230: Convert macro GAT_CONFIG to static inline function

Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> 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 unsigned int pci230_gat_config(unsigned int …

Continue reading