]> git.sur5r.net Git - groeck-nct6775/commitdiff
Add backward compatibility support
authorGuenter Roeck <linux@roeck-us.net>
Mon, 6 Aug 2012 17:22:31 +0000 (10:22 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 6 Aug 2012 17:22:31 +0000 (10:22 -0700)
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
compat.h [new file with mode: 0644]

diff --git a/compat.h b/compat.h
new file mode 100644 (file)
index 0000000..d512397
--- /dev/null
+++ b/compat.h
@@ -0,0 +1,24 @@
+/*---------------------------------------------------------------------------
+ * 
+ * compat.h 
+ *     Copyright (c) 2012 Guenter Roeck <linux@roeck-us.net>
+ *
+ *---------------------------------------------------------------------------
+ */
+
+#ifndef COMPAT_H
+#define COMPAT_H
+
+#ifndef kstrtol
+#define kstrtol strict_strtol
+#endif
+#ifndef kstrtoul
+#define kstrtoul strict_strtoul
+#endif
+
+#ifndef request_muxed_region
+#define request_muxed_region(a, b, c) (true)
+#define release_region(a, b)
+#endif
+
+#endif /* COMPAT_H */