Input: remove unneeded MODULE_VERSION usage
Subsystems (3)
cover Input: remove unneeded MODULE_VERSION usage
Here's a short patch series against linux-next at the moment, that removes all of the MODULE_VERSION() usage in drivers/input/ as it's not needed at all.
Greg Kroah-Hartman (6):
Input: rmi4: remove unneeded MODULE_VERSION() usage
Input: keyboard: pmic8xxx: remove unneeded MODULE_VERSION() usage
Input: mouse: elan_i2c: remove unneeded MODULE_VERSION() usage
Input: touchscreen: remove unneeded MODULE_VERSION() usage
Input: misc: remove unneeded MODULE_VERSION() usage
Input: remove remaining unneeded MODULE_VERSION() usage
drivers/input/input-polldev.c | 1 - drivers/input/keyboard/pmic8xxx-keypad.c | 1 - drivers/input/misc/apanel.c | 2 -- drivers/input/misc/ati_remote2.c | 2 -- drivers/input/misc/uinput.c | 1 - drivers/input/mouse/elan_i2c_core.c | 2 -- drivers/input/rmi4/rmi_bus.c | 1 - drivers/input/rmi4/rmi_driver.h | 2 -- drivers/input/rmi4/rmi_i2c.c | 1 - drivers/input/rmi4/rmi_spi.c | 1 - drivers/input/sparse-keymap.c | 1 - drivers/input/touchscreen/colibri-vf50-ts.c | 2 -- drivers/input/touchscreen/elants_i2c.c | 2 -- drivers/input/touchscreen/melfas_mip4.c | 1 - drivers/input/touchscreen/wdt87xx_i2c.c | 2 -- 15 files changed, 22 deletions(-)
Signature · 1 line
2.15.0
PATCH 1/6 Input: rmi4: remove unneeded MODULE_VERSION() usage
MODULE_VERSION is useless for in-kernel drivers, so just remove all usage of it in the rmi4 drivers. Now that this is gone, the RMI_DRIVER_VERSION macro was also removed as it was pointless.
--- drivers/input/rmi4/rmi_bus.c | 1 - drivers/input/rmi4/rmi_driver.h | 2 -- drivers/input/rmi4/rmi_i2c.c | 1 - drivers/input/rmi4/rmi_spi.c | 1 - 4 files changed, 5 deletions(-)
drivers/input/rmi4/rmi_bus.c +0 -1
@@ -427,4 +427,3 @@ MODULE_AUTHOR("Christopher Heiny <[email protected]");MODULE_AUTHOR ("Andrew Duggan <[email protected]" );MODULE_DESCRIPTION ("RMI bus" );MODULE_LICENSE ("GPL" ); -MODULE_VERSION (RMI_DRIVER_VERSION );
drivers/input/rmi4/rmi_driver.h +0 -2
@@ -16,8 +16,6 @@#include <linux/input.h> #include "rmi_bus.h" -#define RMI_DRIVER_VERSION "2.0" -#define SYNAPTICS_INPUT_DEVICE_NAME "Synaptics RMI4 Touch Sensor"#define SYNAPTICS_VENDOR_ID 0x06cb
drivers/input/rmi4/rmi_i2c.c +0 -1
@@ -391,4 +391,3 @@ MODULE_AUTHOR("Christopher Heiny <[email protected]>");MODULE_AUTHOR ("Andrew Duggan <[email protected]>" );MODULE_DESCRIPTION ("RMI I2C driver" );MODULE_LICENSE ("GPL" ); -MODULE_VERSION (RMI_DRIVER_VERSION );
drivers/input/rmi4/rmi_spi.c +0 -1
@@ -528,4 +528,3 @@ MODULE_AUTHOR("Christopher Heiny <[email protected]>");MODULE_AUTHOR ("Andrew Duggan <[email protected]>" );MODULE_DESCRIPTION ("RMI SPI driver" );MODULE_LICENSE ("GPL" ); -MODULE_VERSION (RMI_DRIVER_VERSION );
Signature · 1 line
2.15.0
PATCH 2/6 Input: keyboard: pmic8xxx: remove unneeded MODULE_VERSION() usage
In reply to Greg Kroah-HartmanMODULE_VERSION is useless for in-kernel drivers, so remove the use of it in the pmic8xxx-keyboard driver.
--- drivers/input/keyboard/pmic8xxx-keypad.c | 1 - 1 file changed, 1 deletion(-)
drivers/input/keyboard/pmic8xxx-keypad.c +0 -1
@@ -697,6 +697,5 @@ module_platform_driver(pmic8xxx_kp_driver);MODULE_LICENSE ("GPL v2" );MODULE_DESCRIPTION ("PMIC8XXX keypad driver" ); -MODULE_VERSION ("1.0" );MODULE_ALIAS ("platform:pmic8xxx_keypad" );MODULE_AUTHOR ("Trilok Soni <[email protected]>" );
Signature · 1 line
2.15.0
PATCH 3/6 Input: mouse: elan_i2c: remove unneeded MODULE_VERSION() usage
In reply to Greg Kroah-HartmanMODULE_VERSION is useless for in-kernel drivers, so just remove all usage of it in the elan_i2c mouse driver. Now that this is gone, the ELAN_DRIVER_VERSION define was also removed as it was pointless.
--- drivers/input/mouse/elan_i2c_core.c | 2 -- 1 file changed, 2 deletions(-)
drivers/input/mouse/elan_i2c_core.c +0 -2
@@ -42,7 +42,6 @@#include "elan_i2c.h" #define DRIVER_NAME "elan_i2c" -#define ELAN_DRIVER_VERSION "1.6.3"#define ELAN_VENDOR_ID 0x04f3#define ETP_MAX_PRESSURE 255#define ETP_FWIDTH_REDUCE 90
@@ -1294,4 +1293,3 @@ module_i2c_driver(elan_driver);MODULE_AUTHOR ("Duson Lin <[email protected]>" );MODULE_DESCRIPTION ("Elan I2C/SMBus Touchpad driver" );MODULE_LICENSE ("GPL" ); -MODULE_VERSION (ELAN_DRIVER_VERSION );
Signature · 1 line
2.15.0
PATCH 4/6 Input: touchscreen: remove unneeded MODULE_VERSION() usage
In reply to Greg Kroah-HartmanMODULE_VERSION is useless for in-kernel drivers, so just remove all usage of it in the touchscreen drivers. Along with this, some DRV_VERSION macros were removed as they are also pointless.
--- drivers/input/touchscreen/colibri-vf50-ts.c | 2 -- drivers/input/touchscreen/elants_i2c.c | 2 -- drivers/input/touchscreen/melfas_mip4.c | 1 - drivers/input/touchscreen/wdt87xx_i2c.c | 2 -- 4 files changed, 7 deletions(-)
drivers/input/touchscreen/colibri-vf50-ts.c +0 -2
@@ -28,7 +28,6 @@#include <linux/types.h> #define DRIVER_NAME "colibri-vf50-ts" -#define DRV_VERSION "1.0"#define VF_ADC_MAX ((1 << 12) - 1)
@@ -382,4 +381,3 @@ module_platform_driver(vf50_touch_driver);MODULE_AUTHOR ("Sanchayan Maity" );MODULE_DESCRIPTION ("Colibri VF50 Touchscreen driver" );MODULE_LICENSE ("GPL" ); -MODULE_VERSION (DRV_VERSION );
drivers/input/touchscreen/elants_i2c.c +0 -2
@@ -44,7 +44,6 @@/* Device, Driver information */ #define DEVICE_NAME "elants_i2c" -#define DRV_VERSION "1.0.9"/* Convert from rows or columns into resolution */ #define ELAN_TS_RESOLUTION (n, m) (((n) - 1) * (m))
@@ -1402,5 +1401,4 @@ module_i2c_driver(elants_i2c_driver);MODULE_AUTHOR ("Scott Liu <[email protected]>" );MODULE_DESCRIPTION ("Elan I2c Touchscreen driver" ); -MODULE_VERSION (DRV_VERSION );MODULE_LICENSE ("GPL" );
drivers/input/touchscreen/melfas_mip4.c +0 -1
@@ -1611,6 +1611,5 @@ static struct i2c_driver mip4_driver = {module_i2c_driver (mip4_driver);MODULE_DESCRIPTION ("MELFAS MIP4 Touchscreen" ); -MODULE_VERSION ("2016.10.31" );MODULE_AUTHOR ("Sangwon Jee <[email protected]>" );MODULE_LICENSE ("GPL" );
drivers/input/touchscreen/wdt87xx_i2c.c +0 -2
@@ -23,7 +23,6 @@#include <asm/unaligned.h> #define WDT87XX_NAME "wdt87xx_i2c" -#define WDT87XX_DRV_VER "0.9.8"#define WDT87XX_FW_NAME "wdt87xx_fw.bin"#define WDT87XX_CFG_NAME "wdt87xx_cfg.bin"
@@ -1183,5 +1182,4 @@ module_i2c_driver(wdt87xx_driver);MODULE_AUTHOR ("HN Chen <[email protected]>" );MODULE_DESCRIPTION ("WeidaHiTech WDT87XX Touchscreen driver" ); -MODULE_VERSION (WDT87XX_DRV_VER );MODULE_LICENSE ("GPL" );
Signature · 1 line
2.15.0
PATCH 5/6 Input: misc: remove unneeded MODULE_VERSION() usage
In reply to Greg Kroah-HartmanMODULE_VERSION is useless for in-kernel drivers, so just remove all usage of it in the misc input drivers. Along with this, some DRIVER_VERSION macros were removed as they are also pointless.
--- drivers/input/misc/apanel.c | 2 -- drivers/input/misc/ati_remote2.c | 2 -- drivers/input/misc/uinput.c | 1 - 3 files changed, 5 deletions(-)
drivers/input/misc/apanel.c +0 -2
@@ -26,7 +26,6 @@#include <linux/leds.h> #define APANEL_NAME "Fujitsu Application Panel" -#define APANEL_VERSION "1.3.1"#define APANEL "apanel"/* How often we poll keys - msecs */
@@ -345,7 +344,6 @@ module_exit(apanel_cleanup);MODULE_AUTHOR ("Stephen Hemminger <[email protected]>" );MODULE_DESCRIPTION (APANEL_NAME " driver" );MODULE_LICENSE ("GPL" ); -MODULE_VERSION (APANEL_VERSION );MODULE_ALIAS ("dmi:*:svnFUJITSU:pnLifeBook*:pvr*:rvnFUJITSU:*" );MODULE_ALIAS ("dmi:*:svnFUJITSU:pnLifebook*:pvr*:rvnFUJITSU:*" );
drivers/input/misc/ati_remote2.c +0 -2
@@ -14,10 +14,8 @@#include <linux/module.h> #define DRIVER_DESC "ATI/Philips USB RF remote driver" -#define DRIVER_VERSION "0.3"MODULE_DESCRIPTION (DRIVER_DESC ); -MODULE_VERSION (DRIVER_VERSION );MODULE_AUTHOR ("Ville Syrjala <[email protected]>" );MODULE_LICENSE ("GPL" );
drivers/input/misc/uinput.c +0 -1
@@ -1085,4 +1085,3 @@ MODULE_ALIAS("devname:" UINPUT_NAME);MODULE_AUTHOR ("Aristeu Sergio Rozanski Filho" );MODULE_DESCRIPTION ("User level driver support for input subsystem" );MODULE_LICENSE ("GPL" ); -MODULE_VERSION ("0.3" );
Signature · 1 line
2.15.0
PATCH 6/6 Input: remove remaining unneeded MODULE_VERSION() usage
In reply to Greg Kroah-HartmanMODULE_VERSION is useless for in-kernel drivers, so just remove all usage of it in the remaining few input drivers that still used it (input-polldev and sparse-keymap).
--- drivers/input/input-polldev.c | 1 - drivers/input/sparse-keymap.c | 1 - 2 files changed, 2 deletions(-)
drivers/input/input-polldev.c +0 -1
@@ -20,7 +20,6 @@MODULE_AUTHOR ("Dmitry Torokhov <[email protected]>" );MODULE_DESCRIPTION ("Generic implementation of a polled input device" );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION ("0.1" );static void input_polldev_queue_work (struct input_polled_dev *dev) {
drivers/input/sparse-keymap.c +0 -1
@@ -21,7 +21,6 @@MODULE_AUTHOR ("Dmitry Torokhov <[email protected]>" );MODULE_DESCRIPTION ("Generic support for sparse keymaps" );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION ("0.1" );static unsigned int sparse_keymap_get_key_index (struct input_dev *dev,const struct key_entry *k)
Signature · 1 line
2.15.0
Dmitry Torokhov
maintainerQuoted 11 lines · Greg Kroah-Hartman
Here's a short patch series against linux-next at the moment, that removes all of the
MODULE_VERSION()usage indrivers/input/as it's not needed at all.Greg Kroah-Hartman (6):
Input: rmi4: remove unneededMODULE_VERSION()usage
Input: keyboard: pmic8xxx: remove unneededMODULE_VERSION()usage
Input: mouse:elan_i2c: remove unneededMODULE_VERSION()usage
Input: touchscreen: remove unneededMODULE_VERSION()usage
Input: misc: remove unneededMODULE_VERSION()usage
Input: remove remaining unneededMODULE_VERSION()usage
Applied the lot, thank you Greg.
Quoted 21 lines
drivers/input/input-polldev.c | 1 - drivers/input/keyboard/pmic8xxx-keypad.c | 1 - drivers/input/misc/apanel.c | 2 -- drivers/input/misc/ati_remote2.c | 2 -- drivers/input/misc/uinput.c | 1 - drivers/input/mouse/elan_i2c_core.c | 2 -- drivers/input/rmi4/rmi_bus.c | 1 - drivers/input/rmi4/rmi_driver.h | 2 -- drivers/input/rmi4/rmi_i2c.c | 1 - drivers/input/rmi4/rmi_spi.c | 1 - drivers/input/sparse-keymap.c | 1 - drivers/input/touchscreen/colibri-vf50-ts.c | 2 -- drivers/input/touchscreen/elants_i2c.c | 2 -- drivers/input/touchscreen/melfas_mip4.c | 1 - drivers/input/touchscreen/wdt87xx_i2c.c | 2 -- 15 files changed, 22 deletions(-)Signature · 1 line
2.15.0
Signature · 1 line
Dmitry