提交 08ca3b78 编写于 作者: L Lars-Peter Clausen 提交者: Jonathan Cameron

staging:iio:ad7793: Follow new IIO naming spec

Make the "in-in_scale_available" attribute follow the new naming spec and
rename it to "in_voltage-voltage_scale_available".
Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 2a9e0662
...@@ -563,8 +563,9 @@ static ssize_t ad7793_show_scale_available(struct device *dev, ...@@ -563,8 +563,9 @@ static ssize_t ad7793_show_scale_available(struct device *dev,
return len; return len;
} }
static IIO_DEVICE_ATTR_NAMED(in_m_in_scale_available, in-in_scale_available, static IIO_DEVICE_ATTR_NAMED(in_m_in_scale_available,
S_IRUGO, ad7793_show_scale_available, NULL, 0); in_voltage-voltage_scale_available, S_IRUGO,
ad7793_show_scale_available, NULL, 0);
static struct attribute *ad7793_attributes[] = { static struct attribute *ad7793_attributes[] = {
&iio_dev_attr_sampling_frequency.dev_attr.attr, &iio_dev_attr_sampling_frequency.dev_attr.attr,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册