[PATCH] dt-bindings: Drop redundant minItems/maxItems
Ulf Hansson
ulf.hansson at linaro.org
Thu Jun 17 02:14:25 PDT 2021
On Tue, 15 Jun 2021 at 21:15, Rob Herring <robh at kernel.org> wrote:
>
> If a property has an 'items' list, then a 'minItems' or 'maxItems' with the
> same size as the list is redundant and can be dropped. Note that is DT
> schema specific behavior and not standard json-schema behavior. The tooling
> will fixup the final schema adding any unspecified minItems/maxItems.
>
> This condition is partially checked with the meta-schema already, but
> only if both 'minItems' and 'maxItems' are equal to the 'items' length.
> An improved meta-schema is pending.
>
> Cc: Jens Axboe <axboe at kernel.dk>
> Cc: Stephen Boyd <sboyd at kernel.org>
> Cc: Herbert Xu <herbert at gondor.apana.org.au>
> Cc: "David S. Miller" <davem at davemloft.net>
> Cc: David Airlie <airlied at linux.ie>
> Cc: Daniel Vetter <daniel at ffwll.ch>
> Cc: Vinod Koul <vkoul at kernel.org>
> Cc: Bartosz Golaszewski <bgolaszewski at baylibre.com>
> Cc: Kamal Dasu <kdasu.kdev at gmail.com>
> Cc: Jonathan Cameron <jic23 at kernel.org>
> Cc: Lars-Peter Clausen <lars at metafoo.de>
> Cc: Thomas Gleixner <tglx at linutronix.de>
> Cc: Marc Zyngier <maz at kernel.org>
> Cc: Joerg Roedel <joro at 8bytes.org>
> Cc: Jassi Brar <jassisinghbrar at gmail.com>
> Cc: Mauro Carvalho Chehab <mchehab at kernel.org>
> Cc: Krzysztof Kozlowski <krzysztof.kozlowski at canonical.com>
> Cc: Ulf Hansson <ulf.hansson at linaro.org>
> Cc: Jakub Kicinski <kuba at kernel.org>
> Cc: Wolfgang Grandegger <wg at grandegger.com>
> Cc: Marc Kleine-Budde <mkl at pengutronix.de>
> Cc: Andrew Lunn <andrew at lunn.ch>
> Cc: Vivien Didelot <vivien.didelot at gmail.com>
> Cc: Vladimir Oltean <olteanv at gmail.com>
> Cc: Bjorn Helgaas <bhelgaas at google.com>
> Cc: Kishon Vijay Abraham I <kishon at ti.com>
> Cc: Linus Walleij <linus.walleij at linaro.org>
> Cc: "Uwe Kleine-König" <u.kleine-koenig at pengutronix.de>
> Cc: Lee Jones <lee.jones at linaro.org>
> Cc: Ohad Ben-Cohen <ohad at wizery.com>
> Cc: Mathieu Poirier <mathieu.poirier at linaro.org>
> Cc: Philipp Zabel <p.zabel at pengutronix.de>
> Cc: Paul Walmsley <paul.walmsley at sifive.com>
> Cc: Palmer Dabbelt <palmer at dabbelt.com>
> Cc: Albert Ou <aou at eecs.berkeley.edu>
> Cc: Alessandro Zummo <a.zummo at towertech.it>
> Cc: Alexandre Belloni <alexandre.belloni at bootlin.com>
> Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> Cc: Mark Brown <broonie at kernel.org>
> Cc: Zhang Rui <rui.zhang at intel.com>
> Cc: Daniel Lezcano <daniel.lezcano at linaro.org>
> Cc: Wim Van Sebroeck <wim at linux-watchdog.org>
> Cc: Guenter Roeck <linux at roeck-us.net>
> Signed-off-by: Rob Herring <robh at kernel.org>
Acked-by: Ulf Hansson <ulf.hansson at linaro.org> # for MMC
[...]
Kind regards
Uffe
More information about the linux-phy
mailing list