All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] regmap: irq: make flags bool and put them in a bitfield
@ 2013-07-24  8:26 Philipp Zabel
  2013-07-24 15:55 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Philipp Zabel @ 2013-07-24  8:26 UTC (permalink / raw)
  To: linux-kernel; +Cc: Mark Brown, Philipp Zabel

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>
---
 include/linux/regmap.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 34ebe77..99b211a 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -486,10 +486,10 @@ struct regmap_irq_chip {
 	unsigned int ack_base;
 	unsigned int wake_base;
 	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;
 
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] regmap: irq: make flags bool and put them in a bitfield
  2013-07-24  8:26 [PATCH] regmap: irq: make flags bool and put them in a bitfield Philipp Zabel
@ 2013-07-24 15:55 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-07-24 15:55 UTC (permalink / raw)
  To: Philipp Zabel; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 199 bytes --]

On Wed, Jul 24, 2013 at 10:26:42AM +0200, Philipp Zabel wrote:
> This patch makes mask/wake_invert bool and puts all flags into a bitfield
> for consistency and to save some space.

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-24 15:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-24  8:26 [PATCH] regmap: irq: make flags bool and put them in a bitfield Philipp Zabel
2013-07-24 15:55 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.