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>
This commit is contained in:
@@ -920,7 +920,7 @@ enum zynq_pin_config_param {
|
||||
PIN_CONFIG_IOSTANDARD = PIN_CONFIG_END + 1,
|
||||
};
|
||||
|
||||
static const struct pinconf_generic_dt_params zynq_dt_params[] = {
|
||||
static const struct pinconf_generic_params zynq_dt_params[] = {
|
||||
{"io-standard", PIN_CONFIG_IOSTANDARD, zynq_iostd_lvcmos18},
|
||||
};
|
||||
|
||||
@@ -1099,9 +1099,9 @@ static struct pinctrl_desc zynq_desc = {
|
||||
.pctlops = &zynq_pctrl_ops,
|
||||
.pmxops = &zynq_pinmux_ops,
|
||||
.confops = &zynq_pinconf_ops,
|
||||
.num_dt_params = ARRAY_SIZE(zynq_dt_params),
|
||||
.params = zynq_dt_params,
|
||||
.conf_items = zynq_conf_items,
|
||||
.num_custom_params = ARRAY_SIZE(zynq_dt_params),
|
||||
.custom_params = zynq_dt_params,
|
||||
.custom_conf_items = zynq_conf_items,
|
||||
.owner = THIS_MODULE,
|
||||
};
|
||||
|
||||
|
مرجع در شماره جدید
Block a user