Thread (6 messages) 6 messages, 4 authors, 2021-01-29

Re: [PATCH v12] staging: fbtft: add tearing signal detect

From: Dan Carpenter <hidden>
Date: 2021-01-28 15:27:46
Also in: dri-devel, lkml

On Thu, Jan 28, 2021 at 04:33:02PM +0200, Andy Shevchenko wrote:
quoted
+               init_completion(&spi_panel_te);
+               rc = devm_request_irq(dev,
quoted
+                                     gpiod_to_irq(par->gpio.te),
...and here simply use irq.
quoted
+                                    spi_panel_te_handler, IRQF_TRIGGER_RISING,
+                                    "TE_GPIO", par);
quoted
+               if (IS_ERR(rc))
This is wrong. rc is integer no IS_ERR() is required. Ditto for
PTR_ERR(). Have you even looked for these macros implementations?
Yeah...  It leads to a compile warning:

	warning: passing argument 1 of ‘IS_ERR’ makes pointer from integer without a cast [-Wint-conversion]

regards,
dan carpenter
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help