In case a "required: False" enum binding doesn't mention a default value, but a default value makes sense to be set in the code, DT_ENUM_IDX_OR could be used to provide the default idx to be used. New macro comes with appropriate tests. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org> |
||
|---|---|---|
| .. | ||
| vnd,adc.yaml | ||
| vnd,array-holder.yaml | ||
| vnd,child-bindings.yaml | ||
| vnd,clock.yaml | ||
| vnd,disabled-compat.yaml | ||
| vnd,dma.yaml | ||
| vnd,enum-holder.yaml | ||
| vnd,enum-int-required-false-holder.yaml | ||
| vnd,enum-required-false-holder.yaml | ||
| vnd,gpio-expander-i2c.yaml | ||
| vnd,gpio-expander-spi.yaml | ||
| vnd,gpio-one-cell.yaml | ||
| vnd,gpio.yaml | ||
| vnd,great-grandchild-bindings.yaml | ||
| vnd,i2c-device.yaml | ||
| vnd,i2c.yaml | ||
| vnd,intc.yaml | ||
| vnd,interrupt-holder.yaml | ||
| vnd,phandle-holder.yaml | ||
| vnd,pwm-controller.yaml | ||
| vnd,reg-holder.yaml | ||
| vnd,serial.yaml | ||
| vnd,spi-device-2.yaml | ||
| vnd,spi-device.yaml | ||
| vnd,spi.yaml | ||
| vnd,temperature-sensor.yaml | ||