summaryrefslogtreecommitdiff
path: root/include/linux/mtd/bbt_store.h
blob: 20373ef5c4a6f86ecbe59edf5e836da96999469e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) 2021 Rockchip Electronics Co. Ltd.
 *
 */

#ifndef __BBT_STORE_H
#define __BBT_STORE_H

#include <linux/mtd/nand.h>

#ifdef CONFIG_MTD_NAND_BBT_USING_FLASH
int nanddev_scan_bbt_in_flash(struct nand_device *nand);
int nanddev_bbt_in_flash_update(struct nand_device *nand);
#else
static inline int nanddev_scan_bbt_in_flash(struct nand_device *nand)
{
	return 0;
}
static inline int nanddev_bbt_in_flash_update(struct nand_device *nand)
{
	return 0;
}
#endif

#endif