lkml.org 
[lkml]   [2014]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/2] of/gpio: Automatic handling of devicetree open-drain GPIO specifications.
Date
From: David Daney <david.daney@cavium.com>

Add two new flags for open-drain and open-source GPIOs and the
corresponding handling in gpiod_get() to automatically set the
corresponding flags in the GPIO system.

Changes from v1 (suggested by Alexandre Courbot):

o Add OF_GPIO_OPEN_SOURCE
o Add automatic propagation of the flags in gpiod_get() et al.

David Daney (2):
of/gpio: Define OF_GPIO_OPEN_DRAIN and OF_GPIO_OPEN_SOURCE flags.
of/gpio: Automatically decode OF_GPIO_OPEN_DRAIN and
OF_GPIO_OPEN_SOURCE flags in gpiolib.

drivers/gpio/gpiolib.c | 6 ++++++
include/linux/of_gpio.h | 2 ++
2 files changed, 8 insertions(+)

--
1.7.11.7



\
 
 \ /
  Last update: 2014-02-11 21:41    [W:0.830 / U:0.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site