aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-31 16:01:46 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-03 08:16:51 -0400
commitb026ddbbd25e3560c8d69beb96a5980d96c59b43 (patch)
treefd3bf714e9cf31e8d995079d701893f634bbe884 /drivers
parent6a55244e897d32952832a67cb35cfbfa3f722c50 (diff)
regmap: Constify regmap_irq_chip
We should never be modifying it and it lets drivers declare it const. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/regmap/regmap-irq.c6
1 files changed, 3 insertions, 3 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 = {
103static irqreturn_t regmap_irq_thread(int irq, void *d) 103static 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 */
197int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags, 197int 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;