sh_eth: R8A7740 supports packet shecksumming
[linux/fpc-iii.git] / drivers / pinctrl / devicetree.h
blobc2d1a550585070524a50465b388af4393c7e8d15
1 /*
2 * Internal interface to pinctrl device tree integration
4 * Copyright (C) 2012 NVIDIA CORPORATION. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 struct of_phandle_args;
21 #ifdef CONFIG_OF
23 void pinctrl_dt_free_maps(struct pinctrl *p);
24 int pinctrl_dt_to_map(struct pinctrl *p);
26 int pinctrl_count_index_with_args(const struct device_node *np,
27 const char *list_name);
29 int pinctrl_parse_index_with_args(const struct device_node *np,
30 const char *list_name, int index,
31 struct of_phandle_args *out_args);
33 #else
35 static inline int pinctrl_dt_to_map(struct pinctrl *p)
37 return 0;
40 static inline void pinctrl_dt_free_maps(struct pinctrl *p)
44 static inline int pinctrl_count_index_with_args(const struct device_node *np,
45 const char *list_name)
47 return -ENODEV;
50 static inline int
51 pinctrl_parse_index_with_args(const struct device_node *np,
52 const char *list_name, int index,
53 struct of_phandle_args *out_args)
55 return -ENODEV;
58 #endif