aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-cp2112.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-cp2112.c')
-rw-r--r--drivers/hid/hid-cp2112.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-cp2112.c b/drivers/hid/hid-cp2112.c
index ca0f356a2384..57cf04555a03 100644
--- a/drivers/hid/hid-cp2112.c
+++ b/drivers/hid/hid-cp2112.c
@@ -663,7 +663,7 @@ static ssize_t name##_show(struct device *kdev, \
663 return ret; \ 663 return ret; \
664 return scnprintf(buf, PAGE_SIZE, format, ##__VA_ARGS__); \ 664 return scnprintf(buf, PAGE_SIZE, format, ##__VA_ARGS__); \
665} \ 665} \
666DEVICE_ATTR_RW(name); 666static DEVICE_ATTR_RW(name);
667 667
668CP2112_CONFIG_ATTR(vendor_id, ({ 668CP2112_CONFIG_ATTR(vendor_id, ({
669 u16 vid; 669 u16 vid;
@@ -784,7 +784,7 @@ static ssize_t pstr_show(struct device *kdev,
784} 784}
785 785
786#define CP2112_PSTR_ATTR(name, _report) \ 786#define CP2112_PSTR_ATTR(name, _report) \
787struct cp2112_pstring_attribute dev_attr_##name = { \ 787static struct cp2112_pstring_attribute dev_attr_##name = { \
788 .attr = __ATTR(name, (S_IWUSR | S_IRUGO), pstr_show, pstr_store), \ 788 .attr = __ATTR(name, (S_IWUSR | S_IRUGO), pstr_show, pstr_store), \
789 .report = _report, \ 789 .report = _report, \
790}; 790};