mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
genirq: Remove irq argument from irq flow handlers
Most interrupt flow handlers do not use the irq argument. Those few which use it can retrieve the irq number from the irq descriptor. Remove the argument. Search and replace was done with coccinelle and some extra helper scripts around it. Thanks to Julia for her help! Signed-off-by: Thomas Gleixner <[email protected]> Cc: Julia Lawall <[email protected]> Cc: Jiang Liu <[email protected]>
This commit is contained in:
parent
b237721c5d
commit
bd0b9ac405
188 changed files with 281 additions and 340 deletions
|
|
@ -138,7 +138,7 @@ static void asic3_irq_flip_edge(struct asic3 *asic,
|
|||
spin_unlock_irqrestore(&asic->lock, flags);
|
||||
}
|
||||
|
||||
static void asic3_irq_demux(unsigned int irq, struct irq_desc *desc)
|
||||
static void asic3_irq_demux(struct irq_desc *desc)
|
||||
{
|
||||
struct asic3 *asic = irq_desc_get_handler_data(desc);
|
||||
struct irq_data *data = irq_desc_get_irq_data(desc);
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ static void pcap_isr_work(struct work_struct *work)
|
|||
} while (gpio_get_value(pdata->gpio));
|
||||
}
|
||||
|
||||
static void pcap_irq_handler(unsigned int irq, struct irq_desc *desc)
|
||||
static void pcap_irq_handler(struct irq_desc *desc)
|
||||
{
|
||||
struct pcap_chip *pcap = irq_desc_get_handler_data(desc);
|
||||
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ static struct irq_chip egpio_muxed_chip = {
|
|||
.irq_unmask = egpio_unmask,
|
||||
};
|
||||
|
||||
static void egpio_handler(unsigned int irq, struct irq_desc *desc)
|
||||
static void egpio_handler(struct irq_desc *desc)
|
||||
{
|
||||
struct egpio_info *ei = irq_desc_get_handler_data(desc);
|
||||
int irqpin;
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ struct jz4740_adc {
|
|||
spinlock_t lock;
|
||||
};
|
||||
|
||||
static void jz4740_adc_irq_demux(unsigned int irq, struct irq_desc *desc)
|
||||
static void jz4740_adc_irq_demux(struct irq_desc *desc)
|
||||
{
|
||||
struct irq_chip_generic *gc = irq_desc_get_handler_data(desc);
|
||||
uint8_t status;
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ static int pm8xxx_irq_master_handler(struct pm_irq_chip *chip, int master)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static void pm8xxx_irq_handler(unsigned int irq, struct irq_desc *desc)
|
||||
static void pm8xxx_irq_handler(struct irq_desc *desc)
|
||||
{
|
||||
struct pm_irq_chip *chip = irq_desc_get_handler_data(desc);
|
||||
struct irq_chip *irq_chip = irq_desc_get_chip(desc);
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ static struct mfd_cell t7l66xb_cells[] = {
|
|||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
/* Handle the T7L66XB interrupt mux */
|
||||
static void t7l66xb_irq(unsigned int irq, struct irq_desc *desc)
|
||||
static void t7l66xb_irq(struct irq_desc *desc)
|
||||
{
|
||||
struct t7l66xb *t7l66xb = irq_desc_get_handler_data(desc);
|
||||
unsigned int isr;
|
||||
|
|
|
|||
|
|
@ -522,8 +522,7 @@ static int tc6393xb_register_gpio(struct tc6393xb *tc6393xb, int gpio_base)
|
|||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
static void
|
||||
tc6393xb_irq(unsigned int irq, struct irq_desc *desc)
|
||||
static void tc6393xb_irq(struct irq_desc *desc)
|
||||
{
|
||||
struct tc6393xb *tc6393xb = irq_desc_get_handler_data(desc);
|
||||
unsigned int isr;
|
||||
|
|
|
|||
|
|
@ -282,7 +282,7 @@ void ucb1x00_adc_disable(struct ucb1x00 *ucb)
|
|||
* SIBCLK to talk to the chip. We leave the clock running until
|
||||
* we have finished processing all interrupts from the chip.
|
||||
*/
|
||||
static void ucb1x00_irq(unsigned int __irq, struct irq_desc *desc)
|
||||
static void ucb1x00_irq(struct irq_desc *desc)
|
||||
{
|
||||
struct ucb1x00 *ucb = irq_desc_get_handler_data(desc);
|
||||
unsigned int isr, i;
|
||||
|
|
|
|||
Loading…
Reference in a new issue