OSDN Git Service

mmc: tmio: change bus_shift to unsigned int
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 24 Nov 2017 16:24:50 +0000 (01:24 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 19 Dec 2017 07:50:04 +0000 (08:50 +0100)
Sane values for bus_shift are:
   0 - for 16 bit bus
   1 - for 32 bit bus
   2 - for 64 bit bus

"unsigned long" is too much.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/tmio_mmc.h

index a099fde..15537c8 100644 (file)
@@ -139,7 +139,7 @@ struct tmio_mmc_host {
        struct scatterlist      *sg_orig;
        unsigned int            sg_len;
        unsigned int            sg_off;
-       unsigned long           bus_shift;
+       unsigned int            bus_shift;
 
        struct platform_device *pdev;
        struct tmio_mmc_data *pdata;