Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3381750ybt; Sat, 4 Jul 2020 15:34:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZb70UoYJhAIUr0tN5aS4EUDwPV+JGQg9u3bJRcsZy6gz3QiJjBYyliwCQo0Hw1E9WCy5m X-Received: by 2002:a05:6402:176e:: with SMTP id da14mr32403461edb.262.1593902064791; Sat, 04 Jul 2020 15:34:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593902064; cv=none; d=google.com; s=arc-20160816; b=m6CRToQ9ImYhMDAaGXw8hg6Sm2v2ZYGvDlmQF4vu67naILYNaJsutCNyuofpUDqk/V 3f7mhcXTOzodYkI8yb6wcEW3WHZkPgqX5dmz/pgNMYbAHQ40YHAp1BIspNRaxrwnIz5u 3n6oFEhbaGcYdAl9VyHF1APUP1ry3LjjogJ+NmedUgbUSEQnkc/bNJtAtIn6sp3U824z EzgTVcGGIT41VaUQPph1iGSxqCCaK7JItKSmvH1gsue3TPTJtEC+ubszG/2UceeAxBDL KyCFEAP7/FlTdLrYsKS/psrrBaQaOyCAMO3/gm8YHUGUVVXJDZvYBzvZQL6Yv6aX28T/ xURg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=d3/GjPRg55rYFoW4RjP2+tgzXxy6rd/btzS9aiIKwh8=; b=MeF1VDXMexsh+a0JaRKDI8duE72+Gg+cVJKMKsGxa2LghtFwHvBNgN4Hmql5KeY9w9 yhxnwBPxVEbEX7cZlbgPiTG20FcWTOpb+uN8/pQXcTeKwvsKgKHv/D3dxfwDoN6ooXZ5 slD53SYKR7Igw7bAYdY/n/+7Ae5CpXcu5ud6u1WmdnEI+SnNw2L+Ngme0jadE+jL7xu2 bPRTSxzepgyC2kmU9d0k9IwpYDFBKu+4ioklGe3X2DIO6+n+vpM6kl41+D50C+U/bUF+ 1Xr6Ntov/wZiG8c5IzaiJuaC3aLx0sCENZZCf+fY7Lvdr3ovPo1jdzLurZCA4RGZWvG2 AJsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OU2Bcdj8; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr2si13633554ejc.18.2020.07.04.15.34.01; Sat, 04 Jul 2020 15:34:24 -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; dkim=pass header.i=@kernel.org header.s=default header.b=OU2Bcdj8; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727990AbgGDWca (ORCPT + 99 others); Sat, 4 Jul 2020 18:32:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:36438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727084AbgGDWc3 (ORCPT ); Sat, 4 Jul 2020 18:32:29 -0400 Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9084D20870 for ; Sat, 4 Jul 2020 22:32:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593901948; bh=JDgxeDc0q77mn2Bfmub/zIa2vh8KeOhsnmJmESnVl2I=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=OU2Bcdj8eCRQq8bAmhgE0cftlYY58Yxm5cABJyNij191smRipqOnrccERDDwgDzvh 0MbRVPb51d4BQjFO2kjLhRMssRQ/uR5jhrGvor4tNUsC39LEY4vE568Hl4KKZZy/AR hil1WKo3XVAUlPSWNvZD0kFhNY/zehPelTPTa/P0= Received: by mail-ed1-f51.google.com with SMTP id b15so31205545edy.7 for ; Sat, 04 Jul 2020 15:32:28 -0700 (PDT) X-Gm-Message-State: AOAM531dtA2u51seFGiha3dELZnYPPeXQLI45tTp3pJJbT7ofA6kCjoE 9dISwpql7ZcMjK0jmmMsZtWtbOH96FVhAogCNA== X-Received: by 2002:a05:6402:203c:: with SMTP id ay28mr38014412edb.271.1593901947136; Sat, 04 Jul 2020 15:32:27 -0700 (PDT) MIME-Version: 1.0 References: <20200519094045.2447940-1-enric.balletbo@collabora.com> In-Reply-To: From: Chun-Kuang Hu Date: Sun, 5 Jul 2020 06:32:10 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm/mediatek: mtk_mt8173_hdmi_phy: Remove unnused const variables To: Chun-Kuang Hu Cc: Enric Balletbo i Serra , linux-kernel , Collabora Kernel ML , Matthias Brugger , Nicolas Boichat , Hsin-Yi Wang , Daniel Vetter , David Airlie , Philipp Zabel , DRI Development , Linux ARM , "moderated list:ARM/Mediatek SoC support" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Enric: Chun-Kuang Hu =E6=96=BC 2020=E5=B9=B45=E6=9C=8819= =E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=8811:12=E5=AF=AB=E9=81=93=EF= =BC=9A > > Hi, Enric: > > Enric Balletbo i Serra =E6=96=BC 2020=E5= =B9=B45=E6=9C=8819=E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=885:40=E5=AF= =AB=E9=81=93=EF=BC=9A > > > > There are some `static const u8` variables that are not used, this > > triggers a warning building with `make W=3D1`, it is safe to remove the= m, > > so do it and make the compiler more happy. > > > > Reviewed-by: Chun-Kuang Hu Applied to mediatek-drm-fixes [1], thanks. [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/= log/?h=3Dmediatek-drm-fixes Regards, Chun-Kuang. > > > 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/g= pu/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] =3D { > > - {0x0, 0x0, 0x0, 0x0}, /* 27Mhz */ > > - {0x1, 0x1, 0x1, 0x1}, /* 74Mhz */ > > - {0x1, 0x1, 0x1, 0x1} /* 148Mhz */ > > -}; > > - > > -static const u8 TXDIV[3][4] =3D { > > - {0x3, 0x3, 0x3, 0x2}, /* 27Mhz */ > > - {0x2, 0x1, 0x1, 0x1}, /* 74Mhz */ > > - {0x1, 0x0, 0x0, 0x0} /* 148Mhz */ > > -}; > > - > > -static const u8 FBKSEL[3][4] =3D { > > - {0x1, 0x1, 0x1, 0x1}, /* 27Mhz */ > > - {0x1, 0x0, 0x1, 0x1}, /* 74Mhz */ > > - {0x1, 0x0, 0x1, 0x1} /* 148Mhz */ > > -}; > > - > > -static const u8 FBKDIV[3][4] =3D { > > - {19, 24, 29, 19}, /* 27Mhz */ > > - {19, 24, 14, 19}, /* 74Mhz */ > > - {19, 24, 14, 19} /* 148Mhz */ > > -}; > > - > > -static const u8 DIVEN[3][4] =3D { > > - {0x2, 0x1, 0x1, 0x2}, /* 27Mhz */ > > - {0x2, 0x2, 0x2, 0x2}, /* 74Mhz */ > > - {0x2, 0x2, 0x2, 0x2} /* 148Mhz */ > > -}; > > - > > -static const u8 HTPLLBP[3][4] =3D { > > - {0xc, 0xc, 0x8, 0xc}, /* 27Mhz */ > > - {0xc, 0xf, 0xf, 0xc}, /* 74Mhz */ > > - {0xc, 0xf, 0xf, 0xc} /* 148Mhz */ > > -}; > > - > > -static const u8 HTPLLBC[3][4] =3D { > > - {0x2, 0x3, 0x3, 0x2}, /* 27Mhz */ > > - {0x2, 0x3, 0x3, 0x2}, /* 74Mhz */ > > - {0x2, 0x3, 0x3, 0x2} /* 148Mhz */ > > -}; > > - > > -static const u8 HTPLLBR[3][4] =3D { > > - {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 =3D to_mtk_hdmi_phy(hw); > > -- > > 2.26.2 > >