regmap: Implement dev_get_regmap()
[deliverable/linux.git] / drivers / base / regmap / internal.h
index fcafc5b2e65113e36e496079ec2e20c93e20abb3..c994bc9bc04ffc9d82392bdde4547aa6aed2461d 100644 (file)
@@ -31,13 +31,21 @@ struct regmap_format {
        unsigned int (*parse_val)(void *buf);
 };
 
+typedef void (*regmap_lock)(struct regmap *map);
+typedef void (*regmap_unlock)(struct regmap *map);
+
 struct regmap {
-       struct mutex lock;
+       struct mutex mutex;
+       spinlock_t spinlock;
+       regmap_lock lock;
+       regmap_unlock unlock;
 
        struct device *dev; /* Device we do I/O on */
        void *work_buf;     /* Scratch buffer used to format I/O */
        struct regmap_format format;  /* Buffer format */
        const struct regmap_bus *bus;
+       void *bus_context;
+       const char *name;
 
 #ifdef CONFIG_DEBUG_FS
        struct dentry *debugfs;
This page took 0.038361 seconds and 5 git commands to generate.