| f64dd42a | 26-Sep-2024 |
Javier Carrasco <[email protected]> |
leds: flash: leds-qcom-flash: Switch to device_for_each_child_node_scoped()
Switch to device_for_each_child_node_scoped() to simplify the code by removing the need for calls to fwnode_handle_put() i
leds: flash: leds-qcom-flash: Switch to device_for_each_child_node_scoped()
Switch to device_for_each_child_node_scoped() to simplify the code by removing the need for calls to fwnode_handle_put() in the error paths.
This also prevents possible memory leaks if new error paths are added without the required call to fwnode_handle_put().
Signed-off-by: Javier Carrasco <[email protected]> Link: https://lore.kernel.org/r/20240927-leds_device_for_each_child_node_scoped-v1-3-95c0614b38c8@gmail.com Signed-off-by: Lee Jones <[email protected]>
show more ...
|
| 19d1cc76 | 26-Sep-2024 |
Javier Carrasco <[email protected]> |
leds: flash: mt6370: Switch to device_for_each_child_node_scoped()
Switch to device_for_each_child_node_scoped() to simplify the code by removing the need for calls to fwnode_handle_put() in the err
leds: flash: mt6370: Switch to device_for_each_child_node_scoped()
Switch to device_for_each_child_node_scoped() to simplify the code by removing the need for calls to fwnode_handle_put() in the error paths.
This also prevents possible memory leaks if new error paths are added without the required call to fwnode_handle_put().
Signed-off-by: Javier Carrasco <[email protected]> Link: https://lore.kernel.org/r/20240927-leds_device_for_each_child_node_scoped-v1-2-95c0614b38c8@gmail.com Signed-off-by: Lee Jones <[email protected]>
show more ...
|
| d225d436 | 16-Aug-2024 |
Krzysztof Kozlowski <[email protected]> |
leds: max77693: Add missing of_node_get for probe duration
At beginning of probe() function, the driver iterates over OF children and assigns found device node for later. The code uses for_each_ava
leds: max77693: Add missing of_node_get for probe duration
At beginning of probe() function, the driver iterates over OF children and assigns found device node for later. The code uses for_each_available_child_of_node() which drops the references on children on each successful pass, thus the probe function operates later on the device node without holding the reference.
Fix this by increasing the reference count for found child node and drop it at the end of the probe, because it is not needed further (the V4L init code takes its own references).
Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
show more ...
|
| 700b6c98 | 16-Aug-2024 |
Krzysztof Kozlowski <[email protected]> |
leds: ktd2692: Use scoped device node handling to simplify error paths
Obtain the device node reference with scoped/cleanup.h to reduce error handling and make the code a bit simpler.
Signed-off-by
leds: ktd2692: Use scoped device node handling to simplify error paths
Obtain the device node reference with scoped/cleanup.h to reduce error handling and make the code a bit simpler.
Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
show more ...
|
| 70a4375e | 01-Aug-2024 |
Jack Chen <[email protected]> |
leds: lm3601x: Reset LED controller during probe
LED controller should be reset during initialization to avoid abnormal behaviors. For example, when power to SoC is recycled but power to LED control
leds: lm3601x: Reset LED controller during probe
LED controller should be reset during initialization to avoid abnormal behaviors. For example, when power to SoC is recycled but power to LED controller is not, LED controller should not presume to be in original state.
Signed-off-by: Jack Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
show more ...
|
| a0864cf3 | 05-Jul-2024 |
Fenglin Wu <[email protected]> |
leds: flash: leds-qcom-flash: Limit LED current based on thermal condition
The flash module has status bits to indicate different thermal conditions which are called as OTSTx. For each OTSTx status,
leds: flash: leds-qcom-flash: Limit LED current based on thermal condition
The flash module has status bits to indicate different thermal conditions which are called as OTSTx. For each OTSTx status, there is a recommended total flash current for all channels to prevent the flash module entering into higher thermal level. For example, the total flash current should be limited to 1000mA/500mA respectively when the HW reaches the OTST1/OTST2 thermal level.
Signed-off-by: Fenglin Wu <[email protected]> Link: https://lore.kernel.org/r/20240705-qcom_flash_thermal_derating-v3-1-8e2e2783e3a6@quicinc.com Signed-off-by: Lee Jones <[email protected]>
show more ...
|
| 678ba7d2 | 28-Apr-2024 |
Christophe JAILLET <[email protected]> |
leds: aat1290: Remove unused field 'torch_brightness' from 'struct aat1290_led'
In 'struct aat1290_led', the 'torch_brightness' field is unused. Remove it.
Found with cppcheck, unusedStructMember.
leds: aat1290: Remove unused field 'torch_brightness' from 'struct aat1290_led'
In 'struct aat1290_led', the 'torch_brightness' field is unused. Remove it.
Found with cppcheck, unusedStructMember.
Signed-off-by: Christophe JAILLET <[email protected]> Link: https://lore.kernel.org/r/f7c8c22242544b11e95d9a77d7d0ea17f5a24fd5.1714318454.git.christophe.jaillet@wanadoo.fr Signed-off-by: Lee Jones <[email protected]>
show more ...
|