summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-roccat-kone.c
diff options
context:
space:
mode:
authorStefan Achatz <erazor_de@users.sourceforge.net>2013-09-28 05:57:46 +0200
committerJiri Kosina <jkosina@suse.cz>2013-09-30 10:51:31 +0200
commit550dbf47819239c7ceb27bbd9879e2feb0633aab (patch)
tree128c4c6f19a94eeed52d5428e25dce582641e951 /drivers/hid/hid-roccat-kone.c
parent19872d20c890073c5207d9e02bb8f14d451a11eb (diff)
downloadlinux-stable-550dbf47819239c7ceb27bbd9879e2feb0633aab.tar.gz
linux-stable-550dbf47819239c7ceb27bbd9879e2feb0633aab.tar.bz2
linux-stable-550dbf47819239c7ceb27bbd9879e2feb0633aab.zip
HID: roccat: Fix "cannot create duplicate filename" problems
Fixing some wrong macro stringification/concatenation. Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Stefan Achatz <erazor_de@users.sourceforge.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-roccat-kone.c')
-rw-r--r--drivers/hid/hid-roccat-kone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-roccat-kone.c b/drivers/hid/hid-roccat-kone.c
index 602c188e9d86..6101816a7ddd 100644
--- a/drivers/hid/hid-roccat-kone.c
+++ b/drivers/hid/hid-roccat-kone.c
@@ -382,7 +382,7 @@ static ssize_t kone_sysfs_write_profilex(struct file *fp,
}
#define PROFILE_ATTR(number) \
static struct bin_attribute bin_attr_profile##number = { \
- .attr = { .name = "profile##number", .mode = 0660 }, \
+ .attr = { .name = "profile" #number, .mode = 0660 }, \
.size = sizeof(struct kone_profile), \
.read = kone_sysfs_read_profilex, \
.write = kone_sysfs_write_profilex, \