lkml.org 
[lkml]   [2020]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 01/10] mfd: wm8350-core: Supply description wm8350_reg_{un}lock args
    Date
    Kerneldoc syntax is used, but not complete.  Descriptions required.

    Prevents warnings like:

    drivers/mfd/wm8350-core.c:136: warning: Function parameter or member 'wm8350' not described in 'wm8350_reg_lock'
    drivers/mfd/wm8350-core.c:165: warning: Function parameter or member 'wm8350' not described in 'wm8350_reg_unlock'

    Cc: <stable@vger.kernel.org>
    Cc: patches@opensource.cirrus.com
    Signed-off-by: Lee Jones <lee.jones@linaro.org>
    ---
    drivers/mfd/wm8350-core.c | 4 ++++
    1 file changed, 4 insertions(+)

    diff --git a/drivers/mfd/wm8350-core.c b/drivers/mfd/wm8350-core.c
    index 42b16503e6cd1..fbc77b218215c 100644
    --- a/drivers/mfd/wm8350-core.c
    +++ b/drivers/mfd/wm8350-core.c
    @@ -131,6 +131,8 @@ EXPORT_SYMBOL_GPL(wm8350_block_write);
    * The WM8350 has a hardware lock which can be used to prevent writes to
    * some registers (generally those which can cause particularly serious
    * problems if misused). This function enables that lock.
    + *
    + * @wm8350: pointer to local driver data structure
    */
    int wm8350_reg_lock(struct wm8350 *wm8350)
    {
    @@ -160,6 +162,8 @@ EXPORT_SYMBOL_GPL(wm8350_reg_lock);
    * problems if misused). This function disables that lock so updates
    * can be performed. For maximum safety this should be done only when
    * required.
    + *
    + * @wm8350: pointer to local driver data structure
    */
    int wm8350_reg_unlock(struct wm8350 *wm8350)
    {
    --
    2.25.1
    \
     
     \ /
      Last update: 2020-06-25 08:47    [W:4.116 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site