aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/regmap/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/regmap/internal.h')
-rw-r--r--drivers/base/regmap/internal.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h
index ac869d28d5ba..2cd01b57b1c4 100644
--- a/drivers/base/regmap/internal.h
+++ b/drivers/base/regmap/internal.h
@@ -31,14 +31,12 @@ struct regmap_format {
31 unsigned int (*parse_val)(void *buf); 31 unsigned int (*parse_val)(void *buf);
32}; 32};
33 33
34typedef void (*regmap_lock)(struct regmap *map);
35typedef void (*regmap_unlock)(struct regmap *map);
36
37struct regmap { 34struct regmap {
38 struct mutex mutex; 35 struct mutex mutex;
39 spinlock_t spinlock; 36 spinlock_t spinlock;
40 regmap_lock lock; 37 regmap_lock lock;
41 regmap_unlock unlock; 38 regmap_unlock unlock;
39 void *lock_arg; /* This is passed to lock/unlock functions */
42 40
43 struct device *dev; /* Device we do I/O on */ 41 struct device *dev; /* Device we do I/O on */
44 void *work_buf; /* Scratch buffer used to format I/O */ 42 void *work_buf; /* Scratch buffer used to format I/O */