I've done this a lot but this one case I can't figure out.

@@
identifier f;
type T;
identifier d;
expresssion E1, E2;
@@
T f(...){<...
d =
-intel_limit(E1, E2);
+ intel_limits_ironlake_dual_lvds;
...>}



int a(void){
        int i= 6;
        return i;


        limit = intel_limit(crtc, refclk);
}


(I realize the T f(...) should not be necessary but this won't work either):


@@
identifier d;
expresssion E1, E2;
@@

d =
-intel_limit(E1, E2);
+ intel_limits_ironlake_dual_lvds;
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to