X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fnand%2Ffileio.h;h=f0483a7438d63f8eae28d0682e2d3a2426af44f7;hp=785543111a7b995270b68e97aeb262851f7ee31a;hb=7c0832ef7e5daca7fff363802058d01fc6da6c86;hpb=747d6f22868dd87cb54341cc22d9eb3687039735 diff --git a/src/flash/nand/fileio.h b/src/flash/nand/fileio.h index 785543111a..f0483a7438 100644 --- a/src/flash/nand/fileio.h +++ b/src/flash/nand/fileio.h @@ -14,8 +14,9 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * ***************************************************************************/ + #ifndef FLASH_NAND_FILEIO_H #define FLASH_NAND_FILEIO_H @@ -36,7 +37,7 @@ struct nand_fileio_state { const int *eccpos; bool file_opened; - struct fileio fileio; + struct fileio *fileio; struct duration bench; }; @@ -49,9 +50,9 @@ int nand_fileio_cleanup(struct nand_fileio_state *state); int nand_fileio_finish(struct nand_fileio_state *state); COMMAND_HELPER(nand_fileio_parse_args, struct nand_fileio_state *state, - struct nand_device **dev, enum fileio_access filemode, - bool need_size, bool sw_ecc); + struct nand_device **dev, enum fileio_access filemode, + bool need_size, bool sw_ecc); int nand_fileio_read(struct nand_device *nand, struct nand_fileio_state *s); -#endif // FLASH_NAND_FILEIO_H +#endif /* FLASH_NAND_FILEIO_H */