From patchwork Wed Feb 16 08:41:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 12748259 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4E738C433F5 for ; Wed, 16 Feb 2022 09:04:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7AE0210E791; Wed, 16 Feb 2022 09:04:45 +0000 (UTC) Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6672110E73F for ; Wed, 16 Feb 2022 09:04:32 +0000 (UTC) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:7534:e0be:5adf:2691]) by michel.telenet-ops.be with bizsmtp id vl4V2600X18GbK106l4VEt; Wed, 16 Feb 2022 10:04:30 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1nKGEf-000wtW-Bu; Wed, 16 Feb 2022 10:04:29 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1nKFsN-00CE2Y-Jg; Wed, 16 Feb 2022 09:41:27 +0100 From: Geert Uytterhoeven To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Subject: [PATCH] drm/mode: Improve drm_mode_fb_cmd2 documentation Date: Wed, 16 Feb 2022 09:41:26 +0100 Message-Id: <20220216084126.2913861-1-geert@linux-m68k.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Geert Uytterhoeven , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fix various grammar mistakes in the kerneldoc comments documenting the drm_mode_fb_cmd2 structure: - s/is/are/, - s/8 bit/8-bit/. Signed-off-by: Geert Uytterhoeven --- include/uapi/drm/drm_mode.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h index e1e351682872ebb3..5cea483c7be7a29e 100644 --- a/include/uapi/drm/drm_mode.h +++ b/include/uapi/drm/drm_mode.h @@ -673,12 +673,12 @@ struct drm_mode_fb_cmd2 { /* * In case of planar formats, this ioctl allows up to 4 * buffer objects with offsets and pitches per plane. - * The pitch and offset order is dictated by the fourcc, + * The pitch and offset order are dictated by the fourcc, * e.g. NV12 (https://fourcc.org/yuv.php#NV12) is described as: * - * YUV 4:2:0 image with a plane of 8 bit Y samples + * YUV 4:2:0 image with a plane of 8-bit Y samples * followed by an interleaved U/V plane containing - * 8 bit 2x2 subsampled colour difference samples. + * 8-bit 2x2 subsampled colour difference samples. * * So it would consist of Y as offsets[0] and UV as * offsets[1]. Note that offsets[0] will generally