diff mbox series

Documentation: devres: add missing LED helpers

Message ID 20221103021331.1007699-1-yangyingliang@huawei.com
State New
Headers show
Series Documentation: devres: add missing LED helpers | expand

Commit Message

Yang Yingliang Nov. 3, 2022, 2:13 a.m. UTC
Add some missing device-managed helpers of led to devres.rst.

devm_led_classdev_register_ext() is introduced by commit b2b998c0f944 ("leds:
class: Improve LED and LED flash class registration API").

devm_led_trigger_register() is introduced by commit 9534cc31dda2 ("leds: core:
add managed version of led_trigger_register").

devm_of_led_get() is introduced by commit e389240ad992 ("leds: Add managed
API to get a LED from a device driver").

Fixes: b2b998c0f944 ("leds: class: Improve LED and LED flash class registration API")
Fixes: 9534cc31dda2 ("leds: core: add managed version of led_trigger_register")
Fixes: e389240ad992 ("leds: Add managed API to get a LED from a device driver")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 Documentation/driver-api/driver-model/devres.rst | 3 +++
 1 file changed, 3 insertions(+)

Comments

Jonathan Corbet Nov. 15, 2022, 10:07 p.m. UTC | #1
Yang Yingliang <yangyingliang@huawei.com> writes:

> Add some missing device-managed helpers of led to devres.rst.
>
> devm_led_classdev_register_ext() is introduced by commit b2b998c0f944 ("leds:
> class: Improve LED and LED flash class registration API").
>
> devm_led_trigger_register() is introduced by commit 9534cc31dda2 ("leds: core:
> add managed version of led_trigger_register").
>
> devm_of_led_get() is introduced by commit e389240ad992 ("leds: Add managed
> API to get a LED from a device driver").
>
> Fixes: b2b998c0f944 ("leds: class: Improve LED and LED flash class registration API")
> Fixes: 9534cc31dda2 ("leds: core: add managed version of led_trigger_register")
> Fixes: e389240ad992 ("leds: Add managed API to get a LED from a device driver")
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
>  Documentation/driver-api/driver-model/devres.rst | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/Documentation/driver-api/driver-model/devres.rst b/Documentation/driver-api/driver-model/devres.rst
> index 08e5ba810eb0..e0cb7df0f782 100644
> --- a/Documentation/driver-api/driver-model/devres.rst
> +++ b/Documentation/driver-api/driver-model/devres.rst
> @@ -339,7 +339,10 @@ IRQ
>  
>  LED
>    devm_led_classdev_register()
> +  devm_led_classdev_register_ext()
>    devm_led_classdev_unregister()
> +  devm_led_trigger_register()
> +  devm_of_led_get()

Applied, thanks.

jon
diff mbox series

Patch

diff --git a/Documentation/driver-api/driver-model/devres.rst b/Documentation/driver-api/driver-model/devres.rst
index 08e5ba810eb0..e0cb7df0f782 100644
--- a/Documentation/driver-api/driver-model/devres.rst
+++ b/Documentation/driver-api/driver-model/devres.rst
@@ -339,7 +339,10 @@  IRQ
 
 LED
   devm_led_classdev_register()
+  devm_led_classdev_register_ext()
   devm_led_classdev_unregister()
+  devm_led_trigger_register()
+  devm_of_led_get()
 
 MDIO
   devm_mdiobus_alloc()