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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Dec 2022 10:28:42 +0000 (11:28 +0100)
commit01dbe4db590a8a7e4698f83e2d3cf5cc618e7bb3
treea21af074e0e0af394f49546d351b837c72b64167
parent738946e35504f66dfda1978ec72d0253a434ffc0
mmc: core: Fix ambiguous TRIM and DISCARD arg

commit 489d144563f23911262a652234b80c70c89c978b upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/core.c
include/linux/mmc/mmc.h