Skip to content

Commit 02ae6da

Browse files
Stephen WarrenLinus Walleij
authored andcommitted
pinctrl: add kerneldoc for pinctrl_ops device tree functions
Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent fde04f4 commit 02ae6da

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎include/linux/pinctrl/pinctrl.h‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ struct pinctrl_gpio_range {
7272
* group selector @pins, and the size of the array in @num_pins
7373
* @pin_dbg_show: optional debugfs display hook that will provide per-device
7474
* info for a certain pin in debugfs
75+
* @dt_node_to_map: parse a device tree "pin configuration node", and create
76+
* mapping table entries for it. These are returned through the @map and
77+
* @num_maps output parameters. This function is optional, and may be
78+
* omitted for pinctrl drivers that do not support device tree.
79+
* @dt_free_map: free mapping table entries created via @dt_node_to_map. The
80+
* top-level @map pointer must be freed, along with any dynamically
81+
* allocated members of the mapping table entries themselves. This
82+
* function is optional, and may be omitted for pinctrl drivers that do
83+
* not support device tree.
7584
*/
7685
struct pinctrl_ops {
7786
int (*get_groups_count) (struct pinctrl_dev *pctldev);

0 commit comments

Comments
 (0)