diff options
| author | Vicki Pfau <vi@endrift.com> | 2026-08-11 18:13:52 -0700 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-08-14 15:11:16 +0200 |
| commit | 6f9b740c31ba7e061b2ebb330d9a3d63f1358f29 (patch) | |
| tree | 587afba1c8b4077f897167e51ac243dfe5c4b03e /tools/perf/scripts/python | |
| parent | fcfa7db89f7a00c220146695668842de34210d63 (diff) | |
HID: steam: Refactor registration
This refactors and simplifies the registration/unregistration flow. Since
we now only perform registration when the client isn't opened anymore, the
logic for handling that can be removed, and the rest of the function
streamlined.
We also remove the previous assumption that we have a serial number to show
we're registered, replacing it with a single purpose boolean.
In a previous refactor the code for unregistering a battery if later
registration steps failed was accidentally left out. As a result, a
lingering power_supply object could get left over after the steam object
was torn down. This is also fixed here.
Signed-off-by: Vicki Pfau <vi@endrift.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
