Ignore:
Timestamp:
2010-03-27T14:05:24+01:00 (7 years ago)
Author:
juhosg
Message:

ar71xx: ag71xx: introduce ag71xx_has_ar8216() helper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h

    r20358 r20505  
    457457void ag71xx_add_ar8216_header(struct ag71xx *ag, struct sk_buff *skb); 
    458458int ag71xx_remove_ar8216_header(struct ag71xx *ag, struct sk_buff *skb); 
     459static inline int ag71xx_has_ar8216(struct ag71xx *ag) 
     460{ 
     461        return ag71xx_get_pdata(ag)->has_ar8216; 
     462} 
    459463#else 
    460464static inline void ag71xx_add_ar8216_header(struct ag71xx *ag, 
     
    465469static inline int ag71xx_remove_ar8216_header(struct ag71xx *ag, 
    466470                                              struct sk_buff *skb) 
     471{ 
     472        return 0; 
     473} 
     474static inline int ag71xx_has_ar8216(struct ag71xx *ag) 
    467475{ 
    468476        return 0; 
Note: See TracChangeset for help on using the changeset viewer.