From patchwork Fri Jan 8 20:14:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 359062 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp856080jai; Fri, 8 Jan 2021 12:16:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwO3/Ix2vGGzOimDyKSge/NRfRajE+2GYgsgWHwd67FPfC0q/YNTKVcX3QgctQiOb2cvbIj X-Received: by 2002:a63:c64c:: with SMTP id x12mr8861644pgg.293.1610136966017; Fri, 08 Jan 2021 12:16:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610136966; cv=none; d=google.com; s=arc-20160816; b=FRbmAB03g2sU/WLNxrwfFdK/jJCufYcPbc1M0Lu4KwmmDEK20qxlhI9AK0zllKn3HY O4R+Q78rtix3GThBRIxbLd1tFFjBmjUD76pZfuDeywnoYEzL0y6juBmtC8cC995XZYuk B0jqHSf5ZMYdp/5zEJw5Myak+pAMd6d7gmxTNtAMVCubPdReZDGfNmn1jYEN+OCuh7Ag hIcd2yy04EkB+cQB44LJkQQYV73iGaRyzYt1rJjsJhf1uRH2+kD79DIR1YWTj6yj7ecL pJlVBp1PeaUp6r/8foWQ+FEvZvb2xJmDOQgEY3EsYW/wBDrMLwu70i7ubCNte8K0q48c mwAg== 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=sWLN8AI2cQu8LhrSQBW16mBdOKLtMFxHwsBO8C+HN4Q=; b=ACQBPrX9oQIHOS2k/cr9mCPHesL3hnGrbcFaz9bu9BHpE6rRW3ku9pflBBWfEIq5Sl rtl6SvzJjhZ8kg6Topfvbj93PgjMtrw0uSY1gQiZ74OTWlPCtnOtBF+ktLP3qPOtjglR xtpr17W8hDOE5kfAfhjJ9TuVhYusutFVx+GenySfis2tpDtxNc/HaQdW9XirW0hrD7Fm k0rkvmgC1Y8AhwNNfNzyaJ7sTAIhYDGFmffpNxG5XTEbBgvFXPT4l1YRfAlhw7b0LutN R4Q6XfOf6YYnW168od1PD+1oF37ABJG27u4SHBGKdDpIu/lDLRzGn5NAQjun+P9xgcFs Ybtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=G8ruob3u; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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. [131.252.210.177]) by mx.google.com with ESMTPS id o9si9884041plx.34.2021.01.08.12.16.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:16:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=G8ruob3u; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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 8BF696E8C4; Fri, 8 Jan 2021 20:16:01 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7A37D6E8DC for ; Fri, 8 Jan 2021 20:16:00 +0000 (UTC) Received: by mail-wm1-x32d.google.com with SMTP id v14so8751418wml.1 for ; Fri, 08 Jan 2021 12:16:00 -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=TsGB1GbRM0lE0DyQTr0kdLB4zVZuV/mNjcQ+anLlZ8k=; b=G8ruob3uLWUoFGkXg2GA/wzh7YN3To9pFFqngX5lh6jb6ZP9fzcDMAWNtCSRMw0EJI ohAQAqhBbi7T7wkgQHXylQTgplUVDEbTlp08mvRxQzKt1Wv27/kJ12a0pJoYJYGYGUIH Vxd1p29aXq8Eo8L7IZ8M8Aa5x2upHls1cXhgf7hp67wDXkwFgiTd4GSceUNYdVJLGKEJ Gv+ZJB4i/GW//bkLwhkEQ87maDacEv19mt7dOsic8lCQnPaiqcDa+OwmNOYcm4iEk0AS Un+AiOhhi7OBWMPkB0i6OXUtl+noOlMnqhpL2mtwAuC1J2158geqv+1Lbns0tTZhK0Q8 mVrA== 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=TsGB1GbRM0lE0DyQTr0kdLB4zVZuV/mNjcQ+anLlZ8k=; b=djBq5H0epYAE+l0qm/jgWetz6zWGbLzcJ62bL1D1zmlflwZYerrpJL3+4lFcbNXipT f1cC6kxXQBKy73hxjJ9um4/MErTOqCVWRLA1jmBkqs5pFR8plDl0qQEcDqXaJrm+U/jd FAkMUxCM590rUPf/Q4QkyL03Llyxu3NaNryQkbUVKHa095wjAz1c1BH/UUa6F95rDcB3 jpe9oIgOzUqzmLM3zhqdMwHbOoaqQ577FHEK3ofZOv1GEJWGrFv14CWbvuUnCmQ3P+Lm 7DSthfWdnFCMmcFiTqTZrYtb6tOBSNoP5aVkEomNhMvxwuQIiYEXiCmQSO4tmcc5qc35 TJ5g== X-Gm-Message-State: AOAM531Xv/Va8TkQ8UrnThnw5pMi530rQs52dhBQ+NEMubtvQwnasFpz PEkXap4sXJAzY+AOkdwQauUOrA== X-Received: by 2002:a05:600c:1552:: with SMTP id f18mr4492260wmg.125.1610136959036; Fri, 08 Jan 2021 12:15:59 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id l8sm15598671wrb.73.2021.01.08.12.15.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:58 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 38/40] drm/amd/display/dc/dce/dce_panel_cntl: Remove unused variables 'bl_pwm_cntl' and 'pwm_period_cntl' Date: Fri, 8 Jan 2021 20:14:55 +0000 Message-Id: <20210108201457.3078600-39-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210108201457.3078600-1-lee.jones@linaro.org> References: <20210108201457.3078600-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: Leo Li , Anthony Koo , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c: In function ‘dce_get_16_bit_backlight_from_pwm’: drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:54:11: warning: variable ‘bl_pwm_cntl’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:53:11: warning: variable ‘pwm_period_cntl’ set but not used [-Wunused-but-set-variable] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Anthony Koo Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/dc/dce/dce_panel_cntl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_panel_cntl.c b/drivers/gpu/drm/amd/display/dc/dce/dce_panel_cntl.c index 761fdfc1f5bd0..e923392358631 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_panel_cntl.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_panel_cntl.c @@ -50,16 +50,16 @@ static unsigned int dce_get_16_bit_backlight_from_pwm(struct panel_cntl *panel_c { uint64_t current_backlight; uint32_t round_result; - uint32_t pwm_period_cntl, bl_period, bl_int_count; - uint32_t bl_pwm_cntl, bl_pwm, fractional_duty_cycle_en; + uint32_t bl_period, bl_int_count; + uint32_t bl_pwm, fractional_duty_cycle_en; uint32_t bl_period_mask, bl_pwm_mask; struct dce_panel_cntl *dce_panel_cntl = TO_DCE_PANEL_CNTL(panel_cntl); - pwm_period_cntl = REG_READ(BL_PWM_PERIOD_CNTL); + REG_READ(BL_PWM_PERIOD_CNTL); REG_GET(BL_PWM_PERIOD_CNTL, BL_PWM_PERIOD, &bl_period); REG_GET(BL_PWM_PERIOD_CNTL, BL_PWM_PERIOD_BITCNT, &bl_int_count); - bl_pwm_cntl = REG_READ(BL_PWM_CNTL); + REG_READ(BL_PWM_CNTL); REG_GET(BL_PWM_CNTL, BL_ACTIVE_INT_FRAC_CNT, (uint32_t *)(&bl_pwm)); REG_GET(BL_PWM_CNTL, BL_PWM_FRACTIONAL_EN, &fractional_duty_cycle_en);