summaryrefslogtreecommitdiff
path: root/util/i915tool/spatches/deldev.cocci
diff options
context:
space:
mode:
Diffstat (limited to 'util/i915tool/spatches/deldev.cocci')
-rw-r--r--util/i915tool/spatches/deldev.cocci29
1 files changed, 29 insertions, 0 deletions
diff --git a/util/i915tool/spatches/deldev.cocci b/util/i915tool/spatches/deldev.cocci
new file mode 100644
index 0000000000..504dae7230
--- /dev/null
+++ b/util/i915tool/spatches/deldev.cocci
@@ -0,0 +1,29 @@
+@@
+identifier dev;
+expression i;
+@@
+-struct drm_i915_private *dev = i;
++extern struct drm_device *i915; struct drm_i915_private *dev = i915->dev_private;
+@@
+identifier dev;
+expression i;
+@@
+-struct pci_dev *dev = i;
++extern struct drm_device *i915; struct pci_dev *dev = i915->pdev;
+@@
+@@
+-#include "i915_drm.h"
+@@
+@@
+-#include "drm.h"
+@@
+@@
+-#include "drmP.h"
+@@
+@@
+-#include "i915_trace.h"
+@@
+identifier d;
+@@
+-(d)->pci_device
++(d)->pdev->device_id