Message ID | 20231006160437.15627-3-ddrokosov@salutedevices.com |
---|---|
State | New |
Headers | show |
Series | leds: aw200xx: several driver updates | expand |
On Fri, Oct 06, 2023 at 07:04:28PM +0300, Dmitry Rokosov wrote: > AW200XX controllers have the capability to declare more than 0xf LEDs, > therefore, it is necessary to accept LED names using an appropriate > regex pattern. > > Fixes: e338a05e76ca ("dt-bindings: leds: Add binding for AW200xx") > Signed-off-by: Dmitry Rokosov <ddrokosov@salutedevices.com> > --- > Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml b/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml > index feb5febaf361..73b81f7a7258 100644 > --- a/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml > +++ b/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml > @@ -42,7 +42,7 @@ properties: > Leds matrix size > > patternProperties: > - "^led@[0-9a-f]$": > + "^led@[0-9a-f]+$": There should be some updated constraints on 'reg' too. Actually, looks like they were missing altogether. Please add. > type: object > $ref: common.yaml# > unevaluatedProperties: false > -- > 2.36.0 >
diff --git a/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml b/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml index feb5febaf361..73b81f7a7258 100644 --- a/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml +++ b/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml @@ -42,7 +42,7 @@ properties: Leds matrix size patternProperties: - "^led@[0-9a-f]$": + "^led@[0-9a-f]+$": type: object $ref: common.yaml# unevaluatedProperties: false
AW200XX controllers have the capability to declare more than 0xf LEDs, therefore, it is necessary to accept LED names using an appropriate regex pattern. Fixes: e338a05e76ca ("dt-bindings: leds: Add binding for AW200xx") Signed-off-by: Dmitry Rokosov <ddrokosov@salutedevices.com> --- Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)