diff options
Diffstat (limited to 'drivers/pinctrl/devicetree.h')
-rw-r--r-- | drivers/pinctrl/devicetree.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/drivers/pinctrl/devicetree.h b/drivers/pinctrl/devicetree.h new file mode 100644 index 000000000000..760bc4960f58 --- /dev/null +++ b/drivers/pinctrl/devicetree.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /* | ||
2 | * Internal interface to pinctrl device tree integration | ||
3 | * | ||
4 | * Copyright (C) 2012 NVIDIA CORPORATION. All rights reserved. | ||
5 | * | ||
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. | ||
9 | * | ||
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. | ||
14 | * | ||
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/>. | ||
17 | */ | ||
18 | |||
19 | #ifdef CONFIG_OF | ||
20 | |||
21 | void pinctrl_dt_free_maps(struct pinctrl *p); | ||
22 | int pinctrl_dt_to_map(struct pinctrl *p); | ||
23 | |||
24 | #else | ||
25 | |||
26 | static inline int pinctrl_dt_to_map(struct pinctrl *p) | ||
27 | { | ||
28 | return 0; | ||
29 | } | ||
30 | |||
31 | static inline void pinctrl_dt_free_maps(struct pinctrl *p) | ||
32 | { | ||
33 | } | ||
34 | |||
35 | #endif | ||