All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/3] iio: consumer.h: Fix kernel doc incosistency
@ 2012-09-17 12:17 Lars-Peter Clausen
  2012-09-17 12:17 ` [PATCH v2 2/3] iio:inkern: Add function to read the processed value Lars-Peter Clausen
  2012-09-17 12:17 ` [PATCH v2 3/3] staging:iio:hwmon bridge: Use iio_read_channel_processed Lars-Peter Clausen
  0 siblings, 2 replies; 5+ messages in thread
From: Lars-Peter Clausen @ 2012-09-17 12:17 UTC (permalink / raw)
  To: Jonathan Cameron; +Cc: linux-iio, Milo Kim, anish kumar, Lars-Peter Clausen

For the iio_read_channel_raw and iio_read_channel_scale the kerneldoc comment
refers to an argument called "channel", while the argument is called "chan" in
the function signature. This leads to the following warnings from kerneldoc:

	Warning(include/linux/iio/consumer.h:71): No description found for parameter 'chan'
	Warning(include/linux/iio/consumer.h:71): Excess function parameter 'channel' description in 'iio_read_channel_raw'
	Warning(include/linux/iio/consumer.h:109): No description found for parameter 'chan'
	Warning(include/linux/iio/consumer.h:109): Excess function parameter 'channel' description in 'iio_read_channel_scale'

This patch fixes the warnings by naming them consistently.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 include/linux/iio/consumer.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/iio/consumer.h b/include/linux/iio/consumer.h
index 06ab4ec..62118dd 100644
--- a/include/linux/iio/consumer.h
+++ b/include/linux/iio/consumer.h
@@ -61,7 +61,7 @@ void iio_channel_release_all(struct iio_channel *chan);
 
 /**
  * iio_read_channel_raw() - read from a given channel
- * @channel:		The channel being queried.
+ * @chan:		The channel being queried.
  * @val:		Value read back.
  *
  * Note raw reads from iio channels are in adc counts and hence
@@ -82,7 +82,7 @@ int iio_get_channel_type(struct iio_channel *channel,
 
 /**
  * iio_read_channel_scale() - read the scale value for a channel
- * @channel:		The channel being queried.
+ * @chan:		The channel being queried.
  * @val:		First part of value read back.
  * @val2:		Second part of value read back.
  *
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-18  8:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-17 12:17 [PATCH v2 1/3] iio: consumer.h: Fix kernel doc incosistency Lars-Peter Clausen
2012-09-17 12:17 ` [PATCH v2 2/3] iio:inkern: Add function to read the processed value Lars-Peter Clausen
2012-09-17 20:55   ` Jonathan Cameron
2012-09-18  8:01     ` Lars-Peter Clausen
2012-09-17 12:17 ` [PATCH v2 3/3] staging:iio:hwmon bridge: Use iio_read_channel_processed Lars-Peter Clausen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.