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:
92825ff
)
iio: Don't include extended name in shared attributes
author
Lars-Peter Clausen
<lars@metafoo.de>
Fri, 14 Feb 2014 14:19:00 +0000
(14:19 +0000)
committer
Jonathan Cameron
<jic23@kernel.org>
Tue, 18 Feb 2014 10:26:55 +0000
(10:26 +0000)
The extended name is channel specific and should not be included in shared
attributes.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-core.c
patch
|
blob
|
history
diff --git
a/drivers/iio/industrialio-core.c
b/drivers/iio/industrialio-core.c
index a85b66081faee97e2a4035675b0fa1b9b3b6a704..39fb8cc46373c38caae2711baf24a44e0fd704de 100644
(file)
--- a/
drivers/iio/industrialio-core.c
+++ b/
drivers/iio/industrialio-core.c
@@
-558,7
+558,7
@@
int __iio_device_attr_init(struct device_attribute *dev_attr,
->channel2],
postfix);
} else {
- if (chan->extend_name == NULL)
+ if (chan->extend_name == NULL
|| shared_by != IIO_SEPARATE
)
full_postfix = kstrdup(postfix, GFP_KERNEL);
else
full_postfix = kasprintf(GFP_KERNEL,