summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panel/panel-truly-nt35597.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2020-04-17 18:14:01 +0800
committerSam Ravnborg <sam@ravnborg.org>2020-04-25 16:56:54 +0200
commit3d930aacd637cca551f216c61b2e1c455db58eb0 (patch)
tree3f8d0b15316b2f9868fbbc44738e7c2ef354fe0c /drivers/gpu/drm/panel/panel-truly-nt35597.c
parent232f23e8cd97cc27e91a6e0f9cd055248abd329b (diff)
downloadlinux-stable-3d930aacd637cca551f216c61b2e1c455db58eb0.tar.gz
linux-stable-3d930aacd637cca551f216c61b2e1c455db58eb0.tar.bz2
linux-stable-3d930aacd637cca551f216c61b2e1c455db58eb0.zip
drm/panel: remove set but not used variable 'config'
drivers/gpu/drm/panel/panel-truly-nt35597.c:493:31: warning: variable ‘config’ set but not used [-Wunused-but-set-variable] const struct nt35597_config *config; ^~~~~~ Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20200417101401.19388-1-yuehaibing@huawei.com
Diffstat (limited to 'drivers/gpu/drm/panel/panel-truly-nt35597.c')
-rw-r--r--drivers/gpu/drm/panel/panel-truly-nt35597.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/panel/panel-truly-nt35597.c b/drivers/gpu/drm/panel/panel-truly-nt35597.c
index 012ca62bf30e..f0ad6081570f 100644
--- a/drivers/gpu/drm/panel/panel-truly-nt35597.c
+++ b/drivers/gpu/drm/panel/panel-truly-nt35597.c
@@ -490,9 +490,7 @@ static int truly_nt35597_panel_add(struct truly_nt35597 *ctx)
{
struct device *dev = ctx->dev;
int ret, i;
- const struct nt35597_config *config;
- config = ctx->config;
for (i = 0; i < ARRAY_SIZE(ctx->supplies); i++)
ctx->supplies[i].supply = regulator_names[i];