mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 11:04:44 +08:00
drm/nouveau/clk/gk20a: properly protect macro argument
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
791eeea2dc
commit
9772605ce8
@ -31,7 +31,7 @@
|
||||
#define KHZ (1000)
|
||||
#define MHZ (KHZ * 1000)
|
||||
|
||||
#define MASK(w) ((1 << w) - 1)
|
||||
#define MASK(w) ((1 << (w)) - 1)
|
||||
|
||||
#define GPCPLL_CFG (SYS_GPCPLL_CFG_BASE + 0)
|
||||
#define GPCPLL_CFG_ENABLE BIT(0)
|
||||
|
@ -29,7 +29,7 @@
|
||||
#define KHZ (1000)
|
||||
#define MHZ (KHZ * 1000)
|
||||
|
||||
#define MASK(w) ((1 << w) - 1)
|
||||
#define MASK(w) ((1 << (w)) - 1)
|
||||
|
||||
#define BYPASSCTRL_SYS (SYS_GPCPLL_CFG_BASE + 0x340)
|
||||
#define BYPASSCTRL_SYS_GPCPLL_SHIFT 0
|
||||
|
Loading…
Reference in New Issue
Block a user