1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Internal interface to pinctrl device tree integration
5 * Copyright (C) 2012 NVIDIA CORPORATION. All rights reserved.
8 struct of_phandle_args;
12 bool pinctrl_dt_has_hogs(struct pinctrl_dev *pctldev);
14 void pinctrl_dt_free_maps(struct pinctrl *p);
15 int pinctrl_dt_to_map(struct pinctrl *p, struct pinctrl_dev *pctldev);
17 int pinctrl_count_index_with_args(const struct device_node *np,
18 const char *list_name);
20 int pinctrl_parse_index_with_args(const struct device_node *np,
21 const char *list_name, int index,
22 struct of_phandle_args *out_args);
26 static inline bool pinctrl_dt_has_hogs(struct pinctrl_dev *pctldev)
31 static inline int pinctrl_dt_to_map(struct pinctrl *p,
32 struct pinctrl_dev *pctldev)
37 static inline void pinctrl_dt_free_maps(struct pinctrl *p)
41 static inline int pinctrl_count_index_with_args(const struct device_node *np,
42 const char *list_name)
48 pinctrl_parse_index_with_args(const struct device_node *np,
49 const char *list_name, int index,
50 struct of_phandle_args *out_args)