]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit31675e6a3a4c0266f1e62a3da4f8cd4113eb53cb
treef294d761be3bead8ee418e92dd950c0c4e04d1be
parent787c329908f4ed7de45ade4c15a82f619d34fb47
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