[PATCH 1/9] mtd: nand: Create a NAND reset function
Fabio Estevam
festevam at gmail.com
Fri Sep 9 05:15:52 PDT 2016
Hi Sascha,
On Fri, Sep 9, 2016 at 9:05 AM, Sascha Hauer <s.hauer at pengutronix.de> wrote:
> /**
> + * nand_reset - Reset and initialize a NAND device
> + * @chip: The NAND chip
> + *
> + * Returns 0 for success or negative error code otherwise
> + */
> +int nand_reset(struct nand_chip *chip)
> +{
> + chip->cmdfunc(&chip->mtd, NAND_CMD_RESET, -1, -1);
> +
> + return 0;
It always return 0 here, so the comment and code do not match.
More information about the linux-arm-kernel
mailing list