From patchwork Tue Jun 6 19:06:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sui Jingfeng X-Patchwork-Id: 104069 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3616107vqr; Tue, 6 Jun 2023 12:16:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7kYhmYEhbJ6u7UYJApwaOPGqP3LzUZkHUld/kLwh+u8MC8RA3/GnB9UdSuJ1uJhk0rQldB X-Received: by 2002:a05:620a:1b8c:b0:75b:23a1:362f with SMTP id dv12-20020a05620a1b8c00b0075b23a1362fmr754090qkb.64.1686078977749; Tue, 06 Jun 2023 12:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686078977; cv=none; d=google.com; s=arc-20160816; b=rDkByS0ruw/Nwcll9Z18nH36yUEdwRu/RxPwC5q3LTxkZLyKiexC7zWFnWlKq5OGgi ejQDouLJUN2OqbwZO8w45832ZWP21TkMvZ39Sif8ulAunU4Ec9yLiVazdZXnRMhRuXkb gTd/kaVT6/8fmxPGnpN8kEOlQ0F9fX/Hdu0oFt4Y5rdGA1Vvt87EuJhA0li9jaiTftTA ZKarxSOBAUqufLGbS4dn/OBow7NANvczGAx0e8VQCyVAUqzKrhq66obxCkG8a2J+edWV OLpaxFWv0YKFL6ex0cytOn8inq1uTsCy3ZiGb/XDNRfmKOiE/V9gttI43vveD16aq+6k dxOQ== 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 :message-id:date:subject:cc:to:from; bh=+N5Cu4RApjSe8aNdmR/8VbenaA1DvT+RmY0yNtVBEL0=; b=0+w0n7bZtslJi4Q+FHe9Q9zltmnuKTDoBbJyt1e62hHCOLhGgAunLhCTQiBpMBnHXt HHOd6kY7YzEVMKfvINJRU615CdNwapcCxc9wNNRj3bHJpn+gvMfUaVe7Q4d2Hrnbj0In eS7DVL9FjgpfevPdnC+7ZGeh4b/f6Lc9pphxMaL4BjfHdfA5ytrh/H1iQfFg3wgNCoPj OWoClWJBmtlxTyIkYGYCItfsTKj+Ga5qyc/SOY9hhjjyi8JbGIBpNLitDc1a7yJNeWAF Q05s6Mc1I0VtDucLPFRCGhPziSLy/19Bwyw3zTGRxizjdiseWVk0DqwLfKYZzd7yUlfK 8GFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p28-20020a05620a113c00b00759348adce5si6161009qkk.196.2023.06.06.12.16.03; Tue, 06 Jun 2023 12:16:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239533AbjFFTM5 (ORCPT + 99 others); Tue, 6 Jun 2023 15:12:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239373AbjFFTMg (ORCPT ); Tue, 6 Jun 2023 15:12:36 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B1E4319BD for ; Tue, 6 Jun 2023 12:10:43 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8AxUem0g39kwUwAAA--.391S3; Wed, 07 Jun 2023 03:06:28 +0800 (CST) Received: from openarena.loongson.cn (unknown [10.20.42.43]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxPMqpg39k9fgCAA--.3107S2; Wed, 07 Jun 2023 03:06:17 +0800 (CST) From: Sui Jingfeng To: Ben Skeggs , Karol Herbst , Lyude Paul , David Airlie , Daniel Vetter , Thomas Zimmermann , Javier Martinez Canillas , Sui Jingfeng Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/nouveau: fix codeing style Date: Wed, 7 Jun 2023 03:06:17 +0800 Message-Id: <20230606190617.300080-1-suijingfeng@loongson.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8AxPMqpg39k9fgCAA--.3107S2 X-CM-SenderInfo: xvxlyxpqjiv03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBj93XoW7Aw18Kr1DZryxGr4UKr1UXFc_yoW8tF4DpF ZrCFyFgaykta1Fg3W8tF1v9FWrGan3KayIk3ZrCwsag3ZIyr1UZr4YkF93Zr9xXFyxCw17 trnrtF1agF4FyrcCm3ZEXasCq-sJn29KB7ZKAUJUUUU7529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUBYb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Gr0_Gr1UM2kKe7AKxVWUXVWUAwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYI kI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUAVWU twAv7VC2z280aVAFwI0_Gr0_Cr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI4 8JMxkF7I0En4kS14v26r126r1DMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j 6r4UMxCIbckI1I0E14v26r1Y6r17MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwV AFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv2 0xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4 v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AK xVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU0b6pPUUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767981950305608268?= X-GMAIL-MSGID: =?utf-8?q?1767981950305608268?= drivers/gpu/drm/nouveau/dispnv04/crtc.c:453: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Sets up registers for the given mode/adjusted_mode pair. drivers/gpu/drm/nouveau/dispnv04/crtc.c:629: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Sets up registers for the given mode/adjusted_mode pair. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/nouveau/dispnv04/crtc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/nouveau/dispnv04/crtc.c b/drivers/gpu/drm/nouveau/dispnv04/crtc.c index a6f2e681bde9..2a9400ba4b92 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/crtc.c +++ b/drivers/gpu/drm/nouveau/dispnv04/crtc.c @@ -413,8 +413,8 @@ nv_crtc_mode_set_vga(struct drm_crtc *crtc, struct drm_display_mode *mode) regp->CRTC[NV_CIO_CRE_ILACE__INDEX] = 0xff; /* interlace off */ /* - * Graphics Display Controller - */ + * Graphics Display Controller + */ regp->Graphics[NV_VIO_GX_SR_INDEX] = 0x00; regp->Graphics[NV_VIO_GX_SREN_INDEX] = 0x00; regp->Graphics[NV_VIO_GX_CCOMP_INDEX] = 0x00; @@ -449,7 +449,7 @@ nv_crtc_mode_set_vga(struct drm_crtc *crtc, struct drm_display_mode *mode) regp->Attribute[NV_CIO_AR_CSEL_INDEX] = 0x00; } -/** +/* * Sets up registers for the given mode/adjusted_mode pair. * * The clocks, CRTCs and outputs attached to this CRTC must be off. @@ -625,7 +625,7 @@ nv_crtc_swap_fbs(struct drm_crtc *crtc, struct drm_framebuffer *old_fb) return ret; } -/** +/* * Sets up registers for the given mode/adjusted_mode pair. * * The clocks, CRTCs and outputs attached to this CRTC must be off. @@ -1263,9 +1263,9 @@ static const struct drm_crtc_helper_funcs nv04_crtc_helper_funcs = { }; static const uint32_t modeset_formats[] = { - DRM_FORMAT_XRGB8888, - DRM_FORMAT_RGB565, - DRM_FORMAT_XRGB1555, + DRM_FORMAT_XRGB8888, + DRM_FORMAT_RGB565, + DRM_FORMAT_XRGB1555, }; static const struct drm_plane_funcs nv04_primary_plane_funcs = {