[PATCH] dt-bindings: Use 'enum' instead of 'oneOf' plus 'const' entries

Mauro Carvalho Chehab mchehab+huawei at kernel.org
Mon Sep 6 03:40:11 PDT 2021


Em Tue, 24 Aug 2021 15:20:14 -0500
Rob Herring <robh at kernel.org> escreveu:

> 'enum' is equivalent to 'oneOf' with a list of 'const' entries, but 'enum'
> is more concise and yields better error messages.
> 
> Cc: Vinod Koul <vkoul at kernel.org>
> Cc: Maxime Ripard <mripard at kernel.org>
> Cc: Vignesh R <vigneshr at ti.com>
> Cc: Marc Zyngier <maz at kernel.org>
> Cc: Sakari Ailus <sakari.ailus at linux.intel.com>
> Cc: Mauro Carvalho Chehab <mchehab at kernel.org>
> Cc: Lee Jones <lee.jones at linaro.org>
> Cc: "David S. Miller" <davem at davemloft.net>
> Cc: Jakub Kicinski <kuba at kernel.org>
> Cc: Bjorn Helgaas <bhelgaas at google.com>
> Cc: Kishon Vijay Abraham I <kishon at ti.com>
> Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> Cc: Mark Brown <broonie at kernel.org>
> Cc: Daniel Lezcano <daniel.lezcano at linaro.org>
> Cc: dmaengine at vger.kernel.org
> Cc: linux-i2c at vger.kernel.org
> Cc: linux-media at vger.kernel.org
> Cc: netdev at vger.kernel.org
> Cc: linux-pci at vger.kernel.org
> Cc: linux-phy at lists.infradead.org
> Cc: linux-serial at vger.kernel.org
> Cc: alsa-devel at alsa-project.org
> Cc: linux-spi at vger.kernel.org
> Signed-off-by: Rob Herring <robh at kernel.org>
> ---
>  .../bindings/display/msm/dsi-phy-10nm.yaml           |  6 +++---
>  .../bindings/display/msm/dsi-phy-14nm.yaml           |  6 +++---
>  .../bindings/display/msm/dsi-phy-28nm.yaml           |  8 ++++----
>  .../bindings/dma/allwinner,sun6i-a31-dma.yaml        | 12 ++++++------
>  .../devicetree/bindings/firmware/arm,scpi.yaml       |  6 +++---
>  .../devicetree/bindings/i2c/ti,omap4-i2c.yaml        | 10 +++++-----
>  .../interrupt-controller/loongson,liointc.yaml       |  8 ++++----


>  .../devicetree/bindings/media/i2c/mipi-ccs.yaml      |  8 ++++----

For media:

Acked-by: Mauro Carvalho Chehab <mchehab+huawei at kernel.org>

Thanks,
Mauro



More information about the linux-phy mailing list