Skip to content

Commit ef6e5d6

Browse files
mwalleMarc Zyngier
authored andcommitted
genirq: Allow irq_set_chip_handler_name_locked() to take a const irq_chip
Similar to commit 393e128 ("genirq: Allow irq_chip registration functions to take a const irq_chip"), allow the irq_set_chip_handler_name_locked() function to take a const irq_chip argument. Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220706151553.1580790-1-michael@walle.cc
1 parent a111daf commit ef6e5d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/linux/irqdesc.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,15 @@ static inline void irq_set_handler_locked(struct irq_data *data,
209209
* Must be called with irq_desc locked and valid parameters.
210210
*/
211211
static inline void
212-
irq_set_chip_handler_name_locked(struct irq_data *data, struct irq_chip *chip,
212+
irq_set_chip_handler_name_locked(struct irq_data *data,
213+
const struct irq_chip *chip,
213214
irq_flow_handler_t handler, const char *name)
214215
{
215216
struct irq_desc *desc = irq_data_to_desc(data);
216217

217218
desc->handle_irq = handler;
218219
desc->name = name;
219-
data->chip = chip;
220+
data->chip = (struct irq_chip *)chip;
220221
}
221222

222223
bool irq_check_status_bit(unsigned int irq, unsigned int bitmask);

0 commit comments

Comments
 (0)