Re: [PATCH 3/4] staging:iio:dac:ad5791: Convert attributes to new naming spec

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/19/11 13:23, Lars-Peter Clausen wrote:
> Add the missing "voltage" chan_type to the powerdown attributes.
Dratt. I thought I'd fixed all these. Guess I forgot the
output devices.  Good catch
> 
> Signed-off-by: Lars-Peter Clausen <lars@xxxxxxxxxx>
Acked-by: Jonathan Cameron <jic23@xxxxxxxxx>
> ---
>  drivers/staging/iio/dac/ad5791.c |   12 ++++++------
>  1 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/staging/iio/dac/ad5791.c b/drivers/staging/iio/dac/ad5791.c
> index c465fcf..9ba45f1 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,
>  	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,
>  };
>  

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux