mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ht: Convert to new irq_chip functions
Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Ingo Molnar <[email protected]> Cc: Jesse Barnes <[email protected]>
This commit is contained in:
parent
5c2837fbaa
commit
e9f7ac664b
3 changed files with 13 additions and 18 deletions
|
|
@ -57,28 +57,22 @@ void fetch_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg)
|
|||
*msg = cfg->msg;
|
||||
}
|
||||
|
||||
void mask_ht_irq(unsigned int irq)
|
||||
void mask_ht_irq(struct irq_data *data)
|
||||
{
|
||||
struct ht_irq_cfg *cfg;
|
||||
struct ht_irq_msg msg;
|
||||
struct ht_irq_cfg *cfg = irq_data_get_irq_data(data);
|
||||
struct ht_irq_msg msg = cfg->msg;
|
||||
|
||||
cfg = get_irq_data(irq);
|
||||
|
||||
msg = cfg->msg;
|
||||
msg.address_lo |= 1;
|
||||
write_ht_irq_msg(irq, &msg);
|
||||
write_ht_irq_msg(data->irq, &msg);
|
||||
}
|
||||
|
||||
void unmask_ht_irq(unsigned int irq)
|
||||
void unmask_ht_irq(struct irq_data *data)
|
||||
{
|
||||
struct ht_irq_cfg *cfg;
|
||||
struct ht_irq_msg msg;
|
||||
struct ht_irq_cfg *cfg = irq_data_get_irq_data(data);
|
||||
struct ht_irq_msg msg = cfg->msg;
|
||||
|
||||
cfg = get_irq_data(irq);
|
||||
|
||||
msg = cfg->msg;
|
||||
msg.address_lo &= ~1;
|
||||
write_ht_irq_msg(irq, &msg);
|
||||
write_ht_irq_msg(data->irq, &msg);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue