aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r--include/linux/regmap.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 75981d0b57dc..a10380bfbeac 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -15,6 +15,8 @@
15 15
16#include <linux/list.h> 16#include <linux/list.h>
17#include <linux/rbtree.h> 17#include <linux/rbtree.h>
18#include <linux/err.h>
19#include <linux/bug.h>
18 20
19struct module; 21struct module;
20struct device; 22struct device;
@@ -470,6 +472,9 @@ struct regmap_irq {
470 * @ack_base: Base ack address. If zero then the chip is clear on read. 472 * @ack_base: Base ack address. If zero then the chip is clear on read.
471 * @wake_base: Base address for wake enables. If zero unsupported. 473 * @wake_base: Base address for wake enables. If zero unsupported.
472 * @irq_reg_stride: Stride to use for chips where registers are not contiguous. 474 * @irq_reg_stride: Stride to use for chips where registers are not contiguous.
475 * @init_ack_masked: Ack all masked interrupts once during initalization.
476 * @mask_invert: Inverted mask register: cleared bits are masked out.
477 * @wake_invert: Inverted wake register: cleared bits are wake enabled.
473 * @runtime_pm: Hold a runtime PM lock on the device when accessing it. 478 * @runtime_pm: Hold a runtime PM lock on the device when accessing it.
474 * 479 *
475 * @num_regs: Number of registers in each control bank. 480 * @num_regs: Number of registers in each control bank.
@@ -485,9 +490,10 @@ struct regmap_irq_chip {
485 unsigned int ack_base; 490 unsigned int ack_base;
486 unsigned int wake_base; 491 unsigned int wake_base;
487 unsigned int irq_reg_stride; 492 unsigned int irq_reg_stride;
488 unsigned int mask_invert; 493 bool init_ack_masked:1;
489 unsigned int wake_invert; 494 bool mask_invert:1;
490 bool runtime_pm; 495 bool wake_invert:1;
496 bool runtime_pm:1;
491 497
492 int num_regs; 498 int num_regs;
493 499