diff options
Diffstat (limited to 'drivers/base/regmap/internal.h')
| -rw-r--r-- | drivers/base/regmap/internal.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h index 0da5865df5b1..beb8b27d4621 100644 --- a/drivers/base/regmap/internal.h +++ b/drivers/base/regmap/internal.h | |||
| @@ -51,9 +51,11 @@ struct regmap_async { | |||
| 51 | struct regmap { | 51 | struct regmap { |
| 52 | union { | 52 | union { |
| 53 | struct mutex mutex; | 53 | struct mutex mutex; |
| 54 | spinlock_t spinlock; | 54 | struct { |
| 55 | spinlock_t spinlock; | ||
| 56 | unsigned long spinlock_flags; | ||
| 57 | }; | ||
| 55 | }; | 58 | }; |
| 56 | unsigned long spinlock_flags; | ||
| 57 | regmap_lock lock; | 59 | regmap_lock lock; |
| 58 | regmap_unlock unlock; | 60 | regmap_unlock unlock; |
| 59 | void *lock_arg; /* This is passed to lock/unlock functions */ | 61 | void *lock_arg; /* This is passed to lock/unlock functions */ |
| @@ -233,6 +235,10 @@ int _regmap_raw_write(struct regmap *map, unsigned int reg, | |||
| 233 | 235 | ||
| 234 | void regmap_async_complete_cb(struct regmap_async *async, int ret); | 236 | void regmap_async_complete_cb(struct regmap_async *async, int ret); |
| 235 | 237 | ||
| 238 | enum regmap_endian regmap_get_val_endian(struct device *dev, | ||
| 239 | const struct regmap_bus *bus, | ||
| 240 | const struct regmap_config *config); | ||
| 241 | |||
| 236 | extern struct regcache_ops regcache_rbtree_ops; | 242 | extern struct regcache_ops regcache_rbtree_ops; |
| 237 | extern struct regcache_ops regcache_lzo_ops; | 243 | extern struct regcache_ops regcache_lzo_ops; |
| 238 | extern struct regcache_ops regcache_flat_ops; | 244 | extern struct regcache_ops regcache_flat_ops; |
