提交 f93d1be2 编写于 作者: W Wang, Yalin 提交者: Mark Brown

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: NYalin Wang <yalin.wang@sonymobile.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 a63b8783
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册