From: Lars-Peter Clausen Date: Fri, 14 Feb 2014 14:19:00 +0000 (+0000) Subject: iio: Don't include extended name in shared attributes X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=77bfa8baa0c230eb3d8acccd7d341f406a32cdf4;p=deliverable%2Flinux.git 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 Signed-off-by: Jonathan Cameron --- 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, ->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,