diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2015-03-31 06:41:55 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-04-08 06:10:20 -0400 |
commit | f5c5179b9a8ab8e3255f78e233d94ea54f23f832 (patch) | |
tree | 93a4da809a5d5930a458f1e2acfd3f9320dc946f | |
parent | 16b23787fc709fe60c5d2bd05927b1a3da33d4e9 (diff) |
mmc: core: Convert the error field in struct mmc_command|data into an int
Everybody expects the error field in the struct mmc_command|data to be
and int but it's actually an unsigned int. Let's convert it into an int
to meet the expectations.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | include/linux/mmc/core.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h index 160448f920ac..de722d4e9d61 100644 --- a/include/linux/mmc/core.h +++ b/include/linux/mmc/core.h | |||
@@ -79,7 +79,7 @@ struct mmc_command { | |||
79 | #define mmc_cmd_type(cmd) ((cmd)->flags & MMC_CMD_MASK) | 79 | #define mmc_cmd_type(cmd) ((cmd)->flags & MMC_CMD_MASK) |
80 | 80 | ||
81 | unsigned int retries; /* max number of retries */ | 81 | unsigned int retries; /* max number of retries */ |
82 | unsigned int error; /* command error */ | 82 | int error; /* command error */ |
83 | 83 | ||
84 | /* | 84 | /* |
85 | * Standard errno values are used for errors, but some have specific | 85 | * Standard errno values are used for errors, but some have specific |
@@ -108,7 +108,7 @@ struct mmc_data { | |||
108 | unsigned int timeout_clks; /* data timeout (in clocks) */ | 108 | unsigned int timeout_clks; /* data timeout (in clocks) */ |
109 | unsigned int blksz; /* data block size */ | 109 | unsigned int blksz; /* data block size */ |
110 | unsigned int blocks; /* number of blocks */ | 110 | unsigned int blocks; /* number of blocks */ |
111 | unsigned int error; /* data error */ | 111 | int error; /* data error */ |
112 | unsigned int flags; | 112 | unsigned int flags; |
113 | 113 | ||
114 | #define MMC_DATA_WRITE (1 << 8) | 114 | #define MMC_DATA_WRITE (1 << 8) |