]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: am654_sdhci: Use MMC_MODES_END value instead of hardcoded value
authorFaiz Abbas <faiz_abbas@ti.com>
Wed, 29 Jul 2020 01:33:41 +0000 (07:03 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 11 Aug 2020 15:04:45 +0000 (20:34 +0530)
commit7d6f45a2109315740cc0b98c3facad1a239a1bd4
treebeef0b4f716b65c0179934663d3d10dcd97b336b
parentf3f2018f665d7fee26aa61f7eea2015e5a4e6bcb
mmc: am654_sdhci: Use MMC_MODES_END value instead of hardcoded value

The hardcoded array size leads to array overflows with changes in
speed modes enum in mmc core. Use MMC_MODES_END for otap_del_sel
array declaration to fix this.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/am654_sdhci.c