gpiolib: Add code to support "active low" GPIOs
So far this particular aspect of various DT-bindings has been handled
on a per-driver basis. With this change, hopefully, we'll have a
single place to handle necessary logic inversions and eventually
would be able to migrate existing users as well as avoiding adding
redundant code to new drivers.

Cc: cphealy@gmail.com
Cc: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 08dd7b2 commit bbc499914739cd51f51cd23ade0a2dca19359804
@Andrey Smirnov Andrey Smirnov authored on 3 Jun 2017
Sascha Hauer committed on 6 Jun 2017
Showing 2 changed files
View
drivers/gpio/gpiolib.c
View
include/gpio.h