Skip to contentSkip to conversation

input synaptics-rmi4: Add rmi_version.h

PATCH New Christopher Heiny 1 participant 1 message Jan 7, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 input synaptics-rmi4: Add rmi_version.h

Adds a file containing driver versioning #defines, allowing convenient script-based tweakage of various versioning info. This is helpful to differentiate various custom and/or development versions of the driver from the main branch of the code.

Since rmi_driver.h changes as a result, its copyright date gets updated.

Cc Dmitry Torokhov <[email protected]>
Cc Benjamin Tissoires <[email protected]>

---

 drivers/input/rmi4/rmi_driver.h  |  5 ++---
 drivers/input/rmi4/rmi_version.h | 24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 3 deletions(-)
drivers/input/rmi4/rmi_driver.h +2 -3
index df9ddd8..4438b20 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011-2013 Synaptics Incorporated
+ * Copyright (c) 2011-2014 Synaptics Incorporated
  * Copyright (c) 2011 Unixphere
  *
  * This program is free software; you can redistribute it and/or modify it
@@ -14,8 +14,7 @@
 #include <linux/hrtimer.h>
 #include <linux/ktime.h>
 #include "rmi_bus.h"
-
-#define RMI_DRIVER_VERSION "1.6"
+#include "rmi_version.h"
 
 #define SYNAPTICS_INPUT_DEVICE_NAME "Synaptics RMI4 Touch Sensor"
 #define SYNAPTICS_VENDOR_ID 0x06cb
drivers/input/rmi4/rmi_version.h new file +24 -0
new file mode 100644
index 0000000..ed001fa
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2014 Synaptics Incorporated
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published by
+ * the Free Software Foundation.
+ */
+
+#ifndef RMI_VERSION_H
+#define RMI_VERSION_H
+
+#define RMI_VERSION_MAJOR "1"
+#define RMI_VERSION_MINOR "19"
+#define RMI_VERSION_SUBMINOR "0"
+
+#define RMI_VERSION_BRANCH "synaptics-rmi4"
+#define RMI_EXTRA_NUMBER "0"
+#define RMI_EXTRA_STRING "0"
+
+#define RMI_DRIVER_VERSION RMI_VERSION_MAJOR "." \
+	RMI_VERSION_MINOR "." RMI_VERSION_SUBMINOR "-" \
+	RMI_EXTRA_STRING
+
+#endif