hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
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