Move the function nand_read_page_hwecc_oob_first() (previously nand_davinci_read_page_hwecc_oob_first()) to nand_base.c, and export it as a GPL symbol, so that it can be used by more modules.
Showing the changes to include (1 of 3 files). Show all
Unified · Split
| @@ -1539,6 +1539,8 @@ int nand_read_data_op(struct nand_chip *chip, void *buf, unsigned int len, · 1538 unmodified lines | |||
| 1539 | bool force_8bit, bool check_only); | 1539 | bool force_8bit, bool check_only); |
| 1540 | int nand_write_data_op(struct nand_chip *chip, const void *buf, | 1540 | int nand_write_data_op(struct nand_chip *chip, const void *buf, |
| 1541 | unsigned int len, bool force_8bit); | 1541 | unsigned int len, bool force_8bit); |
| 1542 | int nand_read_page_hwecc_oob_first(struct nand_chip *chip, uint8_t *buf, | ||
| 1543 | int oob_required, int page); | ||
| 1542 | 1544 | ||
| 1543 | /* Scan and identify a NAND device */ | 1545 | /* Scan and identify a NAND device */ |
| 1544 | int nand_scan_with_ids(struct nand_chip *chip, unsigned int max_chips, | 1546 | int nand_scan_with_ids(struct nand_chip *chip, unsigned int max_chips, |