mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Documentation of iio_read_channel_processed return value
@ 2025-11-08 17:55 Luca Weiss
  2025-11-09 17:14 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Luca Weiss @ 2025-11-08 17:55 UTC (permalink / raw)
  To: Jonathan Cameron, David Lechner, Nuno Sá,
	Andy Shevchenko, linux-iio, linux-kernel

Hi all,

I've noticed that the docstring in include/linux/iio/consumer.h for
iio_read_channel_processed (and likely some other functions in there) is
wrong because it's saying "Returns an error code or 0." while often it's
returning e.g. IIO_VAL_INT. In some code paths it's actually returning 0
but it seems in standard cases it's not.

Could the docstring please be updated so this is clear to users of this
function? I don't understand IIO well enough to confidently propose
changes there myself.

Thanks and kind regards
Luca

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

end of thread, other threads:[~2025-11-09 17:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-08 17:55 Documentation of iio_read_channel_processed return value Luca Weiss
2025-11-09 17:14 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®