public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [patch] add nand_init() prototype to nand.h
@ 2007-06-22  8:01 Mike Frysinger
  2007-06-22  8:15 ` Mike Frysinger
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2007-06-22  8:01 UTC (permalink / raw)
  To: u-boot

since nand_init() is expected to be called by other parts of u-boot, there 
should be a prototype for it in nand.h

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
diff --git a/include/nand.h b/include/nand.h
index 23493f7..3c0752e 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -32,6 +32,7 @@ typedef struct mtd_info nand_info_t;
 
 extern int nand_curr_device;
 extern nand_info_t nand_info[];
+extern void nand_init(void);
 
 static inline int nand_read(nand_info_t *info, ulong ofs, ulong *len, u_char 
*buf)
 {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070622/dea68e51/attachment.pgp 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot-Users] [patch] add nand_init() prototype to nand.h
  2007-06-22  8:01 [U-Boot-Users] [patch] add nand_init() prototype to nand.h Mike Frysinger
@ 2007-06-22  8:15 ` Mike Frysinger
  2007-06-22  8:50   ` Stefan Roese
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2007-06-22  8:15 UTC (permalink / raw)
  To: u-boot

sorry, previous one was word wrapped

since nand_init() is expected to be called by other parts of u-boot, there
should be a prototype for it in nand.h

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
diff --git a/include/nand.h b/include/nand.h
index 23493f7..3c0752e 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -32,6 +32,7 @@ typedef struct mtd_info nand_info_t;
 
 extern int nand_curr_device;
 extern nand_info_t nand_info[];
+extern void nand_init(void);
 
 static inline int nand_read(nand_info_t *info, ulong ofs, ulong *len, u_char *buf)
 {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070622/a3edeed2/attachment.pgp 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot-Users] [patch] add nand_init() prototype to nand.h
  2007-06-22  8:15 ` Mike Frysinger
@ 2007-06-22  8:50   ` Stefan Roese
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2007-06-22  8:50 UTC (permalink / raw)
  To: u-boot

On Friday 22 June 2007, Mike Frysinger wrote:
> sorry, previous one was word wrapped
>
> since nand_init() is expected to be called by other parts of u-boot, there
> should be a prototype for it in nand.h
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>

Applied to u-boot-nand-flash repository.

Thanks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-06-22  8:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-22  8:01 [U-Boot-Users] [patch] add nand_init() prototype to nand.h Mike Frysinger
2007-06-22  8:15 ` Mike Frysinger
2007-06-22  8:50   ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox