diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-02-14 09:19:00 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-02-18 05:26:55 -0500 |
commit | 77bfa8baa0c230eb3d8acccd7d341f406a32cdf4 (patch) | |
tree | f65b36b7eb57a06b40c83c9bb8b9e5069c48be10 /drivers/iio/industrialio-core.c | |
parent | 92825ff97411f0121166485798cdaf2deb6b5952 (diff) |
iio: Don't include extended name in shared attributes
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>
Diffstat (limited to 'drivers/iio/industrialio-core.c')
-rw-r--r-- | drivers/iio/industrialio-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c index a85b66081fae..39fb8cc46373 100644 --- 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, | |||
558 | ->channel2], | 558 | ->channel2], |
559 | postfix); | 559 | postfix); |
560 | } else { | 560 | } else { |
561 | if (chan->extend_name == NULL) | 561 | if (chan->extend_name == NULL || shared_by != IIO_SEPARATE) |
562 | full_postfix = kstrdup(postfix, GFP_KERNEL); | 562 | full_postfix = kstrdup(postfix, GFP_KERNEL); |
563 | else | 563 | else |
564 | full_postfix = kasprintf(GFP_KERNEL, | 564 | full_postfix = kasprintf(GFP_KERNEL, |