mirror of https://gitee.com/openkylin/linux.git
x86/irq: Use accessor irq_data_get_irq_handler_data()
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>
This commit is contained in:
parent
5f2dbbc517
commit
ff96b4d033
|
@ -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 = {
|
||||
|
|
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue