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>
This commit is contained in:
Manivannan Sadhasivam 2018-10-09 00:44:10 +05:30 committed by Linus Walleij
parent ce7bdb957b
commit 28e0603c4d
1 changed files with 1 additions and 1 deletions

View 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;
};