]> git.ipfire.org Git - thirdparty/linux.git/commit
mmc: mmc_test: Replace hard-coded values with macros and consolidate test parameters
authorShawn Lin <shawn.lin@rock-chips.com>
Mon, 30 Mar 2026 03:28:31 +0000 (11:28 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 31 Mar 2026 10:41:31 +0000 (12:41 +0200)
commit058dbcf3ec2446a4deb094e0e22f2c345cd9816e
treef9dcaf2ef705350248843c008ef07a0d32f85112
parent554b0674f22feb76d9198f2f1fa23b610f548548
mmc: mmc_test: Replace hard-coded values with macros and consolidate test parameters

Replacing hard-coded values with standardized macros to improve code clarity,
simplify future maintenance.

Meanwhile, introduce global bs and sg_len arrays for block sizes and SG lengths,
eliminating redundant local definitions in multiple test functions.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc_test.c