drivers: dac_stm32: make pinctrl config in the device tree optional
Now that we support internally connected channels we should make the pinctrl configuration optional. Signed-off-by: Corey Wharton <xodus7@cwharton.com>
This commit is contained in:
parent
834cc98f39
commit
2b9ed72f9e
2 changed files with 1 additions and 7 deletions
|
|
@ -159,7 +159,7 @@ static int dac_stm32_init(const struct device *dev)
|
||||||
|
|
||||||
/* Configure dt provided device signals when available */
|
/* Configure dt provided device signals when available */
|
||||||
err = pinctrl_apply_state(cfg->pcfg, PINCTRL_STATE_DEFAULT);
|
err = pinctrl_apply_state(cfg->pcfg, PINCTRL_STATE_DEFAULT);
|
||||||
if (err < 0) {
|
if ((err < 0) && (err != -ENOENT)) {
|
||||||
LOG_ERR("DAC pinctrl setup failed (%d)", err);
|
LOG_ERR("DAC pinctrl setup failed (%d)", err);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,11 +17,5 @@ properties:
|
||||||
"#io-channel-cells":
|
"#io-channel-cells":
|
||||||
const: 1
|
const: 1
|
||||||
|
|
||||||
pinctrl-0:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
pinctrl-names:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
io-channel-cells:
|
io-channel-cells:
|
||||||
- output
|
- output
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue