2014-11-17 11:05 GMT+01:00 Alexander Shiyan <[email protected]>: > Mon, 17 Nov 2014 10:59:09 +0100 от Uwe Kleine-König > <[email protected]>: >> Hello Richard, >> >> > >>>> 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. Unfortunately, that's right. For instance on atmel processors, irq 0 is often used. -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
- Re: [PATCH] gpio: mxs: implement get_direction ca... Richard Genoud
- Re: [PATCH] gpio: mxs: implement get_direction ca... Janusz Użycki
- Re: [PATCH] gpio: mxs: implement get_direction ca... Richard Genoud
- Re: [PATCH] gpio: mxs: implement get_direction ca... Uwe Kleine-König
- Re: [PATCH] gpio: mxs: implement get_direction ca... Janusz Użycki
- Re: [PATCH] gpio: mxs: implement get_direction ca... Uwe Kleine-König
- Re: [PATCH] gpio: mxs: implement get_direction ca... Richard Genoud
- Re: [PATCH] gpio: mxs: implement get_direction ca... Janusz Użycki
- Re: [PATCH] gpio: mxs: implement get_direction ca... Alexander Shiyan
- Re: [PATCH] gpio: mxs: implement get_direction ca... Russell King - ARM Linux
- Re: [PATCH] gpio: mxs: implement get_direction ca... Richard Genoud
- Re: [PATCH] gpio: mxs: implement get_direction ca... Russell King - ARM Linux
- Re: [PATCH] gpio: mxs: implement get_direction ca... Janusz Użycki
- request an irq without enabling? [Was: Re: [PATCH... Uwe Kleine-König
- Re: request an irq without enabling? [Was: Re: [P... Richard Genoud
- Re: [PATCH] gpio: mxs: implement get_direction ca... Janusz Użycki
- Re: [PATCH] gpio: mxs: implement get_direction ca... Janusz Użycki
- Re: [PATCH] gpio: mxs: implement get_direction ca... Uwe Kleine-König
- Re: [PATCH] gpio: mxs: implement get_direction ca... Janusz Użycki
- Re: [PATCH] gpio: mxs: implement get_direction ca... Uwe Kleine-König
- Re: [PATCH] gpio: mxs: implement get_direction ca... Janusz Użycki
