Commit 9c84c910 authored by Lukas Wunner's avatar Lukas Wunner Committed by Jonathan Cameron

iio: adc: mcp320x: Document struct mcp320x

Signed-off-by: default avatarLukas Wunner <lukas@wunner.de>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 35ed9fbf
...@@ -57,6 +57,17 @@ struct mcp320x_chip_info { ...@@ -57,6 +57,17 @@ struct mcp320x_chip_info {
unsigned int resolution; unsigned int resolution;
}; };
/**
* struct mcp320x - Microchip SPI ADC instance
* @spi: SPI slave (parent of the IIO device)
* @msg: SPI message to select a channel and receive a value from the ADC
* @transfer: SPI transfers used by @msg
* @reg: regulator generating Vref
* @lock: protects read sequences
* @chip_info: ADC properties
* @tx_buf: buffer for @transfer[0] (not used on single-channel converters)
* @rx_buf: buffer for @transfer[1]
*/
struct mcp320x { struct mcp320x {
struct spi_device *spi; struct spi_device *spi;
struct spi_message msg; struct spi_message msg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment