linux/drivers/pinctrl/mediatek
Colin Ian King 7a52127e3c pinctrl: mediatek: fix check on EINT_NA comparison
Currently, the check on desc->eint.eint_n == EINT_NA is always false
because this is comparing a u16 to -1 which can never be true.  Fix
this by casting EINT_NA to u16.

Detected by CoverityScan, CID#1473610 ("Operands don't affect result")

Fixes: fb5fa8dc15 ("pinctrl: mediatek: extend struct mtk_pin_desc to pinctrl-mtk-common-v2.c")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2018-09-26 09:43:01 +02:00
..
Kconfig pinctrl: mediatek: add MT6765 pinctrl driver 2018-09-21 09:12:55 -07:00
Makefile pinctrl: mediatek: add MT6765 pinctrl driver 2018-09-21 09:12:55 -07:00
mtk-eint.c pinctrl: Include <linux/gpio/driver.h> nothing else 2018-09-14 15:10:57 +02:00
mtk-eint.h pinctrl: mediatek: remove unused fields in struct mtk_eint_hw 2018-05-24 09:40:10 +02:00
pinctrl-moore.c pinctrl: mediatek: fix check on EINT_NA comparison 2018-09-26 09:43:01 +02:00
pinctrl-moore.h pinctrl: mtk: Fix up GPIO includes 2018-09-18 16:38:27 -07:00
pinctrl-mt2701.c pinctrl: mediatek: remove unused fields in struct mtk_eint_hw 2018-05-24 09:40:10 +02:00
pinctrl-mt2712.c pinctrl: mediatek: remove unused fields in struct mtk_eint_hw 2018-05-24 09:40:10 +02:00
pinctrl-mt6397.c pinctrl: mediatek: use builtin_platform_driver 2016-11-22 10:17:28 +01:00
pinctrl-mt6765.c pinctrl: mediatek: add eint support to MT6765 pinctrl driver 2018-09-21 09:13:54 -07:00
pinctrl-mt7622.c pinctrl: mediatek: extend struct mtk_pin_desc which per-pin driver depends on 2018-09-18 14:53:22 -07:00
pinctrl-mt7623.c pinctrl: mediatek: extend struct mtk_pin_desc which per-pin driver depends on 2018-09-18 14:53:22 -07:00
pinctrl-mt8127.c pinctrl: mediatek: remove unused fields in struct mtk_eint_hw 2018-05-24 09:40:10 +02:00
pinctrl-mt8135.c pinctrl: mediatek: remove unused fields in struct mtk_eint_hw 2018-05-24 09:40:10 +02:00
pinctrl-mt8173.c pinctrl: mediatek: remove unused fields in struct mtk_eint_hw 2018-05-24 09:40:10 +02:00
pinctrl-mt8183.c pinctrl: mediatek: add eint support to MT8183 pinctrl driver 2018-09-18 14:53:42 -07:00
pinctrl-mtk-common-v2.c pinctrl: mediatek: make symbol 'mtk_drive' static 2018-09-21 09:02:37 -07:00
pinctrl-mtk-common-v2.h pinctrl: mediatek: add no eint function for pin define 2018-09-21 09:12:06 -07:00
pinctrl-mtk-common.c pinctrl: Convert to using %pOFn instead of device_node.name 2018-08-29 14:05:36 +02:00
pinctrl-mtk-common.h pinctrl: mediatek: use generic EINT register maps for each SoC 2018-05-24 09:39:25 +02:00
pinctrl-mtk-mt2701.h pinctrl: mtk: fix check warnings. 2018-03-26 10:58:33 +02:00
pinctrl-mtk-mt2712.h pinctrl: add mt2712 pinctrl driver 2018-03-26 10:53:39 +02:00
pinctrl-mtk-mt6397.h pinctrl: mtk: fix check warnings. 2018-03-26 10:58:33 +02:00
pinctrl-mtk-mt6765.h pinctrl: mediatek: add MT6765 pinctrl driver 2018-09-21 09:12:55 -07:00
pinctrl-mtk-mt8127.h pinctrl: mtk: fix check warnings. 2018-03-26 10:58:33 +02:00
pinctrl-mtk-mt8135.h pinctrl: mtk: fix check warnings. 2018-03-26 10:58:33 +02:00
pinctrl-mtk-mt8173.h pinctrl: mtk: fix check warnings. 2018-03-26 10:58:33 +02:00
pinctrl-mtk-mt8183.h pinctrl: mediatek: add MT8183 pinctrl driver 2018-09-18 14:53:29 -07:00
pinctrl-paris.c pinctrl: mediatek: paris: fix return value check in mtk_paris_pinctrl_probe() 2018-09-21 09:00:51 -07:00
pinctrl-paris.h pinctrl: mtk: Fix up GPIO includes 2018-09-18 16:38:27 -07:00