summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Davis <afd@ti.com>2024-01-23 09:09:11 -0600
committerSebastian Reichel <sebastian.reichel@collabora.com>2024-01-27 00:49:17 +0100
commit73697f0acc773a357946a3c5a917bfb4c85128a3 (patch)
tree6828f5d4c6f83347e0229ba7bc39001cdedc13ad /include
parent67d85ee4bc749ee94cdfe9638618a506638d1926 (diff)
downloadlinux-73697f0acc773a357946a3c5a917bfb4c85128a3.tar.gz
linux-73697f0acc773a357946a3c5a917bfb4c85128a3.tar.bz2
linux-73697f0acc773a357946a3c5a917bfb4c85128a3.zip
power: supply: bq27xxx: Add devm action to free IDA
Use a device lifecycle managed action to free the IDA. This helps prevent mistakes like freeing out of order in cleanup functions and forgetting to free on error paths. Signed-off-by: Andrew Davis <afd@ti.com> Link: https://lore.kernel.org/r/20240123150914.308510-2-afd@ti.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/power/bq27xxx_battery.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/power/bq27xxx_battery.h b/include/linux/power/bq27xxx_battery.h
index 7d8025fb74b7..b9e5bd2b42d3 100644
--- a/include/linux/power/bq27xxx_battery.h
+++ b/include/linux/power/bq27xxx_battery.h
@@ -61,7 +61,6 @@ struct bq27xxx_reg_cache {
struct bq27xxx_device_info {
struct device *dev;
- int id;
enum bq27xxx_chip chip;
u32 opts;
const char *name;