linux/drivers/leds/flash
Dan Carpenter 87e552ad65 leds: flash: leds-qcom-flash: Test the correct variable in init
This code was passing the incorrect pointer to PTR_ERR_OR_ZERO() so it
always returned success.  It should have been checking the array element
instead of the array itself.

Fixes: 96a2e242a5 ("leds: flash: Add driver to support flash LED module in QCOM PMICs")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/ZoWJS_epjIMCYITg@stanley.mountain
Signed-off-by: Lee Jones <lee@kernel.org>
2024-07-11 12:46:33 +01:00
..
Kconfig leds: sy7802: Add support for Silergy SY7802 flash LED controller 2024-06-26 17:04:39 +01:00
leds-aat1290.c leds: aat1290: Remove unused field 'torch_brightness' from 'struct aat1290_led' 2024-05-02 18:09:04 +01:00
leds-as3645a.c leds: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-06-21 11:57:11 +01:00
leds-ktd2692.c leds: ktd2692: Convert to use ExpressWire library 2024-03-07 08:45:08 +00:00
leds-lm3601x.c leds: lm3601x: Fix struct lm3601_led kernel-doc warnings 2024-03-07 08:48:15 +00:00
leds-max77693.c leds: Convert all platform drivers to return void 2023-11-01 11:28:35 +00:00
leds-mt6360.c leds: mt6360: Fix memory leak in mt6360_init_isnk_properties() 2024-06-26 16:56:10 +01:00
leds-mt6370-flash.c leds: mt6370: Annotate struct mt6370_priv with __counted_by 2023-11-01 11:28:41 +00:00
leds-qcom-flash.c leds: flash: leds-qcom-flash: Test the correct variable in init 2024-07-11 12:46:33 +01:00
leds-rt4505.c leds: rt4505: Add MODULE_DESCRIPTION() 2024-06-21 11:57:13 +01:00
leds-rt8515.c leds: Convert all platform drivers to return void 2023-11-01 11:28:35 +00:00
leds-sgm3140.c leds: sgm3140: Add missing timer cleanup and flash gpio control 2024-03-07 08:48:12 +00:00
leds-sy7802.c leds: sy7802: Add support for Silergy SY7802 flash LED controller 2024-06-26 17:04:39 +01:00
Makefile leds: sy7802: Add support for Silergy SY7802 flash LED controller 2024-06-26 17:04:39 +01:00