On Wed, Oct 23, 2013 at 6:28 PM, David Cohen <[email protected]> wrote:
> I've got a question WRT pin muxing. > gpio-intel-mid registers are responsible to set alternative functions > to some pins. Despite pin mux is not directly related to gpio in > general, in this case it is. I know this use case. > Is there any other gpio driver doing this same task? Or maybe > suggestion about how to handle it? First read Documentation/pinctrl.txt :-) Move the driver to drivers/pinctrl/pinctrl-intel-mid.c in the next merge window, and add pin control interfaces in the style of the other combined pin control+GPIO drivers there. Keeping one state struct but exposing interfaces to both subsystems is perfectly acceptable. Use GPIO ranges to cross-reference GPIO lines to pins. Yours, Linus Walleij -- 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
