mmc: returning correct mmc test case number
Vishal Singh [Fri, 18 May 2012 13:45:56 +0000 (18:45 +0530)]
mmc_test currently shows test case number as 0 for all test cases.
Correcting this to depict the correct test case number.

Bug 976137.

Change-Id: Ifa7bdd08d537ef20a3303594938a771e823d4e3b
Signed-off-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-on: http://git-master/r/103368
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Tested-by: Shridhar Rasal <srasal@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

drivers/mmc/card/mmc_test.c

index 440b97d..8681708 100644 (file)
@@ -211,7 +211,7 @@ static struct mmc_test_parameter mmc_test_parameter[] = {
 
 static long mmc_test_set_testcase(struct mmc_test_card *test)
 {
-       return 0;
+       return mmc_test_parameter[0].value;
 }
 
 static long mmc_test_set_clock(struct mmc_test_card *test)