summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorAndrew Davis <afd@ti.com>2024-12-02 15:15:19 -0600
committerSebastian Reichel <sebastian.reichel@collabora.com>2024-12-04 22:31:32 +0100
commit1c44832979a70570f2e652013877c7b15000494e (patch)
treea5b0cf46c39a415a3aed35568109a77495796631 /tools/lib/python
parent8571178e9adf3128d70d14359b965f370cfd522d (diff)
power: supply: ds2782: Use devm_delayed_work_autocancel() helper
Use the device lifecycle managed work init function. This helps prevent mistakes like canceling out of order in cleanup functions and forgetting to canceling on error paths. Note we move this to after the registering the power supply so that the cancel is called before unregistering. This was the last thing the .remove() function did, so remove that too. Signed-off-by: Andrew Davis <afd@ti.com> Link: https://lore.kernel.org/r/20241202211519.199635-5-afd@ti.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions