mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 06:31:58 +02:00
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>
This commit is contained in:
parent
92825ff974
commit
77bfa8baa0
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user