]> git.ipfire.org Git - thirdparty/linux.git/commit
mmc: core: Replace the hard-coded shift value 9 with SECTOR_SHIFT
authorShawn Lin <shawn.lin@rock-chips.com>
Mon, 30 Mar 2026 03:28:29 +0000 (11:28 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 31 Mar 2026 10:41:31 +0000 (12:41 +0200)
commita38ad7e173bc68c54f7afae7f669a824e313b1bb
treeea65a9ae5f7dc6cad989f6d9dd411ef9a5d7c53d
parent257373c25ed7115f824588f20b3363d9e95640c4
mmc: core: Replace the hard-coded shift value 9 with SECTOR_SHIFT

These shift-by-9 operations are for converting between bytes and sectors.
Use the SECTOR_SHIFT macro to improve code readability and maintainability.

No functional changes intended.

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