Re: [PATCH v4 04/10] iio: buffer-dmaengine: Support specifying buffer direction

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

 



> @@ -268,20 +282,21 @@ static void __devm_iio_dmaengine_buffer_free(void *buffer)
>   * It also appends the INDIO_BUFFER_HARDWARE mode to the supported modes of the
>   * IIO device.
>   */
> -int devm_iio_dmaengine_buffer_setup(struct device *dev,
> -				    struct iio_dev *indio_dev,
> -				    const char *channel)
> +int devm_iio_dmaengine_buffer_setup_ext(struct device *dev,
> +					struct iio_dev *indio_dev,
> +					const char *channel,
> +					enum iio_buffer_direction dir)
Missing updates to the docs immediately above. I fixed that up.

>  {
>  	struct iio_buffer *buffer;
>  
> -	buffer = iio_dmaengine_buffer_setup(dev, indio_dev, channel);
> +	buffer = iio_dmaengine_buffer_setup_ext(dev, indio_dev, channel, dir);
>  	if (IS_ERR(buffer))
>  		return PTR_ERR(buffer);
>  
>  	return devm_add_action_or_reset(dev, __devm_iio_dmaengine_buffer_free,
>  					buffer);
>  }
> -EXPORT_SYMBOL_NS_GPL(devm_iio_dmaengine_buffer_setup, IIO_DMAENGINE_BUFFER);





[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux