Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

atm: [iphase] move struct suni_priv to suni.h

Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jorge Boncompte [DTI2] and committed by
David S. Miller
2be63b87 f586287e

+9 -16
+1 -6
drivers/atm/iphase.c
··· 65 65 #include "iphase.h" 66 66 #include "suni.h" 67 67 #define swap(x) (((x & 0xff) << 8) | ((x & 0xff00) >> 8)) 68 - struct suni_priv { 69 - struct k_sonet_stats sonet_stats; /* link diagnostics */ 70 - unsigned char loop_mode; /* loopback mode */ 71 - struct atm_dev *dev; /* device back-pointer */ 72 - struct suni_priv *next; /* next SUNI */ 73 - }; 68 + 74 69 #define PRIV(dev) ((struct suni_priv *) dev->phy_data) 75 70 76 71 static unsigned char ia_phy_get(struct atm_dev *dev, unsigned long addr);
-9
drivers/atm/suni.c
··· 29 29 #define DPRINTK(format,args...) 30 30 #endif 31 31 32 - 33 - struct suni_priv { 34 - struct k_sonet_stats sonet_stats; /* link diagnostics */ 35 - int loop_mode; /* loopback mode */ 36 - struct atm_dev *dev; /* device back-pointer */ 37 - struct suni_priv *next; /* next SUNI */ 38 - }; 39 - 40 - 41 32 #define PRIV(dev) ((struct suni_priv *) dev->phy_data) 42 33 43 34 #define PUT(val,reg) dev->ops->phy_put(dev,val,SUNI_##reg)
+8 -1
drivers/atm/suni.h
··· 8 8 9 9 #include <linux/atmdev.h> 10 10 #include <linux/atmioc.h> 11 - 11 + #include <linux/sonet.h> 12 12 13 13 /* SUNI registers */ 14 14 ··· 205 205 206 206 207 207 #ifdef __KERNEL__ 208 + struct suni_priv { 209 + struct k_sonet_stats sonet_stats; /* link diagnostics */ 210 + int loop_mode; /* loopback mode */ 211 + struct atm_dev *dev; /* device back-pointer */ 212 + struct suni_priv *next; /* next SUNI */ 213 + }; 214 + 208 215 int suni_init(struct atm_dev *dev); 209 216 #endif 210 217