Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <segooon@gmail.com>
Acked-By: Luotao Fu <l.fu@pengutronix.de>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Kulikov Vasiliy and committed by
Samuel Ortiz
3faeb35c 31fc03df

+1 -1
+1 -1
drivers/input/touchscreen/stmpe-ts.c
··· 269 269 struct input_dev *idev; 270 270 struct stmpe_ts_platform_data *ts_pdata = NULL; 271 271 int ret = 0; 272 - unsigned int ts_irq; 272 + int ts_irq; 273 273 274 274 ts_irq = platform_get_irq_byname(pdev, "FIFO_TH"); 275 275 if (ts_irq < 0)