From patchwork Thu Nov 12 19:00:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324244 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp589532ils; Thu, 12 Nov 2020 11:01:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFjRCGmlO1VETIJhgQ6kcZCifzF5d9jmUZdHMFReVGBQcqVqSiXSSOjXLBqs/aNfHAhsGJ X-Received: by 2002:a17:90b:154:: with SMTP id em20mr652713pjb.114.1605207712181; Thu, 12 Nov 2020 11:01:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605207712; cv=none; d=google.com; s=arc-20160816; b=OwG8WBNXm9AVLfCw7qixhX6lOvNSnkvhBZdHEYCsFPiWxUDwrN94qCzeJuzH0pP9nV NBbUBPwwZvesEgpsEOvBfZ4+JyBR8ugyHc4Xt5Va9dawMRDKulXKaBspqF53o3teW/Q6 QcOuSXzDr5Ga4I6CJhAj+V98BVxm5X375Qrwx44lfMGm4hL+AxvTd7qMUDkLHv8mROOe NUyEU4R6FS9voEybf9RwxeBZxjOEpXEtN3QX5es47jYvtXqmHOEis9ouvMTBCvgLhnf4 fqnJfhi6gDvuwXEKgBlu6JZ07/Fp3b6hvvaRXRcIKv8Bg0cTjKDWQt/3/pMK/UMq+Dp1 JMgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=jBznjY80mrNBrmc4hnKhCcnIK+sZ2wwAgYt7t2ns0qI=; b=W7e5OZyEBYaYWwRXU7FM7LtTiXjzCUhIukraP6VhSgEhzLD2JQRTj9Gz9GG4IPurHb YETkCMrFdAXCUIc3wQTF9XRVRFsvSa4QlYA6Dk5PsOi9L8W7kU+MPH72hrFOMzvpN4PL okgymhRQyXXKCmxYteHi8yEtZBh25N6KAaNswuGwZDMG5EupO1welxIrDEV4kWLahtKM 4WO/h0RyXXVNcjiZjxz2HsG0jWBmujR6FfzbIYQIbGHkwuoOGwd9i6uUckkTb16zYaHL xsu2yNWJsmRdZIhWszqUFYD3EuXAeCO87SpuhDHFEJHuHq3VQH847vAqMQcxiboZK6V1 EdIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HaKWon5e; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id fr10si5639487pjb.71.2020.11.12.11.01.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 11:01:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HaKWon5e; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 28DD56E3DB; Thu, 12 Nov 2020 19:01:51 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 458876E3EC for ; Thu, 12 Nov 2020 19:01:48 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id d12so7122077wrr.13 for ; Thu, 12 Nov 2020 11:01:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ov+hNhD3SKYkmXLxIt4K88IOrbz9wi3prlF4IGflKIA=; b=HaKWon5e27vVoEszYC+8GRccl3aOte+jqCuD5RwYvw6ylRWQd+CrIRkR769NKQET+a NL15ssjcWuHmB4bGvwWQE15yhgjPfNjQZJEkpEWKtwO15LmfdpWSGi2jxoGPtRF3onFR OMCJcskY6WOsWAC3jLRiORkoCCBrebvUO0iccdgpgchRhmHQTRjFTdj4H/hd/tNKfWw8 v9VAvpV5PuEmRGo5WNivCmGd2TWHPU1F5F5qdr/ZVVTKGKkszlMWRp6uJ3j6LV5sF6Ce Y2J8LeF0SlEfnnzIAYZPMXx8e/WQ7QclnjIFWV37iZJi2NtqT8r2WywT4Wf331WLmZOl 9r+w== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ov+hNhD3SKYkmXLxIt4K88IOrbz9wi3prlF4IGflKIA=; b=SOcrVnZb82JdULjMBRq4DssHL6u6gC7/QLGVX4HPj3gemcmYZtDgjtaLy/5NLQQy8t b2jaeq1Vb0FV25XGig5YjyxuK1xtxt7kNH47pOQqkOFFjUwdFIiuONFNn0hagzVtIlJL HCvjhY4oMiKn+8MIMiwKkAGCfHoSIXzWNU2/leYaD+PhXXIfygAyufydUK3TYdFOEcdF cI7Ao/uCLXQjBLwqHca337z5OkJSguK1pHFXKaX/L9EQgBPbrr2lOcq7UL7Q6WAxdvZ8 YfgJ1FT8898v7p7iyIrg53u1j6N8Z0GFrbCR6wyb8rM24S6dsdWwuTNKP6Wyh1qJTsu+ kK+A== X-Gm-Message-State: AOAM530imDFAKdqKrnwLL1jDV6ZKgd94ZnmCjzibpSz5w3qmA2/69b9e XVqu9O8HnCECivWkbdKLltVcWQ== X-Received: by 2002:adf:d4c6:: with SMTP id w6mr1152395wrk.71.1605207706981; Thu, 12 Nov 2020 11:01:46 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id p4sm8105214wrm.51.2020.11.12.11.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 11:01:46 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 27/30] drm/sti/sti_hdmi: Move 'colorspace_mode_names' array to where its used Date: Thu, 12 Nov 2020 19:00:36 +0000 Message-Id: <20201112190039.2785914-28-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201112190039.2785914-1-lee.jones@linaro.org> References: <20201112190039.2785914-1-lee.jones@linaro.org> 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: David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Vincent Abriou Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/sti/sti_hdmi.h:36:40: warning: ‘colorspace_mode_names’ defined but not used [-Wunused-const-variable=] 36 | static const struct drm_prop_enum_list colorspace_mode_names[] = { | ^~~~~~~~~~~~~~~~~~~~~ Cc: Benjamin Gaignard Cc: Vincent Abriou Cc: David Airlie Cc: Daniel Vetter Cc: Philipp Zabel Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/sti/sti_hdmi.c | 6 ++++++ drivers/gpu/drm/sti/sti_hdmi.h | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/sti/sti_hdmi.c b/drivers/gpu/drm/sti/sti_hdmi.c index 38a558768e531..f3ace11209dd7 100644 --- a/drivers/gpu/drm/sti/sti_hdmi.c +++ b/drivers/gpu/drm/sti/sti_hdmi.c @@ -167,6 +167,12 @@ struct sti_hdmi_connector { #define to_sti_hdmi_connector(x) \ container_of(x, struct sti_hdmi_connector, drm_connector) +static const struct drm_prop_enum_list colorspace_mode_names[] = { + { HDMI_COLORSPACE_RGB, "rgb" }, + { HDMI_COLORSPACE_YUV422, "yuv422" }, + { HDMI_COLORSPACE_YUV444, "yuv444" }, +}; + u32 hdmi_read(struct sti_hdmi *hdmi, int offset) { return readl(hdmi->regs + offset); diff --git a/drivers/gpu/drm/sti/sti_hdmi.h b/drivers/gpu/drm/sti/sti_hdmi.h index 1f6dc90b5d83a..05b2f3d0d48d3 100644 --- a/drivers/gpu/drm/sti/sti_hdmi.h +++ b/drivers/gpu/drm/sti/sti_hdmi.h @@ -33,12 +33,6 @@ struct hdmi_audio_params { struct hdmi_audio_infoframe cea; }; -static const struct drm_prop_enum_list colorspace_mode_names[] = { - { HDMI_COLORSPACE_RGB, "rgb" }, - { HDMI_COLORSPACE_YUV422, "yuv422" }, - { HDMI_COLORSPACE_YUV444, "yuv444" }, -}; - #define DEFAULT_COLORSPACE_MODE HDMI_COLORSPACE_RGB /**