aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regulator
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/regulator')
-rw-r--r--include/linux/regulator/driver.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h
index fa8b55b8191c..1dcdf00e0db2 100644
--- a/include/linux/regulator/driver.h
+++ b/include/linux/regulator/driver.h
@@ -184,7 +184,7 @@ struct regulator_desc {
184 * no other direct access). 184 * no other direct access).
185 */ 185 */
186struct regulator_dev { 186struct regulator_dev {
187 struct regulator_desc *desc; 187 const struct regulator_desc *desc;
188 int exclusive; 188 int exclusive;
189 u32 use_count; 189 u32 use_count;
190 u32 open_count; 190 u32 open_count;
@@ -210,7 +210,8 @@ struct regulator_dev {
210 struct dentry *debugfs; 210 struct dentry *debugfs;
211}; 211};
212 212
213struct regulator_dev *regulator_register(struct regulator_desc *regulator_desc, 213struct regulator_dev *
214regulator_register(const struct regulator_desc *regulator_desc,
214 struct device *dev, const struct regulator_init_data *init_data, 215 struct device *dev, const struct regulator_init_data *init_data,
215 void *driver_data, struct device_node *of_node); 216 void *driver_data, struct device_node *of_node);
216void regulator_unregister(struct regulator_dev *rdev); 217void regulator_unregister(struct regulator_dev *rdev);