Skip to content

Commit

Permalink
x86/irq: Use accessor irq_data_get_irq_handler_data()
Browse files Browse the repository at this point in the history
Use accessor function irq_data_get_irq_handler_data() to hide irq_desc
implementation details.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Jiang Liu authored and Thomas Gleixner committed Jul 13, 2015
1 parent 5f2dbbc commit ff96b4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/x86/kernel/apic/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ static inline int hpet_dev_id(struct irq_domain *domain)

static void hpet_msi_write_msg(struct irq_data *data, struct msi_msg *msg)
{
hpet_msi_write(data->handler_data, msg);
hpet_msi_write(irq_data_get_irq_handler_data(data), msg);
}

static struct irq_chip hpet_msi_controller = {
Expand Down
4 changes: 2 additions & 2 deletions arch/x86/kernel/hpet.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ static struct irq_domain *hpet_domain;

void hpet_msi_unmask(struct irq_data *data)
{
struct hpet_dev *hdev = data->handler_data;
struct hpet_dev *hdev = irq_data_get_irq_handler_data(data);
unsigned int cfg;

/* unmask it */
Expand All @@ -437,7 +437,7 @@ void hpet_msi_unmask(struct irq_data *data)

void hpet_msi_mask(struct irq_data *data)
{
struct hpet_dev *hdev = data->handler_data;
struct hpet_dev *hdev = irq_data_get_irq_handler_data(data);
unsigned int cfg;

/* mask it */
Expand Down

0 comments on commit ff96b4d

Please sign in to comment.