Add new allocation functions which can be activated by domain info flags. They store the groups pointer in struct msi_device_data.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -56,6 +56,8 @@ struct irq_data; · 55 unmodified lines | ||
| 56 | 56 | struct msi_desc; |
| 57 | 57 | struct pci_dev; |
| 58 | 58 | struct platform_msi_priv_data; |
| 59 | +struct attribute_group; | |
| 60 | + | |
| 59 | 61 | void __get_cached_msi_msg(struct msi_desc *entry, struct msi_msg *msg); |
| 60 | 62 | #ifdef CONFIG_GENERIC_MSI_IRQ |
| 61 | 63 | void get_cached_msi_msg(unsigned int irq, struct msi_msg *msg); |
| @@ -174,9 +176,11 @@ struct msi_desc { · 112 unmodified lines | ||
| 174 | 176 | /** |
| 175 | 177 | * msi_device_data - MSI per device data |
| 176 | 178 | * @properties: MSI properties which are interesting to drivers |
| 179 | + * @attrs: Pointer to the sysfs attribute group | |
| 177 | 180 | */ |
| 178 | 181 | struct msi_device_data { |
| 179 | 182 | unsigned long properties; |
| 183 | + const struct attribute_group **attrs; | |
| 180 | 184 | }; |
| 181 | 185 | |
| 182 | 186 | int msi_setup_device_data(struct device *dev); |