[PATCH 00/17] leds: Use scoped device node handling to simplify error paths

Krzysztof Kozlowski krzysztof.kozlowski at linaro.org
Fri Aug 16 08:31:32 PDT 2024


Hi,

Make code a bit smaller/simpler, with less of_node_put() thanks to
cleanup.h.

Best regards,
Krzysztof

---
Krzysztof Kozlowski (17):
      leds: aat1290: Use scoped device node handling to simplify error paths
      leds: ktd2692: Use scoped device node handling to simplify error paths
      leds: max77693: add missing of_node_get for probe duration
      leds: max77693: Simplify with scoped for each OF child loop
      leds: 88pm860x: Simplify with scoped for each OF child loop
      leds: aw2013: Simplify with scoped for each OF child loop
      leds: bcm6328: Simplify with scoped for each OF child loop
      leds: bcm6358: Simplify with scoped for each OF child loop
      leds: is31fl32xx: Simplify with scoped for each OF child loop
      leds: lp55xx: Simplify with scoped for each OF child loop
      leds: mc13783: Use scoped device node handling to simplify error paths
      leds: mt6323: Simplify with scoped for each OF child loop
      leds: netxbig: Simplify with scoped for each OF child loop
      leds: pca9532: Simplify with scoped for each OF child loop
      leds: sc27xx: Simplify with scoped for each OF child loop
      leds: turris-omnia: Simplify with scoped for each OF child loop
      leds: qcom-lpg: Simplify with scoped for each OF child loop

 drivers/leds/flash/leds-aat1290.c  | 14 ++++++--------
 drivers/leds/flash/leds-ktd2692.c  | 15 +++++++--------
 drivers/leds/flash/leds-max77693.c | 20 ++++++++++----------
 drivers/leds/leds-88pm860x.c       |  5 ++---
 drivers/leds/leds-aw2013.c         |  8 +++-----
 drivers/leds/leds-bcm6328.c        |  7 ++-----
 drivers/leds/leds-bcm6358.c        |  7 ++-----
 drivers/leds/leds-is31fl32xx.c     | 14 ++++----------
 drivers/leds/leds-lp55xx-common.c  |  7 ++-----
 drivers/leds/leds-mc13783.c        | 24 +++++++++++-------------
 drivers/leds/leds-mt6323.c         | 22 +++++++---------------
 drivers/leds/leds-netxbig.c        | 19 ++++++++-----------
 drivers/leds/leds-pca9532.c        |  7 ++-----
 drivers/leds/leds-sc27xx-bltc.c    | 12 ++++--------
 drivers/leds/leds-turris-omnia.c   |  8 +++-----
 drivers/leds/rgb/leds-qcom-lpg.c   | 14 ++++----------
 16 files changed, 77 insertions(+), 126 deletions(-)
---
base-commit: 2d9e88b1a66c6b9a76fb16141ad3c6fb59334c5a
change-id: 20240816-cleanup-h-of-node-put-var-e442f2da1ae1

Best regards,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>




More information about the Linux-mediatek mailing list