iio: kernel-doc fixups
Subsystems (2)
Jonathan Cameron
maintainercover iio: kernel-doc fixups
From: Jonathan Cameron <[email protected]>
A bunch of totally trivial kernel-doc fixes from W=1 builds.
Note I've not touched staging drivers as those are a good activity for anyone who wants to get started working with IIO drivers. I'll post a specific email about that in a few minutes.
Jonathan Cameron (8):
iio: pressure: zpa2326: kernel-doc fixes
iio: adc: ti-adc084s021: kernel-doc fixes, missing function names
iio: dac: ad5770r: kernel-doc fix case of letter R wrong in structure
name
iio: dac: ad5504: fix wrong part number in kernel-doc structure name.
iio: adc: cpcap-adc: kernel-doc fix - that should be _ in structure
name
iio: adc: adi-axi-adc: Drop false marking for kernel-doc
iio: accel: sca3000: kernel-doc fixes. Missing - and wrong function
names.
iio: buffer: kfifo_buf: kernel-doc, typo in function name.
drivers/iio/accel/sca3000.c | 8 ++++---- drivers/iio/adc/adi-axi-adc.c | 2 +- drivers/iio/adc/cpcap-adc.c | 2 +- drivers/iio/adc/ti-adc084s021.c | 4 ++-- drivers/iio/buffer/kfifo_buf.c | 2 +- drivers/iio/dac/ad5504.c | 2 +- drivers/iio/dac/ad5770r.c | 2 +- drivers/iio/pressure/zpa2326.c | 4 ++-- 8 files changed, 13 insertions(+), 13 deletions(-)
Signature · 1 line
2.30.2
Jonathan Cameron
maintainerPATCH 1/8 iio: pressure: zpa2326: kernel-doc fixes
From: Jonathan Cameron <[email protected]>
Two comment blocks had wrong naming for function/structures that they referred to. Results in warnings when doing a W=1 build.
--- drivers/iio/pressure/zpa2326.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/iio/pressure/zpa2326.c +2 -2
@@ -103,7 +103,7 @@ static const struct zpa2326_frequency *zpa2326_highest_frequency(void) }/** -* struct zpa_private - Per-device internal private state +* struct zpa2326_private - Per-device internal private state * @timestamp: Buffered samples ready datum. * @regmap: Underlying I2C / SPI bus adapter used to abstract slave register * accesses.
@@ -1382,7 +1382,7 @@ static const struct iio_trigger_ops zpa2326_trigger_ops = { };/** -* zpa2326_init_trigger() - Create an interrupt driven / hardware trigger +* zpa2326_init_managed_trigger() - Create interrupt driven / hardware trigger * allowing to notify external devices a new sample is * ready. * @parent: Hardware sampling device @indio_dev is a child of.
Signature · 1 line
2.30.2
Re: [PATCH 1/8] iio: pressure: zpa2326: kernel-doc fixes
Quoted 6 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
Two comment blocks had wrong naming for function/structures that they referred to. Results in warnings when doing a W=1 build.
Quoted 30 lines
Signed-off-by Jonathan Cameron <[email protected]>--- drivers/iio/pressure/zpa2326.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/iio/pressure/zpa2326.c +2
-3@@ -103,7 +103,7 @@ static const struct zpa2326_frequency *zpa2326_highest_frequency(void) }/** -* struct zpa_private - Per-device internal private state +* struct zpa2326_private - Per-device internal private state * @timestamp: Buffered samples ready datum. * @regmap: Underlying I2C / SPI bus adapter used to abstract slave register * accesses. @@ -1382,7 +1382,7 @@ static const struct iio_trigger_ops zpa2326_trigger_ops = { };/** -* zpa2326_init_trigger() - Create an interrupt driven / hardware trigger +* zpa2326_init_managed_trigger() - Create interrupt driven / hardware trigger * allowing to notify external devices a new sample is * ready. * @parent: Hardware sampling device @indio_dev is a child of. -- 2.30.2
Jonathan Cameron
maintainerPATCH 2/8 iio: adc: ti-adc084s021: kernel-doc fixes, missing function names
In reply to Jonathan CameronFrom: Jonathan Cameron <[email protected]>
The documentation in this driver was nearly kernel-doc and was marked as such. Unfortunately the format was wrong and function names were missing. This patch puts them in with minor edits to keep the resulting line short.
--- drivers/iio/adc/ti-adc084s021.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/iio/adc/ti-adc084s021.c +2 -2
@@ -65,7 +65,7 @@ static const struct iio_chan_spec adc084s021_channels[] = { };/** -* Read an ADC channel and return its value. +* adc084s021_adc_conversion() - Read an ADC channel and return its value. * * @adc: The ADC SPI data. * @data: Buffer for converted data.
@@ -136,7 +136,7 @@ static int adc084s021_read_raw(struct iio_dev *indio_dev, }/** -* Read enabled ADC channels and push data to the buffer. +* adc084s021_buffer_trigger_handler() - Read ADC channels and push to buffer. * * @irq: The interrupt number (not used). * @pollfunc: Pointer to the poll func.
Signature · 1 line
2.30.2
Jonathan Cameron
maintainerPATCH 3/8 iio: dac: ad5770r: kernel-doc fix case of letter R wrong in structure name
In reply to Jonathan CameronFrom: Jonathan Cameron <[email protected]>
Nothing useful to add beyond this causing a warning with W=1
--- drivers/iio/dac/ad5770r.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/dac/ad5770r.c +1 -1
@@ -118,7 +118,7 @@ struct ad5770r_out_range { };/** -* struct ad5770R_state - driver instance specific data +* struct ad5770r_state - driver instance specific data * @spi: spi_device * @regmap: regmap * @vref_reg: fixed regulator for reference configuration
Signature · 1 line
2.30.2
Re: [PATCH 3/8] iio: dac: ad5770r: kernel-doc fix case of letter R wrong in structure name
Quoted 5 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
Nothing useful to add beyond this causing a warning with W=1
Quoted 22 lines
Signed-off-by Jonathan Cameron <[email protected]>Cc Alexandru Ardelean <[email protected]>--- drivers/iio/dac/ad5770r.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iio/dac/ad5770r.c +1
-2@@ -118,7 +118,7 @@ struct ad5770r_out_range { };/** -* struct ad5770R_state - driver instance specific data +* struct ad5770r_state - driver instance specific data * @spi: spi_device * @regmap: regmap * @vref_reg: fixed regulator for reference configuration -- 2.30.2
Jonathan Cameron
maintainerPATCH 4/8 iio: dac: ad5504: fix wrong part number in kernel-doc structure name.
In reply to Jonathan CameronFrom: Jonathan Cameron <[email protected]>
Probably a bit of cut and paste where someone forgot to change the part number.
--- drivers/iio/dac/ad5504.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/dac/ad5504.c +1 -1
@@ -39,7 +39,7 @@#define AD5504_DAC_PWRDN_3STATE 1/** -* struct ad5446_state - driver instance specific data +* struct ad5504_state - driver instance specific data * @spi: spi_device * @reg: supply regulator * @vref_mv: actual reference voltage used
Signature · 1 line
2.30.2
Jonathan Cameron
maintainerPATCH 5/8 iio: adc: cpcap-adc: kernel-doc fix - that should be _ in structure name
In reply to Jonathan CameronFrom: Jonathan Cameron <[email protected]>
Fixes a W=1 warning.
--- drivers/iio/adc/cpcap-adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/cpcap-adc.c +1 -1
@@ -100,7 +100,7 @@ struct cpcap_adc_ato { };/** -* struct cpcap-adc - cpcap adc device driver data +* struct cpcap_adc - cpcap adc device driver data * @reg: cpcap regmap * @dev: struct device * @vendor: cpcap vendor
Signature · 1 line
2.30.2
Re: [PATCH 5/8] iio: adc: cpcap-adc: kernel-doc fix - that should be _ in structure name
Quoted 3 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
Fixes a W=1 warning.
Thanks,
Tony
Jonathan Cameron
maintainerPATCH 6/8 iio: adc: adi-axi-adc: Drop false marking for kernel-doc
In reply to Jonathan CameronFrom: Jonathan Cameron <[email protected]>
This comment block isn't in kernel-doc format so drop the /** marking.
--- drivers/iio/adc/adi-axi-adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/adi-axi-adc.c +1 -1
@@ -23,7 +23,7 @@#include <linux/fpga/adi-axi-common.h> #include <linux/iio/adc/adi-axi-adc.h> -/** +/* * Register definitions: * https://wiki.analog.com/resources/fpga/docs/axi_adc_ip#register_map */
Signature · 1 line
2.30.2
Re: [PATCH 6/8] iio: adc: adi-axi-adc: Drop false marking for kernel-doc
Quoted 5 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
This comment block isn't in kernel-doc format so drop the /** marking.
Quoted 22 lines
Signed-off-by Jonathan Cameron <[email protected]>Cc Nuno Sá <[email protected]>--- drivers/iio/adc/adi-axi-adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iio/adc/adi-axi-adc.c +1
-2@@ -23,7 +23,7 @@#include <linux/fpga/adi-axi-common.h> #include <linux/iio/adc/adi-axi-adc.h> -/** +/* * Register definitions: * https://wiki.analog.com/resources/fpga/docs/axi_adc_ip#register_map */ --2.30.2
Jonathan Cameron
maintainerPATCH 7/8 iio: accel: sca3000: kernel-doc fixes. Missing - and wrong function names.
In reply to Jonathan CameronFrom: Jonathan Cameron <[email protected]>
All extremely obvious so nothing to add to patch title.
--- drivers/iio/accel/sca3000.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/iio/accel/sca3000.c +4 -4
@@ -351,7 +351,7 @@ static int __sca3000_unlock_reg_lock(struct sca3000_state *st) }/** -* sca3000_write_ctrl_reg() write to a lock protect ctrl register +* sca3000_write_ctrl_reg() - write to a lock protect ctrl register * @st: Driver specific device instance data. * @sel: selects which registers we wish to write to * @val: the value to be written
@@ -389,7 +389,7 @@ static int sca3000_write_ctrl_reg(struct sca3000_state *st, }/** -* sca3000_read_ctrl_reg() read from lock protected control register. +* sca3000_read_ctrl_reg() - read from lock protected control register. * @st: Driver specific device instance data. * @ctrl_reg: Which ctrl register do we want to read. *
@@ -421,7 +421,7 @@ static int sca3000_read_ctrl_reg(struct sca3000_state *st, }/** -* sca3000_show_rev() - sysfs interface to read the chip revision number +* sca3000_print_rev() - sysfs interface to read the chip revision number * @indio_dev: Device instance specific generic IIO data. * Driver specific device instance data can be obtained via * via iio_priv(indio_dev)
@@ -902,7 +902,7 @@ static int sca3000_read_event_value(struct iio_dev *indio_dev, }/** -* sca3000_write_value() - control of threshold and period +* sca3000_write_event_value() - control of threshold and period * @indio_dev: Device instance specific IIO information. * @chan: Description of the channel for which the event is being * configured.
Signature · 1 line
2.30.2
Re: [PATCH 7/8] iio: accel: sca3000: kernel-doc fixes. Missing - and wrong function names.
Quoted 5 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
All extremely obvious so nothing to add to patch title.
Quoted 48 lines
Signed-off-by Jonathan Cameron <[email protected]>--- drivers/iio/accel/sca3000.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/iio/accel/sca3000.c +4
-5@@ -351,7 +351,7 @@ static int __sca3000_unlock_reg_lock(struct sca3000_state *st) }/** -* sca3000_write_ctrl_reg() write to a lock protect ctrl register +* sca3000_write_ctrl_reg() - write to a lock protect ctrl register * @st: Driver specific device instance data. * @sel: selects which registers we wish to write to * @val: the value to be written @@ -389,7 +389,7 @@ static int sca3000_write_ctrl_reg(struct sca3000_state *st, }/** -* sca3000_read_ctrl_reg() read from lock protected control register. +* sca3000_read_ctrl_reg() - read from lock protected control register. * @st: Driver specific device instance data. * @ctrl_reg: Which ctrl register do we want to read. * @@ -421,7 +421,7 @@ static int sca3000_read_ctrl_reg(struct sca3000_state *st, }/** -* sca3000_show_rev() - sysfs interface to read the chip revision number +* sca3000_print_rev() - sysfs interface to read the chip revision number * @indio_dev: Device instance specific generic IIO data. * Driver specific device instance data can be obtained via * via iio_priv(indio_dev) @@ -902,7 +902,7 @@ static int sca3000_read_event_value(struct iio_dev *indio_dev, }/** -* sca3000_write_value() - control of threshold and period +* sca3000_write_event_value() - control of threshold and period * @indio_dev: Device instance specific IIO information. * @chan: Description of the channel for which the event is being * configured. -- 2.30.2
Jonathan Cameron
maintainerPATCH 8/8 iio: buffer: kfifo_buf: kernel-doc, typo in function name.
In reply to Jonathan CameronFrom: Jonathan Cameron <[email protected]>
Should have been _kfifo_ and was _fifo_
--- drivers/iio/buffer/kfifo_buf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/buffer/kfifo_buf.c +1 -1
@@ -180,7 +180,7 @@ static void devm_iio_kfifo_release(struct device *dev, void *res) }/** -* devm_iio_fifo_allocate - Resource-managed iio_kfifo_allocate() +* devm_iio_kfifo_allocate - Resource-managed iio_kfifo_allocate() * @dev: Device to allocate kfifo buffer for * * RETURNS:
Signature · 1 line
2.30.2
Re: [PATCH 8/8] iio: buffer: kfifo_buf: kernel-doc, typo in function name.
Quoted 4 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
Should have been _kfifo_ and was _fifo_
oops
Quoted 23 lines
Signed-off-by Jonathan Cameron <[email protected]>Cc Alexandru Ardelean <[email protected]>--- drivers/iio/buffer/kfifo_buf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iio/buffer/kfifo_buf.c +1
-2@@ -180,7 +180,7 @@ static void devm_iio_kfifo_release(struct device *dev, void *res) }/** -* devm_iio_fifo_allocate - Resource-managed iio_kfifo_allocate() +* devm_iio_kfifo_allocate - Resource-managed iio_kfifo_allocate() * @dev: Device to allocate kfifo buffer for * * RETURNS: -- 2.30.2
Quoted 7 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
A bunch of totally trivial kernel-doc fixes from W=1 builds.
Note I've not touched staging drivers as those are a good activity for anyone who wants to get started working with IIO drivers. I'll post a specific email about that in a few minutes.
All obviously correct.
Jonathan Cameron
maintainerQuoted 5 lines · On Sun, 14 Mar 2021 18:32:17 +0100 Lars-Peter Clausen <[email protected]> wrote:
Quoted 4 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
A bunch of totally trivial kernel-doc fixes from W=1 builds.
Quoted 7 lines
Quoted 3 lines
Note I've not touched staging drivers as those are a good activity for anyone who wants to get started working with IIO drivers. I'll post a specific email about that in a few minutes.
All obviously correct.
Reviewed-by Lars-Peter Clausen <[email protected]>
Thanks,
Series applied to the togreg branch of iio.git and pushed out as testing for all the normal reasons.
Transitioning to a new laptop, so if anything looks odd let me know.
Jonathan