diff options
| author | Linmao Li <lilinmao@kylinos.cn> | 2026-07-30 09:17:12 +0800 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2026-07-30 23:48:33 +0200 |
| commit | 9092828e187f7cb3c7346a64e01a10d8f75ca246 (patch) | |
| tree | 77b90c27c0794a58afaacdbba438df1533286ba5 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 5584ad5706e594c7648655171785aa4fffdd3db5 (diff) | |
power: supply: bq25630: Scope battery information to bq25630_setup()
data->batinfo is only used by bq25630_setup() to program the initial
charge limits, but power_supply_get_battery_info() allocates it on
psy->dev, so it stays around for the lifetime of the device. Nothing
else in the driver uses it.
Get the battery information in bq25630_setup(), just before it is read,
and release it on every path out of that function. The driver data no
longer has to carry the pointer.
Signed-off-by: Linmao Li <lilinmao@kylinos.cn>
Reviewed-by: Waqar Hameed <waqar.hameed@axis.com>
Link: https://patch.msgid.link/20260730011713.3332913-2-lilinmao@kylinos.cn
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
