Re: [PATCH v1] gpio: Make the vararg hacks not pass magic values

2015-01-14 Thread Linus Walleij
On Wed, Jan 7, 2015 at 9:44 AM, Olliver Schinagl wrote: > From: Olliver Schinagl > > 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

[PATCH v1] gpio: Make the vararg hacks not pass magic values

2015-01-07 Thread Olliver Schinagl
From: Olliver Schinagl 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 Sc