spi: spi-davinci: Fix variable type
'prescale' contains the return value of davinci_spi_get_prescale() which is a signed integer. Convert 'prescale' to integer to silence the following warning: drivers/spi/spi-davinci.c:318 davinci_spi_setup_transfer() warn: unsigned 'prescale' is never less than zero. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
Родитель
272b98c645
Коммит
32ea394443
|
@ -279,7 +279,8 @@ static int davinci_spi_setup_transfer(struct spi_device *spi,
|
|||
struct davinci_spi *dspi;
|
||||
struct davinci_spi_config *spicfg;
|
||||
u8 bits_per_word = 0;
|
||||
u32 hz = 0, spifmt = 0, prescale = 0;
|
||||
u32 hz = 0, spifmt = 0;
|
||||
int prescale;
|
||||
|
||||
dspi = spi_master_get_devdata(spi->master);
|
||||
spicfg = (struct davinci_spi_config *)spi->controller_data;
|
||||
|
|
Загрузка…
Ссылка в новой задаче