mmc: block: Tag DRV_OPs with a driver operation type
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 19 May 2017 13:37:28 +0000 (15:37 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:25 +0000 (10:30 +0200)
commit02166a01f8113c6374d6f1512befa9233c837fa0
treef294d761be3bead8ee418e92dd950c0c4e04d1be
parent67e69d5220c904238f94bb2e6001d7c590f5a0bb
mmc: block: Tag DRV_OPs with a driver operation type

We will expand the DRV_OP usage, so we need to know which
operation we're performing. Tag the operations with an
enum:ed type and rename the function so it is clear that
it deals with any command and put a switch statement in
it. Currently only ioctls are supported.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c
drivers/mmc/core/queue.h