projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dd72ec
)
staging:iio:core shared attrs do not work with modifier.
author
Jonathan Cameron
<jic23@cam.ac.uk>
Wed, 26 Oct 2011 16:27:42 +0000
(17:27 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Sun, 27 Nov 2011 00:30:30 +0000
(16:30 -0800)
The logic building the name had a small bug where
it did not verify if it was generic before applying the
modifier.
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/industrialio-core.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/industrialio-core.c
b/drivers/staging/iio/industrialio-core.c
index 26564094e33b9512561a86a47b4c2705e4a38d8f..fbf24bdc56d9f578c0a1d3deb6bada767091c88b 100644
(file)
--- a/
drivers/staging/iio/industrialio-core.c
+++ b/
drivers/staging/iio/industrialio-core.c
@@
-416,7
+416,7
@@
int __iio_device_attr_init(struct device_attribute *dev_attr,
sysfs_attr_init(&dev_attr->attr);
/* Build up postfix of <extend_name>_<modifier>_postfix */
- if (chan->modified) {
+ if (chan->modified
&& !generic
) {
if (chan->extend_name)
full_postfix = kasprintf(GFP_KERNEL, "%s_%s_%s",
iio_modifier_names[chan