Skip to content

Commit

Permalink
HID: cp2112: make sysfs attributes static
Browse files Browse the repository at this point in the history
No need to pollute namespace with dev_attr_*.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Jiri Kosina committed Feb 17, 2014
1 parent e932d81 commit c3c041b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/hid/hid-cp2112.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ static ssize_t name##_show(struct device *kdev, \
return ret; \
return scnprintf(buf, PAGE_SIZE, format, ##__VA_ARGS__); \
} \
DEVICE_ATTR_RW(name);
static DEVICE_ATTR_RW(name);

CP2112_CONFIG_ATTR(vendor_id, ({
u16 vid;
Expand Down Expand Up @@ -784,7 +784,7 @@ static ssize_t pstr_show(struct device *kdev,
}

#define CP2112_PSTR_ATTR(name, _report) \
struct cp2112_pstring_attribute dev_attr_##name = { \
static struct cp2112_pstring_attribute dev_attr_##name = { \
.attr = __ATTR(name, (S_IWUSR | S_IRUGO), pstr_show, pstr_store), \
.report = _report, \
};
Expand Down

0 comments on commit c3c041b

Please sign in to comment.