mtd: rawnand: Get rid of a few unused definitions
Those definitions are not used, let's remove them. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
parent
d16397d57a
commit
4114f97c41
@ -270,20 +270,6 @@ static const struct nand_data_interface onfi_sdr_timings[] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* onfi_async_timing_mode_to_sdr_timings - [NAND Interface] Retrieve NAND
|
|
||||||
* timings according to the given ONFI timing mode
|
|
||||||
* @mode: ONFI timing mode
|
|
||||||
*/
|
|
||||||
const struct nand_sdr_timings *onfi_async_timing_mode_to_sdr_timings(int mode)
|
|
||||||
{
|
|
||||||
if (mode < 0 || mode >= ARRAY_SIZE(onfi_sdr_timings))
|
|
||||||
return ERR_PTR(-EINVAL);
|
|
||||||
|
|
||||||
return &onfi_sdr_timings[mode].timings.sdr;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(onfi_async_timing_mode_to_sdr_timings);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* onfi_fill_data_interface - [NAND Interface] Initialize a data interface from
|
* onfi_fill_data_interface - [NAND Interface] Initialize a data interface from
|
||||||
* given ONFI mode
|
* given ONFI mode
|
||||||
|
@ -119,10 +119,6 @@ enum nand_ecc_algo {
|
|||||||
#define NAND_ECC_GENERIC_ERASED_CHECK BIT(0)
|
#define NAND_ECC_GENERIC_ERASED_CHECK BIT(0)
|
||||||
#define NAND_ECC_MAXIMIZE BIT(1)
|
#define NAND_ECC_MAXIMIZE BIT(1)
|
||||||
|
|
||||||
/* Bit mask for flags passed to do_nand_read_ecc */
|
|
||||||
#define NAND_GET_DEVICE 0x80
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Option constants for bizarre disfunctionality and real
|
* Option constants for bizarre disfunctionality and real
|
||||||
* features.
|
* features.
|
||||||
@ -163,9 +159,7 @@ enum nand_ecc_algo {
|
|||||||
#define NAND_SAMSUNG_LP_OPTIONS NAND_CACHEPRG
|
#define NAND_SAMSUNG_LP_OPTIONS NAND_CACHEPRG
|
||||||
|
|
||||||
/* Macros to identify the above */
|
/* Macros to identify the above */
|
||||||
#define NAND_HAS_CACHEPROG(chip) ((chip->options & NAND_CACHEPRG))
|
|
||||||
#define NAND_HAS_SUBPAGE_READ(chip) ((chip->options & NAND_SUBPAGE_READ))
|
#define NAND_HAS_SUBPAGE_READ(chip) ((chip->options & NAND_SUBPAGE_READ))
|
||||||
#define NAND_HAS_SUBPAGE_WRITE(chip) !((chip)->options & NAND_NO_SUBPAGE_WRITE)
|
|
||||||
|
|
||||||
/* Non chip related options */
|
/* Non chip related options */
|
||||||
/* This option skips the bbt scan during initialization. */
|
/* This option skips the bbt scan during initialization. */
|
||||||
@ -1649,8 +1643,6 @@ static inline int nand_opcode_8bits(unsigned int command)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get timing characteristics from ONFI timing mode. */
|
|
||||||
const struct nand_sdr_timings *onfi_async_timing_mode_to_sdr_timings(int mode);
|
|
||||||
|
|
||||||
int nand_check_erased_ecc_chunk(void *data, int datalen,
|
int nand_check_erased_ecc_chunk(void *data, int datalen,
|
||||||
void *ecc, int ecclen,
|
void *ecc, int ecclen,
|
||||||
|
Loading…
Reference in New Issue
Block a user