mmc: core: Simplify card drive strength mask
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 6 Feb 2015 12:12:53 +0000 (14:12 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 1 Jun 2015 07:07:11 +0000 (09:07 +0200)
commitfa021cef1af64cb4ba11c3c0910ef45085c58016
treef04d595f6b06833226a96bab2e9aafccaf74ba2c
parentb4f30a174e1fda8118eda038b5d8d5260db36ad5
mmc: core: Simplify card drive strength mask

Card drive strength selection uses a callback to
which a mask of supported drive strengths is passed.
Currently, the bits are checked against the values
in the SD specifications. That is not necessary
because the callback will anyway match the mask
against a valid value. Simplify by taking the mask
as is but still ensuring that the default mandatory
value (type B) is always supported.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/sd.c
drivers/mmc/core/sdio.c