mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
PCI MSI: Use mask_pos instead of mask_base when appropriate
MSI interrupts have a mask_pos where MSI-X have a mask_base. Use a transparent union to get rid of some ugly casts. Signed-off-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
379f5327a8
commit
264d9caaa1
2 changed files with 6 additions and 4 deletions
|
@ -33,7 +33,10 @@ struct msi_desc {
|
|||
unsigned int irq;
|
||||
struct list_head list;
|
||||
|
||||
void __iomem *mask_base;
|
||||
union {
|
||||
void __iomem *mask_base;
|
||||
u8 mask_pos;
|
||||
};
|
||||
struct pci_dev *dev;
|
||||
|
||||
/* Last set MSI message */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue