Re: [PATCH] pinctrl: add a group-specific hog macro

From: Linus Walleij
Date: Wed Dec 14 2011 - 12:13:29 EST


On Wed, Dec 14, 2011 at 4:46 PM, Stephen Warren <swarren@xxxxxxxxxx> wrote:
> Linus Walleij wrote at Wednesday, December 14, 2011 1:32 AM:
>> To create elegant tables for pinmux hogs on the PXA MMP platform,
>> we need this hog macro that can specify both function and group in
>> one go.
>>
>> Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
>
> Acked-by: Stephen Warren <swarren@xxxxxxxxxx>
>
> That said, when using this, I'd wrap it in a macro that set .name and
> .group to the same thing; for system hogs, I'm not sure what other name
> would be useful. Should the macro do that?

Nah I want to keep these namespaces separate. I can see why you'd
want to do that but it could be confusing too, some may want to
say, prefix the map entry name with the board name (or a board
wildcard like "mop500*" or nifty things like that so they see "OK these
entries are for all boards, these are for this specific variant..." etc.

Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/