Re: [PATCH v3 1/9] pinctrl: mvebu: pinctrl driver core
From: Linus Walleij <hidden>
Date: 2012-09-12 15:50:52
Also in:
linux-arm-kernel, lkml
From: Linus Walleij <hidden>
Date: 2012-09-12 15:50:52
Also in:
linux-arm-kernel, lkml
On Wed, Sep 12, 2012 at 8:54 AM, Thomas Petazzoni [off-list ref] wrote:
This data structure really reflects what the datasheet says. Typically, for SoCs where each pin is independently muxable (AT91, i.MX23/28, Marvell, and probably many more), the datasheet has a big array, with one line per pin, and then several columns which tell for a given pin, what is "function 0", "function 1", "function 2", "function 3", etc.
This is a valid reason to keep it as is in my book. Readability along with a datasheet is important, most important is that it has a good structure for those maintaining the driver. Is this datasheet available so I can get the picture? Yours, Linus Walleij