summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-08-26 10:43:24 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-08-26 10:52:19 +0200
commit76b6f74c53974591c1c70535834e93e38103860f (patch)
tree911a186bc310902d8f7fc2b261a7fe0ef1c5ca89 /include/linux
parent5723266adbaf7b835c9bee4ca1ca05a96f1bb25c (diff)
downloadbarebox-76b6f74c53974591c1c70535834e93e38103860f.tar.gz
barebox-76b6f74c53974591c1c70535834e93e38103860f.tar.xz
mtd: nand: Embed struct mtd_info into struct nand_chip
Similar to what is done in the Kernel. In the Kernel we have a struct nand_device embedded into struct nand_chip and the nand_device has an mtd_info embedded into it. Until we have struct nand_device we embed mtd_info directly into the nand_chip. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mtd/nand.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 576c0c9b10..762f9c4f2a 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -543,6 +543,8 @@ struct nand_chip {
void *priv;
unsigned int bbt_type;
+
+ struct mtd_info mtd;
};
/*