diff options
author | Johan Hovold <johan@kernel.org> | 2016-10-24 12:58:12 +0300 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2016-10-24 13:00:19 +0300 |
commit | 6b7271d2536abd6f87fbc5ddd22c42dd1ffe360d (patch) | |
tree | f33585bbd9465f019dfaf33e91a08f4d946ed20e /drivers/usb/serial | |
parent | cf5276ce7867d6d87c02fbe4977646ed342e323a (diff) | |
download | linux-6b7271d2536abd6f87fbc5ddd22c42dd1ffe360d.tar.xz |
USB: serial: cp210x: use bool for registered flag
Use bool rather than u8 for the gpio-chip-registered flag.
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/cp210x.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index 213ed3868fed..ef7f1c01c2cc 100644 --- a/drivers/usb/serial/cp210x.c +++ b/drivers/usb/serial/cp210x.c @@ -219,7 +219,7 @@ struct cp210x_serial_private { struct gpio_chip gc; u8 config; u8 gpio_mode; - u8 gpio_registered; + bool gpio_registered; #endif u8 partnum; }; @@ -1407,7 +1407,7 @@ static int cp2105_shared_gpio_init(struct usb_serial *serial) result = gpiochip_add_data(&priv->gc, serial); if (!result) - priv->gpio_registered = 1; + priv->gpio_registered = true; return result; } @@ -1418,7 +1418,7 @@ static void cp210x_gpio_remove(struct usb_serial *serial) if (priv->gpio_registered) { gpiochip_remove(&priv->gc); - priv->gpio_registered = 0; + priv->gpio_registered = false; } } |