diff options
| author | Bin Liu <b-liu@ti.com> | 2026-04-02 07:31:55 -0500 |
|---|---|---|
| committer | Ulf Hansson <ulf.hansson@linaro.org> | 2026-04-09 17:49:54 +0200 |
| commit | 5fa0e32ed4f4a8a62998d0c955311cbfe92919af (patch) | |
| tree | c720f59d97ede1784d0f9b664868f0cc054e77a4 /drivers/mmc | |
| parent | f924224650e6e8fc79609218c5cf67d5988d733a (diff) | |
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>
Diffstat (limited to 'drivers/mmc')
| -rw-r--r-- | drivers/mmc/core/queue.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/core/queue.h b/drivers/mmc/core/queue.h index c254e6580afd..dd7211e3a6d5 100644 --- a/drivers/mmc/core/queue.h +++ b/drivers/mmc/core/queue.h @@ -69,9 +69,9 @@ struct mmc_queue_req { enum mmc_drv_op drv_op; int drv_op_result; void *drv_op_data; - unsigned int ioc_count; - int retries; - u32 flags; + u8 ioc_count; + u8 retries; + u8 flags; }; struct mmc_queue { |
