diff options
author | Matt Fleming <[email protected]> | 2010-09-27 09:42:19 +0100 |
---|---|---|
committer | Chris Ball <[email protected]> | 2010-10-23 21:11:15 +0800 |
commit | 71d7d3d190fe77588269a8febf93cd739bd91eb3 (patch) | |
tree | 32aa0d033c40c38327a704e2cad0fc61e2dd86ae /lib/mpi/mpi-inline.h | |
parent | d3c502b84f734b36abdc9d11ec61f00016e98d33 (diff) |
mmc: Add helper function to check if a card is removable
There are two checks that need to be made when determining whether a
card is removable. A host controller may set MMC_CAP_NONREMOVABLE if the
controller does not support removing cards (e.g. eMMC), in which case
the card is physically non-removable. Also the 'mmc_assume_removable'
module parameter can be configured at module load time, in which case
the card may be logically non-removable.
A helper function keeps the logic in one place so that code always
checks both conditions.
Because this new function is likely to be called from modules we now
need to export the mmc_assume_removable symbol.
Signed-off-by: Matt Fleming <[email protected]>
Acked-by: Kyungmin Park <[email protected]>
Tested-by: Jaehoon Chung <[email protected]>
Acked-by: Wolfram Sang <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions