pinctrl/TB10x: Fix signedness bug
authorChristian Ruppert <christian.ruppert@abilis.com>
Fri, 11 Apr 2014 14:46:04 +0000 (16:46 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 22 Apr 2014 12:55:02 +0000 (14:55 +0200)
commit4c5fba3d4ae3a7aae2c4a56d4a234aa556b7caca
tree9e91e1c94fa4e5f5f486edf5a0c61be122112f7a
parenta798c10faf62a505d24e5f6213fbaf904a39623f
pinctrl/TB10x: Fix signedness bug

In the TB10x pin database, a port index of -1 is used to indicate
unmuxed GPIO pin groups. This bug fixes a 'cast to unsigned' bug of
this value.

Thanks to Dan Carpenter for highlighting this.

CC: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christian Ruppert <christian.ruppert@abilis.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-tb10x.c