Re: [PATCH 1/4] pinctrl: mediatek: fix static checker warning caused by EINT_NA

2018-09-21 Thread Linus Walleij
On Thu, Sep 20, 2018 at 9:07 PM wrote: > From: Sean Wang > > EINT_NA is an u16 number, so it should be U16_MAX instead of -1 > to fix up drivers/pinctrl/mediatek/pinctrl-paris.c:732 mtk_gpio_to_irq() > warn: impossible condition (desc->eint.eint_n == -1) => (0-u16max == (-1)) > > Also happens

Re: [PATCH 1/4] pinctrl: mediatek: fix static checker warning caused by EINT_NA

2018-09-21 Thread Linus Walleij
On Thu, Sep 20, 2018 at 9:07 PM wrote: > From: Sean Wang > > EINT_NA is an u16 number, so it should be U16_MAX instead of -1 > to fix up drivers/pinctrl/mediatek/pinctrl-paris.c:732 mtk_gpio_to_irq() > warn: impossible condition (desc->eint.eint_n == -1) => (0-u16max == (-1)) > > Also happens

[PATCH 1/4] pinctrl: mediatek: fix static checker warning caused by EINT_NA

2018-09-20 Thread sean.wang
From: Sean Wang EINT_NA is an u16 number, so it should be U16_MAX instead of -1 to fix up drivers/pinctrl/mediatek/pinctrl-paris.c:732 mtk_gpio_to_irq() warn: impossible condition (desc->eint.eint_n == -1) => (0-u16max == (-1)) Also happens in drivers/pinctrl/mediatek/pinctrl-paris.c:749

[PATCH 1/4] pinctrl: mediatek: fix static checker warning caused by EINT_NA

2018-09-20 Thread sean.wang
From: Sean Wang EINT_NA is an u16 number, so it should be U16_MAX instead of -1 to fix up drivers/pinctrl/mediatek/pinctrl-paris.c:732 mtk_gpio_to_irq() warn: impossible condition (desc->eint.eint_n == -1) => (0-u16max == (-1)) Also happens in drivers/pinctrl/mediatek/pinctrl-paris.c:749