mmc: renesas_sdhi_internal_dmac: Fix a few typos
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Fri, 17 Aug 2018 20:19:02 +0000 (23:19 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 8 Oct 2018 09:40:43 +0000 (11:40 +0200)
Remove the stray underscore in the DM_CM_DTRAN_MODE.BUS_WIDTH register
field name and fix the typo in the comment of the #define
DTRAN_MODE_CH_NUM_CH1.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_internal_dmac.c

index f4aefa8..626f925 100644 (file)
@@ -35,8 +35,8 @@
 
 /* DM_CM_DTRAN_MODE */
 #define DTRAN_MODE_CH_NUM_CH0  0       /* "downstream" = for write commands */
-#define DTRAN_MODE_CH_NUM_CH1  BIT(16) /* "uptream" = for read commands */
-#define DTRAN_MODE_BUS_WID_TH  (BIT(5) | BIT(4))
+#define DTRAN_MODE_CH_NUM_CH1  BIT(16) /* "upstream" = for read commands */
+#define DTRAN_MODE_BUS_WIDTH   (BIT(5) | BIT(4))
 #define DTRAN_MODE_ADDR_MODE   BIT(0)  /* 1 = Increment address */
 
 /* DM_CM_DTRAN_CTRL */
@@ -174,7 +174,7 @@ renesas_sdhi_internal_dmac_start_dma(struct tmio_mmc_host *host,
                                     struct mmc_data *data)
 {
        struct scatterlist *sg = host->sg_ptr;
-       u32 dtran_mode = DTRAN_MODE_BUS_WID_TH | DTRAN_MODE_ADDR_MODE;
+       u32 dtran_mode = DTRAN_MODE_BUS_WIDTH | DTRAN_MODE_ADDR_MODE;
 
        if (!dma_map_sg(&host->pdev->dev, sg, host->sg_len,
                        mmc_get_dma_dir(data)))