]> www.infradead.org Git - users/willy/xarray.git/commit
mmc: core: Convert into an enum for the poweroff-type for eMMC
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 7 Apr 2025 15:27:53 +0000 (17:27 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 14 May 2025 14:59:16 +0000 (16:59 +0200)
commit900ef5355861aa33d712c7e7d8fcf923e762b4cd
tree4602649549f763bd9f950210d0d315f08746a1be
parentfa34c940e830e7af37b57f5fcdb17e2fc03dbf7f
mmc: core: Convert into an enum for the poweroff-type for eMMC

Currently we are only distinguishing between the suspend and the shutdown
scenarios, which make a bool sufficient as in-parameter to the various PM
functions for eMMC. However, to prepare for adding support for another
scenario in a subsequent change, let's convert into using an enum.

Suggested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20250407152759.25160-4-ulf.hansson@linaro.org
drivers/mmc/core/mmc.c