Re: [PATCH v10 1/3] gpio: exar: add gpio for exar cards
From: Linus Walleij
Date: Thu Jan 26 2017 - 05:16:21 EST
On Thu, Jan 19, 2017 at 11:23 PM, Sudip Mukherjee
> From: Sudip Mukherjee <sudip.mukherjee@xxxxxxxxxxxxxxx>
> Exar XR17V352/354/358 chips have 16 multi-purpose inputs/outputs which
> can be controlled using gpio interface.
> Add the gpio specific code.
> Signed-off-by: Sudip Mukherjee <sudip.mukherjee@xxxxxxxxxxxxxxx>
I think maybe we can simplify the patch even more using
select GPIO_GENERIC and just specify the different
registers to bgpio_init().
But that can be done as a separate improvement patch, this
definately looks fine.
Maybe you also want something like:
so that the module is by default added as "y" or "m" depending
on what is selected for the parent device?