mmc: sd: change attribute speed_class to decimal
Harry Lin [Mon, 14 Nov 2016 05:53:40 +0000 (13:53 +0800)]
Change SD attribute /sys/block/mmcblk#/device/speed_class
from hexadecimal to decimal.

Bug 200245639

Change-Id: Iad3a7d709db405cbd0b73459ca8ed69856674543
Signed-off-by: Harry Lin <harlin@nvidia.com>
Reviewed-on: http://git-master/r/1252512
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

drivers/mmc/core/sd.c

index 39b63d3..5f1687b 100644 (file)
@@ -682,7 +682,7 @@ MMC_DEV_ATTR(manfid, "0x%06x\n", card->cid.manfid);
 MMC_DEV_ATTR(name, "%s\n", card->cid.prod_name);
 MMC_DEV_ATTR(oemid, "0x%04x\n", card->cid.oemid);
 MMC_DEV_ATTR(serial, "0x%08x\n", card->cid.serial);
-MMC_DEV_ATTR(speed_class, "%#x\n", card->speed_class);
+MMC_DEV_ATTR(speed_class, "%u\n", card->speed_class);
 
 
 static struct attribute *sd_std_attrs[] = {