Message ID | 20230620104722.16465-10-marex@denx.de |
---|---|
State | New |
Headers | show |
Series | [01/11] mmc: core: Use BIT() macro | expand |
diff --git a/drivers/mmc/host/vub300.c b/drivers/mmc/host/vub300.c index 9ec593d52f0fa..4216d57262dc3 100644 --- a/drivers/mmc/host/vub300.c +++ b/drivers/mmc/host/vub300.c @@ -323,7 +323,7 @@ struct vub300_mmc_host { struct sdio_register sdio_register[16]; struct offload_interrupt_function_register { #define MAXREGBITS 4 -#define MAXREGS (1<<MAXREGBITS) +#define MAXREGS BIT(MAXREGBITS) #define MAXREGMASK (MAXREGS-1) u8 offload_count; u32 offload_point;
Use the BIT(n) macro instead of (1<<n), no functional change. Regex 's@(1 \?<< \?\([0-9A-Z_]\+\))@BIT(\1)' . Signed-off-by: Marek Vasut <marex@denx.de> --- Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Avri Altman <avri.altman@wdc.com> Cc: Bo Liu <liubo03@inspur.com> Cc: Deren Wu <deren.wu@mediatek.com> Cc: Philipp Zabel <p.zabel@pengutronix.de> Cc: Pierre Ossman <pierre@ossman.eu> Cc: Russell King <linux@armlinux.org.uk> Cc: Ulf Hansson <ulf.hansson@linaro.org> Cc: Yang Yingliang <yangyingliang@huawei.com> Cc: linux-mmc@vger.kernel.org --- drivers/mmc/host/vub300.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)