diff options
| author | Vincent Cloutier <vincent@cloutier.co> | 2026-07-26 21:13:01 -0400 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2026-07-27 20:32:38 +0200 |
| commit | e8e7cdd9ce46a763e5428e2673e90c6a5f91f6d8 (patch) | |
| tree | 5290992b0ef41fd9cb642654362d607072542e49 /tools/perf/scripts/python | |
| parent | f05e30fd2ffd962e6f30dc0abd528b4182ecdf4b (diff) | |
power: supply: max17042_battery: Use bool for init_complete
init_complete is a binary state. Change it from int to bool before adding
retry support.
The initialization worker and probe path update the flag while property
reads sample it. Use READ_ONCE() and WRITE_ONCE() to make those lockless
accesses explicit.
Assisted-by: OpenCode:gpt-5.6-sol
Signed-off-by: Vincent Cloutier <vincent@cloutier.co>
Link: https://patch.msgid.link/20260727011319.621794-4-vincent.cloutier@icloud.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
