From patchwork Mon Dec 16 11:21:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rashika X-Patchwork-Id: 3353301 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 5B167C0D4A for ; Mon, 16 Dec 2013 11:21:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 440E22035E for ; Mon, 16 Dec 2013 11:21:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3A5442034C for ; Mon, 16 Dec 2013 11:21:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752195Ab3LPLVw (ORCPT ); Mon, 16 Dec 2013 06:21:52 -0500 Received: from mail-pa0-f49.google.com ([209.85.220.49]:38691 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752188Ab3LPLVv (ORCPT ); Mon, 16 Dec 2013 06:21:51 -0500 Received: by mail-pa0-f49.google.com with SMTP id kx10so2806156pab.22 for ; Mon, 16 Dec 2013 03:21:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:content-transfer-encoding:user-agent; bh=05BMpVZ86AgZ042A6BKyYEscis/zIhg+LfgObNvWI8k=; b=mcopRtdALak1xiHBXjda1S5t/mgy0+6dLxXpu5ZT9Dd/gGfK5/RlAoU3U/s6yPKXRp tEJYWHSYljUN8eoc7W/4EW3buX1KCcDPhzpOo4cT9pxEKuQ8orUDltMy7ZwNYlJrc65a ijVrgikdOjKj1HsBd/7kpP0TQKegjkkXQDzpCkZtcNZGbYteqUJDwA5Gc0JC2zgdxVn8 gsP6B2EpvM61PZQ5sX4u7qlvJMlt0e5JpmVL0ZVVW+lWqE9wVWpqzs3vAaz0Rq4Bs7ys 4p0potPIgwBeO1PR2OtD+zG2m1OQwypJhpCLu9EsUvF9PkXbcSRlJiyzNPY8y8gmSPoR ZZBg== X-Received: by 10.68.162.131 with SMTP id ya3mr19486805pbb.102.1387192911096; Mon, 16 Dec 2013 03:21:51 -0800 (PST) Received: from rashika ([14.96.153.204]) by mx.google.com with ESMTPSA id qp15sm25375767pbb.2.2013.12.16.03.21.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Dec 2013 03:21:49 -0800 (PST) Date: Mon, 16 Dec 2013 16:51:10 +0530 From: Rashika Kheria To: linux-kernel@vger.kernel.org Cc: Jingoo Han , Jean-Christophe Plagniol-Villard , Tomi Valkeinen , linux-fbdev@vger.kernel.org, josh@joshtriplett.org Subject: [PATCH] drivers: video: Remove unused function genericbl_limit_intensity() in generic_bl.c Message-ID: <20131216112110.GA4849@rashika> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.3 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 Removes unused function genericbl_limit_intensity() in backlight/generic_bl.c. This eliminates the following warning in backlight/generic_bl.c: drivers/video/backlight/generic_bl.c:59:6: warning: no previous prototype for ‘genericbl_limit_intensity’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria Reviewed-by: Josh Triplett Acked-by: Jingoo Han --- 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,