]> git.sur5r.net Git - u-boot/blobdiff - include/mmc.h
mmc: compile out erase and write mmc commands if write operations are not enabled
[u-boot] / include / mmc.h
index f50c714428407513cde5673c9b92dd7db267efdb..3abeb581aef220c0b7600b9e7a8b1d8b0a019ea2 100644 (file)
@@ -585,8 +585,10 @@ struct mmc {
        uint tran_speed;
        uint legacy_speed; /* speed for the legacy mode provided by the card */
        uint read_bl_len;
+#if CONFIG_IS_ENABLED(MMC_WRITE)
        uint write_bl_len;
        uint erase_grp_size;    /* in 512-byte sectors */
+#endif
        uint hc_wp_grp_size;    /* in 512-byte sectors */
 #if CONFIG_IS_ENABLED(MMC_WRITE)
        struct sd_ssr   ssr;    /* SD status register */