mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 11:50:52 +07: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…
Reference in New Issue
Block a user