pinctrl: mediatek: Make eint_m u16
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 8 Oct 2018 19:14:10 +0000 (00:44 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Oct 2018 14:17:01 +0000 (16:17 +0200)
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>
drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h

index 991c1c56670c995ad471a20e1a3589c85f940364..6d24522739d9f7a7d3c09f3f34c8b4af7b3b1e84 100644 (file)
@@ -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;
 };