Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1393351pxj; Fri, 21 May 2021 13:08:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGw4We/W0eSDp++sSsIl9446Rv3ZAcqvM9Snh/tgsirJeFhuKkBhyLPlXjWnqaLpP+s/9A X-Received: by 2002:a02:4844:: with SMTP id p65mr6651594jaa.102.1621627703212; Fri, 21 May 2021 13:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621627703; cv=none; d=google.com; s=arc-20160816; b=M/fAyu6SiFniASVt4FsuUVXiu0kEu1hGTGC/Ltc4VLK7GG4g7DtRca9fcqMs54KYxg ywx49eAAO7yyZ6jkatOR+oO3oXEPx9jxTBhBfm5RVWl+o9njguhKx5279JLTq8aPdX0I tVmpIaBvz6QNqGf1GLzhqit83OeAJp/KRudllhvr9EOnWPu5bYcaw3sBPF0gPHx5cHxt YZUWhqpRZUWmSodShDvXI2QF0uQGFn+gQPuCnYEprcz0aovMBkgyZdIZVYOM+tgYzkDO UT1CwdBhciDY/04MKA5a9pzlo4aadUW0DFZWErFpIMUvQ3Z7H2E5J06zP2Hrq1taD4Pm 5mJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QRBJ/Eb2aRuCWOAm83HDyHJya7fTP6YfpnFgiFNwPwY=; b=VgQpJ2iI2xudgpOvNeDHBeNrwypOfki40xkIN4rQcoaNBu09E3kTLb1gdaoi8WkmzF KknduG5ROgvSJL/r1R1NLoTbC8sdpjeFk6dAuy6gNurcIhJhkKggLDeCmLx9/S3i6r7M jdugCwOV7Vp0OBi1nIMf4TNuDm8uGAmY+16exvzZ3qlbw+sSBd9ebNAygBmb8LRhpsht T3eyTzMudXQ4NQsyxbvEqZQObF0dLrRB9eszameR6YhmXxEmsmeL4LMKsktc4RDO1mLM toqHhGCQ2wEbCSYUB574GHOwNmTArK5JABQF3tyLGTo7CNOnnKAtJlhi9yVJImgDYeYP Bzng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PeB4Jp8J; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l22si6938196jad.10.2021.05.21.13.08.10; Fri, 21 May 2021 13:08:23 -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; dkim=pass header.i=@linaro.org header.s=google header.b=PeB4Jp8J; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234490AbhEUG61 (ORCPT + 99 others); Fri, 21 May 2021 02:58:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234556AbhEUG6Y (ORCPT ); Fri, 21 May 2021 02:58:24 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82DD0C0613ED for ; Thu, 20 May 2021 23:56:18 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id t206so10519475wmf.0 for ; Thu, 20 May 2021 23:56:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=QRBJ/Eb2aRuCWOAm83HDyHJya7fTP6YfpnFgiFNwPwY=; b=PeB4Jp8JKHMH5uEQrwTX9WwWGGtnm7DtrV2kA/LjtL5tSI0bfgpJOGSAo6u/0IEVk6 h67RCcAk6TFLUZJSDdwCTNfXVi73dC17V+hpbVHefQNFzVOBvUdH1/N5KmxOn12tmY1S sJ74M26xKin7dgkNXa+nKfk65zowil1gx+FAc0TkcRI9fqC8+xWrW334zT6BFC5aRGjQ uT1DhyO9IGLX+Ork1BJWUEbtE6ya8RJvL+Gk1zuIqb39hVFqKXkY0mho/0FNVKI9X2Wa hiMyhy6KRtpY/UpnYUJOx6n7u2otwDen6HiRiuvxqyJxt2hR2M4HLO3YCfZIdxwGQliP hN1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=QRBJ/Eb2aRuCWOAm83HDyHJya7fTP6YfpnFgiFNwPwY=; b=q3/OBnE2pDfuFRKGq2RS4z6cPMV45sLMFBHHyo89OFS6M3DIgmxNpFCu0gqtbZbdyW +jSfLbGui9QD0f+wpJhimC43uklaNLnPG/QdaW2dWBU9UUEfQb2wQEjwhqldv7og+F6t yKpx0tO9bLzZ4lYkHAF3mSf40YVJY+JYEHpnex3FuU4mzwuKbvwU4JeMKuUBPX2PGt8T frCx+pUHegvteJQjuyA8ST2QJw0VxNoLsUzhXmtuVDXIh49Bncle7TZAhF/72m5hTc2s GoVv8MWZnR5W/ikrZvcL2am0beIH30+cXk3dt984HSTIV037Fx2pVBrzAAFWhHgVewIF rvRw== X-Gm-Message-State: AOAM530fQUB1d7yvfzDATAKZ30pPF8MO1bc0oUXae12tiPdrmJau5O0F eDWCT7eBLXuJCleLSb7N2JseWw== X-Received: by 2002:a1c:6a0f:: with SMTP id f15mr5064918wmc.29.1621580177144; Thu, 20 May 2021 23:56:17 -0700 (PDT) Received: from dell ([91.110.221.215]) by smtp.gmail.com with ESMTPSA id n13sm960902wrg.75.2021.05.20.23.56.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 May 2021 23:56:16 -0700 (PDT) Date: Fri, 21 May 2021 07:56:14 +0100 From: Lee Jones To: Heiko =?iso-8859-1?Q?St=FCbner?= 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 Message-ID: <20210521065614.GO2549456@dell> References: <20210520190105.3772683-1-lee.jones@linaro.org> <20210520190105.3772683-13-lee.jones@linaro.org> <6083609.GXAFRqVoOG@diego> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6083609.GXAFRqVoOG@diego> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 20 May 2021, Heiko Stübner wrote: > 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 ;-) Completeness. This one is missing parameter descriptions, the one I provided the function name to below, is otherwise complete. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog