Changeset 35641


Ignore:
Timestamp:
2013-02-17T13:48:23+01:00 (5 years ago)
Author:
juhosg
Message:

generic: ar8216: rename struct ar8216_priv to ar8xxx_priv

Signed-off-by: Gabor Juhos <juhosg@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/net/phy/ar8216.c

    r35603 r35641  
    4343#define AR8XXX_MIB_WORK_DELAY   2000 /* msecs */ 
    4444 
    45 struct ar8216_priv; 
     45struct ar8xxx_priv; 
    4646 
    4747#define AR8XXX_CAP_GIGE                 BIT(0) 
     
    6464        unsigned long caps; 
    6565 
    66         int (*hw_init)(struct ar8216_priv *priv); 
    67         void (*init_globals)(struct ar8216_priv *priv); 
    68         void (*init_port)(struct ar8216_priv *priv, int port); 
    69         void (*setup_port)(struct ar8216_priv *priv, int port, u32 egress, 
     66        int (*hw_init)(struct ar8xxx_priv *priv); 
     67        void (*init_globals)(struct ar8xxx_priv *priv); 
     68        void (*init_port)(struct ar8xxx_priv *priv, int port); 
     69        void (*setup_port)(struct ar8xxx_priv *priv, int port, u32 egress, 
    7070                           u32 ingress, u32 members, u32 pvid); 
    71         u32 (*read_port_status)(struct ar8216_priv *priv, int port); 
    72         int (*atu_flush)(struct ar8216_priv *priv); 
    73         void (*vtu_flush)(struct ar8216_priv *priv); 
    74         void (*vtu_load_vlan)(struct ar8216_priv *priv, u32 vid, u32 port_mask); 
     71        u32 (*read_port_status)(struct ar8xxx_priv *priv, int port); 
     72        int (*atu_flush)(struct ar8xxx_priv *priv); 
     73        void (*vtu_flush)(struct ar8xxx_priv *priv); 
     74        void (*vtu_load_vlan)(struct ar8xxx_priv *priv, u32 vid, u32 port_mask); 
    7575 
    7676        const struct ar8xxx_mib_desc *mib_decs; 
     
    7878}; 
    7979 
    80 struct ar8216_priv { 
     80struct ar8xxx_priv { 
    8181        struct switch_dev dev; 
    8282        struct mii_bus *mii_bus; 
    8383        struct phy_device *phy; 
    84         u32 (*read)(struct ar8216_priv *priv, int reg); 
    85         void (*write)(struct ar8216_priv *priv, int reg, u32 val); 
     84        u32 (*read)(struct ar8xxx_priv *priv, int reg); 
     85        void (*write)(struct ar8xxx_priv *priv, int reg, u32 val); 
    8686        const struct net_device_ops *ndo_old; 
    8787        struct net_device_ops ndo; 
     
    205205static LIST_HEAD(ar8xxx_dev_list); 
    206206 
    207 static inline struct ar8216_priv * 
    208 swdev_to_ar8216(struct switch_dev *swdev) 
    209 { 
    210         return container_of(swdev, struct ar8216_priv, dev); 
    211 } 
    212  
    213 static inline bool ar8xxx_has_gige(struct ar8216_priv *priv) 
     207static inline struct ar8xxx_priv * 
     208swdev_to_ar8xxx(struct switch_dev *swdev) 
     209{ 
     210        return container_of(swdev, struct ar8xxx_priv, dev); 
     211} 
     212 
     213static inline bool ar8xxx_has_gige(struct ar8xxx_priv *priv) 
    214214{ 
    215215        return priv->chip->caps & AR8XXX_CAP_GIGE; 
    216216} 
    217217 
    218 static inline bool ar8xxx_has_mib_counters(struct ar8216_priv *priv) 
     218static inline bool ar8xxx_has_mib_counters(struct ar8xxx_priv *priv) 
    219219{ 
    220220        return priv->chip->caps & AR8XXX_CAP_MIB_COUNTERS; 
    221221} 
    222222 
    223 static inline bool chip_is_ar8216(struct ar8216_priv *priv) 
     223static inline bool chip_is_ar8216(struct ar8xxx_priv *priv) 
    224224{ 
    225225        return priv->chip_ver == AR8XXX_VER_AR8216; 
    226226} 
    227227 
    228 static inline bool chip_is_ar8236(struct ar8216_priv *priv) 
     228static inline bool chip_is_ar8236(struct ar8xxx_priv *priv) 
    229229{ 
    230230        return priv->chip_ver == AR8XXX_VER_AR8236; 
    231231} 
    232232 
    233 static inline bool chip_is_ar8316(struct ar8216_priv *priv) 
     233static inline bool chip_is_ar8316(struct ar8xxx_priv *priv) 
    234234{ 
    235235        return priv->chip_ver == AR8XXX_VER_AR8316; 
    236236} 
    237237 
    238 static inline bool chip_is_ar8327(struct ar8216_priv *priv) 
     238static inline bool chip_is_ar8327(struct ar8xxx_priv *priv) 
    239239{ 
    240240        return priv->chip_ver == AR8XXX_VER_AR8327; 
     
    255255 
    256256static u32 
    257 ar8216_mii_read(struct ar8216_priv *priv, int reg) 
     257ar8216_mii_read(struct ar8xxx_priv *priv, int reg) 
    258258{ 
    259259        struct mii_bus *bus = priv->mii_bus; 
     
    276276 
    277277static void 
    278 ar8216_mii_write(struct ar8216_priv *priv, int reg, u32 val) 
     278ar8216_mii_write(struct ar8xxx_priv *priv, int reg, u32 val) 
    279279{ 
    280280        struct mii_bus *bus = priv->mii_bus; 
     
    302302 
    303303static void 
    304 ar8216_phy_dbg_write(struct ar8216_priv *priv, int phy_addr, 
     304ar8216_phy_dbg_write(struct ar8xxx_priv *priv, int phy_addr, 
    305305                     u16 dbg_addr, u16 dbg_data) 
    306306{ 
     
    314314 
    315315static void 
    316 ar8216_phy_mmd_write(struct ar8216_priv *priv, int phy_addr, u16 addr, u16 data) 
     316ar8216_phy_mmd_write(struct ar8xxx_priv *priv, int phy_addr, u16 addr, u16 data) 
    317317{ 
    318318        struct mii_bus *bus = priv->mii_bus; 
     
    325325 
    326326static u32 
    327 ar8216_rmw(struct ar8216_priv *priv, int reg, u32 mask, u32 val) 
     327ar8216_rmw(struct ar8xxx_priv *priv, int reg, u32 mask, u32 val) 
    328328{ 
    329329        u32 v; 
     
    340340 
    341341static inline void 
    342 ar8216_reg_set(struct ar8216_priv *priv, int reg, u32 val) 
     342ar8216_reg_set(struct ar8xxx_priv *priv, int reg, u32 val) 
    343343{ 
    344344        u32 v; 
     
    352352 
    353353static int 
    354 ar8216_reg_wait(struct ar8216_priv *priv, u32 reg, u32 mask, u32 val, 
     354ar8216_reg_wait(struct ar8xxx_priv *priv, u32 reg, u32 mask, u32 val, 
    355355                unsigned timeout) 
    356356{ 
     
    371371 
    372372static int 
    373 ar8216_mib_op(struct ar8216_priv *priv, u32 op) 
     373ar8216_mib_op(struct ar8xxx_priv *priv, u32 op) 
    374374{ 
    375375        unsigned mib_func; 
     
    400400 
    401401static int 
    402 ar8216_mib_capture(struct ar8216_priv *priv) 
     402ar8216_mib_capture(struct ar8xxx_priv *priv) 
    403403{ 
    404404        return ar8216_mib_op(priv, AR8216_MIB_FUNC_CAPTURE); 
     
    406406 
    407407static int 
    408 ar8216_mib_flush(struct ar8216_priv *priv) 
     408ar8216_mib_flush(struct ar8xxx_priv *priv) 
    409409{ 
    410410        return ar8216_mib_op(priv, AR8216_MIB_FUNC_FLUSH); 
     
    412412 
    413413static void 
    414 ar8216_mib_fetch_port_stat(struct ar8216_priv *priv, int port, bool flush) 
     414ar8216_mib_fetch_port_stat(struct ar8xxx_priv *priv, int port, bool flush) 
    415415{ 
    416416        unsigned int base; 
     
    452452 
    453453static void 
    454 ar8216_read_port_link(struct ar8216_priv *priv, int port, 
     454ar8216_read_port_link(struct ar8xxx_priv *priv, int port, 
    455455                      struct switch_port_link *link) 
    456456{ 
     
    497497ar8216_mangle_tx(struct net_device *dev, struct sk_buff *skb) 
    498498{ 
    499         struct ar8216_priv *priv = dev->phy_ptr; 
     499        struct ar8xxx_priv *priv = dev->phy_ptr; 
    500500        unsigned char *buf; 
    501501 
     
    526526ar8216_mangle_rx(struct net_device *dev, struct sk_buff *skb) 
    527527{ 
    528         struct ar8216_priv *priv; 
     528        struct ar8xxx_priv *priv; 
    529529        unsigned char *buf; 
    530530        int port, vlan; 
     
    561561 
    562562static int 
    563 ar8216_wait_bit(struct ar8216_priv *priv, int reg, u32 mask, u32 val) 
     563ar8216_wait_bit(struct ar8xxx_priv *priv, int reg, u32 mask, u32 val) 
    564564{ 
    565565        int timeout = 20; 
     
    583583 
    584584static void 
    585 ar8216_vtu_op(struct ar8216_priv *priv, u32 op, u32 val) 
     585ar8216_vtu_op(struct ar8xxx_priv *priv, u32 op, u32 val) 
    586586{ 
    587587        if (ar8216_wait_bit(priv, AR8216_REG_VTU, AR8216_VTU_ACTIVE, 0)) 
     
    597597 
    598598static void 
    599 ar8216_vtu_flush(struct ar8216_priv *priv) 
     599ar8216_vtu_flush(struct ar8xxx_priv *priv) 
    600600{ 
    601601        ar8216_vtu_op(priv, AR8216_VTU_OP_FLUSH, 0); 
     
    603603 
    604604static void 
    605 ar8216_vtu_load_vlan(struct ar8216_priv *priv, u32 vid, u32 port_mask) 
     605ar8216_vtu_load_vlan(struct ar8xxx_priv *priv, u32 vid, u32 port_mask) 
    606606{ 
    607607        u32 op; 
     
    612612 
    613613static int 
    614 ar8216_atu_flush(struct ar8216_priv *priv) 
     614ar8216_atu_flush(struct ar8xxx_priv *priv) 
    615615{ 
    616616        int ret; 
     
    624624 
    625625static u32 
    626 ar8216_read_port_status(struct ar8216_priv *priv, int port) 
     626ar8216_read_port_status(struct ar8xxx_priv *priv, int port) 
    627627{ 
    628628        return priv->read(priv, AR8216_REG_PORT_STATUS(port)); 
     
    630630 
    631631static void 
    632 ar8216_setup_port(struct ar8216_priv *priv, int port, u32 egress, u32 ingress, 
     632ar8216_setup_port(struct ar8xxx_priv *priv, int port, u32 egress, u32 ingress, 
    633633                  u32 members, u32 pvid) 
    634634{ 
     
    657657 
    658658static int 
    659 ar8216_hw_init(struct ar8216_priv *priv) 
     659ar8216_hw_init(struct ar8xxx_priv *priv) 
    660660{ 
    661661        return 0; 
     
    663663 
    664664static void 
    665 ar8216_init_globals(struct ar8216_priv *priv) 
     665ar8216_init_globals(struct ar8xxx_priv *priv) 
    666666{ 
    667667        /* standard atheros magic */ 
     
    673673 
    674674static void 
    675 ar8216_init_port(struct ar8216_priv *priv, int port) 
     675ar8216_init_port(struct ar8xxx_priv *priv, int port) 
    676676{ 
    677677        /* Enable port learning and tx */ 
     
    715715 
    716716static void 
    717 ar8236_setup_port(struct ar8216_priv *priv, int port, u32 egress, u32 ingress, 
     717ar8236_setup_port(struct ar8xxx_priv *priv, int port, u32 egress, u32 ingress, 
    718718                  u32 members, u32 pvid) 
    719719{ 
     
    738738 
    739739static int 
    740 ar8236_hw_init(struct ar8216_priv *priv) 
     740ar8236_hw_init(struct ar8xxx_priv *priv) 
    741741{ 
    742742        int i; 
     
    761761 
    762762static void 
    763 ar8236_init_globals(struct ar8216_priv *priv) 
     763ar8236_init_globals(struct ar8xxx_priv *priv) 
    764764{ 
    765765        /* enable jumbo frames */ 
     
    789789 
    790790static int 
    791 ar8316_hw_init(struct ar8216_priv *priv) 
     791ar8316_hw_init(struct ar8xxx_priv *priv) 
    792792{ 
    793793        int i; 
     
    850850 
    851851static void 
    852 ar8316_init_globals(struct ar8216_priv *priv) 
     852ar8316_init_globals(struct ar8xxx_priv *priv) 
    853853{ 
    854854        /* standard atheros magic */ 
     
    978978 
    979979static void 
    980 ar8327_phy_fixup(struct ar8216_priv *priv, int phy) 
     980ar8327_phy_fixup(struct ar8xxx_priv *priv, int phy) 
    981981{ 
    982982        switch (priv->chip_rev) { 
     
    10041004 
    10051005static int 
    1006 ar8327_hw_init(struct ar8216_priv *priv) 
     1006ar8327_hw_init(struct ar8xxx_priv *priv) 
    10071007{ 
    10081008        struct ar8327_platform_data *pdata; 
     
    10631063 
    10641064static void 
    1065 ar8327_init_globals(struct ar8216_priv *priv) 
     1065ar8327_init_globals(struct ar8xxx_priv *priv) 
    10661066{ 
    10671067        u32 t; 
     
    10881088 
    10891089static void 
    1090 ar8327_config_port(struct ar8216_priv *priv, unsigned int port, 
     1090ar8327_config_port(struct ar8xxx_priv *priv, unsigned int port, 
    10911091                    struct ar8327_port_cfg *cfg) 
    10921092{ 
     
    11201120 
    11211121static void 
    1122 ar8327_init_port(struct ar8216_priv *priv, int port) 
     1122ar8327_init_port(struct ar8xxx_priv *priv, int port) 
    11231123{ 
    11241124        struct ar8327_platform_data *pdata; 
     
    11521152 
    11531153static u32 
    1154 ar8327_read_port_status(struct ar8216_priv *priv, int port) 
     1154ar8327_read_port_status(struct ar8xxx_priv *priv, int port) 
    11551155{ 
    11561156        return priv->read(priv, AR8327_REG_PORT_STATUS(port)); 
     
    11581158 
    11591159static int 
    1160 ar8327_atu_flush(struct ar8216_priv *priv) 
     1160ar8327_atu_flush(struct ar8xxx_priv *priv) 
    11611161{ 
    11621162        int ret; 
     
    11721172 
    11731173static void 
    1174 ar8327_vtu_op(struct ar8216_priv *priv, u32 op, u32 val) 
     1174ar8327_vtu_op(struct ar8xxx_priv *priv, u32 op, u32 val) 
    11751175{ 
    11761176        if (ar8216_wait_bit(priv, AR8327_REG_VTU_FUNC1, 
     
    11861186 
    11871187static void 
    1188 ar8327_vtu_flush(struct ar8216_priv *priv) 
     1188ar8327_vtu_flush(struct ar8xxx_priv *priv) 
    11891189{ 
    11901190        ar8327_vtu_op(priv, AR8327_VTU_FUNC1_OP_FLUSH, 0); 
     
    11921192 
    11931193static void 
    1194 ar8327_vtu_load_vlan(struct ar8216_priv *priv, u32 vid, u32 port_mask) 
     1194ar8327_vtu_load_vlan(struct ar8xxx_priv *priv, u32 vid, u32 port_mask) 
    11951195{ 
    11961196        u32 op; 
     
    12181218 
    12191219static void 
    1220 ar8327_setup_port(struct ar8216_priv *priv, int port, u32 egress, u32 ingress, 
     1220ar8327_setup_port(struct ar8xxx_priv *priv, int port, u32 egress, u32 ingress, 
    12211221                  u32 members, u32 pvid) 
    12221222{ 
     
    12711271                   struct switch_val *val) 
    12721272{ 
    1273         struct ar8216_priv *priv = swdev_to_ar8216(dev); 
     1273        struct ar8xxx_priv *priv = swdev_to_ar8xxx(dev); 
    12741274        priv->vlan = !!val->value.i; 
    12751275        return 0; 
     
    12801280                   struct switch_val *val) 
    12811281{ 
    1282         struct ar8216_priv *priv = swdev_to_ar8216(dev); 
     1282        struct ar8xxx_priv *priv = swdev_to_ar8xxx(dev); 
    12831283        val->value.i = priv->vlan; 
    12841284        return 0; 
     
    12891289ar8216_sw_set_pvid(struct switch_dev *dev, int port, int vlan) 
    12901290{ 
    1291         struct ar8216_priv *priv = swdev_to_ar8216(dev); 
     1291        struct ar8xxx_priv *priv = swdev_to_ar8xxx(dev); 
    12921292 
    12931293        /* make sure no invalid PVIDs get set */ 
     
    13031303ar8216_sw_get_pvid(struct switch_dev *dev, int port, int *vlan) 
    13041304{ 
    1305         struct ar8216_priv *priv = swdev_to_ar8216(dev); 
     1305        struct ar8xxx_priv *priv = swdev_to_ar8xxx(dev); 
    13061306        *vlan = priv->pvid[port]; 
    13071307        return 0; 
     
    13121312                  struct switch_val *val) 
    13131313{ 
    1314         struct ar8216_priv *priv = swdev_to_ar8216(dev); 
     1314        struct ar8xxx_priv *priv = swdev_to_ar8xxx(dev); 
    13151315        priv->vlan_id[val->port_vlan] = val->value.i; 
    13161316        return 0; 
     
    13211321                  struct switch_val *val) 
    13221322{ 
    1323         struct ar8216_priv *priv = swdev_to_ar8216(dev); 
     1323        struct ar8xxx_priv *priv = swdev_to_ar8xxx(dev); 
    13241324        val->value.i = priv->vlan_id[val->port_vlan]; 
    13251325        return 0; 
     
    13301330                        struct switch_port_link *link) 
    13311331{ 
    1332         struct ar8216_priv *priv = swdev_to_ar8216(dev); 
     1332        struct ar8xxx_priv *priv = swdev_to_ar8xxx(dev); 
    13331333 
    13341334        ar8216_read_port_link(priv, port, link); 
     
    13391339ar8216_sw_get_ports(struct switch_dev *dev, struct switch_val *val) 
    13401340{ 
    1341         struct ar8216_priv *priv = swdev_to_ar8216(dev); 
     1341        struct ar8xxx_priv *priv = swdev_to_ar8xxx(dev); 
    13421342        u8 ports = priv->vlan_table[val->port_vlan]; 
    13431343        int i; 
     
    13631363ar8216_sw_set_ports(struct switch_dev *dev, struct switch_val *val) 
    13641364{ 
    1365         struct ar8216_priv *priv = swdev_to_ar8216(dev); 
     1365        struct ar8xxx_priv *priv = swdev_to_ar8xxx(dev); 
    13661366        u8 *vt = &priv->vlan_table[val->port_vlan]; 
    13671367        int i, j; 
     
    13941394ar8216_sw_hw_apply(struct switch_dev *dev) 
    13951395{ 
    1396         struct ar8216_priv *priv = swdev_to_ar8216(dev); 
     1396        struct ar8xxx_priv *priv = swdev_to_ar8xxx(dev); 
    13971397        u8 portmask[AR8X16_MAX_PORTS]; 
    13981398        int i, j; 
     
    14611461ar8216_sw_reset_switch(struct switch_dev *dev) 
    14621462{ 
    1463         struct ar8216_priv *priv = swdev_to_ar8216(dev); 
     1463        struct ar8xxx_priv *priv = swdev_to_ar8xxx(dev); 
    14641464        int i; 
    14651465 
    14661466        mutex_lock(&priv->reg_mutex); 
    1467         memset(&priv->vlan, 0, sizeof(struct ar8216_priv) - 
    1468                 offsetof(struct ar8216_priv, vlan)); 
     1467        memset(&priv->vlan, 0, sizeof(struct ar8xxx_priv) - 
     1468                offsetof(struct ar8xxx_priv, vlan)); 
    14691469 
    14701470        for (i = 0; i < AR8X16_MAX_VLANS; i++) 
     
    14861486                         struct switch_val *val) 
    14871487{ 
    1488         struct ar8216_priv *priv = swdev_to_ar8216(dev); 
     1488        struct ar8xxx_priv *priv = swdev_to_ar8xxx(dev); 
    14891489        unsigned int len; 
    14901490        int ret; 
     
    15141514                             struct switch_val *val) 
    15151515{ 
    1516         struct ar8216_priv *priv = swdev_to_ar8216(dev); 
     1516        struct ar8xxx_priv *priv = swdev_to_ar8xxx(dev); 
    15171517        int port; 
    15181518        int ret; 
     
    15441544                       struct switch_val *val) 
    15451545{ 
    1546         struct ar8216_priv *priv = swdev_to_ar8216(dev); 
     1546        struct ar8xxx_priv *priv = swdev_to_ar8xxx(dev); 
    15471547        const struct ar8xxx_chip *chip = priv->chip; 
    15481548        u64 *mib_stats; 
     
    16551655 
    16561656static int 
    1657 ar8216_id_chip(struct ar8216_priv *priv) 
     1657ar8216_id_chip(struct ar8xxx_priv *priv) 
    16581658{ 
    16591659        u32 val; 
     
    17081708ar8xxx_mib_work_func(struct work_struct *work) 
    17091709{ 
    1710         struct ar8216_priv *priv; 
     1710        struct ar8xxx_priv *priv; 
    17111711        int err; 
    17121712 
    1713         priv = container_of(work, struct ar8216_priv, mib_work.work); 
     1713        priv = container_of(work, struct ar8xxx_priv, mib_work.work); 
    17141714 
    17151715        mutex_lock(&priv->mib_lock); 
     
    17321732 
    17331733static int 
    1734 ar8xxx_mib_init(struct ar8216_priv *priv) 
     1734ar8xxx_mib_init(struct ar8xxx_priv *priv) 
    17351735{ 
    17361736        unsigned int len; 
     
    17521752 
    17531753static void 
    1754 ar8xxx_mib_start(struct ar8216_priv *priv) 
     1754ar8xxx_mib_start(struct ar8xxx_priv *priv) 
    17551755{ 
    17561756        if (!ar8xxx_has_mib_counters(priv)) 
     
    17621762 
    17631763static void 
    1764 ar8xxx_mib_stop(struct ar8216_priv *priv) 
     1764ar8xxx_mib_stop(struct ar8xxx_priv *priv) 
    17651765{ 
    17661766        if (!ar8xxx_has_mib_counters(priv)) 
     
    17701770} 
    17711771 
    1772 static struct ar8216_priv * 
     1772static struct ar8xxx_priv * 
    17731773ar8xxx_create(void) 
    17741774{ 
    1775         struct ar8216_priv *priv; 
    1776  
    1777         priv = kzalloc(sizeof(struct ar8216_priv), GFP_KERNEL); 
     1775        struct ar8xxx_priv *priv; 
     1776 
     1777        priv = kzalloc(sizeof(struct ar8xxx_priv), GFP_KERNEL); 
    17781778        if (priv == NULL) 
    17791779                return NULL; 
     
    17871787 
    17881788static void 
    1789 ar8xxx_free(struct ar8216_priv *priv) 
     1789ar8xxx_free(struct ar8xxx_priv *priv) 
    17901790{ 
    17911791        kfree(priv->mib_stats); 
     
    17931793} 
    17941794 
    1795 static struct ar8216_priv * 
     1795static struct ar8xxx_priv * 
    17961796ar8xxx_create_mii(struct mii_bus *bus) 
    17971797{ 
    1798         struct ar8216_priv *priv; 
     1798        struct ar8xxx_priv *priv; 
    17991799 
    18001800        priv = ar8xxx_create(); 
     
    18091809 
    18101810static int 
    1811 ar8xxx_probe_switch(struct ar8216_priv *priv) 
     1811ar8xxx_probe_switch(struct ar8xxx_priv *priv) 
    18121812{ 
    18131813        struct switch_dev *swdev; 
     
    18501850ar8216_config_init(struct phy_device *phydev) 
    18511851{ 
    1852         struct ar8216_priv *priv = phydev->priv; 
     1852        struct ar8xxx_priv *priv = phydev->priv; 
    18531853        struct net_device *dev = phydev->attached_dev; 
    18541854        int ret; 
     
    19001900ar8216_read_status(struct phy_device *phydev) 
    19011901{ 
    1902         struct ar8216_priv *priv = phydev->priv; 
     1902        struct ar8xxx_priv *priv = phydev->priv; 
    19031903        struct switch_port_link link; 
    19041904        int ret; 
     
    19891989ar8216_probe(struct phy_device *phydev) 
    19901990{ 
    1991         struct ar8216_priv *priv; 
     1991        struct ar8xxx_priv *priv; 
    19921992        struct switch_dev *swdev; 
    19931993        int ret; 
     
    20732073ar8216_remove(struct phy_device *phydev) 
    20742074{ 
    2075         struct ar8216_priv *priv = phydev->priv; 
     2075        struct ar8xxx_priv *priv = phydev->priv; 
    20762076 
    20772077        if (WARN_ON(!priv)) 
Note: See TracChangeset for help on using the changeset viewer.