touchscreen: fix sign bug
Subsystems (4)
PATCH 2/8 touchscreen: fix sign bug
platform_get_irq_byname() can return negative results, it is not seen to unsigned ts_irq. Make it signed.
Signed-off-by Kulikov Vasiliy <[email protected]>
--- drivers/input/touchscreen/stmpe-ts.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/input/touchscreen/stmpe-ts.c +1 -1
@@ -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 )
Signature · 1 line
1.7.0.4
Quoted 4 lines · Kulikov Vasiliy
platform_get_irq_byname()can return negative results, it is not seen to unsignedts_irq. Make it signed.Signed-off-by Kulikov Vasiliy <[email protected]>
Acked-by Luotao Fu <[email protected]>
Quoted 20 lines
--- drivers/input/touchscreen/stmpe-ts.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/input/touchscreen/stmpe-ts.c +1
-1@@ -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 )Signature · 1 line
1.7.0.4
Stupid bug. Thanks for catching this.
cheers
Luotao Fu
Signature · 4 lines
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 |
Dmitry Torokhov
maintainerQuoted 8 lines · Luotao Fu
Quoted 4 lines · Kulikov Vasiliy
platform_get_irq_byname()can return negative results, it is not seen to unsignedts_irq. Make it signed.Signed-off-by Kulikov Vasiliy <[email protected]>Acked-by Luotao Fu <[email protected]>
OK, the driver is still in Samuel's tree so he gets to pick the patch...
Thanks.
Signature · 1 line
Dmitry
Hi Vasiliy,
Quoted 2 lines · Kulikov Vasiliy
platform_get_irq_byname()can return negative results, it is not seen to unsignedts_irq. Make it signed.
Patch applied to my mfd tree, thanks.
Cheers,
Samuel.
Quoted 21 lines
Signed-off-by Kulikov Vasiliy <[email protected]>--- drivers/input/touchscreen/stmpe-ts.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/input/touchscreen/stmpe-ts.c +1
-1@@ -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 )Signature · 1 line
1.7.0.4
Signature · 2 lines
Intel Open Source Technology Centre http://oss.intel.com/