Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BC2CAC433EF for ; Mon, 15 Nov 2021 11:39:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A1BA161C15 for ; Mon, 15 Nov 2021 11:39:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231425AbhKOLmE (ORCPT ); Mon, 15 Nov 2021 06:42:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230498AbhKOLld (ORCPT ); Mon, 15 Nov 2021 06:41:33 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B659CC061746 for ; Mon, 15 Nov 2021 03:38:36 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id s13so30099872wrb.3 for ; Mon, 15 Nov 2021 03:38:36 -0800 (PST) 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:in-reply-to; bh=wECB8Odve8M6ApPsX4FLwbNORmpbNOWeDrC7D87THPA=; b=rOOD66sAr/gPFYySdX4jAJtAumwH55agqU6FjPjdq8n4+DSmmNDGMEmEWZN+hGOVSI QOHilEQiPItA50fpVuibDmmTJGF7LWoNb2EbWMvmOmSd1fwq/JL1C0QWywTh+cl8QsTJ xkxfdW5N7uImM2zDiI/6ceqCUpW6GQ27k9L07rcpPuLIi6UShpKMXc+X158QtepT9XGs i221RT2e+gtwzrz9y+iAf7vDROEqLxb6DZv488TVtm+vn87lu9vIFFeagdhc13cYnGG6 qG4jhR3m4vMZm1ksTO2sHAB2gyHZG8aD6e85FZxzb3QM4R5iNL8skSEo960u4mfY2UAw y+uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=wECB8Odve8M6ApPsX4FLwbNORmpbNOWeDrC7D87THPA=; b=UEgdY7FwW+oEfPPuMJZxRVTZmRYHqy/dMCL2HjciHyt0yT782Tbjumq8x/J7oeYiaI plW7LPbOU34Nl0SmbPpaT0OPeOCxL4XpPPE0g9v7NAYQrIFVh5pzh9jtTviRIICPxt+B PP8PevzPgtDd4+VYcNbwLsf7wMHOkXb3bgZZiiodB8h4UqF/FTETFTGamJ3B3hfrSIbC PlZ+zxdcWyUbJTPiu/SHo64sepC/yTFbPqBxj56KVuk5a71dsgVUPPgZ0y9QcDMR8tnJ xE+qWd7fCl8dRQ3TTIXDMc/nLwLRJ9AwqDgTeptkytsuCuyTHhqsY1Ld5iirbkWI+4vS O2aA== X-Gm-Message-State: AOAM53097KLshPZceuSMnLu8iJi/p9Qad6MMrtE+DFIvJz+TdGBWnsqS 5JBnMlDoPs47FHQpU02mQxAnMw== X-Google-Smtp-Source: ABdhPJxblwpG4OXJ/jt54vhrD7w5/uHn5GsBdY4QtO/lT+xZrnupLotEmBZoHheg2Ad1pFFf1hX43g== X-Received: by 2002:adf:e9c5:: with SMTP id l5mr44846230wrn.218.1636976315312; Mon, 15 Nov 2021 03:38:35 -0800 (PST) Received: from maple.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id f7sm16119643wri.74.2021.11.15.03.38.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 03:38:34 -0800 (PST) Date: Mon, 15 Nov 2021 11:38:32 +0000 From: Daniel Thompson To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, kernel test robot , Lee Jones , Jingoo Han , dri-devel@lists.freedesktop.org, Stefano Babic , Anatolij Gustschin Subject: Re: [PATCH] backlight: ili922x: fix kernel-doc warnings & notation Message-ID: <20211115113832.rsdx3ziuujrobwxx@maple.lan> References: <20211115033925.22024-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211115033925.22024-1-rdunlap@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 14, 2021 at 07:39:25PM -0800, Randy Dunlap wrote: > Convert function-like macro comments to kernel-doc notation and > fix other kernel-doc warnings: > > drivers/video/backlight/ili922x.c:85: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst > * START_BYTE(id, rs, rw) > drivers/video/backlight/ili922x.c:118: warning: expecting prototype for CHECK_FREQ_REG(spi_device s, spi_transfer x)(). Prototype was for CHECK_FREQ_REG() instead > > ili922x.c:92: warning: contents before sections > ili922x.c:150: warning: No description found for return value of 'ili922x_read_status' > ili922x.c:193: warning: No description found for return value of 'ili922x_read' > ili922x.c:247: warning: No description found for return value of 'ili922x_write' > ili922x.c:353: warning: No description found for return value of 'ili922x_poweron' > ili922x.c:382: warning: No description found for return value of 'ili922x_poweroff' > > Fixes: 4cfbfa971478 ("video: backlight: add ili922x lcd driver") > Signed-off-by: Randy Dunlap > Reported-by: kernel test robot > Cc: Lee Jones > Cc: Daniel Thompson > Cc: Jingoo Han > Cc: dri-devel@lists.freedesktop.org > Cc: Stefano Babic > Cc: Anatolij Gustschin Thanks for the fixes. Just a could of quibbles about full stops/periods. > --- > drivers/video/backlight/ili922x.c | 29 ++++++++++++++++++---------- > 1 file changed, 19 insertions(+), 10 deletions(-) > > --- linux-next-20211102.orig/drivers/video/backlight/ili922x.c > +++ linux-next-20211102/drivers/video/backlight/ili922x.c > @@ -82,13 +82,7 @@ > #define START_RW_READ 1 > > /** > - * START_BYTE(id, rs, rw) > - * > - * Set the start byte according to the required operation. > - * The start byte is defined as: > - * ---------------------------------- > - * | 0 | 1 | 1 | 1 | 0 | ID | RS | RW | > - * ---------------------------------- > + * START_BYTE() - Set the start byte according to the required operation Missing full stop/period. > * @id: display's id as set by the manufacturer > * @rs: operation type bit, one of: > * - START_RS_INDEX set the index register > @@ -96,14 +90,19 @@ > * @rw: read/write operation > * - START_RW_WRITE write > * - START_RW_READ read > + * > + * The start byte is defined as: > + * ---------------------------------- > + * | 0 | 1 | 1 | 1 | 0 | ID | RS | RW | > + * ---------------------------------- > */ > #define START_BYTE(id, rs, rw) \ > (0x70 | (((id) & 0x01) << 2) | (((rs) & 0x01) << 1) | ((rw) & 0x01)) > > /** > - * CHECK_FREQ_REG(spi_device s, spi_transfer x) - Check the frequency > - * for the SPI transfer. According to the datasheet, the controller > - * accept higher frequency for the GRAM transfer, but it requires > + * CHECK_FREQ_REG() - Check the frequency for the SPI transfer > + * According to the datasheet, the controller > + * accepts higher frequency for the GRAM transfer, but it requires Also missing the full stop/period in the first sentence of the summary. Note that here the missing full stop does not benefit from a new line to conceal it and we will generate bad text as a result. Check the frequency for the SPI transfer According to the data sheet, the controller accepts... Daniel.