net: pse-pd: pse_core: Fix pse regulator type
authorKory Maincent (Dent Project) <kory.maincent@bootlin.com>
Tue, 23 Apr 2024 09:21:11 +0000 (11:21 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Apr 2024 03:14:16 +0000 (20:14 -0700)
Clarify PSE regulator as voltage regulator, not current.
The PSE (Power Sourcing Equipment) regulator is defined as a voltage
regulator, maintaining fixed voltage while accommodating varying current.

Fixes: d83e13761d5b ("net: pse-pd: Use regulator framework within PSE framework")
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Link: https://lore.kernel.org/r/20240423-fix_poe-v3-2-e50f32f5fa59@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/pse-pd/pse_core.c

index bad29eaa4d0133a3b4d9c72f6dbda5ee40b4a854..795ab264eaf27b79be093845955a6f0cc4c1889f 100644 (file)
@@ -294,7 +294,7 @@ devm_pse_pi_regulator_register(struct pse_controller_dev *pcdev,
         */
        rdesc->id = id;
        rdesc->name = name;
-       rdesc->type = REGULATOR_CURRENT;
+       rdesc->type = REGULATOR_VOLTAGE;
        rdesc->ops = &pse_pi_ops;
        rdesc->owner = pcdev->owner;