diff options
-rw-r--r-- | drivers/base/regmap/regmap-irq.c | 6 | ||||
-rw-r--r-- | include/linux/regmap.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/base/regmap/regmap-irq.c b/drivers/base/regmap/regmap-irq.c index 4fac4b9be88f..c190229daa59 100644 --- a/drivers/base/regmap/regmap-irq.c +++ b/drivers/base/regmap/regmap-irq.c | |||
@@ -24,7 +24,7 @@ struct regmap_irq_chip_data { | |||
24 | struct mutex lock; | 24 | struct mutex lock; |
25 | 25 | ||
26 | struct regmap *map; | 26 | struct regmap *map; |
27 | struct regmap_irq_chip *chip; | 27 | const struct regmap_irq_chip *chip; |
28 | 28 | ||
29 | int irq_base; | 29 | int irq_base; |
30 | struct irq_domain *domain; | 30 | struct irq_domain *domain; |
@@ -103,7 +103,7 @@ static struct irq_chip regmap_irq_chip = { | |||
103 | static irqreturn_t regmap_irq_thread(int irq, void *d) | 103 | static irqreturn_t regmap_irq_thread(int irq, void *d) |
104 | { | 104 | { |
105 | struct regmap_irq_chip_data *data = d; | 105 | struct regmap_irq_chip_data *data = d; |
106 | struct regmap_irq_chip *chip = data->chip; | 106 | const struct regmap_irq_chip *chip = data->chip; |
107 | struct regmap *map = data->map; | 107 | struct regmap *map = data->map; |
108 | int ret, i; | 108 | int ret, i; |
109 | bool handled = false; | 109 | bool handled = false; |
@@ -195,7 +195,7 @@ static struct irq_domain_ops regmap_domain_ops = { | |||
195 | * register values used by the IRQ controller over suspend and resume. | 195 | * register values used by the IRQ controller over suspend and resume. |
196 | */ | 196 | */ |
197 | int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags, | 197 | int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags, |
198 | int irq_base, struct regmap_irq_chip *chip, | 198 | int irq_base, const struct regmap_irq_chip *chip, |
199 | struct regmap_irq_chip_data **data) | 199 | struct regmap_irq_chip_data **data) |
200 | { | 200 | { |
201 | struct regmap_irq_chip_data *d; | 201 | struct regmap_irq_chip_data *d; |
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 26136b577009..f9b624c83464 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h | |||
@@ -268,7 +268,7 @@ struct regmap_irq_chip { | |||
268 | struct regmap_irq_chip_data; | 268 | struct regmap_irq_chip_data; |
269 | 269 | ||
270 | int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags, | 270 | int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags, |
271 | int irq_base, struct regmap_irq_chip *chip, | 271 | int irq_base, const struct regmap_irq_chip *chip, |
272 | struct regmap_irq_chip_data **data); | 272 | struct regmap_irq_chip_data **data); |
273 | void regmap_del_irq_chip(int irq, struct regmap_irq_chip_data *data); | 273 | void regmap_del_irq_chip(int irq, struct regmap_irq_chip_data *data); |
274 | int regmap_irq_chip_get_base(struct regmap_irq_chip_data *data); | 274 | int regmap_irq_chip_get_base(struct regmap_irq_chip_data *data); |