Changeset 38070


Ignore:
Timestamp:
2013-09-19T20:43:42+02:00 (4 years ago)
Author:
juhosg
Message:

ar71xx: add ath79_nfc_set_ecc_mode helper

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

Location:
trunk/target/linux/ar71xx/files/arch/mips/ath79
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ath79/dev-nfc.c

    r34945 r38070  
    120120} 
    121121 
     122void __init ath79_nfc_set_ecc_mode(enum ar934x_nfc_ecc_mode mode) 
     123{ 
     124        ath79_nfc_data.ecc_mode = mode; 
     125} 
     126 
    122127void __init ath79_nfc_set_parts(struct mtd_partition *parts, int nr_parts) 
    123128{ 
  • trunk/target/linux/ar71xx/files/arch/mips/ath79/dev-nfc.h

    r34588 r38070  
    1313 
    1414struct mtd_partition; 
     15enum ar934x_nfc_ecc_mode; 
    1516 
    1617#ifdef CONFIG_ATH79_DEV_NFC 
     
    1920void ath79_nfc_set_scan_fixup(int (*f)(struct mtd_info *mtd)); 
    2021void ath79_nfc_set_swap_dma(bool enable); 
     22void ath79_nfc_set_ecc_mode(enum ar934x_nfc_ecc_mode mode); 
    2123void ath79_register_nfc(void); 
    2224#else 
     
    2628static inline void ath79_nfc_set_scan_fixup(int (*f)(struct mtd_info *mtd)) {} 
    2729static inline void ath79_nfc_set_swap_dma(bool enable) {} 
     30static inline void ath79_nfc_set_ecc_mode(enum ar934x_nfc_ecc_mode mode) {} 
    2831static inline void ath79_register_nfc(void) {} 
    2932#endif 
Note: See TracChangeset for help on using the changeset viewer.