b53: clean up code to match kernel style better
[openwrt/svn-archive/archive.git] / target / linux / generic / files / drivers / net / phy / b53 / b53_priv.h
index d9881a1ff7c538299008b94244f24dc372f011bd..4336fdba666b0aa73611e1e3494afb8051bd3886 100644 (file)
@@ -46,6 +46,7 @@ enum {
        BCM5398_DEVICE_ID = 0x98,
        BCM53115_DEVICE_ID = 0x53115,
        BCM53125_DEVICE_ID = 0x53125,
+       BCM53128_DEVICE_ID = 0x53128,
        BCM63XX_DEVICE_ID = 0x6300,
        BCM53010_DEVICE_ID = 0x53010,
        BCM53011_DEVICE_ID = 0x53011,
@@ -137,7 +138,8 @@ static inline int is539x(struct b53_device *dev)
 static inline int is531x5(struct b53_device *dev)
 {
        return dev->chip_id == BCM53115_DEVICE_ID ||
-               dev->chip_id == BCM53125_DEVICE_ID;
+               dev->chip_id == BCM53125_DEVICE_ID ||
+               dev->chip_id == BCM53128_DEVICE_ID;
 }
 
 static inline int is63xx(struct b53_device *dev)
@@ -148,7 +150,7 @@ static inline int is63xx(struct b53_device *dev)
        return 0;
 #endif
 }
-       
+
 static inline int is5301x(struct b53_device *dev)
 {
        return dev->chip_id == BCM53010_DEVICE_ID ||
@@ -306,6 +308,7 @@ static inline int b53_switch_get_reset_gpio(struct b53_device *dev)
        enum bcm47xx_board board = bcm47xx_board_get();
 
        switch (board) {
+       case BCM47XX_BOARD_LINKSYS_WRT300NV11:
        case BCM47XX_BOARD_LINKSYS_WRT310NV1:
                return 8;
        default: