OSDN Git Service

mmc: core: Simplify card drive strength mask
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 6 Feb 2015 12:12:53 +0000 (14:12 +0200)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 28 Apr 2015 17:10:46 +0000 (01:10 +0800)
commit8495f81166f97ff0079b61bc1afa1a11870e2c0f
tree31a7bcd5f3fb3316f8cdbf01fe27098895322ca1
parent15e0a8dd7ea0e9097021f8791648c2c1f809481f
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>
drivers/mmc/core/sd.c
drivers/mmc/core/sdio.c