[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1413792260-4265-1-git-send-email-antoine.tenart@free-electrons.com>
Date: Mon, 20 Oct 2014 10:04:16 +0200
From: Antoine Tenart <antoine.tenart@...e-electrons.com>
To: linus.walleij@...aro.org, sebastian.hesselbarth@...il.com
Cc: Antoine Tenart <antoine.tenart@...e-electrons.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH 0/4] pinctrl: add helpers for group based drivers
Linus, Sebastian,
As discussed earlier this year[1], this series introduce helpers for group based
pinctrl drivers:
- of_pinctrl_utils_read_function(): reads the function name of a
specified node, and gets the number of groups it should be
applied to.
- of_pinctrl_for_each_function_group(): navigates through the groups of
a specified node, reading at each iteration the name of the current
group.
A generic function to parse nodes for group based drivers is also added, and
then used in the Berlin pinctrl driver:
- pinconf_generic_function_groups_dt_node_to_map()
[1] https://lkml.org/lkml/2014/5/17/38
Antoine Tenart (4):
Documentation: bindings: pinctrl: document the generic groups property
pinctrl: add helpers for group based drivers
pinctrl: add a generic way to map node to map for group based drivers
pinctrl: berlin: use the generic node to map function
.../bindings/pinctrl/pinctrl-bindings.txt | 1 +
drivers/pinctrl/berlin/Kconfig | 1 +
drivers/pinctrl/berlin/berlin.c | 53 +---------------------
drivers/pinctrl/pinconf-generic.c | 36 +++++++++++++++
drivers/pinctrl/pinctrl-utils.c | 26 +++++++++++
drivers/pinctrl/pinctrl-utils.h | 9 ++++
include/linux/pinctrl/pinconf-generic.h | 3 ++
7 files changed, 78 insertions(+), 51 deletions(-)
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists