staging:iio:dac:ad5791: Convert attributes to new naming spec
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 19 Oct 2011 15:47:51 +0000 (17:47 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 19 Oct 2011 20:57:01 +0000 (13:57 -0700)
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>
drivers/staging/iio/dac/ad5791.c

index c465fcfdac461c645996e0948518063b6a4175a6..9ba45f1a23798e8e4d85d890acc3fc2d35fdd65e 100644 (file)
@@ -158,24 +158,24 @@ static ssize_t ad5791_write_dac_powerdown(struct device *dev,
        return ret ? ret : len;
 }
 
-static IIO_DEVICE_ATTR(out_powerdown_mode, S_IRUGO |
+static IIO_DEVICE_ATTR(out_voltage_powerdown_mode, S_IRUGO |
                        S_IWUSR, ad5791_read_powerdown_mode,
                        ad5791_write_powerdown_mode, 0);
 
-static IIO_CONST_ATTR(out_powerdown_mode_available,
+static IIO_CONST_ATTR(out_voltage_powerdown_mode_available,
                        "6kohm_to_gnd three_state");
 
 #define IIO_DEV_ATTR_DAC_POWERDOWN(_num, _show, _store, _addr)         \
-       IIO_DEVICE_ATTR(out##_num##_powerdown,                          \
+       IIO_DEVICE_ATTR(out_voltage##_num##_powerdown,                  \
                        S_IRUGO | S_IWUSR, _show, _store, _addr)
 
 static IIO_DEV_ATTR_DAC_POWERDOWN(0, ad5791_read_dac_powerdown,
                                   ad5791_write_dac_powerdown, 0);
 
 static struct attribute *ad5791_attributes[] = {
-       &iio_dev_attr_out0_powerdown.dev_attr.attr,
-       &iio_dev_attr_out_powerdown_mode.dev_attr.attr,
-       &iio_const_attr_out_powerdown_mode_available.dev_attr.attr,
+       &iio_dev_attr_out_voltage0_powerdown.dev_attr.attr,
+       &iio_dev_attr_out_voltage_powerdown_mode.dev_attr.attr,
+       &iio_const_attr_out_voltage_powerdown_mode_available.dev_attr.attr,
        NULL,
 };