Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: wbsd: Replace hardcoded command numbers with existing defines

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20200409125422.21842-1-ulf.hansson@linaro.org

+14 -12
+14 -12
drivers/mmc/host/wbsd.c
··· 28 28 #include <linux/pnp.h> 29 29 #include <linux/highmem.h> 30 30 #include <linux/mmc/host.h> 31 + #include <linux/mmc/mmc.h> 32 + #include <linux/mmc/sd.h> 31 33 #include <linux/scatterlist.h> 32 34 #include <linux/slab.h> 33 35 ··· 772 770 * interrupts. 773 771 */ 774 772 switch (cmd->opcode) { 775 - case 11: 776 - case 17: 777 - case 18: 778 - case 20: 779 - case 24: 780 - case 25: 781 - case 26: 782 - case 27: 783 - case 30: 784 - case 42: 785 - case 56: 773 + case SD_SWITCH_VOLTAGE: 774 + case MMC_READ_SINGLE_BLOCK: 775 + case MMC_READ_MULTIPLE_BLOCK: 776 + case MMC_WRITE_DAT_UNTIL_STOP: 777 + case MMC_WRITE_BLOCK: 778 + case MMC_WRITE_MULTIPLE_BLOCK: 779 + case MMC_PROGRAM_CID: 780 + case MMC_PROGRAM_CSD: 781 + case MMC_SEND_WRITE_PROT: 782 + case MMC_LOCK_UNLOCK: 783 + case MMC_GEN_CMD: 786 784 break; 787 785 788 786 /* ACMDs. We don't keep track of state, so we just treat them 789 787 * like any other command. */ 790 - case 51: 788 + case SD_APP_SEND_SCR: 791 789 break; 792 790 793 791 default: