projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb6a5c3
)
cmd: nand: remove direct access to struct mtd_info->priv
author
Grygorii Strashko
<grygorii.strashko@ti.com>
Tue, 27 Jun 2017 00:12:58 +0000
(19:12 -0500)
committer
Tom Rini
<trini@konsulko.com>
Wed, 12 Jul 2017 02:41:47 +0000
(22:41 -0400)
Replace direct access to struct mtd_info->priv with proper
accessor mtd_to_nand().
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
cmd/nand.c
patch
|
blob
|
history
diff --git
a/cmd/nand.c
b/cmd/nand.c
index
d6542e5
..
a2152ec
100644
(file)
--- a/
cmd/nand.c
+++ b/
cmd/nand.c
@@
-128,7
+128,7
@@
static int set_dev(int dev)
nand_curr_device = dev;
#ifdef CONFIG_SYS_NAND_SELECT_DEVICE
- board_nand_select_device(mtd
->priv
, dev);
+ board_nand_select_device(mtd
_to_nand(mtd)
, dev);
#endif
return 0;