spi: atmel: Make current_remaining_bytes to be int
authorAxel Lin <axel.lin@ingics.com>
Thu, 27 Mar 2014 01:26:38 +0000 (09:26 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 14 Apr 2014 16:06:17 +0000 (17:06 +0100)
commit0c3b97487d15a452f1fa7bfd9b6f1bd1a31d538d
tree4c5f3bfc546c5ddbf29073b3b5ad525a2f6a9d39
parentc9eaa447e77efe77b7fa4c953bd62de8297fd6c5
spi: atmel: Make current_remaining_bytes to be int

Don't use unsigned for current_remaining_bytes so we can check
current_remaining_bytes < 0 case.
Use int is enough for current_remaining_bytes.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-atmel.c