struct nand_manufacturer_ops — NAND Manufacturer operations


struct nand_manufacturer_ops {
  void (* detect) (struct nand_chip *chip);
  int (* init) (struct nand_chip *chip);
  void (* cleanup) (struct nand_chip *chip);


void (*)(struct nand_chip *chip) detect

detect the NAND memory organization and capabilities

int (*)(struct nand_chip *chip) init

initialize all vendor specific fields (like the ->read_retry implementation) if any.

void (*)(struct nand_chip *chip) cleanup

the ->init function may have allocated resources, ->cleanup is here to let vendor specific code release those resources.