Commit 3221b074a0ab199f6ae47c19cc22f42ddf3ef819

Authored by Jean-Christophe PLAGNIOL-VILLARD
Committed by Wolfgang Denk
1 parent 13b4db0e21

onenand_uboot: fix warning: 'struct mtd_oob_ops' declared inside parameter list

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

Showing 1 changed file with 1 additions and 0 deletions Inline Diff

include/onenand_uboot.h
1 /* 1 /*
2 * Header file for OneNAND support for U-Boot 2 * Header file for OneNAND support for U-Boot
3 * 3 *
4 * Adaptation from kernel to U-Boot 4 * Adaptation from kernel to U-Boot
5 * 5 *
6 * Copyright (C) 2005-2007 Samsung Electronics 6 * Copyright (C) 2005-2007 Samsung Electronics
7 * Kyungmin Park <kyungmin.park@samsung.com> 7 * Kyungmin Park <kyungmin.park@samsung.com>
8 * 8 *
9 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as 10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation. 11 * published by the Free Software Foundation.
12 */ 12 */
13 13
14 #ifndef __UBOOT_ONENAND_H 14 #ifndef __UBOOT_ONENAND_H
15 #define __UBOOT_ONENAND_H 15 #define __UBOOT_ONENAND_H
16 16
17 #include <linux/types.h> 17 #include <linux/types.h>
18 #include <linux/mtd/mtd.h>
18 19
19 struct mtd_info; 20 struct mtd_info;
20 struct erase_info; 21 struct erase_info;
21 22
22 extern struct mtd_info onenand_mtd; 23 extern struct mtd_info onenand_mtd;
23 24
24 /* Functions */ 25 /* Functions */
25 extern void onenand_init(void); 26 extern void onenand_init(void);
26 extern int onenand_read(struct mtd_info *mtd, loff_t from, size_t len, 27 extern int onenand_read(struct mtd_info *mtd, loff_t from, size_t len,
27 size_t * retlen, u_char * buf); 28 size_t * retlen, u_char * buf);
28 extern int onenand_read_oob(struct mtd_info *mtd, loff_t from, 29 extern int onenand_read_oob(struct mtd_info *mtd, loff_t from,
29 struct mtd_oob_ops *ops); 30 struct mtd_oob_ops *ops);
30 extern int onenand_write(struct mtd_info *mtd, loff_t from, size_t len, 31 extern int onenand_write(struct mtd_info *mtd, loff_t from, size_t len,
31 size_t * retlen, const u_char * buf); 32 size_t * retlen, const u_char * buf);
32 extern int onenand_erase(struct mtd_info *mtd, struct erase_info *instr); 33 extern int onenand_erase(struct mtd_info *mtd, struct erase_info *instr);
33 34
34 extern int onenand_unlock(struct mtd_info *mtd, loff_t ofs, size_t len); 35 extern int onenand_unlock(struct mtd_info *mtd, loff_t ofs, size_t len);
35 36
36 extern char *onenand_print_device_info(int device); 37 extern char *onenand_print_device_info(int device);
37 38
38 #endif /* __UBOOT_ONENAND_H */ 39 #endif /* __UBOOT_ONENAND_H */
39 40