aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2011-10-19 11:47:51 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-19 16:57:01 -0400
commitf1a61a8888afb9c21bb7efdd25f2755b01f065d3 (patch)
tree0f6908f998e1e55d6fed3688cd7abd3badeb58f7 /drivers/staging
parent9dc9961dca37379fd128508aac37e9f4928ee18f (diff)
staging:iio:dac:ad5791: Convert attributes to new naming spec
Add the missing "voltage" chan_type to the powerdown attributes. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/iio/dac/ad5791.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/iio/dac/ad5791.c b/drivers/staging/iio/dac/ad5791.c
index c465fcfdac46..9ba45f1a2379 100644
--- a/drivers/staging/iio/dac/ad5791.c
+++ b/drivers/staging/iio/dac/ad5791.c
@@ -158,24 +158,24 @@ static ssize_t ad5791_write_dac_powerdown(struct device *dev,
158 return ret ? ret : len; 158 return ret ? ret : len;
159} 159}
160 160
161static IIO_DEVICE_ATTR(out_powerdown_mode, S_IRUGO | 161static IIO_DEVICE_ATTR(out_voltage_powerdown_mode, S_IRUGO |
162 S_IWUSR, ad5791_read_powerdown_mode, 162 S_IWUSR, ad5791_read_powerdown_mode,
163 ad5791_write_powerdown_mode, 0); 163 ad5791_write_powerdown_mode, 0);
164 164
165static IIO_CONST_ATTR(out_powerdown_mode_available, 165static IIO_CONST_ATTR(out_voltage_powerdown_mode_available,
166 "6kohm_to_gnd three_state"); 166 "6kohm_to_gnd three_state");
167 167
168#define IIO_DEV_ATTR_DAC_POWERDOWN(_num, _show, _store, _addr) \ 168#define IIO_DEV_ATTR_DAC_POWERDOWN(_num, _show, _store, _addr) \
169 IIO_DEVICE_ATTR(out##_num##_powerdown, \ 169 IIO_DEVICE_ATTR(out_voltage##_num##_powerdown, \
170 S_IRUGO | S_IWUSR, _show, _store, _addr) 170 S_IRUGO | S_IWUSR, _show, _store, _addr)
171 171
172static IIO_DEV_ATTR_DAC_POWERDOWN(0, ad5791_read_dac_powerdown, 172static IIO_DEV_ATTR_DAC_POWERDOWN(0, ad5791_read_dac_powerdown,
173 ad5791_write_dac_powerdown, 0); 173 ad5791_write_dac_powerdown, 0);
174 174
175static struct attribute *ad5791_attributes[] = { 175static struct attribute *ad5791_attributes[] = {
176 &iio_dev_attr_out0_powerdown.dev_attr.attr, 176 &iio_dev_attr_out_voltage0_powerdown.dev_attr.attr,
177 &iio_dev_attr_out_powerdown_mode.dev_attr.attr, 177 &iio_dev_attr_out_voltage_powerdown_mode.dev_attr.attr,
178 &iio_const_attr_out_powerdown_mode_available.dev_attr.attr, 178 &iio_const_attr_out_voltage_powerdown_mode_available.dev_attr.attr,
179 NULL, 179 NULL,
180}; 180};
181 181