mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
7134a2d026
This allows extending ofpart parser with support for Linksys Northstar devices. That support uses recently added quirks mechanism. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20210312134919.7767-2-zajec5@gmail.com
19 lines
439 B
C
19 lines
439 B
C
/* 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
|