From patchwork Wed Aug 27 19:45:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 4790651 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D25CAC0338 for ; Wed, 27 Aug 2014 19:47:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0F26120123 for ; Wed, 27 Aug 2014 19:47:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2AF02200F2 for ; Wed, 27 Aug 2014 19:47:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935597AbaH0Trs (ORCPT ); Wed, 27 Aug 2014 15:47:48 -0400 Received: from mail-yh0-f48.google.com ([209.85.213.48]:62874 "EHLO mail-yh0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935467AbaH0Trs (ORCPT ); Wed, 27 Aug 2014 15:47:48 -0400 Received: by mail-yh0-f48.google.com with SMTP id i57so717583yha.35 for ; Wed, 27 Aug 2014 12:47:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=kr72XNqq6ImgWza4EgbtzR26mzyWo7fPnay4JiwUPbI=; b=wzhGh/xRsPTot3lFFe7flp6XQqz6lU3KtQ2riC6tj1awcwvpvs9KzN8jt4DSyyB/9C 0+s/3kKIOJbFcm70K6QEM1xBRYYKJ9N5YPJgS0vKIjlB4FH2R3VAm/fYLOPt46TpQvKV PMKL9A0nmURXfpFtL/KIsk5lWq3icz3esxedy1KfelQTfsYiUSfb+faIO6cTYRUfB7ZP 9F0hTs/TFvEUuJmoHyxClytj/KCaRI8fAlHvEBVKiqvJdB3YTfMyCB3RQZTOQL0Lna41 yi0dD1NSmY/OeUiUVyfTOxjokMCbLLOfOlZwmoKo9vhlgQ3lCr3wCLvLcAFl8fbwlsps 7Pbw== X-Received: by 10.236.55.195 with SMTP id k43mr4990414yhc.135.1409168867473; Wed, 27 Aug 2014 12:47:47 -0700 (PDT) Received: from localhost.localdomain ([201.59.20.2]) by mx.google.com with ESMTPSA id 28sm664875yhe.51.2014.08.27.12.46.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Aug 2014 12:47:46 -0700 (PDT) From: Fabio Estevam To: jg1.han@samsung.com Cc: cooloney@gmail.com, lee.jones@linaro.org, linux-fbdev@vger.kernel.org, Fabio Estevam Subject: [PATCH] backlight: generic_bl: Remove unused function Date: Wed, 27 Aug 2014 16:45:00 -0300 Message-Id: <1409168700-19042-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam genericbl_limit_intensity() is exported, but it is never called anywhere else. Fix the following sparse warning: drivers/video/backlight/generic_bl.c:59:6: warning: symbol 'genericbl_limit_intensity' was not declared. Should it be static? Signed-off-by: Fabio Estevam --- drivers/video/backlight/generic_bl.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/drivers/video/backlight/generic_bl.c b/drivers/video/backlight/generic_bl.c index 5d8d652..67dfb93 100644 --- a/drivers/video/backlight/generic_bl.c +++ b/drivers/video/backlight/generic_bl.c @@ -52,24 +52,6 @@ static int genericbl_get_intensity(struct backlight_device *bd) return genericbl_intensity; } -/* - * Called when the battery is low to limit the backlight intensity. - * If limit==0 clear any limit, otherwise limit the intensity - */ -void genericbl_limit_intensity(int limit) -{ - struct backlight_device *bd = generic_backlight_device; - - mutex_lock(&bd->ops_lock); - if (limit) - bd->props.state |= GENERICBL_BATTLOW; - else - bd->props.state &= ~GENERICBL_BATTLOW; - backlight_update_status(generic_backlight_device); - mutex_unlock(&bd->ops_lock); -} -EXPORT_SYMBOL(genericbl_limit_intensity); - static const struct backlight_ops genericbl_ops = { .options = BL_CORE_SUSPENDRESUME, .get_brightness = genericbl_get_intensity,