From patchwork Thu Dec 5 16:49:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11275203 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7C552109A for ; Thu, 5 Dec 2019 16:50:09 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 61E8C22525 for ; Thu, 5 Dec 2019 16:50:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 61E8C22525 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 967A06F8A5; Thu, 5 Dec 2019 16:50:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id 95F3C6E98E for ; Thu, 5 Dec 2019 16:50:03 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id c14so4456149wrn.7 for ; Thu, 05 Dec 2019 08:50:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=t42xPjTyvfLMvUhdNh1l3lt73uCFKMoYKl1hASCP07s=; b=W1eenMLepMtM+5m9WS+80kcU/HWWsMl6b5vEwV+90uDOfdc17ZFPyOn7W2TyZv3QOj dF26RNSyBP3MmFm8OtgxzgxtVSgmWSF3AnKEm8oA1PWUPe8Sb+QjpqgBsqShHDHZXMtB s9EqXBuM91J1S8AaU/MnKjkrCk2U/9vAvZbCtBnMU5vC7VKfgOAx8svQPFXZrGZgY4Ku y6C6XOMWGxWCGFQqJx7CuPLrd74dKb4cQNUioNjpB0gD3yHITM598YTC1yEfxR/i7gqa Jeu/znDdX/3i6uzD/CN8z141N7RXnVKDFejkC9oJbXm5YbVYqZKadmTwvfay2pm3P/4u MoLw== X-Gm-Message-State: APjAAAWG9DixIPZ3Zy7kjWRcTztpozi+nNx6Lp/e4G6y+SGbFMcKaKXK XT3YHb1yRY7YfTv/a1Jqlu5l6Vw8qsU= X-Google-Smtp-Source: APXvYqzUONrblR04Qt3dae6jT2dna2r8RbQaA2GdHzkhkL5d8+9IVLuFAO4aTjJYb+goAY+dAMFu1w== X-Received: by 2002:adf:e74a:: with SMTP id c10mr10851168wrn.386.1575564601810; Thu, 05 Dec 2019 08:50:01 -0800 (PST) Received: from localhost (pD9E518ED.dip0.t-ipconnect.de. [217.229.24.237]) by smtp.gmail.com with ESMTPSA id w17sm13275333wrt.89.2019.12.05.08.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2019 08:50:00 -0800 (PST) From: Thierry Reding To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/2] drm: Fix a couple of typos, punctation and whitespace issues Date: Thu, 5 Dec 2019 17:49:58 +0100 Message-Id: <20191205164959.1926200-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=t42xPjTyvfLMvUhdNh1l3lt73uCFKMoYKl1hASCP07s=; b=THN5VHJj6QT4WK810vK8nWtsEKowUibtGcFtVAy1QREHeCmq/7xORuTUnZ2BSW1UEX Y97GZZmcqL/ahF4ERss3DNv0Onhxh8RKYPvR6xowZkGTSpr7uPYz7+xx1oK+U3R1aDSe 7aS1NOYiAIfxsCMtK+DBUcGOVRIUPOS9fY5a30DhFT7kcW536uhS4wzD8BKV1F0W9LWk CLOQXhPWHdLJJyUx+MVj5FKGM17rJH/552GLF2hne6t3RCtKtdaVnWMW//KSjJ7FyxuG oQ9KX5HBb6J/cCKrRkyvdcnpNUhXpf1l5FEy9eYRD2xNfhkK4J/I6X+jbrSlYTtFQY49 9d2g== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Thierry Reding These are just a couple of things that I came across as I was reading through the code and comments. Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_atomic_helper.c | 10 +++++----- drivers/gpu/drm/drm_edid.c | 2 +- include/drm/drm_atomic.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c index 76289fe642f1..7bf245aa2d05 100644 --- a/drivers/gpu/drm/drm_atomic_helper.c +++ b/drivers/gpu/drm/drm_atomic_helper.c @@ -220,7 +220,7 @@ set_best_encoder(struct drm_atomic_state *state, crtc = conn_state->connector->state->crtc; /* A NULL crtc is an error here because we should have - * duplicated a NULL best_encoder when crtc was NULL. + * duplicated a NULL best_encoder when crtc was NULL. * As an exception restoring duplicated atomic state * during resume is allowed, so don't warn when * best_encoder is equal to encoder we intend to set. @@ -562,7 +562,7 @@ mode_valid(struct drm_atomic_state *state) * * 1. &drm_connector_helper_funcs.atomic_best_encoder for determining the new encoder. * 2. &drm_connector_helper_funcs.atomic_check to validate the connector state. - * 3. If it's determined a modeset is needed then all connectors on the affected crtc + * 3. If it's determined a modeset is needed then all connectors on the affected * crtc are added and &drm_connector_helper_funcs.atomic_check is run on them. * 4. &drm_encoder_helper_funcs.mode_valid, &drm_bridge_funcs.mode_valid and * &drm_crtc_helper_funcs.mode_valid are called on the affected components. @@ -1407,7 +1407,7 @@ EXPORT_SYMBOL(drm_atomic_helper_wait_for_fences); * @dev: DRM device * @old_state: atomic state object with old state structures * - * Helper to, after atomic commit, wait for vblanks on all effected + * Helper to, after atomic commit, wait for vblanks on all affected * crtcs (ie. before cleaning up old framebuffers using * drm_atomic_helper_cleanup_planes()). It will only wait on CRTCs where the * framebuffers have actually changed to optimize for the legacy cursor and @@ -1467,10 +1467,10 @@ EXPORT_SYMBOL(drm_atomic_helper_wait_for_vblanks); * @dev: DRM device * @old_state: atomic state object with old state structures * - * Helper to, after atomic commit, wait for page flips on all effected + * Helper to, after atomic commit, wait for page flips on all affected * crtcs (ie. before cleaning up old framebuffers using * drm_atomic_helper_cleanup_planes()). Compared to - * drm_atomic_helper_wait_for_vblanks() this waits for the completion of on all + * drm_atomic_helper_wait_for_vblanks() this waits for the completion on all * CRTCs, assuming that cursors-only updates are signalling their completion * immediately (or using a different path). * diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 474ac04d5600..f3d3925bab84 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -4573,7 +4573,7 @@ static void drm_parse_hdmi_forum_vsdb(struct drm_connector *connector, if (scdc->supported) { scdc->scrambling.supported = true; - /* Few sinks support scrambling for cloks < 340M */ + /* Few sinks support scrambling for clocks < 340M */ if ((hf_vsdb[6] & 0x8)) scdc->scrambling.low_rates = true; } diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h index 9115079974b0..1c10e0d667e6 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic.h @@ -35,7 +35,7 @@ * struct drm_crtc_commit - track modeset commits on a CRTC * * This structure is used to track pending modeset changes and atomic commit on - * a per-CRTC basis. Since updating the list should never block this structure + * a per-CRTC basis. Since updating the list should never block, this structure * is reference counted to allow waiters to safely wait on an event to complete, * without holding any locks. *