ofpart_linksys_ns.h 439 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __OFPART_LINKSYS_NS_H
  3. #define __OFPART_LINKSYS_NS_H
  4. #ifdef CONFIG_MTD_OF_PARTS_LINKSYS_NS
  5. int linksys_ns_partitions_post_parse(struct mtd_info *mtd,
  6. struct mtd_partition *parts,
  7. int nr_parts);
  8. #else
  9. static inline int linksys_ns_partitions_post_parse(struct mtd_info *mtd,
  10. struct mtd_partition *parts,
  11. int nr_parts)
  12. {
  13. return -EOPNOTSUPP;
  14. }
  15. #endif
  16. #endif