Skip to contentSkip to conversation

leds: lp50xx: remove unused regulator

PATCH In review Sven Schuchmann 2 participants 2 messages Feb 3, 2021 – Feb 5, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 leds: lp50xx: remove unused regulator

The regulator for vled-supply is unused in the driver. It is just assigned from DT and disabled in lp50xx_remove. So the code can be removed from the driver.

Part 1 updates the documentation
Part 2 removes the code

---
 Documentation/devicetree/bindings/leds/leds-lp50xx.yaml | 3 ---
 1 file changed, 3 deletions(-)
Documentation/devicetree/bindings/leds/leds-lp50xx.yaml +0 -3
index c192b5feadc7..c20a81d13bfd 100644
@@ -43,9 +43,6 @@ properties:
     maxItems: 1
     description: GPIO pin to enable/disable the device.
 
-  vled-supply:
-    description: LED supply.
-
   '#address-cells':
     const: 1
 
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 3 lines · Sven Schuchmann

The regulator for vled-supply is unused in the driver. It is just assigned from DT and disabled in lp50xx_remove. So the code can be removed from the driver.

The binding is not a driver. Does the h/w have a 'vled' supply? If so, then it should remain in the binding.

Quoted 27 lines

Part 1 updates the documentation
Part 2 removes the code

---
 Documentation/devicetree/bindings/leds/leds-lp50xx.yaml | 3 ---
 1 file changed, 3 deletions(-)
Documentation/devicetree/bindings/leds/leds-lp50xx.yaml +0 -3
index c192b5feadc7..c20a81d13bfd 100644
@@ -43,9 +43,6 @@ properties:
     maxItems: 1
     description: GPIO pin to enable/disable the device.
 
-  vled-supply:
-    description: LED supply.
-
   '#address-cells':
     const: 1
 
Signature · 1 line
2.17.1