[PATCH] dt-bindings: Add missing array size constraints

Linus Walleij linus.walleij at linaro.org
Thu Jan 7 04:10:07 EST 2021


On Tue, Jan 5, 2021 at 12:03 AM Rob Herring <robh at kernel.org> wrote:

> DT properties which can have multiple entries need to specify what the
> entries are and define how many entries there can be. In the case of
> only a single entry, just 'maxItems: 1' is sufficient.
>
> Add the missing entry constraints. These were found with a modified
> meta-schema. Unfortunately, there are a few cases where the size
> constraints are not defined such as common bindings, so the meta-schema
> can't be part of the normal checks.
>
> Cc: Jens Axboe <axboe at kernel.dk>
> Cc: Stephen Boyd <sboyd at kernel.org>
> Cc: Thierry Reding <thierry.reding at gmail.com>
> Cc: MyungJoo Ham <myungjoo.ham at samsung.com>
> Cc: Chanwoo Choi <cw00.choi at samsung.com>
> Cc: Linus Walleij <linus.walleij at linaro.org>
> Cc: Bartosz Golaszewski <bgolaszewski at baylibre.com>
> Cc: Jonathan Cameron <jic23 at kernel.org>
> Cc: Dmitry Torokhov <dmitry.torokhov at gmail.com>
> Cc: Thomas Gleixner <tglx at linutronix.de>
> Cc: Marc Zyngier <maz at kernel.org>
> Cc: Mauro Carvalho Chehab <mchehab at kernel.org>
> Cc: Chen-Yu Tsai <wens at csie.org>
> Cc: Ulf Hansson <ulf.hansson at linaro.org>
> Cc: "David S. Miller" <davem at davemloft.net>
> Cc: Jakub Kicinski <kuba at kernel.org>
> Cc: Sebastian Reichel <sre at kernel.org>
> Cc: Ohad Ben-Cohen <ohad at wizery.com>
> Cc: Bjorn Andersson <bjorn.andersson at linaro.org>
> Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> Signed-off-by: Rob Herring <robh at kernel.org>

This is good. The stricter the better.
Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Yours,
Linus Walleij



More information about the linux-riscv mailing list