mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Scally <djrscally@gmail.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: linux-kernel@vger.kernel.org, rafael@kernel.org,
	gregkh@linuxfoundation.org, sakari.ailus@linux.intel.com,
	heikki.krogerus@linux.intel.com
Subject: Re: [PATCH] software_node: Add kernel-doc comments to exported symbols
Date: Tue, 5 Jan 2021 15:39:42 +0000	[thread overview]
Message-ID: <3d92e535-c955-502a-24ac-0655752796fc@gmail.com> (raw)
In-Reply-To: <20210105145329.GO4077@smile.fi.intel.com>

Hi Andy

On 05/01/2021 14:53, Andy Shevchenko wrote:
> On Mon, Jan 04, 2021 at 11:47:36PM +0000, Daniel Scally wrote:
>> A number of functions which are exported via EXPORT_SYMBOL_GPL() lack any
>> kernel-doc comments; add those in so all exported symbols are documented.
> Thanks, it's helpful!
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> after addressing few nitpicks
Thanks for reviewing
>> Signed-off-by: Daniel Scally <djrscally@gmail.com>
>> ---
>> With a view to maybe writing some documentation once the fwnode_graph_*()
>> functions are also added.
> FWIW, Heikki used to have a draft patch of swnode documentation, not sure
> what's the current status of it.
Oh cool ok; I'll defer to him then.
>> + * copy of the given array of properties and registers it as a new fwnode_handle.
>> + * Freeing of the allocated memory when the fwnode_handle is no longer needed is
>> + * handled via software_node_release() and does not need to be done separately.
>> + *
>> + * Returns:
>> + * * fwnode_handle *	- On success
>> + * * -EINVAL		- When @parent is not associated with a software_node
>> + * * -ENOMEM		- When memory allocation fails
>> + * * -Other		- Propagated errors from sub-functions
>> + */
>>  struct fwnode_handle *
>>  fwnode_create_software_node(const struct property_entry *properties,
>>  			    const struct fwnode_handle *parent)
>> @@ -832,6 +875,15 @@ fwnode_create_software_node(const struct property_entry *properties,
>>  }
>>  EXPORT_SYMBOL_GPL(fwnode_create_software_node);
>>  
>> +/**
>> + * fwnode_remove_software_node() - Put a reference to a registered software_node
>> + * @fwnode: The pointer to the &struct fwnode_handle you want to release
>> + *
>> + * Release a reference to a registered &struct software_node. This function
>> + * differs from software_node_put() in that it takes no action if the
>> + * fwnode_handle passed to @fwnode turns out not to have been created by
>> + * registering a software_node
> Period at the end.
>
> I'm a bit confused by amount of fwnode_handle in the comments, can you replace
> them with better approach depending on the case:
> - &struct fwnode_handle
> - a parameter as @fwnode or so
> - a general mention (better to use plain English here, something like firmware
>   node handle or so)
Yeah ok, I was trying to do &struct fwnode_handle on the first reference
(or at least earliest that it would fit) and then fwnode_handle
thereafter, but I think I like the suggestion to drop to plain English
at that point instead, so I'll do that (and ditto for software_node /
software node)

  reply	other threads:[~2021-01-05 15:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-04 23:47 Daniel Scally
2021-01-05 14:53 ` Andy Shevchenko
2021-01-05 15:39   ` Daniel Scally [this message]
2021-01-07 14:19     ` Heikki Krogerus
2021-01-07 14:45       ` Daniel Scally

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=3d92e535-c955-502a-24ac-0655752796fc@gmail.com \
    --to=djrscally@gmail.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=heikki.krogerus@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    /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

all inboxes | Powered by JetHome®