mmc: core: Fix ambiguous TRIM and DISCARD arg
authorChristian Löhle <CLoehle@hyperstone.com>
Thu, 17 Nov 2022 14:42:09 +0000 (14:42 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 18 Nov 2022 09:39:22 +0000 (10:39 +0100)
commit489d144563f23911262a652234b80c70c89c978b
treee68fc68b145c0b1e70bc21474fc35e4c33d510d5
parent222cfa0118aa68687ace74aab8fdf77ce8fbd7e6
mmc: core: Fix ambiguous TRIM and DISCARD arg

Clean up the MMC_TRIM_ARGS define that became ambiguous with DISCARD
introduction.  While at it, let's fix one usage where MMC_TRIM_ARGS falsely
included DISCARD too.

Fixes: b3bf915308ca ("mmc: core: new discard feature support at eMMC v4.5")
Signed-off-by: Christian Loehle <cloehle@hyperstone.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/11376b5714964345908f3990f17e0701@hyperstone.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c
include/linux/mmc/mmc.h