pinctrl: rockchip: fix RK_GENMASK_VAL error

Change-Id: I5c6cb3ace53a86e9d8bfed0966950af3a47cd732
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This commit is contained in:
Jianqun Xu 2020-04-07 16:01:01 +08:00
parent 78e35b2b4f
commit 42375b1080
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ enum rockchip_pinctrl_type {
RK3399,
};
#define RK_GENMASK_VAL(h, l, v) \
(GENMASK((h) + 16, (l) + 16) | ((v) & GENMASK(h, l)) << (h))
#define RK_GENMASK_VAL(l, h, v) \
(GENMASK((h) + 16, (l) + 16) | (((v) << (l) & GENMASK(h, l))))
/**
* Encode variants of iomux registers into a type variable