mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] spi: fix compiler warning
@ 2013-01-26  7:28 Antony Pavlov
  2013-01-26 22:13 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Antony Pavlov @ 2013-01-26  7:28 UTC (permalink / raw)
  To: barebox

Fixes:
 drivers/spi/spi.c:59: warning: no previous prototype for 'spi_new_device'

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 include/spi/spi.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/spi/spi.h b/include/spi/spi.h
index d6570a4..fa76e9b 100644
--- a/include/spi/spi.h
+++ b/include/spi/spi.h
@@ -342,6 +342,8 @@ spi_transfer_del(struct spi_transfer *t)
 
 int spi_sync(struct spi_device *spi, struct spi_message *message);
 
+struct spi_device *spi_new_device(struct spi_master *master,
+				  struct spi_board_info *chip);
 int spi_register_master(struct spi_master *master);
 
 #ifdef CONFIG_SPI
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH] spi: fix compiler warning
  2013-01-26  7:28 [PATCH] spi: fix compiler warning Antony Pavlov
@ 2013-01-26 22:13 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2013-01-26 22:13 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: barebox

On Sat, Jan 26, 2013 at 11:28:08AM +0400, Antony Pavlov wrote:
> Fixes:
>  drivers/spi/spi.c:59: warning: no previous prototype for 'spi_new_device'
> 
> Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>

Applied, thanks

Sascha

> ---
>  include/spi/spi.h |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/include/spi/spi.h b/include/spi/spi.h
> index d6570a4..fa76e9b 100644
> --- a/include/spi/spi.h
> +++ b/include/spi/spi.h
> @@ -342,6 +342,8 @@ spi_transfer_del(struct spi_transfer *t)
>  
>  int spi_sync(struct spi_device *spi, struct spi_message *message);
>  
> +struct spi_device *spi_new_device(struct spi_master *master,
> +				  struct spi_board_info *chip);
>  int spi_register_master(struct spi_master *master);
>  
>  #ifdef CONFIG_SPI
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2013-01-26 22:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-26  7:28 [PATCH] spi: fix compiler warning Antony Pavlov
2013-01-26 22:13 ` Sascha Hauer

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