Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752765Ab0GYVcn (ORCPT ); Sun, 25 Jul 2010 17:32:43 -0400 Received: from mga14.intel.com ([143.182.124.37]:44177 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751784Ab0GYVcl (ORCPT ); Sun, 25 Jul 2010 17:32:41 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.55,259,1278313200"; d="scan'208";a="304165091" Date: Sun, 25 Jul 2010 23:32:41 +0200 From: Samuel Ortiz To: Kulikov Vasiliy Cc: kernel-janitors@vger.kernel.org, Dmitry Torokhov , Luotao Fu , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/8] touchscreen: fix sign bug Message-ID: <20100725213240.GA2613@sortiz-mobl> References: <1279219435-12128-1-git-send-email-segooon@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1279219435-12128-1-git-send-email-segooon@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1257 Lines: 41 Hi Vasiliy, On Thu, Jul 15, 2010 at 10:43:54PM +0400, Kulikov Vasiliy wrote: > platform_get_irq_byname() can return negative results, it is not seen to > unsigned ts_irq. Make it signed. Patch applied to my mfd tree, thanks. Cheers, Samuel. > Signed-off-by: Kulikov Vasiliy > --- > drivers/input/touchscreen/stmpe-ts.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/input/touchscreen/stmpe-ts.c b/drivers/input/touchscreen/stmpe-ts.c > index 77f4374..656148e 100644 > --- a/drivers/input/touchscreen/stmpe-ts.c > +++ b/drivers/input/touchscreen/stmpe-ts.c > @@ -269,7 +269,7 @@ static int __devinit stmpe_input_probe(struct platform_device *pdev) > struct input_dev *idev; > struct stmpe_ts_platform_data *ts_pdata = NULL; > int ret = 0; > - unsigned int ts_irq; > + int ts_irq; > > ts_irq = platform_get_irq_byname(pdev, "FIFO_TH"); > if (ts_irq < 0) > -- > 1.7.0.4 > -- Intel Open Source Technology Centre http://oss.intel.com/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/