public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers: broadcom: save return value of pci_find_capability() in u8
@ 2020-12-06 20:10 Puranjay Mohan
  2020-12-07 23:00 ` Bjorn Helgaas
  0 siblings, 1 reply; 2+ messages in thread
From: Puranjay Mohan @ 2020-12-06 20:10 UTC (permalink / raw)
  To: siva.kallam, prashant, mchan, kuba, netdev, bjorn, linux-pci
  Cc: Puranjay Mohan

Callers of pci_find_capability() should save the return value in u8.
change the type of pcix_cap from int to u8, to match the specification.

Signed-off-by: Puranjay Mohan <puranjay12@gmail.com>
---
 drivers/net/ethernet/broadcom/tg3.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/broadcom/tg3.h b/drivers/net/ethernet/broadcom/tg3.h
index 1000c894064f..f1781d2dce0b 100644
--- a/drivers/net/ethernet/broadcom/tg3.h
+++ b/drivers/net/ethernet/broadcom/tg3.h
@@ -3268,7 +3268,7 @@ struct tg3 {
 
 	int				pci_fn;
 	int				msi_cap;
-	int				pcix_cap;
+	u8				pcix_cap;
 	int				pcie_readrq;
 
 	struct mii_bus			*mdio_bus;
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-07 23:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-06 20:10 [PATCH] drivers: broadcom: save return value of pci_find_capability() in u8 Puranjay Mohan
2020-12-07 23:00 ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox