pinctrl-single.c (f99e44a7f3352d7131c7526207f153f13ec5acd4) | pinctrl-single.c (18442e65d424dc84a4a4a3b635eb1a52de3cb6b4) |
---|---|
1/* 2 * Generic device tree based pinctrl driver for one register per pin 3 * type pinmux controllers 4 * 5 * Copyright (C) 2012 Texas Instruments, Inc. 6 * 7 * This file is licensed under the terms of the GNU General Public 8 * License version 2. This program is licensed "as is" without any --- 1152 unchanged lines hidden (view full) --- 1161 if (res < 0) 1162 goto free_function; 1163 1164 (*map)->type = PIN_MAP_TYPE_MUX_GROUP; 1165 (*map)->data.mux.group = np->name; 1166 (*map)->data.mux.function = np->name; 1167 1168 if (pcs->is_pinconf) { | 1/* 2 * Generic device tree based pinctrl driver for one register per pin 3 * type pinmux controllers 4 * 5 * Copyright (C) 2012 Texas Instruments, Inc. 6 * 7 * This file is licensed under the terms of the GNU General Public 8 * License version 2. This program is licensed "as is" without any --- 1152 unchanged lines hidden (view full) --- 1161 if (res < 0) 1162 goto free_function; 1163 1164 (*map)->type = PIN_MAP_TYPE_MUX_GROUP; 1165 (*map)->data.mux.group = np->name; 1166 (*map)->data.mux.function = np->name; 1167 1168 if (pcs->is_pinconf) { |
1169 if (pcs_parse_pinconf(pcs, np, function, map)) | 1169 res = pcs_parse_pinconf(pcs, np, function, map); 1170 if (res) |
1170 goto free_pingroups; 1171 *num_maps = 2; 1172 } else { 1173 *num_maps = 1; 1174 } 1175 return 0; 1176 1177free_pingroups: --- 325 unchanged lines hidden --- | 1171 goto free_pingroups; 1172 *num_maps = 2; 1173 } else { 1174 *num_maps = 1; 1175 } 1176 return 0; 1177 1178free_pingroups: --- 325 unchanged lines hidden --- |