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