[U-Boot] why does supposedly generic flash code have references to jffs2?

2 Feb
2013
2 Feb
'13
4:38 p.m.
perusing the code in cmd_flash.c and i'm puzzled by this:
#if defined(CONFIG_CMD_MTDPARTS) #include <jffs2/jffs2.h>
why would supposedly low-level MTD partitioning code have any need for filesystem-specific header files -- in this case, jffs2?
a similar example can be found in cmd_mtdparts.c:
#include <jffs2/load_kernel.h>
admittedly, i haven't followed the code all the way to the end, but it's not clear to me why fundamental flash, MTD and partitioning code should have any dependency on a particular filesystem type, but i'm certainly willing to be corrected.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
4477
Age (days ago)
4477
Last active (days ago)
0 comments
1 participants
participants (1)
-
Robert P. J. Day