regmap: Export regmap_get_val_endian
[firefly-linux-kernel-4.4.55.git] / drivers / base / regmap / internal.h
index bfc90b8547f23f1c243a4f1c6d7c00fc95f632a6..c49a79edae52c66518ab4991300455cf53cecab3 100644 (file)
@@ -49,8 +49,10 @@ struct regmap_async {
 };
 
 struct regmap {
-       struct mutex mutex;
-       spinlock_t spinlock;
+       union {
+               struct mutex mutex;
+               spinlock_t spinlock;
+       };
        unsigned long spinlock_flags;
        regmap_lock lock;
        regmap_unlock unlock;
@@ -231,6 +233,10 @@ int _regmap_raw_write(struct regmap *map, unsigned int reg,
 
 void regmap_async_complete_cb(struct regmap_async *async, int ret);
 
+enum regmap_endian regmap_get_val_endian(struct device *dev,
+                                        const struct regmap_bus *bus,
+                                        const struct regmap_config *config);
+
 extern struct regcache_ops regcache_rbtree_ops;
 extern struct regcache_ops regcache_lzo_ops;
 extern struct regcache_ops regcache_flat_ops;