From patchwork Tue Jul 21 07:39:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11675087 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D9B6613A4 for ; Tue, 21 Jul 2020 07:39:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C17F320717 for ; Tue, 21 Jul 2020 07:39:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="aNZscceQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727034AbgGUHj2 (ORCPT ); Tue, 21 Jul 2020 03:39:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726933AbgGUHj1 (ORCPT ); Tue, 21 Jul 2020 03:39:27 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C7B3C0619D6 for ; Tue, 21 Jul 2020 00:39:27 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id o2so1852312wmh.2 for ; Tue, 21 Jul 2020 00:39:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cJUflLSxHtf/sa8csoJgmFcN71WVeF/7yJM+R1zANs4=; b=aNZscceQn1Dl45cuBWyWTUy4PJD9d6KTGqmPfZ+4chPoR4Dl6+IMEpbgutX90tTDCc mYqm3dJZd9xCJyxoJoxg5iduHcWbg1nRZeRTkz9BQ1UE9HaSElwDMcKE0VImX+gSk+VS vSBnvljYJV7ZTwM6AZK4VCDxCZsECTxSXV19qEfiW4lrKi5/l0z2egPui2rS7FKf11Vp qx1SZBu4DpSYMnU+8tjOFzSp3GUzE7hjMnY1iZ3FUzp35hGe+UJqmvnx9pR2kauU2KoT U9zlJHrAt4LtfWmnsPtkuFq7jea/Q4E6zhR1ZS0owhTslgy0AZM2+CUsjA7beEUURO4i l1JA== 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:mime-version :content-transfer-encoding; bh=cJUflLSxHtf/sa8csoJgmFcN71WVeF/7yJM+R1zANs4=; b=M3s/2kjAfI/aDWN4emtjHbTRwghZP1HxINk5ct7DpiWqTrIw36qnMaG70qumtonEcR JgoicMPmUSb+amWt0Re4WeJ26Mhjfw/lLBw5pQbqkjqL91GjxiKILuOO2u9uVubotN4P cxKnyOJ31X1+gpcd1GVTg/3G1epHdrCOlWUASub6qFiposy8Y4rkXZ85X6l6zr7c97js Vj2i/LRHCtDzVScsEXrG59XNGJMIuTM2PY3weCkRbhp/1RLt4tMjTLh56YmAFWwfVqyU 6RbE2TfOxJOc4xPP6P64Rcoh9wNcotezNAhFX+jvltF8ByIVkIi0UQB2HxZ6S6JV7i3K jWmg== X-Gm-Message-State: AOAM530m6Ad+QDLbRrsENovQINeoK64Qkk7i+GU42d/MUBMNn2a0A/Fv ioQSAYFR3Fz/EZAL+8XAkge1vQ== X-Google-Smtp-Source: ABdhPJzbYVjXuGfCryUzJsjd1CTsxTUcEGzi8mFH5cZrwPDVBk6/y6QpO5ShaXYOJYxZo542tq2TKg== X-Received: by 2002:a1c:dd86:: with SMTP id u128mr2752246wmg.123.1595317166220; Tue, 21 Jul 2020 00:39:26 -0700 (PDT) Received: from localhost.localdomain ([2.27.167.94]) by smtp.gmail.com with ESMTPSA id a123sm2484009wmd.28.2020.07.21.00.39.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 00:39:25 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sam Ravnborg , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Subject: [PATCH 1/1] video: backlight: cr_bllcd: Remove unused variable 'intensity' Date: Tue, 21 Jul 2020 08:39:19 +0100 Message-Id: <20200721073919.925935-1-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Fixes the following kernel build warning: drivers/video/backlight/cr_bllcd.c: In function ‘cr_backlight_set_intensity’: drivers/video/backlight/cr_bllcd.c:62:6: warning: unused variable ‘intensity’ [-Wunused-variable] 62 | int intensity = bd->props.brightness; | ^~~~~~~~~ Cc: Sam Ravnborg Cc: Daniel Thompson Cc: Jingoo Han Cc: Bartlomiej Zolnierkiewicz Cc: dri-devel@lists.freedesktop.org Cc: linux-fbdev@vger.kernel.org Fixes: 24d34617c24f ("backlight: cr_bllcd: Introduce gpio-backlight semantics") Signed-off-by: Lee Jones Reviewed-by: Sam Ravnborg Reviewed-by: Daniel Thompson --- drivers/video/backlight/cr_bllcd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/backlight/cr_bllcd.c b/drivers/video/backlight/cr_bllcd.c index a24d42e1ea3cd..4ad0a72531fe2 100644 --- a/drivers/video/backlight/cr_bllcd.c +++ b/drivers/video/backlight/cr_bllcd.c @@ -59,7 +59,6 @@ struct cr_panel { static int cr_backlight_set_intensity(struct backlight_device *bd) { - int intensity = bd->props.brightness; u32 addr = gpio_bar + CRVML_PANEL_PORT; u32 cur = inl(addr);