Skip to content

Commit 2be63b8

Browse files
Jorge Boncompte [DTI2]davem330
authored andcommitted
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>
1 parent f586287 commit 2be63b8

3 files changed

Lines changed: 9 additions & 16 deletions

File tree

‎drivers/atm/iphase.c‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,7 @@
6565
#include "iphase.h"
6666
#include "suni.h"
6767
#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+
7469
#define PRIV(dev) ((struct suni_priv *) dev->phy_data)
7570

7671
static unsigned char ia_phy_get(struct atm_dev *dev, unsigned long addr);

‎drivers/atm/suni.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@
2929
#define DPRINTK(format,args...)
3030
#endif
3131

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-
4132
#define PRIV(dev) ((struct suni_priv *) dev->phy_data)
4233

4334
#define PUT(val,reg) dev->ops->phy_put(dev,val,SUNI_##reg)

‎drivers/atm/suni.h‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include <linux/atmdev.h>
1010
#include <linux/atmioc.h>
11-
11+
#include <linux/sonet.h>
1212

1313
/* SUNI registers */
1414

@@ -205,6 +205,13 @@
205205

206206

207207
#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+
208215
int suni_init(struct atm_dev *dev);
209216
#endif
210217

0 commit comments

Comments
 (0)