浏览代码

regmap: irq: make flags bool and put them in a bitfield

This patch makes mask/wake_invert bool and puts all flags into a bitfield
for consistency and to save some space.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Philipp Zabel 12 年之前
父节点
当前提交
f484f7a6bc
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      include/linux/regmap.h

+ 4 - 4
include/linux/regmap.h

@@ -486,10 +486,10 @@ struct regmap_irq_chip {
 	unsigned int ack_base;
 	unsigned int ack_base;
 	unsigned int wake_base;
 	unsigned int wake_base;
 	unsigned int irq_reg_stride;
 	unsigned int irq_reg_stride;
-	bool init_ack_masked;
-	unsigned int mask_invert;
-	unsigned int wake_invert;
-	bool runtime_pm;
+	bool init_ack_masked:1;
+	bool mask_invert:1;
+	bool wake_invert:1;
+	bool runtime_pm:1;
 
 
 	int num_regs;
 	int num_regs;