From patchwork Fri Mar 8 19:31:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Devendra Naga X-Patchwork-Id: 2240171 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 805AF4006E for ; Fri, 8 Mar 2013 19:31:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751856Ab3CHTb0 (ORCPT ); Fri, 8 Mar 2013 14:31:26 -0500 Received: from mail-pb0-f49.google.com ([209.85.160.49]:53576 "EHLO mail-pb0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750917Ab3CHTbZ (ORCPT ); Fri, 8 Mar 2013 14:31:25 -0500 Received: by mail-pb0-f49.google.com with SMTP id xa12so1489750pbc.8 for ; Fri, 08 Mar 2013 11:31:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=mCwpa5oD+IOXOWy8x026tNKcRg53XQ6vEHbgVOSUX/Y=; b=d2UmIBcmHahdlN8zHAp7ywbuUNtYalVxQj38IIWtbWREt1gi1IgsmnPcBjkfITij18 glea3vmFzs3xXa4mQesRpIHXgClpzaV8HKlvZrwcIqVZKqEKHJ7b0S8y5pNs6A31ali5 rswChscjjVKNFx01OQuunkVM6SE2S16N7viaQPbdTsYvP6gGNefmlFuO+xxIWDO5wGUK bB05uND0w20p0ObKA1ha6WmoBezNV0gyqQvuFV2INSLVxtygA7EiT4rV/vtCUNIZWnX3 dWLHbjnG9ZT1bT31j5kb2FP88E93U9wbDBmTpiR+lCS1YxtWBwCwim2VfwgYx0onSq7M aydA== X-Received: by 10.68.33.98 with SMTP id q2mr5101428pbi.135.1362771084956; Fri, 08 Mar 2013 11:31:24 -0800 (PST) Received: from localhost.localdomain ([122.172.7.150]) by mx.google.com with ESMTPS id b9sm6504220pba.6.2013.03.08.11.31.21 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 08 Mar 2013 11:31:24 -0800 (PST) From: Devendra Naga To: Andrew Morton , Michael Hennerich , Richard Purdie , device-drivers-devel@blackfin.uclinux.org, linux-fbdev@vger.kernel.org Cc: Devendra Naga , "Milo(Woogyom) Kim" , Jingoo Han Subject: [PATCH 2/3] video: backlight: lp855x_bl: fix compiler warning in lp855x_probe Date: Fri, 8 Mar 2013 14:31:08 -0500 Message-Id: <1362771069-16345-2-git-send-email-devendra.aaru@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1362771069-16345-1-git-send-email-devendra.aaru@gmail.com> References: <1362771069-16345-1-git-send-email-devendra.aaru@gmail.com> MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org while doing with make W=1 gcc (gcc (GCC) 4.7.2 20121109 (Red Hat 4.7.2-8)) found drivers/video/backlight/lp855x_bl.c: In function ‘lp855x_probe’: drivers/video/backlight/lp855x_bl.c:342:35: warning: variable ‘mode’ set but not used [-Wunused-but-set-variable] fixed by removing it as since its not used anywhere Cc: Milo(Woogyom) Kim Cc: Jingoo Han Signed-off-by: Devendra Naga --- drivers/video/backlight/lp855x_bl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/backlight/lp855x_bl.c b/drivers/video/backlight/lp855x_bl.c index 7ae9ae6..20111ef 100644 --- a/drivers/video/backlight/lp855x_bl.c +++ b/drivers/video/backlight/lp855x_bl.c @@ -339,7 +339,6 @@ static int lp855x_probe(struct i2c_client *cl, const struct i2c_device_id *id) { struct lp855x *lp; struct lp855x_platform_data *pdata = cl->dev.platform_data; - enum lp855x_brightness_ctrl_mode mode; int ret; if (!pdata) { @@ -354,7 +353,6 @@ static int lp855x_probe(struct i2c_client *cl, const struct i2c_device_id *id) if (!lp) return -ENOMEM; - mode = pdata->mode; lp->client = cl; lp->dev = &cl->dev; lp->pdata = pdata;