Subject: Re: [RFC PATCH 14/27] mtd: nand: ecc: Turn the software Hamming implementation generic

From: Boris Brezillon <[email-masked]>
Date: Thu, 21 Feb 2019 14:22:00 +0100

On Thu, 21 Feb 2019 13:57:53 +0100
Miquel Raynal <[email-masked]> wrote:

> -/*
> - * Detect and correct a 1 bit error for 256/512 byte block
> - */
> -int nand_correct_data(struct nand_chip *chip, u_char *dat, u_char *read_ecc,
> -		      u_char *calc_ecc);
> +int __ecc_sw_hamming_calculate(const unsigned char *buf,

Let's stop with these __ prefixes. Just prefix functions taking a
nand_device object with nand_ and leave others with the ecc_ prefix.

> +			       unsigned int step_size,
> +			       unsigned char *code, bool sm_order);
> +int ecc_sw_hamming_calculate(struct nand_device *nand,
> +			     const unsigned char *buf,
> +			     unsigned char *code);

_______________________________________________
linux-arm-kernel mailing list
[email-masked]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel