Allow for having array types (array, uint8-array, string-array) be const.
This would allow for something like:
properties:
reg-names:
const: ["foo", "bar"]
To be supported.
Renamed function _check_prop_type_and_default to _check_prop_by_type
as part of this change and Moved the check for 'const' types into
_check_prop_by_type as its similar to the prop_type check and it was
easier to implement in _check_prop_by_type as we already extract
prop_type from the option in that function.
Signed-off-by: Kumar Gala <galak@kernel.org>
|
||
|---|---|---|
| .. | ||
| bar-bus.yaml | ||
| child-binding-with-compat.yaml | ||
| child-binding.yaml | ||
| child.yaml | ||
| defaults.yaml | ||
| deprecated.yaml | ||
| device-on-any-bus.yaml | ||
| device-on-bar-bus.yaml | ||
| device-on-foo-bus.yaml | ||
| enums.yaml | ||
| false-positive.yaml | ||
| foo-bus.yaml | ||
| foo-optional.yaml | ||
| foo-required.yaml | ||
| gpio-dst.yaml | ||
| gpio-src.yaml | ||
| grandchild-1.yaml | ||
| grandchild-2.yaml | ||
| grandchild-3.yaml | ||
| interrupt-1-cell.yaml | ||
| interrupt-2-cell.yaml | ||
| interrupt-3-cell.yaml | ||
| multidir.yaml | ||
| order-1.yaml | ||
| order-2.yaml | ||
| parent.yaml | ||
| phandle-array-controller-0.yaml | ||
| phandle-array-controller-1.yaml | ||
| phandle-array-controller-2.yaml | ||
| props.yaml | ||