diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-21 18:49:31 -0500 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2011-01-12 09:33:05 -0500 |
commit | 1130e5b3ff4a7f3f54a48d46e9d0d81b47765bd8 (patch) | |
tree | 333918bbdd573be8efdc7004a6018f34bfd70a77 /include/linux/regulator | |
parent | 21cf891a47ff5e7bd77fdc524a25072c447d56bb (diff) |
regulator: Add initial per-regulator debugfs support
We only expose the use and open counts to userspace, providing a tiny
bit of insight into what the API is up to.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'include/linux/regulator')
-rw-r--r-- | include/linux/regulator/driver.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h index 975ae06cb634..b8ed16a33c47 100644 --- a/include/linux/regulator/driver.h +++ b/include/linux/regulator/driver.h | |||
@@ -175,9 +175,9 @@ struct regulator_desc { | |||
175 | */ | 175 | */ |
176 | struct regulator_dev { | 176 | struct regulator_dev { |
177 | struct regulator_desc *desc; | 177 | struct regulator_desc *desc; |
178 | int use_count; | ||
179 | int open_count; | ||
180 | int exclusive; | 178 | int exclusive; |
179 | u32 use_count; | ||
180 | u32 open_count; | ||
181 | 181 | ||
182 | /* lists we belong to */ | 182 | /* lists we belong to */ |
183 | struct list_head list; /* list of all regulators */ | 183 | struct list_head list; /* list of all regulators */ |
@@ -195,6 +195,10 @@ struct regulator_dev { | |||
195 | struct regulator_dev *supply; /* for tree */ | 195 | struct regulator_dev *supply; /* for tree */ |
196 | 196 | ||
197 | void *reg_data; /* regulator_dev data */ | 197 | void *reg_data; /* regulator_dev data */ |
198 | |||
199 | #ifdef CONFIG_DEBUG_FS | ||
200 | struct dentry *debugfs; | ||
201 | #endif | ||
198 | }; | 202 | }; |
199 | 203 | ||
200 | struct regulator_dev *regulator_register(struct regulator_desc *regulator_desc, | 204 | struct regulator_dev *regulator_register(struct regulator_desc *regulator_desc, |