[PATCH] dt-bindings: Drop redundant minItems/maxItems

Wolfram Sang wsa at kernel.org
Wed Jun 16 18:41:50 UTC 2021


On Tue, Jun 15, 2021 at 01:15:43PM -0600, Rob Herring 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: Wolfram Sang <wsa at kernel.org> # for I2C

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20210616/a737e37f/attachment.sig>


More information about the dri-devel mailing list