提交 ef6e5d61 编写于 作者: M Michael Walle 提交者: Marc Zyngier

genirq: Allow irq_set_chip_handler_name_locked() to take a const irq_chip

Similar to commit 393e1280 ("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: NMichael Walle <michael@walle.cc>
Signed-off-by: NMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220706151553.1580790-1-michael@walle.cc
上级 a111daf0
...@@ -209,14 +209,15 @@ static inline void irq_set_handler_locked(struct irq_data *data, ...@@ -209,14 +209,15 @@ static inline void irq_set_handler_locked(struct irq_data *data,
* Must be called with irq_desc locked and valid parameters. * Must be called with irq_desc locked and valid parameters.
*/ */
static inline void static inline void
irq_set_chip_handler_name_locked(struct irq_data *data, struct irq_chip *chip, irq_set_chip_handler_name_locked(struct irq_data *data,
const struct irq_chip *chip,
irq_flow_handler_t handler, const char *name) irq_flow_handler_t handler, const char *name)
{ {
struct irq_desc *desc = irq_data_to_desc(data); struct irq_desc *desc = irq_data_to_desc(data);
desc->handle_irq = handler; desc->handle_irq = handler;
desc->name = name; desc->name = name;
data->chip = chip; data->chip = (struct irq_chip *)chip;
} }
bool irq_check_status_bit(unsigned int irq, unsigned int bitmask); bool irq_check_status_bit(unsigned int irq, unsigned int bitmask);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册