Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp889403pxj; Fri, 21 May 2021 01:17:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxI3fRMeXq0ycviNbH+IB7IRtDggdmd0A4FGQNXhx/s3K8oQI+qj6gscsKsgbbSQfQiIFLZ X-Received: by 2002:a92:130a:: with SMTP id 10mr10174363ilt.159.1621585019854; Fri, 21 May 2021 01:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621585019; cv=none; d=google.com; s=arc-20160816; b=wsgitJy3zQOu+FyCyKExZThnsVbpQasoQy3SF5Yf/oYm67v6Ge2eWDOxb3sqAxaycx rihiSE0wwUaiH3hybHenNHLZx4uUWM/1PJRgQs2s1bblkMjXROcy1kbfwsPi3wHpcaEj SVEuLy2AWpBQ45JzeAFAsJVlmxtTLr9Jad4WRl5C2G2R/w9/4Np/jBNEawKIthRKPogn HadaUN9aMUJpFDxIz9dtZpssM1XBSpaoEDMreDpUyPCiAVGsZlDEoYUmtMBTCzX1i/ch 5xcmr1M4XkNCvaNdx3iD9T3DJ5EZD3cxhqFIhHpDUjtlbJKCd7YTd/18Ooqt0UHPJuUz 86SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Ptj1PoVtXqAn4keZah8JOHttV0Yw2cDVtRI8RAJWe94=; b=bLSesKvkYmgINZAITE8W3yPNO+1jPkr5oFCsbAPqD9QD5wVnRphQN/EnVzW2RkK6UC pOLrcyQ0PIge8xMZ7IrxMCX8R82bBzYg6PBaqI/CnOavxd5Y4hAYBcKoPCGfvHjApq9n yrxorg729IK07OkE1qgWiJJx0FOc8IrWm8LN8RxpTItP9z4qvhU65NauapKXHKUDPjq8 Aa0Pp+2kuMk5tOR3Twln7q4J8jekqI2P63eC2+ItBIk+MCKXI6e7K5ts1YLlqPvV8+3z +j2YCgH4GrhNXzeunCWxR79YrM1zSAOfwCRF+Xw3XVrM2Akhhxc75bgpk0VeALl1nfDn NMug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 7si5092377ilz.34.2021.05.21.01.16.46; Fri, 21 May 2021 01:16:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230523AbhETVxv (ORCPT + 99 others); Thu, 20 May 2021 17:53:51 -0400 Received: from gloria.sntech.de ([185.11.138.130]:48878 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230178AbhETVxv (ORCPT ); Thu, 20 May 2021 17:53:51 -0400 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ljqah-0001n2-4H; Thu, 20 May 2021 23:52:27 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: lee.jones@linaro.org, Lee Jones Cc: linux-kernel@vger.kernel.org, Max Schwarz , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-i2c@vger.kernel.org Subject: Re: [PATCH 12/16] i2c: busses: i2c-rk3x: Demote unworthy headers and help more complete ones Date: Thu, 20 May 2021 23:52:26 +0200 Message-ID: <6083609.GXAFRqVoOG@diego> In-Reply-To: <20210520190105.3772683-13-lee.jones@linaro.org> References: <20210520190105.3772683-1-lee.jones@linaro.org> <20210520190105.3772683-13-lee.jones@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lee, Am Donnerstag, 20. Mai 2021, 21:01:01 CEST schrieb Lee Jones: > Fixes the following W=1 kernel build warning(s): > > drivers/i2c/busses/i2c-rk3x.c:242: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst > drivers/i2c/busses/i2c-rk3x.c:261: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst > drivers/i2c/busses/i2c-rk3x.c:304: warning: Function parameter or member 'i2c' not described in 'rk3x_i2c_prepare_read' > drivers/i2c/busses/i2c-rk3x.c:304: warning: expecting prototype for Setup a read according to i2c(). Prototype was for rk3x_i2c_prepare_read() instead > drivers/i2c/busses/i2c-rk3x.c:335: warning: Function parameter or member 'i2c' not described in 'rk3x_i2c_fill_transmit_buf' > drivers/i2c/busses/i2c-rk3x.c:335: warning: expecting prototype for Fill the transmit buffer with data from i2c(). Prototype was for rk3x_i2c_fill_transmit_buf() instead > drivers/i2c/busses/i2c-rk3x.c:535: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst > drivers/i2c/busses/i2c-rk3x.c:552: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst > drivers/i2c/busses/i2c-rk3x.c:713: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst > drivers/i2c/busses/i2c-rk3x.c:963: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst > drivers/i2c/busses/i2c-rk3x.c:973: warning: Function parameter or member 'i2c' not described in 'rk3x_i2c_setup' > > Cc: Heiko Stuebner > Cc: Max Schwarz > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-rockchip@lists.infradead.org > Cc: linux-i2c@vger.kernel.org > Signed-off-by: Lee Jones > --- > drivers/i2c/busses/i2c-rk3x.c | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-rk3x.c b/drivers/i2c/busses/i2c-rk3x.c > index 819ab4ee517e1..1dfbd1185aefc 100644 > --- a/drivers/i2c/busses/i2c-rk3x.c > +++ b/drivers/i2c/busses/i2c-rk3x.c > @@ -238,7 +238,7 @@ static inline void rk3x_i2c_clean_ipd(struct rk3x_i2c *i2c) > i2c_writel(i2c, REG_INT_ALL, REG_IPD); > } > > -/** > +/* > * Generate a START condition, which triggers a REG_INT_START interrupt. > */ > static void rk3x_i2c_start(struct rk3x_i2c *i2c) > @@ -257,7 +257,7 @@ static void rk3x_i2c_start(struct rk3x_i2c *i2c) > i2c_writel(i2c, val, REG_CON); > } > > -/** > +/* > * Generate a STOP condition, which triggers a REG_INT_STOP interrupt. what made you decide between demoting and completing comments? I.e. here you demot the "static void rk3x_i2c_stop()", while below you for example complete the "static rk3x_i2c_get_spec()". So I somehow do not yet see the pattern ;-) Heiko > * > * @error: Error code to return in rk3x_i2c_xfer > @@ -297,7 +297,7 @@ static void rk3x_i2c_stop(struct rk3x_i2c *i2c, int error) > } > } > > -/** > +/* > * Setup a read according to i2c->msg > */ > static void rk3x_i2c_prepare_read(struct rk3x_i2c *i2c) > @@ -328,7 +328,7 @@ static void rk3x_i2c_prepare_read(struct rk3x_i2c *i2c) > i2c_writel(i2c, len, REG_MRXCNT); > } > > -/** > +/* > * Fill the transmit buffer with data from i2c->msg > */ > static void rk3x_i2c_fill_transmit_buf(struct rk3x_i2c *i2c) > @@ -532,7 +532,7 @@ static irqreturn_t rk3x_i2c_irq(int irqno, void *dev_id) > } > > /** > - * Get timing values of I2C specification > + * rk3x_i2c_get_spec() - Get timing values of I2C specification > * > * @speed: Desired SCL frequency > * > @@ -549,7 +549,7 @@ static const struct i2c_spec_values *rk3x_i2c_get_spec(unsigned int speed) > } > > /** > - * Calculate divider values for desired SCL frequency > + * rk3x_i2c_v0_calc_timings() - Calculate divider values for desired SCL frequency > * > * @clk_rate: I2C input clock rate > * @t: Known I2C timing information > @@ -710,7 +710,7 @@ static int rk3x_i2c_v0_calc_timings(unsigned long clk_rate, > } > > /** > - * Calculate timing values for desired SCL frequency > + * rk3x_i2c_v1_calc_timings() - Calculate timing values for desired SCL frequency > * > * @clk_rate: I2C input clock rate > * @t: Known I2C timing information > @@ -959,8 +959,8 @@ static int rk3x_i2c_clk_notifier_cb(struct notifier_block *nb, unsigned long > } > } > > -/** > - * Setup I2C registers for an I2C operation specified by msgs, num. > +/* > + * rk3x_i2c_setup() - Setup I2C registers for an I2C operation specified by msgs, num. > * > * Must be called with i2c->lock held. > * >