mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
mtd: rawnand: qcom: rename 'nand_stats' structure
Give 'read_stats' structure a 'qcom_nandc' prefix to indicate that it corresponds to the Qualcomm NAND driver. The definition is going to be moved into a common header this helps to avoid global namespace pollution/collision. No functional changes. This is in preparation of moving the declaration into the 'nand-qpic-common.h' header to allow reusing it from the 'spi-qpic-snand' driver. Signed-off-by: Gabor Juhos <j4g8y7@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
parent
cd93990ef5
commit
555d48e520
|
|
@ -438,7 +438,7 @@ static bool erased_chunk_check_and_fixup(u8 *data_buf, int data_len)
|
|||
return true;
|
||||
}
|
||||
|
||||
struct read_stats {
|
||||
struct qcom_nandc_read_stats {
|
||||
__le32 flash;
|
||||
__le32 buffer;
|
||||
__le32 erased_cw;
|
||||
|
|
@ -619,12 +619,12 @@ static int parse_read_errors(struct qcom_nand_host *host, u8 *data_buf,
|
|||
struct mtd_info *mtd = nand_to_mtd(chip);
|
||||
struct nand_ecc_ctrl *ecc = &chip->ecc;
|
||||
unsigned int max_bitflips = 0, uncorrectable_cws = 0;
|
||||
struct read_stats *buf;
|
||||
struct qcom_nandc_read_stats *buf;
|
||||
bool flash_op_err = false, erased;
|
||||
int i;
|
||||
u8 *data_buf_start = data_buf, *oob_buf_start = oob_buf;
|
||||
|
||||
buf = (struct read_stats *)nandc->reg_read_buf;
|
||||
buf = (struct qcom_nandc_read_stats *)nandc->reg_read_buf;
|
||||
qcom_nandc_dev_to_mem(nandc, true);
|
||||
|
||||
for (i = 0; i < ecc->steps; i++, buf++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user