summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2014-02-17 23:40:20 +0100
committerJiri Kosina <jkosina@suse.cz>2014-02-17 23:40:20 +0100
commitc3c041ba4c61535d7f5a36230c8dfdff2a9a70bb (patch)
treed77a87e204d3f68bf9af79c892dcebfd145704d8
parente932d817866770d456815c9a84b7ed94f0589d80 (diff)
downloadblackbird-op-linux-c3c041ba4c61535d7f5a36230c8dfdff2a9a70bb.tar.gz
blackbird-op-linux-c3c041ba4c61535d7f5a36230c8dfdff2a9a70bb.zip
HID: cp2112: make sysfs attributes static
No need to pollute namespace with dev_attr_*. Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-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, \
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;
@@ -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, \
};
OpenPOWER on IntegriCloud