Skip to content

Commit 1f749d8

Browse files
Stefan AchatzJiri Kosina
authored andcommitted
HID: roccat: cleanup preprocessor macros
Removed useless preprocessor macros and renamed remaining one to be more qualified. Signed-off-by: Stefan Achatz <erazor_de@users.sourceforge.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 48e7080 commit 1f749d8

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

‎drivers/hid/hid-roccat-kone.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ static ssize_t kone_sysfs_set_startup_profile(struct device *dev,
630630
static ssize_t kone_sysfs_show_driver_version(struct device *dev,
631631
struct device_attribute *attr, char *buf)
632632
{
633-
return snprintf(buf, PAGE_SIZE, DRIVER_VERSION "\n");
633+
return snprintf(buf, PAGE_SIZE, ROCCAT_KONE_DRIVER_VERSION "\n");
634634
}
635635

636636
/*
@@ -989,6 +989,6 @@ static void __exit kone_exit(void)
989989
module_init(kone_init);
990990
module_exit(kone_exit);
991991

992-
MODULE_AUTHOR(DRIVER_AUTHOR);
993-
MODULE_DESCRIPTION(DRIVER_DESC);
994-
MODULE_LICENSE(DRIVER_LICENSE);
992+
MODULE_AUTHOR("Stefan Achatz");
993+
MODULE_DESCRIPTION("USB Roccat Kone driver");
994+
MODULE_LICENSE("GPL v2");

‎drivers/hid/hid-roccat-kone.h‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414

1515
#include <linux/types.h>
1616

17-
#define DRIVER_VERSION "v0.3.0"
18-
#define DRIVER_AUTHOR "Stefan Achatz"
19-
#define DRIVER_DESC "USB Roccat Kone driver"
20-
#define DRIVER_LICENSE "GPL v2"
17+
#define ROCCAT_KONE_DRIVER_VERSION "v0.3.1"
2118

2219
#pragma pack(push)
2320
#pragma pack(1)

0 commit comments

Comments
 (0)