Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3360294ybk; Tue, 19 May 2020 02:42:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxGYd8KCygkGw4j/T+9F1qrnpkHxpBAcpgOf9yzzucerLdTMMXZ2fuf8ixRjgx+hmnR4kv X-Received: by 2002:a05:6402:31b5:: with SMTP id dj21mr11739937edb.160.1589881367031; Tue, 19 May 2020 02:42:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589881367; cv=none; d=google.com; s=arc-20160816; b=uwFdKRLALptgBIlmApT8zrqhGMyEDYTmQ7zpkJPIwAVe/yBNbnT15ed7/1zMW6jGCz kwAwX3AF6Zed6YRKGo7QqqN1N/9kR3mPvrWUHtcIKOjAVvj4UTCJ115iIS+cvnSsMvvs nku4xKPyUsZvXiNN/+YJI5MIu4WkvFuIV2voH5Mvgq1UxCBBi8diXdXr/98/bsn6sNKL NSQTZkNXTnOsnkk4Ofjaokk8QRlAwKdWpTxbx4rp4x0he8pe/OQy1xlpWQe7jEoz+1gL YfPgP3Z/4utaixfA+ijyRHb5TZh7vpkUS2HZGzaAiSGUx3D3pznreoyg05+OQnd4JyRd ad2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=rwVSRw/2rhJirO9EpxeEPuWFLT9DphpdR+gkiG8QGR0=; b=miD8/A6Be/sEG/JUqwv4Y61dhS3MGKogjCmNZa1XE8RiAkaLKDx7aa8MK0DpCRU1To vxAsK5FnDXj1j4fxIGJ+k8pFigHrnMB8zuxK4TAh4h1+JEOhZuE8hPoSV1fbcph9Y/BV UaWfz0fH6xbzHU4u6PHj7Jd0L/psgxlgIsDU/7sXSsrJAzCFuwWydCbhgk2Q9eSrMK95 d38NOKoyH7oIFc42XgMNdSXWCnV9M6P0ive8LrQMCYlYPp7kHDMwq50UjWo9OlYVhksF Nls1fKXrjejkp0FUs0ZuSuXC6HnQY1h2J3zcy+1bP3r+6osBnalvgSrsVWRWRY4pjIpq Rfaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si806466ejm.185.2020.05.19.02.42.22; Tue, 19 May 2020 02:42:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726508AbgESJk4 (ORCPT + 99 others); Tue, 19 May 2020 05:40:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbgESJkz (ORCPT ); Tue, 19 May 2020 05:40:55 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA18BC061A0C for ; Tue, 19 May 2020 02:40:55 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id C65332A03BE From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: Collabora Kernel ML , matthias.bgg@gmail.com, drinkcat@chromium.org, hsinyi@chromium.org, Chun-Kuang Hu , Daniel Vetter , David Airlie , Philipp Zabel , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH] drm/mediatek: mtk_mt8173_hdmi_phy: Remove unnused const variables Date: Tue, 19 May 2020 11:40:45 +0200 Message-Id: <20200519094045.2447940-1-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are some `static const u8` variables that are not used, this triggers a warning building with `make W=1`, it is safe to remove them, so do it and make the compiler more happy. Signed-off-by: Enric Balletbo i Serra --- .../gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c | 48 ------------------- 1 file changed, 48 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c b/drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c index 1c3575372230..827b93786fac 100644 --- a/drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c +++ b/drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c @@ -107,54 +107,6 @@ #define RGS_HDMITX_5T1_EDG (0xf << 4) #define RGS_HDMITX_PLUG_TST BIT(0) -static const u8 PREDIV[3][4] = { - {0x0, 0x0, 0x0, 0x0}, /* 27Mhz */ - {0x1, 0x1, 0x1, 0x1}, /* 74Mhz */ - {0x1, 0x1, 0x1, 0x1} /* 148Mhz */ -}; - -static const u8 TXDIV[3][4] = { - {0x3, 0x3, 0x3, 0x2}, /* 27Mhz */ - {0x2, 0x1, 0x1, 0x1}, /* 74Mhz */ - {0x1, 0x0, 0x0, 0x0} /* 148Mhz */ -}; - -static const u8 FBKSEL[3][4] = { - {0x1, 0x1, 0x1, 0x1}, /* 27Mhz */ - {0x1, 0x0, 0x1, 0x1}, /* 74Mhz */ - {0x1, 0x0, 0x1, 0x1} /* 148Mhz */ -}; - -static const u8 FBKDIV[3][4] = { - {19, 24, 29, 19}, /* 27Mhz */ - {19, 24, 14, 19}, /* 74Mhz */ - {19, 24, 14, 19} /* 148Mhz */ -}; - -static const u8 DIVEN[3][4] = { - {0x2, 0x1, 0x1, 0x2}, /* 27Mhz */ - {0x2, 0x2, 0x2, 0x2}, /* 74Mhz */ - {0x2, 0x2, 0x2, 0x2} /* 148Mhz */ -}; - -static const u8 HTPLLBP[3][4] = { - {0xc, 0xc, 0x8, 0xc}, /* 27Mhz */ - {0xc, 0xf, 0xf, 0xc}, /* 74Mhz */ - {0xc, 0xf, 0xf, 0xc} /* 148Mhz */ -}; - -static const u8 HTPLLBC[3][4] = { - {0x2, 0x3, 0x3, 0x2}, /* 27Mhz */ - {0x2, 0x3, 0x3, 0x2}, /* 74Mhz */ - {0x2, 0x3, 0x3, 0x2} /* 148Mhz */ -}; - -static const u8 HTPLLBR[3][4] = { - {0x1, 0x1, 0x0, 0x1}, /* 27Mhz */ - {0x1, 0x2, 0x2, 0x1}, /* 74Mhz */ - {0x1, 0x2, 0x2, 0x1} /* 148Mhz */ -}; - static int mtk_hdmi_pll_prepare(struct clk_hw *hw) { struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); -- 2.26.2