From: Luotao Fu Date: Thu, 15 Jul 2010 20:49:27 +0000 Subject: Re: [PATCH 2/8] touchscreen: fix sign bug Message-Id: <20100715204927.GA4627@pengutronix.de> MIME-Version: 1 Content-Type: multipart/mixed; boundary="SLDf9lqlvOQaIe6s" List-Id: References: <1279219435-12128-1-git-send-email-segooon@gmail.com> In-Reply-To: <1279219435-12128-1-git-send-email-segooon@gmail.com> To: Kulikov Vasiliy Cc: kernel-janitors@vger.kernel.org, Dmitry Torokhov , Samuel Ortiz , Luotao Fu , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org --SLDf9lqlvOQaIe6s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > Signed-off-by: Kulikov Vasiliy Acked-By: Luotao Fu > --- > drivers/input/touchscreen/stmpe-ts.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) >=20 > diff --git a/drivers/input/touchscreen/stmpe-ts.c b/drivers/input/touchsc= reen/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 platfor= m_device *pdev) > struct input_dev *idev; > struct stmpe_ts_platform_data *ts_pdata =3D NULL; > int ret =3D 0; > - unsigned int ts_irq; > + int ts_irq; > =20 > ts_irq =3D platform_get_irq_byname(pdev, "FIFO_TH"); > if (ts_irq < 0) > --=20 > 1.7.0.4 >=20 Stupid bug. Thanks for catching this. cheers Luotao Fu --=20 Pengutronix e.K. | Dipl.-Ing. Luotao Fu | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --SLDf9lqlvOQaIe6s Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkw/dFcACgkQkLuxfMCkDTa94QCeIfDTQJ3QyKp+NBlIpwziYaHv LAkAn3Tk6dEEQi3JdLaRib/jQiasf+Yq =WNEP -----END PGP SIGNATURE----- --SLDf9lqlvOQaIe6s--