regmap: Move spinlock_flags into the union
[firefly-linux-kernel-4.4.55.git] / drivers / base / regmap / internal.h
index 0da5865df5b1b4f092fef5652814e7cc96b8993e..8e94584b0d26077168912a2b78ffc27a6719bcdc 100644 (file)
@@ -51,9 +51,11 @@ struct regmap_async {
 struct regmap {
        union {
                struct mutex mutex;
-               spinlock_t spinlock;
+               struct {
+                       spinlock_t spinlock;
+                       unsigned long spinlock_flags;
+               };
        };
-       unsigned long spinlock_flags;
        regmap_lock lock;
        regmap_unlock unlock;
        void *lock_arg; /* This is passed to lock/unlock functions */