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

regmap: change struct regmap's internal locks as union

this patch change struct regmap->mutex and struct regmap->spinlock
as an union, because these 2 members are only used one of them,
we change it to shrink the struct size.
Signed-off-by: NYalin Wang <yalin.wang@sonymobile.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 9ba1e456
......@@ -49,8 +49,10 @@ struct regmap_async {
};
struct regmap {
struct mutex mutex;
spinlock_t spinlock;
union {
struct mutex mutex;
spinlock_t spinlock;
};
unsigned long spinlock_flags;
regmap_lock lock;
regmap_unlock unlock;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册