From b2979da9be1117bdb8964c15bcd42f691de67b69 Mon Sep 17 00:00:00 2001 From: Donghwa Lee Date: Fri, 26 Feb 2010 17:25:16 +0900 Subject: [PATCH] s5pc110: compiler warning removed --- drivers/video/s5p-spi.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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); -- 2.7.4