greybus: gpio: fix truncated debounce times
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 19 Mar 2015 15:51:09 +0000 (16:51 +0100)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 19 Mar 2015 16:29:40 +0000 (17:29 +0100)
commitc2a66106867343b5c5f017ccc724ba1c1aa9b540
tree75e7551139354e056c364cfd1e7bc68333d02a38
parentc0d209a07beb3550203bfa237d27433a1fbc9cee
greybus: gpio: fix truncated debounce times

Fix set_debounce, which silently truncated the time argument to 255us
even though we support 16-bit values.

Also remove the unnecessary explicit cast when verifying the argument.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/gpio.c