On Tue, 3 Apr 2012, ron minnich wrote:
and one last one ... and I think I'm there.
static struct drm_crtc_funcs intel_crtc_funcs = {
.reset = intel_crtc_reset,
.cursor_set = intel_crtc_cursor_set,
.cursor_move = intel_crtc_cursor_move,
.gamma_set = intel_crtc_gamma_set,
.set_config = drm_crtc_helper_set_config,
.destroy = intel_crtc_destroy,
.page_flip = intel_crtc_page_flip,
};
I'm trying to remove more than one thing. But the {<... ...>} form
won't work but it seems I'm hitting my one chance to remove one thing
..
@@
@@
struct drm_crtc_funcs
{...
(
-void (*save)(...);
|
-void (*restore)(...);
|
-int (*cursor_set)(...);
|
-int (*cursor_move)(...);
|
-int (*page_flip)(...);
|
-void (*destroy)(...);
)
...};
Maybe just make one rule for each thing to remove?
julia
--- inputs/drm_crtc.h
+++ /tmp/cocci-output-7993-d76bdf-drm_crtc.h
@@ -305,8 +305,7 @@ struct drm_pending_vblank_event;
* bus accessors.
*/
struct drm_crtc_funcs {
- /* Save CRTC state */
- void (*save)(struct drm_crtc *crtc); /* suspend? */
+ /* Save CRTC state *//* suspend? */
/* Restore CRTC state */
void (*restore)(struct drm_crtc *crtc); /* resume? */
/* Reset CRTC state */
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)