diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-25 12:56:02 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-26 19:09:53 -0400 |
commit | 8317d5178e7491589693693e5a7f64442cf46ca2 (patch) | |
tree | 51d2e0790a676dd061b01400e0c7a32e64282890 /drivers/mfd/max8997-irq.c | |
parent | d6f7ce9f7fde069424e6400c31717ef34aab7e5f (diff) |
mfd: Clean up max8997 IRQ namespace
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/max8997-irq.c')
-rw-r--r-- | drivers/mfd/max8997-irq.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/mfd/max8997-irq.c b/drivers/mfd/max8997-irq.c index e85c874133c4..638bf7e4d3b3 100644 --- a/drivers/mfd/max8997-irq.c +++ b/drivers/mfd/max8997-irq.c | |||
@@ -115,14 +115,14 @@ static const struct max8997_irq_data max8997_irqs[] = { | |||
115 | 115 | ||
116 | static void max8997_irq_lock(struct irq_data *data) | 116 | static void max8997_irq_lock(struct irq_data *data) |
117 | { | 117 | { |
118 | struct max8997_dev *max8997 = get_irq_chip_data(data->irq); | 118 | struct max8997_dev *max8997 = irq_get_chip_data(data->irq); |
119 | 119 | ||
120 | mutex_lock(&max8997->irqlock); | 120 | mutex_lock(&max8997->irqlock); |
121 | } | 121 | } |
122 | 122 | ||
123 | static void max8997_irq_sync_unlock(struct irq_data *data) | 123 | static void max8997_irq_sync_unlock(struct irq_data *data) |
124 | { | 124 | { |
125 | struct max8997_dev *max8997 = get_irq_chip_data(data->irq); | 125 | struct max8997_dev *max8997 = irq_get_chip_data(data->irq); |
126 | int i; | 126 | int i; |
127 | 127 | ||
128 | for (i = 0; i < MAX8997_IRQ_GROUP_NR; i++) { | 128 | for (i = 0; i < MAX8997_IRQ_GROUP_NR; i++) { |
@@ -149,7 +149,7 @@ irq_to_max8997_irq(struct max8997_dev *max8997, int irq) | |||
149 | 149 | ||
150 | static void max8997_irq_mask(struct irq_data *data) | 150 | static void max8997_irq_mask(struct irq_data *data) |
151 | { | 151 | { |
152 | struct max8997_dev *max8997 = get_irq_chip_data(data->irq); | 152 | struct max8997_dev *max8997 = irq_get_chip_data(data->irq); |
153 | const struct max8997_irq_data *irq_data = irq_to_max8997_irq(max8997, | 153 | const struct max8997_irq_data *irq_data = irq_to_max8997_irq(max8997, |
154 | data->irq); | 154 | data->irq); |
155 | 155 | ||
@@ -158,7 +158,7 @@ static void max8997_irq_mask(struct irq_data *data) | |||
158 | 158 | ||
159 | static void max8997_irq_unmask(struct irq_data *data) | 159 | static void max8997_irq_unmask(struct irq_data *data) |
160 | { | 160 | { |
161 | struct max8997_dev *max8997 = get_irq_chip_data(data->irq); | 161 | struct max8997_dev *max8997 = irq_get_chip_data(data->irq); |
162 | const struct max8997_irq_data *irq_data = irq_to_max8997_irq(max8997, | 162 | const struct max8997_irq_data *irq_data = irq_to_max8997_irq(max8997, |
163 | data->irq); | 163 | data->irq); |
164 | 164 | ||
@@ -332,14 +332,14 @@ int max8997_irq_init(struct max8997_dev *max8997) | |||
332 | /* Register with genirq */ | 332 | /* Register with genirq */ |
333 | for (i = 0; i < MAX8997_IRQ_NR; i++) { | 333 | for (i = 0; i < MAX8997_IRQ_NR; i++) { |
334 | cur_irq = i + max8997->irq_base; | 334 | cur_irq = i + max8997->irq_base; |
335 | set_irq_chip_data(cur_irq, max8997); | 335 | irq_set_chip_data(cur_irq, max8997); |
336 | set_irq_chip_and_handler(cur_irq, &max8997_irq_chip, | 336 | irq_set_chip_and_handler(cur_irq, &max8997_irq_chip, |
337 | handle_edge_irq); | 337 | handle_edge_irq); |
338 | set_irq_nested_thread(cur_irq, 1); | 338 | irq_set_nested_thread(cur_irq, 1); |
339 | #ifdef CONFIG_ARM | 339 | #ifdef CONFIG_ARM |
340 | set_irq_flags(cur_irq, IRQF_VALID); | 340 | set_irq_flags(cur_irq, IRQF_VALID); |
341 | #else | 341 | #else |
342 | set_irq_noprobe(cur_irq); | 342 | irq_set_noprobe(cur_irq); |
343 | #endif | 343 | #endif |
344 | } | 344 | } |
345 | 345 | ||