From: Randy Dunlap <rdunlap@infradead.org>
To: Daniel Baluta <daniel.baluta@intel.com>, jic23@kernel.org
Cc: pmeerw@pmeerw.net, knaack.h@gmx.de, lars@metafoo.de,
linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org
Subject: Re: [PATCH] DocBook documentation for IIO
Date: Fri, 10 Jul 2015 12:13:54 -0700 [thread overview]
Message-ID: <55A01972.9070405@infradead.org> (raw)
In-Reply-To: <1436357088-30743-1-git-send-email-daniel.baluta@intel.com>
On 07/08/15 05:04, Daniel Baluta wrote:
> In our effort to support vendors writing drivers for their own
> sensors we introduce IIO documentation in DocBook format.
>
> It documents Industrial I/O core including IIO devices, buffers, triggers and
> triggered buffers. It also offers a short list of online resources
> for the IIO subsystem.
>
> This is far from being complete any suggestions are welcomed. At a first
> glance we also need to add documentation for events. We are also working
> on auto-generating template drivers based on the type of the IIO sensors.
Hi Daniel,
This is a good start. Might as well get it merged and keep improving it.
Here are a few nits:
Warning(..//drivers/iio/industrialio-buffer.c:1145): cannot understand function prototype: 'struct iio_demux_table '
>> drop the "()" in the first line:
* struct iio_demux_table() - table describing demux memcpy ops
In iio_buffer_get() and iio_buffer_put(), change "may be NULL"
to "may be %NULL".
In linux/iio/iio.h, struct iio_chan_spec, the sub-fields of @scan_type confuse
scripts/kernel-doc. There isn't really a good way to do what you are trying
to do (AFAIK). The problem is that things like "realbits:" (ending with a colon)
cause kernel-doc to think that that is some special comment and it generates
a separate paragraph for it at the end of the struct. I changed all of those
colons to hyphens, but then kernel-doc just runs all of those sub-field
comment descriptions together... so I added a ';' at the end of each one, but
it doesn't look nice.
> Generated html files should be available online here http://dbaluta.github.io/
> or you could run make htmldocs in the root of your kernel repo to get them.
>
> Daniel Baluta (1):
> DocBook: Add initial documentation for IIO
>
> Documentation/DocBook/Makefile | 2 +-
> Documentation/DocBook/iio.tmpl | 588 +++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 589 insertions(+), 1 deletion(-)
> create mode 100644 Documentation/DocBook/iio.tmpl
>
--
~Randy
next prev parent reply other threads:[~2015-07-10 19:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-08 12:04 [PATCH] DocBook documentation for IIO Daniel Baluta
2015-07-08 12:04 ` [PATCH] DocBook: Add initial " Daniel Baluta
2015-07-16 10:24 ` Jonathan Corbet
2015-07-16 12:27 ` Jonathan Cameron
2015-07-17 8:49 ` Daniel Baluta
2015-07-16 19:31 ` Jonathan Cameron
2015-07-17 9:18 ` Daniel Baluta
2015-07-17 12:14 ` jic23
2015-07-10 19:13 ` Randy Dunlap [this message]
2015-07-10 20:01 ` [PATCH] DocBook " Daniel Baluta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55A01972.9070405@infradead.org \
--to=rdunlap@infradead.org \
--cc=daniel.baluta@intel.com \
--cc=jic23@kernel.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pmeerw@pmeerw.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox