summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/parsers/ofpart_linksys_ns.h
blob: 730c46812ebfd38eba98a231c3f4fe94271c6a0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __OFPART_LINKSYS_NS_H
#define __OFPART_LINKSYS_NS_H

#ifdef CONFIG_MTD_OF_PARTS_LINKSYS_NS
int linksys_ns_partitions_post_parse(struct mtd_info *mtd,
				     struct mtd_partition *parts,
				     int nr_parts);
#else
static inline int linksys_ns_partitions_post_parse(struct mtd_info *mtd,
						   struct mtd_partition *parts,
						   int nr_parts)
{
	return -EOPNOTSUPP;
}
#endif

#endif