mmc: core Convert UNSTUFF_BITS macro to inline function
authorAvri Altman <avri.altman@wdc.com>
Mon, 2 Sep 2024 12:33:31 +0000 (15:33 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 3 Sep 2024 12:34:24 +0000 (14:34 +0200)
commit38fb699795f0f24f1dcbe175537ec9c2ba500fa4
tree96c41f422a9e812140f3bf7c914e1f713956a35e
parent1c97ea115f89d096ec403f0827cc01671e3daba3
mmc: core Convert UNSTUFF_BITS macro to inline function

The UNSTUFF_BITS macro, which is defined in both drivers/mmc/core/mmc.c
and drivers/mmc/core/sd.c, has been converted to an inline function to
improve readability, maintainability, and type safety.

Signed-off-by: Avri Altman <avri.altman@wdc.com>
Link: https://lore.kernel.org/r/20240902123331.3566447-1-avri.altman@wdc.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c
drivers/mmc/core/mmc_ops.h
drivers/mmc/core/sd.c