aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pinctrl
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2015-01-11 18:45:55 -0500
committerLinus Walleij <linus.walleij@linaro.org>2015-01-14 08:21:38 -0500
commitf684e4ac9f4bae4e6ecff92eef9645a44764fc04 (patch)
tree77455f29e17d3aa03e65aecdb505a850b4f10ce4 /include/linux/pinctrl
parent7382b6231591a76d061d04a420937bbc5e1c1106 (diff)
pinctrl: pinconf-generic: loose DT dependence
New pin controllers such as ACPI-based may also have custom properties to parse, and should be able to use generic pin config. Let's make the code compile on !OF systems and rename members a bit to underscore it is custom parameters and not necessarily DT parameters. This fixes a build regression for x86_64 on the zeroday kernel builds. Reported-by: kbuild test robot <fengguang.wu@intel.com> Reviewed-and-tested-by: Soren Brinkmann <soren.brinkmann@xilinx.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/pinctrl')
-rw-r--r--include/linux/pinctrl/pinconf-generic.h2
-rw-r--r--include/linux/pinctrl/pinctrl.h17
2 files changed, 11 insertions, 8 deletions
diff --git a/include/linux/pinctrl/pinconf-generic.h b/include/linux/pinctrl/pinconf-generic.h
index 342409f7f3ec..fe65962b264f 100644
--- a/include/linux/pinctrl/pinconf-generic.h
+++ b/include/linux/pinctrl/pinconf-generic.h
@@ -162,7 +162,7 @@ static inline unsigned long pinconf_to_config_packed(enum pin_config_param param
162struct pinctrl_dev; 162struct pinctrl_dev;
163struct pinctrl_map; 163struct pinctrl_map;
164 164
165struct pinconf_generic_dt_params { 165struct pinconf_generic_params {
166 const char * const property; 166 const char * const property;
167 enum pin_config_param param; 167 enum pin_config_param param;
168 u32 default_value; 168 u32 default_value;
diff --git a/include/linux/pinctrl/pinctrl.h b/include/linux/pinctrl/pinctrl.h
index c58b3e11ba8e..66e4697516de 100644
--- a/include/linux/pinctrl/pinctrl.h
+++ b/include/linux/pinctrl/pinctrl.h
@@ -118,9 +118,12 @@ struct pinctrl_ops {
118 * @confops: pin config operations vtable, if you support pin configuration in 118 * @confops: pin config operations vtable, if you support pin configuration in
119 * your driver 119 * your driver
120 * @owner: module providing the pin controller, used for refcounting 120 * @owner: module providing the pin controller, used for refcounting
121 * @num_dt_params: Number of driver-specific DT parameters 121 * @num_custom_params: Number of driver-specific custom parameters to be parsed
122 * @params: List of DT parameters 122 * from the hardware description
123 * @conf_items: Information how to print @params in debugfs 123 * @custom_params: List of driver_specific custom parameters to be parsed from
124 * the hardware description
125 * @custom_conf_items: Information how to print @params in debugfs, must be
126 * the same size as the @custom_params, i.e. @num_custom_params
124 */ 127 */
125struct pinctrl_desc { 128struct pinctrl_desc {
126 const char *name; 129 const char *name;
@@ -130,10 +133,10 @@ struct pinctrl_desc {
130 const struct pinmux_ops *pmxops; 133 const struct pinmux_ops *pmxops;
131 const struct pinconf_ops *confops; 134 const struct pinconf_ops *confops;
132 struct module *owner; 135 struct module *owner;
133#if defined(CONFIG_GENERIC_PINCONF) && defined(CONFIG_OF) 136#ifdef CONFIG_GENERIC_PINCONF
134 unsigned int num_dt_params; 137 unsigned int num_custom_params;
135 const struct pinconf_generic_dt_params *params; 138 const struct pinconf_generic_params *custom_params;
136 const struct pin_config_item *conf_items; 139 const struct pin_config_item *custom_conf_items;
137#endif 140#endif
138}; 141};
139 142