Updated function calls with missing reference. GPIO missing.

Updated function calls with missing reference. GPIO missing.

To my understanding:
DT_INST_GPIO_PIN() should be called instead if DT_INST_PIN()
DT_INST_GPIO_FLAGS() should be called instead if DT_INST_GPIO_FLAGS()

Current implementation does not compile when using control pin.
This commit is contained in:
4pplet 2020-11-14 10:23:41 +01:00 committed by Pete Johanson
parent 3bf770a364
commit 924a598920

View file

@ -205,8 +205,8 @@ static const struct bvd_config bvd_cfg = {
.power_gpios =
{
DT_INST_GPIO_LABEL(0, power_gpios),
DT_INST_PIN(0, power_gpios),
DT_INST_FLAGS(0, power_gpios),
DT_INST_GPIO_PIN(0, power_gpios),
DT_INST_GPIO_FLAGS(0, power_gpios),
},
#endif
.output_ohm = DT_INST_PROP(0, output_ohms),