linux/drivers/leds
Andy Shevchenko 7a43ccf85d leds: class: Make led_remove_lookup() NULL-aware
It is a usual pattern in the kernel to make releasing functions be NULL-aware
so they become a no-op. This helps reducing unneeded checks in the code where
the given resource is optional.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20260327102729.797254-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
2026-04-09 13:49:19 +01:00
..
blink leds: lgm-sso: Fix typo in macro for src offset 2026-03-25 13:42:00 +00:00
flash leds: ktd2692: Make ktd2692_timing variable static 2026-03-10 09:22:58 +00:00
rgb leds: qcom-lpg: Check for array overflow when selecting the high resolution 2026-03-10 09:23:00 +00:00
simatic leds: Rename simple directory to simatic 2025-03-21 09:21:56 +00:00
trigger leds: Prefer IS_ERR_OR_NULL over manual NULL check 2026-03-10 13:33:26 +00:00
.kunitconfig leds: Provide skeleton KUnit testing for the LEDs framework 2025-05-14 09:25:02 +01:00
Kconfig leds: Kconfig: Drop unneeded dependency on OF_GPIO 2026-03-26 12:03:15 +00:00
led-class-flash.c leds: flash: Add support for flash/strobe duration 2025-05-14 09:25:09 +01:00
led-class-multicolor.c leds: multicolor: Change intensity_value to unsigned int 2026-03-10 09:22:53 +00:00
led-class.c leds: class: Make led_remove_lookup() NULL-aware 2026-04-09 13:49:19 +01:00
led-core.c leds: core: Fix formatting issues 2026-03-26 09:31:58 +00:00
led-test.c leds: led-test: Provide tests for the lookup and get infrastructure 2025-05-14 09:25:07 +01:00
led-triggers.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
leds-88pm860x.c
leds-acer-a500.c
leds-adp5520.c
leds-an30259a.c
leds-apu.c
leds-ariel.c
leds-as3668.c leds: as3668: Driver for the ams Osram 4-channel i2c LED driver 2026-02-04 09:23:47 +00:00
leds-aw200xx.c leds: aw200xx: don't use return with gpiod_set_value() variants 2025-02-26 11:17:39 +01:00
leds-aw2013.c
leds-bcm6328.c leds: bcm6328: Replace divide condition with comparison for shift value 2024-10-31 16:22:23 +00:00
leds-bcm6358.c
leds-bd2606mvv.c
leds-bd2802.c
leds-blinkm.c
leds-cht-wcove.c leds: cht-wcove: Use devm_led_classdev_register() to avoid memory leak 2025-01-09 10:57:16 +00:00
leds-clevo-mail.c
leds-cobalt-qube.c
leds-cobalt-raq.c
leds-cpcap.c
leds-cr0014114.c
leds-cros_ec.c leds: leds-cros_ec: Skip LEDs without color components 2025-11-06 16:52:36 +00:00
leds-da903x.c
leds-da9052.c
leds-dac124s085.c
leds-el15203000.c
leds-expresswire.c leds: expresswire: Fix chip state breakage 2026-02-04 09:20:27 +00:00
leds-gpio-register.c
leds-gpio.c - Removed unused local header files from various drivers. 2024-11-22 16:25:20 -08:00
leds-hp6xx.c
leds-ip30.c
leds-ipaq-micro.c
leds-is31fl32xx.c leds: is31f132xx: Add support for is31fl3293 2026-02-04 09:20:37 +00:00
leds-is31fl319x.c leds: is31fl319x: Use devm_mutex_init() 2025-09-11 16:18:13 +01:00
leds-lm355x.c
leds-lm3530.c
leds-lm3532.c
leds-lm3533.c
leds-lm3642.c leds: lm3642: Use guard to simplify locking 2026-03-26 11:25:28 +00:00
leds-lm3692x.c leds: lm3692x: Fix kernel-doc for struct lm3692x_led 2026-01-08 10:42:47 +00:00
leds-lm3697.c
leds-lm36274.c
leds-locomo.c
leds-lp50xx.c leds: leds-lp50xx: Enable chip before any communication 2025-11-13 13:13:45 +00:00
leds-lp55xx-common.c leds: lp55xx: Simplify with scoped for each OF child loop 2026-02-04 09:20:56 +00:00
leds-lp55xx-common.h
leds-lp3944.c
leds-lp3952.c
leds-lp5521.c
leds-lp5523.c
leds-lp5562.c
leds-lp5569.c leds: lp5569: Use sysfs_emit instead of sprintf() 2026-03-10 09:22:55 +00:00
leds-lp8501.c
leds-lp8788.c
leds-lp8860.c leds: lp8860: Do not always program EEPROM on probe 2026-03-10 09:23:15 +00:00
leds-lp8864.c leds: lp8864: Add support for Texas Instruments LP8864, LP8864S, LP8866 LED-backlights 2025-01-09 10:43:34 +00:00
leds-lt3593.c
leds-max5970.c leds: Use fwnode_for_each_child_node() instead 2025-10-21 10:46:16 +01:00
leds-max8997.c
leds-max77650.c
leds-max77705.c leds: Use fwnode_for_each_child_node() instead 2025-10-21 10:46:16 +01:00
leds-mc13783.c
leds-menf21bmc.c
leds-mlxcpld.c leds: mlxcpld: Remove unused ACPI header inclusion 2025-03-21 09:48:11 +00:00
leds-mlxreg.c
leds-mt6323.c
leds-net48xx.c
leds-netxbig.c leds: netxbig: Fix GPIO descriptor leak in error paths 2025-11-13 13:51:12 +00:00
leds-nic78bx.c leds: nic78bx: Tidy up ACPI ID table 2025-03-21 09:49:37 +00:00
leds-ns2.c
leds-ot200.c
leds-pca955x.c treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
leds-pca963x.c
leds-pca995x.c leds: pca995x: Fix typo in pca995x_of_match's of_device_id entry 2025-05-14 09:25:04 +01:00
leds-pca9532.c treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
leds-pm8058.c
leds-powernv.c
leds-pwm.c leds: pwm: Reorder include files to alphabetic order 2025-11-20 12:20:24 +00:00
leds-qnap-mcu.c leds: qnap-mcu: Add support for the red and green status LEDs 2025-09-02 08:54:46 +01:00
leds-rb532.c
leds-regulator.c
leds-sc27xx-bltc.c
leds-spi-byte.c
leds-ss4200.c leds: ss4200: Fix the wrong format specifier for 'blinking' 2024-11-12 14:39:26 +00:00
leds-st1202.c * pca955x: Add HW blink support, utilizing PWM0. It supports one frequency 2025-03-29 14:42:59 -07:00
leds-sun50i-a100.c
leds-sunfire.c
leds-syscon.c
leds-tca6507.c treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
leds-ti-lmu-common.c
leds-tlc591xx.c
leds-tps6105x.c
leds-turris-omnia.c leds: turris-omnia: Drop commas in the terminator entries 2025-05-14 09:24:57 +01:00
leds-upboard.c leds: upboard: Fix module alias 2025-10-25 12:42:34 +01:00
leds-wm831x-status.c
leds-wm8350.c
leds-wrap.c
leds.h leds: triggers: Constify 'struct bin_attribute' 2025-01-09 11:09:09 +00:00
Makefile leds: as3668: Driver for the ams Osram 4-channel i2c LED driver 2026-02-04 09:23:47 +00:00
TODO
uleds.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00