Skip to content

Commit

Permalink
mtd: rawnand: txx9ndfmc: rename nand controller internal structure
Browse files Browse the repository at this point in the history
As already done in the core, calling a struct nand_controller
'hw_control' is misleading. Use the same name as in nand_base.c:
'controller'.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
  • Loading branch information
Miquel Raynal committed Jul 31, 2018
1 parent 6a9035c commit a001058
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/mtd/nand/raw/txx9ndfmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ struct txx9ndfmc_drvdata {
void __iomem *base;
unsigned char hold; /* in gbusclock */
unsigned char spw; /* in gbusclock */
struct nand_controller hw_control;
struct nand_controller controller;
};

static struct platform_device *mtd_to_platdev(struct mtd_info *mtd)
Expand Down Expand Up @@ -303,7 +303,7 @@ static int __init txx9ndfmc_probe(struct platform_device *dev)
dev_info(&dev->dev, "CLK:%ldMHz HOLD:%d SPW:%d\n",
(gbusclk + 500000) / 1000000, hold, spw);

nand_controller_init(&drvdata->hw_control);
nand_controller_init(&drvdata->controller);

platform_set_drvdata(dev, drvdata);
txx9ndfmc_initialize(dev);
Expand Down Expand Up @@ -337,7 +337,7 @@ static int __init txx9ndfmc_probe(struct platform_device *dev)
chip->ecc.bytes = 3;
chip->ecc.strength = 1;
chip->chip_delay = 100;
chip->controller = &drvdata->hw_control;
chip->controller = &drvdata->controller;

nand_set_controller_data(chip, txx9_priv);
txx9_priv->dev = dev;
Expand Down

0 comments on commit a001058

Please sign in to comment.