Re: [PATCH v1] gpio: Make the vararg hacks not pass magic values
From: Linus Walleij
Date: Wed Jan 14 2015 - 07:33:41 EST
On Wed, Jan 7, 2015 at 9:44 AM, Olliver Schinagl
<oliver+list@xxxxxxxxxxx> wrote:
> From: Olliver Schinagl <oliver@xxxxxxxxxxx>
>
> Right now, in consumer.h, there's some vararg hacks that pass 0 as the
> flags. What actually is passed however is GPIOD_ASIS, which naturally is
> also 0. Using the define/enum rather then the magic 0 makes it the
> define more readable to a passer by.
>
> Signed-off-by: Olliver Schinagl <oliver@xxxxxxxxxxx>
Patch applied.
Yours,
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/