Thread (35 messages) 35 messages, 4 authors, 1d ago

Re: [PATCH net-next v3 02/15] net: macb: unify device pointer naming convention

From: Conor Dooley <conor@kernel.org>
Date: 2026-07-03 11:29:22
Also in: lkml

On Wed, Jul 01, 2026 at 05:59:05PM +0200, Théo Lebrun wrote:
Here are all device pointer variable permutations inside MACB:

   struct device *dev;
   struct net_device *dev;
   struct net_device *ndev;
   struct net_device *netdev;
   struct pci_dev *pdev;              // inside macb_pci.c
   struct phy_device *phy;
   struct phy_device *phydev;
   struct platform_device *pdev;
   struct platform_device *plat_dev;  // inside macb_pci.c

Unify to this convention:

   struct device *dev;
   struct net_device *netdev;
   struct pci_dev *pci;
   struct phy_device *phydev;
   struct platform_device *pdev;
Oh lovely, OCD approved.
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help