Skip to content

Commit 5fa0e32

Browse files
liubiinUlf Hansson
authored andcommitted
mmc: core: Optimize size of struct mmc_queue_req
ioc_count won't be more than MMC_IOC_MAX_CMDS (255), retries won't be more than MMC_NO_RETRIES (6), flags is newly introduced and uses only 1 bit. Therefore let's change them all to become u8. Signed-off-by: Bin Liu <b-liu@ti.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent f924224 commit 5fa0e32

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/mmc/core/queue.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ struct mmc_queue_req {
6969
enum mmc_drv_op drv_op;
7070
int drv_op_result;
7171
void *drv_op_data;
72-
unsigned int ioc_count;
73-
int retries;
74-
u32 flags;
72+
u8 ioc_count;
73+
u8 retries;
74+
u8 flags;
7575
};
7676

7777
struct mmc_queue {

0 commit comments

Comments
 (0)