Skip to content

Commit

Permalink
HID: roccat: cleanup preprocessor macros
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Achatz authored and Jiri Kosina committed May 19, 2010
1 parent 48e7080 commit 1f749d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions drivers/hid/hid-roccat-kone.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ static ssize_t kone_sysfs_set_startup_profile(struct device *dev,
static ssize_t kone_sysfs_show_driver_version(struct device *dev,
struct device_attribute *attr, char *buf)
{
return snprintf(buf, PAGE_SIZE, DRIVER_VERSION "\n");
return snprintf(buf, PAGE_SIZE, ROCCAT_KONE_DRIVER_VERSION "\n");
}

/*
Expand Down Expand Up @@ -989,6 +989,6 @@ static void __exit kone_exit(void)
module_init(kone_init);
module_exit(kone_exit);

MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE(DRIVER_LICENSE);
MODULE_AUTHOR("Stefan Achatz");
MODULE_DESCRIPTION("USB Roccat Kone driver");
MODULE_LICENSE("GPL v2");
5 changes: 1 addition & 4 deletions drivers/hid/hid-roccat-kone.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@

#include <linux/types.h>

#define DRIVER_VERSION "v0.3.0"
#define DRIVER_AUTHOR "Stefan Achatz"
#define DRIVER_DESC "USB Roccat Kone driver"
#define DRIVER_LICENSE "GPL v2"
#define ROCCAT_KONE_DRIVER_VERSION "v0.3.1"

#pragma pack(push)
#pragma pack(1)
Expand Down

0 comments on commit 1f749d8

Please sign in to comment.