diff options
author | Wang, Yalin <Yalin.Wang@sonymobile.com> | 2014-12-15 03:05:50 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-12-15 12:41:07 -0500 |
commit | f93d1be217d89f258f0108a8cd64b98cb8fa9e73 (patch) | |
tree | 6a7186e430e3b5c4e62b276b517a054b5c4fbd66 | |
parent | a63b87838a592577c7134a3cb89c74e59b9dd9c1 (diff) |
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: Yalin Wang <yalin.wang@sonymobile.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/base/regmap/internal.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h index 0da5865df5b1..8e94584b0d26 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 */ |