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: 245324 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2683629ilg; Tue, 21 Jul 2020 00:39:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuiauSnFLQxzqRAkcSJuprRtvfGDWS7kY7nzBtfItyEd4TF43CgiE67zstUagjbPSVN8UM X-Received: by 2002:a05:6402:2064:: with SMTP id bd4mr24289202edb.180.1595317168880; Tue, 21 Jul 2020 00:39:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595317168; cv=none; d=google.com; s=arc-20160816; b=KfUKE7jLDBGcOBalFMD5nZvOEwm4tzgZ9L4nTE70+j3BvVNTUYBzkar/5gCkN7te1k 87T6GucKRc1GXLSxsIDDLCOUY/T+Xhq1gHTIaJdYYkuK/lEYq8TPgGDBavl9mMqzyIRG grxXv0p+p7W15YTPfD+Mo5esilmd+hlCFztvjtFMG09F/AB/DhsmKWrlqoPjwMoCddTv A81uW3yNo/y4HPDFuFURis3hmv3Cu8pT1GcSStl4W5BBmNCd2dcA5ZrCFxe2jVnp1wQ4 OZ/nH+XFYlCzEYnICBMc3Cwq41Hkol0WOJ+HVEDPL0g1/Nr2ZowKim51S0aerDWE+vFB iDrw== 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:dkim-signature; bh=cJUflLSxHtf/sa8csoJgmFcN71WVeF/7yJM+R1zANs4=; b=n9lGVtOBjWlRRZpsQiL5J2UY2GtXA2XcuhHL58U1yfxuJoQO/jB7lQbcGre809epfS GxXjGXRpFFydO91Ci+DW6s7BfPhftozpJbumiXRjogloEP8V2aWydsPrn3/bRAejbErx dw4NB9uR3Rs5S95H+l/fTyVQLzy9NfmFBttjKiY2DHcJo1nznQiQVWXq7X4dhquC1SyD K7CttxOrVNZdvRe6WZCftcyyG/X1lnhojoS4MLXperBEGKwOBcFIXy5PglspoYFYUnT/ mw98sm/TBx6au4ILnJhlL7orPY7UEdt2l4w/yn6qp65OA5tqv+WQisgZ6Lnvq0WREVlS CCFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aNZscceQ; spf=pass (google.com: domain of linux-fbdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-fbdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q12si12130820edn.472.2020.07.21.00.39.28 for ; Tue, 21 Jul 2020 00:39:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-fbdev-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=@linaro.org header.s=google header.b=aNZscceQ; spf=pass (google.com: domain of linux-fbdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-fbdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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-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 --- drivers/video/backlight/cr_bllcd.c | 1 - 1 file changed, 1 deletion(-) -- 2.25.1 Reviewed-by: Daniel Thompson 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);