From: Donghwa Lee Date: Fri, 26 Feb 2010 08:25:16 +0000 (+0900) Subject: s5pc110: compiler warning removed X-Git-Tag: JB18_20100226 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2979da9be1117bdb8964c15bcd42f691de67b69;p=kernel%2Fu-boot.git s5pc110: compiler warning removed --- diff --git a/drivers/video/s5p-spi.c b/drivers/video/s5p-spi.c index 4734574..03c8232 100644 --- a/drivers/video/s5p-spi.c +++ b/drivers/video/s5p-spi.c @@ -1,3 +1,4 @@ +#include #include #include "s5p-spi.h" @@ -32,10 +33,12 @@ static void si_high(struct spi_platform_data *spi) gpio_set_value(spi->si_bank, spi->si_num, 1); } +/* static char so_read(struct spi_platform_data *spi) { return gpio_get_value(spi->so_bank, spi->so_num); } +*/ void spi_write_byte(struct spi_platform_data *spi, unsigned char address, unsigned char command) { @@ -53,8 +56,7 @@ void spi_write_byte(struct spi_platform_data *spi, unsigned char address, unsign cs_low(spi); udelay(DELAY); - for (j = PACKET_LEN; j >= 0; j--) - { + for (j = PACKET_LEN; j >= 0; j--) { clk_low(spi); /* data high or low */ @@ -92,8 +94,7 @@ unsigned char spi_read_byte(struct spi_platform_data *spi, unsigned char select, clk_low(spi); udelay(DELAY); - for (j = PACKET_LEN + 8; j >= 0; j--) - { + for (j = PACKET_LEN + 8; j >= 0; j--) { if (j > 7) { clk_low(spi);