aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2017-09-09 20:32:41 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-09-24 12:34:56 +0100
commit9c84c9101b9b4604c183f75a43fe7875ecce8bcd (patch)
tree0b9a0a7795a51315ec864be2fc9f0a18bb7dee41 /drivers/iio/adc
parentiio: adc: mcp320x: Drop unnecessary of_device_id attributes (diff)
downloadlinux-dev-9c84c9101b9b4604c183f75a43fe7875ecce8bcd.tar.xz
linux-dev-9c84c9101b9b4604c183f75a43fe7875ecce8bcd.zip
iio: adc: mcp320x: Document struct mcp320x
Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc')
-rw-r--r--drivers/iio/adc/mcp320x.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/iio/adc/mcp320x.c b/drivers/iio/adc/mcp320x.c
index 40a0cd72e074..a41956eb3379 100644
--- a/drivers/iio/adc/mcp320x.c
+++ b/drivers/iio/adc/mcp320x.c
@@ -57,6 +57,17 @@ struct mcp320x_chip_info {
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 spi_device *spi;
struct spi_message msg;