mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 15:29:16 +00:00
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:
parent
ce7bdb957b
commit
28e0603c4d
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user