]> git.sur5r.net Git - u-boot/commitdiff
mmc: fsl_esdhc: correct type of wp_enable
authorPeng Fan <peng.fan@nxp.com>
Mon, 12 Jun 2017 09:50:52 +0000 (17:50 +0800)
committerStefano Babic <sbabic@denx.de>
Wed, 12 Jul 2017 07:44:22 +0000 (09:44 +0200)
The type should be int, not u8. cfg->wp_enable will finally be
assigned to priv->wp_enable whose type is int.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
include/fsl_esdhc.h

index e15d3aeaec5e8b48a926fb6e080f4f0fee3e072d..5550e00eab0e93139f17e34ae1ce0a2620163a5f 100644 (file)
@@ -177,7 +177,7 @@ struct fsl_esdhc_cfg {
        phys_addr_t esdhc_base;
        u32     sdhc_clk;
        u8      max_bus_width;
-       u8      wp_enable;
+       int     wp_enable;
        struct mmc_config cfg;
 };