usb: typec: stusb160x: fix some signedness bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 Oct 2020 11:24:12 +0000 (14:24 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Oct 2020 12:12:45 +0000 (13:12 +0100)
commit063a3d67693ecde7f24ca00d4a131883edab1e73
tree721c2298382f53a2d159cee21a512fac00baab63
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec
usb: typec: stusb160x: fix some signedness bugs

These variables are enums but in this situation GCC will treat them as
unsigned so the conditions are never true.

Fixes: da0cb6310094 ("usb: typec: add support for STUSB160x Type-C controller family")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20201023112412.GD282278@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/stusb160x.c