summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/renesas_sdhi.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2020-03-02 12:35:34 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2020-03-24 16:39:52 +0300
commitfcc958d6dbbdb0ca646806f413611cf48b2ae697 (patch)
tree4ca8cbb455cf01d3938a9fe2b9d9d0d0ddac93fc /drivers/mmc/host/renesas_sdhi.h
parentd3392339cae94b2ab01646a22f67ce464e46ed68 (diff)
downloadlinux-fcc958d6dbbdb0ca646806f413611cf48b2ae697.tar.xz
mmc: renesas_sdhi: Use BITS_PER_LONG helper
Use the existing BITS_PER_LONG helper definition instead of calculating this value. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://lore.kernel.org/r/20200302093534.9055-1-geert+renesas@glider.be Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/renesas_sdhi.h')
-rw-r--r--drivers/mmc/host/renesas_sdhi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/renesas_sdhi.h b/drivers/mmc/host/renesas_sdhi.h
index 7a1a741547f2..2a4c83a5f32e 100644
--- a/drivers/mmc/host/renesas_sdhi.h
+++ b/drivers/mmc/host/renesas_sdhi.h
@@ -60,7 +60,7 @@ struct renesas_sdhi {
bool doing_tune;
/* Tuning values: 1 for success, 0 for failure */
- DECLARE_BITMAP(taps, BITS_PER_BYTE * sizeof(long));
+ DECLARE_BITMAP(taps, BITS_PER_LONG);
unsigned int tap_num;
unsigned long tap_set;
};