]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi/atmel: Fix pointer to int conversion warnings on 64 bit builds
authorMark Brown <broonie@linaro.org>
Fri, 1 Aug 2014 16:43:03 +0000 (17:43 +0100)
committerMark Brown <broonie@linaro.org>
Fri, 1 Aug 2014 17:22:42 +0000 (18:22 +0100)
commit67f08d690aa90e47a0e793fc63e2ecbe95d29839
tree7926d4c8eab1ee848145d64d089390e0a260698a
parentef40eb39e0128b42d64bbbf5a6635548f6f68a01
spi/atmel: Fix pointer to int conversion warnings on 64 bit builds

On 64 bit systems integers are generally still 32 bit but long values and
pointers are usually 64 bit. GCC warns when casting a 64 bit pointer into
a 32 bit integer so cast to a long instead in order to avoid warnings.

Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-atmel.c