|
@@ -558,7 +558,7 @@ int __iio_device_attr_init(struct device_attribute *dev_attr,
|
|
->channel2],
|
|
->channel2],
|
|
postfix);
|
|
postfix);
|
|
} else {
|
|
} else {
|
|
- if (chan->extend_name == NULL)
|
|
|
|
|
|
+ if (chan->extend_name == NULL || shared_by != IIO_SEPARATE)
|
|
full_postfix = kstrdup(postfix, GFP_KERNEL);
|
|
full_postfix = kstrdup(postfix, GFP_KERNEL);
|
|
else
|
|
else
|
|
full_postfix = kasprintf(GFP_KERNEL,
|
|
full_postfix = kasprintf(GFP_KERNEL,
|