PCI/MSI: Remove "pos" from the struct msi_desc msi_attrib
"msi_attrib.pos" is only used for MSI (not MSI-X), and we already cache the MSI capability offset in "dev->msi_cap". Remove "pos" from the struct msi_attrib and use "dev->msi_cap" directly. [bhelgaas: changelog, fix whitespace] Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
		
					parent
					
						
							
								81052769e4
							
						
					
				
			
			
				commit
				
					
						48c3c38f00
					
				
			
		
					 4 changed files with 4 additions and 10 deletions
				
			
		|  | @ -29,7 +29,6 @@ struct msi_desc { | |||
| 		__u8	multi_cap : 3;	/* log2 num of messages supported */ | ||||
| 		__u8	maskbit	: 1;	/* mask-pending bit supported ? */ | ||||
| 		__u8	is_64	: 1;	/* Address size: 0=32bit 1=64bit */ | ||||
| 		__u8	pos;		/* Location of the msi capability */ | ||||
| 		__u16	entry_nr;	/* specific enabled entry */ | ||||
| 		unsigned default_irq;	/* default pre-assigned irq */ | ||||
| 	} msi_attrib; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yijing Wang
				Yijing Wang