staging: ks7010: create reg_status_type enum type
authorTobin C. Harding <me@tobin.cc>
Tue, 18 Apr 2017 00:35:29 +0000 (10:35 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Apr 2017 11:33:17 +0000 (13:33 +0200)
commitbfee6a231903b1f1f8d72cc638be6862d7099377
tree7ea9678e4397d789421061dbdddb407936c49697
parent4330887f2e7406b671549db58f3cf7d76baa52cd
staging: ks7010: create reg_status_type enum type

SDIO header currently defines unused constants READ_STATUS_BUSY and
WRITE_STATUS_IDLE. There are reciprocal constants that are used
READ_STATUS_IDLE and WRITE_STATUS_BUSY. We can roll these into a
single enumeration type and remove the two that are unused.

Add enumeration type containing IDLE/BUSY pair that are currently used
within the SDIO source. Change source to use new enum types.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c
drivers/staging/ks7010/ks7010_sdio.h