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>
This commit is contained in:
parent
a63b87838a
commit
f93d1be217
1 changed files with 4 additions and 2 deletions
|
@ -51,9 +51,11 @@ struct regmap_async {
|
||||||
struct regmap {
|
struct regmap {
|
||||||
union {
|
union {
|
||||||
struct mutex mutex;
|
struct mutex mutex;
|
||||||
spinlock_t spinlock;
|
struct {
|
||||||
|
spinlock_t spinlock;
|
||||||
|
unsigned long spinlock_flags;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
unsigned long spinlock_flags;
|
|
||||||
regmap_lock lock;
|
regmap_lock lock;
|
||||||
regmap_unlock unlock;
|
regmap_unlock unlock;
|
||||||
void *lock_arg; /* This is passed to lock/unlock functions */
|
void *lock_arg; /* This is passed to lock/unlock functions */
|
||||||
|
|
Loading…
Reference in a new issue