Commit f93d1be2 authored by Wang, Yalin's avatar Wang, Yalin Committed by Mark Brown
Browse files

regmap: Move spinlock_flags into the union



This patch move struct regmap.spinlock_flags into the union of
spinlock, so that we can shrink struct regmap size.

Signed-off-by: default avatarYalin Wang <yalin.wang@sonymobile.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a63b8783
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -51,9 +51,11 @@ struct regmap_async {
struct regmap {
	union {
		struct mutex mutex;
		struct {
			spinlock_t spinlock;
	};
			unsigned long spinlock_flags;
		};
	};
	regmap_lock lock;
	regmap_unlock unlock;
	void *lock_arg; /* This is passed to lock/unlock functions */