summaryrefslogtreecommitdiff
path: root/patches/0017-get_ts_info/get_ts_info.cocci
diff options
context:
space:
mode:
Diffstat (limited to 'patches/0017-get_ts_info/get_ts_info.cocci')
-rw-r--r--patches/0017-get_ts_info/get_ts_info.cocci8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/0017-get_ts_info/get_ts_info.cocci b/patches/0017-get_ts_info/get_ts_info.cocci
index 3e023a32..43f4339f 100644
--- a/patches/0017-get_ts_info/get_ts_info.cocci
+++ b/patches/0017-get_ts_info/get_ts_info.cocci
@@ -3,9 +3,9 @@ identifier s, func;
@@
struct ethtool_ops s = {
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
++#if LINUX_VERSION_IS_GEQ(3,5,0)
.get_ts_info = func,
-+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0) */
++#endif /* LINUX_VERSION_IS_GEQ(3,5,0) */
};
// ----------------------------------------------------------------------
@@ -14,6 +14,6 @@ struct ethtool_ops s = {
identifier r1.func;
@@
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
++#if LINUX_VERSION_IS_GEQ(3,5,0)
func(...) { ... }
-+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0) */
++#endif /* LINUX_VERSION_IS_GEQ(3,5,0) */