]> git.karo-electronics.de Git - karo-tx-linux.git/commit
extcon: max77693: fix handling return value of regmap_irq_get_virq
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 14 Dec 2015 11:12:42 +0000 (12:12 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 15 Dec 2015 01:02:23 +0000 (10:02 +0900)
commitcbc46603df56b5933aef6765fc50d3aa18f96ced
treeab564e12eb2c31170cb4323fcaeb32a5ce319937
parentc2957563ad0965c8bfb393dcd22ddb683dd1ff1c
extcon: max77693: fix handling return value of regmap_irq_get_virq

The function can return negative values, so its result should
be assigned to signed variable.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Suggested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-max77693.c