mci: Fix version handling
Currently the version defines reflect the digits in the version
number. MMC_VERSION_4_41 is defined as 0x441 and MMC_VERSION_4_5
is defined as 0x405. This results in MMC_VERSION_4_5 < MMC_VERSION_4_41
becoming true which was surely not intended. Fix this by
redefining the versions as 0x<major><minor><micro>. This makes the
string generation more complicated but makes versions comparable
again.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 403fbbb commit 9bdef9e7f2955728dddc189b03d587e42c950ce3
@Sascha Hauer Sascha Hauer authored on 14 Feb 2014
Showing 2 changed files
View
drivers/mci/mci-core.c
View
include/mci.h