Thread (41 messages) 41 messages, 5 authors, 2014-11-18

Re: [PATCH] gpio: mxs: implement get_direction callback

From: Alexander Shiyan <hidden>
Date: 2014-11-17 10:05:53
Also in: linux-gpio, linux-serial

Mon, 17 Nov 2014 10:59:09 +0100 ?? Uwe Kleine-K?nig [off-list ref]:
Hello Richard,
quoted
quoted
quoted
quoted
quoted
So finally the prototypes would be:
int mctrl_gpio_request_irqs(struct mctrl_gpios*, struct
uart_port*, irqhandler_t);
void mctrl_gpio_free_irqs(struct mctrl_gpios*);
I think:

        struct mctrl_gpios {
                struct uart_port *port;
                struct {
                        gpio_desc *gpio;
                        unsigned int irq;
I think it's just "int irq;" there
irqs are unsigned. Some functions returning an irq use "int", but
depending on who you ask this only for error reporting or a relict.
Use 0 for invalid/unused in mctrl_gpio*.
afaik, IRQ 0 is valid irq number.

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