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
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