diff options
author | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2018-10-08 21:14:10 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-10-15 16:17:01 +0200 |
commit | 28e0603c4df4b327aa1f92ccfbc3733323d898ba (patch) | |
tree | d37d96cbcdff001fa9cb30740c47819324d2877b /drivers/pinctrl/mediatek | |
parent | pinctrl: bcm: ns: Use uintptr_t for casting data (diff) | |
download | linux-28e0603c4df4b327aa1f92ccfbc3733323d898ba.tar.xz linux-28e0603c4df4b327aa1f92ccfbc3733323d898ba.zip |
pinctrl: mediatek: Make eint_m u16
For SoC's which lacks EINT support, U16_MAX is assigned to both eint_m
and eint_n through macro NO_EINT_SUPPORT. This will generate integer
overflow warning because eint_m is declared as u8 type. Hence modify
the eint_m type to u16.
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/mediatek')
-rw-r--r-- | drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h b/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h index 991c1c56670c..6d24522739d9 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h @@ -154,7 +154,7 @@ struct mtk_func_desc { * @eitn_n: the eint number for this pin */ struct mtk_eint_desc { - u8 eint_m; + u16 eint_m; u16 eint_n; }; |