提交 cb1a2c68 编写于 作者: T Thomas Weißschuh 提交者: Jiri Kosina

HID: intel-ish-hid: use constants for modaliases

Signed-off-by: NThomas Weißschuh <linux@weissschuh.net>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 fa443bc3
...@@ -350,7 +350,7 @@ static ssize_t modalias_show(struct device *dev, struct device_attribute *a, ...@@ -350,7 +350,7 @@ static ssize_t modalias_show(struct device *dev, struct device_attribute *a,
{ {
int len; int len;
len = snprintf(buf, PAGE_SIZE, "ishtp:%s\n", dev_name(dev)); len = snprintf(buf, PAGE_SIZE, ISHTP_MODULE_PREFIX "%s\n", dev_name(dev));
return (len >= PAGE_SIZE) ? (PAGE_SIZE - 1) : len; return (len >= PAGE_SIZE) ? (PAGE_SIZE - 1) : len;
} }
static DEVICE_ATTR_RO(modalias); static DEVICE_ATTR_RO(modalias);
...@@ -363,7 +363,7 @@ ATTRIBUTE_GROUPS(ishtp_cl_dev); ...@@ -363,7 +363,7 @@ ATTRIBUTE_GROUPS(ishtp_cl_dev);
static int ishtp_cl_uevent(struct device *dev, struct kobj_uevent_env *env) static int ishtp_cl_uevent(struct device *dev, struct kobj_uevent_env *env)
{ {
if (add_uevent_var(env, "MODALIAS=ishtp:%s", dev_name(dev))) if (add_uevent_var(env, "MODALIAS=" ISHTP_MODULE_PREFIX "%s", dev_name(dev)))
return -ENOMEM; return -ENOMEM;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册