diff options
| author | Sriman Achanta <srimanachanta@gmail.com> | 2026-08-03 15:15:51 -0400 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-08-03 21:31:55 +0200 |
| commit | 9bc171302fd5718f60c2f78a244ce8ffbb49ee0b (patch) | |
| tree | c5cf702b78867e41fd3199f0d054abf27636ad6d /tools/perf/scripts/python/task-analyzer.py | |
| parent | b8ae11143229937a540f780dd2ca9a23106cdd60 (diff) | |
HID: steelseries: Manage battery lifetime with refcounting
The next change shares one steelseries_device between two HID
interfaces, so the state can outlive either interface. Stop using devm
for it. Reference count the struct with a kref and free it from
steelseries_device_release(). Register and unregister the power supply
explicitly, and clear sd->battery under sd->lock in remove() so it is
not touched after it is unregistered.
Drop the global atomic battery counter and name the power supply after
the device (hdev->uniq, or dev_name() when empty), as hid-input and the
other HID battery drivers do.
No functional change for the current single-interface devices.
Signed-off-by: Sriman Achanta <srimanachanta@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
