mmc: renesas_sdhi: use plain numbers for end_flags
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 22 Nov 2022 08:05:54 +0000 (09:05 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 7 Dec 2022 12:28:22 +0000 (13:28 +0100)
Linux *_bit accessors take plain bit numbers, no need for BIT().

Fixes: c330601c9c93 ("mmc: renesas_sdhi: take DMA end interrupts into account")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20221122080554.4468-1-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi.h

index ea2a85174a09563e093c763bd197290f0dc5ae35..68da3da9e2e54eccf99cb6170045adf5ee472a1f 100644 (file)
@@ -57,8 +57,8 @@ struct renesas_sdhi_of_data_with_quirks {
 };
 
 /* We want both end_flags to be set before we mark DMA as finished */
-#define SDHI_DMA_END_FLAG_DMA          BIT(0)
-#define SDHI_DMA_END_FLAG_ACCESS       BIT(1)
+#define SDHI_DMA_END_FLAG_DMA          0
+#define SDHI_DMA_END_FLAG_ACCESS       1
 
 struct renesas_sdhi_dma {
        unsigned long end_flags;