1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (c) 2021 Rockchip Electronics Co. Ltd. 4 * 5 */ 6 7 #ifndef __BBT_STORE_H 8 #define __BBT_STORE_H 9 10 #include <linux/mtd/nand.h> 11 12 #ifdef CONFIG_MTD_NAND_BBT_USING_FLASH 13 int nanddev_scan_bbt_in_flash(struct nand_device *nand); 14 int nanddev_bbt_in_flash_update(struct nand_device *nand); 15 #else nanddev_scan_bbt_in_flash(struct nand_device * nand)16static inline int nanddev_scan_bbt_in_flash(struct nand_device *nand) 17 { 18 return 0; 19 } nanddev_bbt_in_flash_update(struct nand_device * nand)20static inline int nanddev_bbt_in_flash_update(struct nand_device *nand) 21 { 22 return 0; 23 } 24 #endif 25 26 #endif 27