linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: regulator: mt6315: Enforce regulator-compatible, not name
@ 2022-04-29 20:13 Nícolas F. R. A. Prado
  2022-05-04 20:36 ` Rob Herring
  2022-05-04 20:37 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Nícolas F. R. A. Prado @ 2022-04-29 20:13 UTC (permalink / raw)
  To: Mark Brown
  Cc: AngeloGioacchino Del Regno, kernel, Nícolas F. R. A. Prado,
	Hsin-Hsiung Wang, Krzysztof Kozlowski, Liam Girdwood,
	Matthias Brugger, Rob Herring, devicetree, linux-arm-kernel,
	linux-kernel, linux-mediatek

The MT6315 PMIC dt-binding should enforce that one of the valid
regulator-compatible is set in each regulator node. However it was
mistakenly matching against regulator-name instead.

Fix the typo. This not only fixes the compatible verification, but also
lifts the regulator-name restriction, so that more meaningful names can
be set for each platform.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

---

 .../devicetree/bindings/regulator/mt6315-regulator.yaml         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml b/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml
index 61dd5af80db6..5d2d989de893 100644
--- a/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml
+++ b/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml
@@ -31,7 +31,7 @@ properties:
         $ref: "regulator.yaml#"
 
         properties:
-          regulator-name:
+          regulator-compatible:
             pattern: "^vbuck[1-4]$"
 
     additionalProperties: false
-- 
2.36.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: regulator: mt6315: Enforce regulator-compatible, not name
  2022-04-29 20:13 [PATCH] dt-bindings: regulator: mt6315: Enforce regulator-compatible, not name Nícolas F. R. A. Prado
@ 2022-05-04 20:36 ` Rob Herring
  2022-05-04 20:37 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2022-05-04 20:36 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado
  Cc: kernel, AngeloGioacchino Del Regno, Rob Herring, Liam Girdwood,
	linux-kernel, linux-arm-kernel, devicetree, Hsin-Hsiung Wang,
	Matthias Brugger, Krzysztof Kozlowski, linux-mediatek,
	Mark Brown

On Fri, 29 Apr 2022 16:13:24 -0400, Nícolas F. R. A. Prado wrote:
> The MT6315 PMIC dt-binding should enforce that one of the valid
> regulator-compatible is set in each regulator node. However it was
> mistakenly matching against regulator-name instead.
> 
> Fix the typo. This not only fixes the compatible verification, but also
> lifts the regulator-name restriction, so that more meaningful names can
> be set for each platform.
> 
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> 
> ---
> 
>  .../devicetree/bindings/regulator/mt6315-regulator.yaml         | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Acked-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: regulator: mt6315: Enforce regulator-compatible, not name
  2022-04-29 20:13 [PATCH] dt-bindings: regulator: mt6315: Enforce regulator-compatible, not name Nícolas F. R. A. Prado
  2022-05-04 20:36 ` Rob Herring
@ 2022-05-04 20:37 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2022-05-04 20:37 UTC (permalink / raw)
  To: nfraprado
  Cc: matthias.bgg, angelogioacchino.delregno, devicetree,
	linux-kernel, hsin-hsiung.wang, krzysztof.kozlowski+dt, robh+dt,
	kernel, linux-mediatek, lgirdwood, linux-arm-kernel

On Fri, 29 Apr 2022 16:13:24 -0400, Nícolas F. R. A. Prado wrote:
> The MT6315 PMIC dt-binding should enforce that one of the valid
> regulator-compatible is set in each regulator node. However it was
> mistakenly matching against regulator-name instead.
> 
> Fix the typo. This not only fixes the compatible verification, but also
> lifts the regulator-name restriction, so that more meaningful names can
> be set for each platform.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

Thanks!

[1/1] dt-bindings: regulator: mt6315: Enforce regulator-compatible, not name
      commit: 6d435a94ba5bb4f2ad381c0828fbae89c66b50fe

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-04 20:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-29 20:13 [PATCH] dt-bindings: regulator: mt6315: Enforce regulator-compatible, not name Nícolas F. R. A. Prado
2022-05-04 20:36 ` Rob Herring
2022-05-04 20:37 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).