Messages in this thread | | | Date | Fri, 29 Aug 2014 09:16:17 +0200 | Subject | Re: [PATCH 3/3] gpio: add support for the Diolan DLN-2 USB-GPIO driver | From | Linus Walleij <> |
| |
On Wed, Aug 20, 2014 at 1:24 PM, Daniel Baluta <daniel.baluta@intel.com> wrote:
> This patch adds GPIO and IRQ support for the Diolan DLN-2 GPIO module. > > Information about the USB protocol interface can be found in the > Programmer's Reference Manual [1], see section 2.9 for the GPIO > module commands and responses. > > [1] https://www.diolan.com/downloads/dln-api-manual.pdf > > Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Major change required: rewrite this driver to not select IRQ_DOMAIN, instead select GPIOLIB_IRQCHIP and use the shared infrastructure. See other drivers that select GPIOLIB_IRQCHIP or grep the git log to see how this works in practice.
You need to use some container_of() operations.
Yours, Linus Walleij
| |