]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - include/linux/regulator/driver.h
regulator: Add initial per-regulator debugfs support
[mv-sheeva.git] / include / linux / regulator / driver.h
index 975ae06cb634024a3d2684e3316ad4cf4e1dd393..b8ed16a33c47fc9b4febb65d24db94ec6a5dc9cd 100644 (file)
@@ -175,9 +175,9 @@ struct regulator_desc {
  */
 struct regulator_dev {
        struct regulator_desc *desc;
-       int use_count;
-       int open_count;
        int exclusive;
+       u32 use_count;
+       u32 open_count;
 
        /* lists we belong to */
        struct list_head list; /* list of all regulators */
@@ -195,6 +195,10 @@ struct regulator_dev {
        struct regulator_dev *supply;   /* for tree */
 
        void *reg_data;         /* regulator_dev data */
+
+#ifdef CONFIG_DEBUG_FS
+       struct dentry *debugfs;
+#endif
 };
 
 struct regulator_dev *regulator_register(struct regulator_desc *regulator_desc,