aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorBhaktipriya Shridhar <[email protected]>2016-03-22 10:28:51 +0530
committerGreg Kroah-Hartman <[email protected]>2016-03-28 07:30:36 -0700
commit094c0741dec38c73793f674293dcd2026d1e77d7 (patch)
treee0ceca2d02ca04c726ce0a06b51ed80b6f223020 /tools/perf/scripts/python/net_dropmonitor.py
parent896802a8e208997faff6e38d711cd9b13c7a2e23 (diff)
staging: comedi: amplc_pci230: 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. This was done using Coccinelle: @r@ expression e; @@ - #define GAT_CONFIG(chan, src) e + static inline unsigned int pci230_gat_config(unsigned int chan, + unsigned int src) +{ + return ((chan & 3) << 3) | (src & 7); +} @r1@ expression dev,reg,chan,src; @@ -GAT_CONFIG(chan, src) +pci230_gat_config(chan, src) Also, the comment describing the macro has been removed manually. Signed-off-by: Bhaktipriya Shridhar <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions