summaryrefslogtreecommitdiff
path: root/include/linux/regulator/driver.h
diff options
context:
space:
mode:
authorKory Maincent <kory.maincent@bootlin.com>2025-01-15 15:41:57 +0100
committerMark Brown <broonie@kernel.org>2025-01-17 17:48:54 +0000
commit42d7c87b4e1251f36eceac987e74623e7cda8577 (patch)
treed438d89f6edc45a9844c7cab351e47dd489663b4 /include/linux/regulator/driver.h
parentc3ad22ad34f81a8906dba02ea8cc9756d2ce7b50 (diff)
downloadlwn-42d7c87b4e1251f36eceac987e74623e7cda8577.tar.gz
lwn-42d7c87b4e1251f36eceac987e74623e7cda8577.zip
regulator: Add support for power budget
Introduce power budget management for the regulator device. Enable tracking of available power capacity by providing helpers to request and release power budget allocations. Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> Link: https://patch.msgid.link/20250115-feature_regulator_pw_budget-v2-1-0a44b949e6bc@bootlin.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regulator/driver.h')
-rw-r--r--include/linux/regulator/driver.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h
index 5b66caf1695d..4a216fdba354 100644
--- a/include/linux/regulator/driver.h
+++ b/include/linux/regulator/driver.h
@@ -656,6 +656,8 @@ struct regulator_dev {
int cached_err;
bool use_cached_err;
spinlock_t err_lock;
+
+ int pw_requested_mW;
};
/*